webhook-action/dist/index.js.map

1 line
72 KiB
Plaintext
Raw Normal View History

2020-08-29 01:10:10 +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/node-fetch/lib/index.js","../webpack://webhook-action/./node_modules/@vercel/ncc/dist/ncc/@@notfound.js","../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 Http = (function () {\n function Http() {\n }\n Http.prototype.make = function (url, headers, body) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n fetch(url, _this.getOptions('post', headers, body))\n .then(function (res) { return resolve(res); });\n });\n };\n Http.prototype.getOptions = function (method, headers, body) {\n var options = {\n headers: headers ? JSON.parse(headers) : {},\n method: method\n };\n if (body) {\n options.body = body;\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 = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n