webhook-action/dist/index.js.map

1 line
76 KiB
Plaintext
Raw Normal View History

2021-02-26 04:00:44 +00:00
{"version":3,"file":"index.js","sources":["../webpack://webhook-action/./dist/http.js","../webpack://webhook-action/./dist/main.js","../webpack://webhook-action/./node_modules/@actions/core/lib/command.js","../webpack://webhook-action/./node_modules/@actions/core/lib/core.js","../webpack://webhook-action/./node_modules/@actions/core/lib/file-command.js","../webpack://webhook-action/./node_modules/@actions/core/lib/utils.js","../webpack://webhook-action/./node_modules/node-fetch/lib/index.js","../webpack://webhook-action/./node_modules/@vercel/ncc/dist/ncc/@@notfound.js","../webpack://webhook-action/external \"fs\"","../webpack://webhook-action/external \"http\"","../webpack://webhook-action/external \"https\"","../webpack://webhook-action/external \"os\"","../webpack://webhook-action/external \"path\"","../webpack://webhook-action/external \"stream\"","../webpack://webhook-action/external \"url\"","../webpack://webhook-action/external \"zlib\"","../webpack://webhook-action/webpack/bootstrap","../webpack://webhook-action/webpack/runtime/compat","../webpack://webhook-action/webpack/startup"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.http = void 0;\nvar fetch = require('node-fetch');\nvar https = require('https');\nvar Http = (function () {\n function Http() {\n }\n Http.prototype.make = function (url, headers, body, ignoreCertificate) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n fetch(url, _this.getOptions('post', headers, body, ignoreCertificate)).then(function (res) { return resolve(res); });\n });\n };\n Http.prototype.getOptions = function (method, headers, body, ignoreCertificate) {\n var options = {\n headers: headers ? JSON.parse(headers) : {},\n method: method\n };\n if (body) {\n options.body = body;\n }\n if (ignoreCertificate) {\n options.agent = new https.Agent({ rejectUnauthorized: false });\n }\n options.headers['content-type'] = 'application/json';\n return options;\n };\n return Http;\n}());\nexports.http = new Http();\n//# sourceMappingURL=http.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.tr