mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-08-25 08:08:00 +00:00
Update build
This commit is contained in:
parent
f43e86409d
commit
0740593bc2
20
dist/http.js
vendored
20
dist/http.js
vendored
@ -37,6 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.http = void 0;
|
exports.http = void 0;
|
||||||
|
var axios = require('axios').default;
|
||||||
var Http = (function () {
|
var Http = (function () {
|
||||||
function Http() {
|
function Http() {
|
||||||
}
|
}
|
||||||
@ -45,21 +46,22 @@ var Http = (function () {
|
|||||||
var _this = this;
|
var _this = this;
|
||||||
return __generator(this, function (_a) {
|
return __generator(this, function (_a) {
|
||||||
return [2, new Promise(function (resolve, reject) {
|
return [2, new Promise(function (resolve, reject) {
|
||||||
fetch(url, _this.getOptions('post', headers, body))
|
axios({
|
||||||
|
method: 'post',
|
||||||
|
url: url,
|
||||||
|
headers: _this.getHeaders(headers),
|
||||||
|
data: JSON.parse(body)
|
||||||
|
})
|
||||||
.then(function (res) { return resolve(res.body); })
|
.then(function (res) { return resolve(res.body); })
|
||||||
.catch(function (res) { return reject(res.body); });
|
.catch(function (res) { return reject(res.body); });
|
||||||
})];
|
})];
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
Http.prototype.getOptions = function (method, headers, body) {
|
Http.prototype.getHeaders = function (headersString) {
|
||||||
var options = {
|
var headers = JSON.parse(headersString);
|
||||||
headers: JSON.parse(headers),
|
headers['content-type'] = 'application/json';
|
||||||
method: method
|
return headers;
|
||||||
};
|
|
||||||
options.body = JSON.stringify(body);
|
|
||||||
options.headers['content-type'] = 'application/json';
|
|
||||||
return options;
|
|
||||||
};
|
};
|
||||||
return Http;
|
return Http;
|
||||||
}());
|
}());
|
||||||
|
2
dist/http.js.map
vendored
2
dist/http.js.map
vendored
@ -1 +1 @@
|
|||||||
{"version":3,"file":"http.js","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;IAAA;IAuBA,CAAC;IAtBO,mBAAI,GAAV,UAAW,GAAW,EAAE,OAAe,EAAE,IAAY;;;;gBACnD,WAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;wBACjC,KAAK,CAAC,GAAG,EAAE,KAAI,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;6BAC/C,IAAI,CAAC,UAAC,GAAG,IAAK,OAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAjB,CAAiB,CAAC;6BAChC,KAAK,CAAC,UAAC,GAAG,IAAK,OAAA,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAhB,CAAgB,CAAC,CAAC;oBACtC,CAAC,CAAC,EAAC;;;KACJ;IAED,yBAAU,GAAV,UAAW,MAAc,EAAE,OAAe,EAAE,IAAY;QACtD,IAAM,OAAO,GAAQ;YACnB,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;YAC5B,MAAM,QAAA;SACP,CAAC;QAGF,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAGpC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAErD,OAAO,OAAO,CAAC;IACjB,CAAC;IACH,WAAC;AAAD,CAAC,AAvBD,IAuBC;AAEY,QAAA,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC"}
|
{"version":3,"file":"http.js","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC;AAEvC;IAAA;IAsBA,CAAC;IArBO,mBAAI,GAAV,UAAW,GAAW,EAAE,OAAe,EAAE,IAAY;;;;gBACnD,WAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;wBACjC,KAAK,CAAC;4BACJ,MAAM,EAAE,MAAM;4BACd,GAAG,KAAA;4BACH,OAAO,EAAE,KAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BACjC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;yBACvB,CAAC;6BACC,IAAI,CAAC,UAAC,GAAG,IAAK,OAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAjB,CAAiB,CAAC;6BAChC,KAAK,CAAC,UAAC,GAAG,IAAK,OAAA,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAhB,CAAgB,CAAC,CAAC;oBACtC,CAAC,CAAC,EAAC;;;KACJ;IAED,yBAAU,GAAV,UAAW,aAAqB;QAC9B,IAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAG1C,OAAO,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAE7C,OAAO,OAAO,CAAC;IACjB,CAAC;IACH,WAAC;AAAD,CAAC,AAtBD,IAsBC;AAEY,QAAA,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC"}
|
BIN
node_modules/@vercel/ncc/dist/ncc/cli.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/cli.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/index.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/index.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache
generated
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user