Skip to content

Commit fc9aedc

Browse files
authored
Merge pull request #93 from tshion/feature/2.1.1
Update 2.1.1
2 parents ec98679 + 683e71a commit fc9aedc

File tree

3 files changed

+45
-29
lines changed

3 files changed

+45
-29
lines changed

compiled/index.js

+28-12
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,8 @@ class OidcClient {
572572
const res = yield httpclient
573573
.getJson(id_token_url)
574574
.catch(error => {
575-
throw new Error(`Failed to get ID Token. \n
576-
Error Code : ${error.statusCode}\n
575+
throw new Error(`Failed to get ID Token. \n
576+
Error Code : ${error.statusCode}\n
577577
Error Message: ${error.message}`);
578578
});
579579
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
@@ -11522,6 +11522,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253)
1152211522
const { File: UndiciFile } = __nccwpck_require__(3041)
1152311523
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
1152411524

11525+
let random
11526+
try {
11527+
const crypto = __nccwpck_require__(7598)
11528+
random = (max) => crypto.randomInt(0, max)
11529+
} catch {
11530+
random = (max) => Math.floor(Math.random(max))
11531+
}
11532+
1152511533
let ReadableStream = globalThis.ReadableStream
1152611534

1152711535
/** @type {globalThis['File']} */
@@ -11607,7 +11615,7 @@ function extractBody (object, keepalive = false) {
1160711615
// Set source to a copy of the bytes held by object.
1160811616
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
1160911617
} else if (util.isFormDataLike(object)) {
11610-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
11618+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
1161111619
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
1161211620

1161311621
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
@@ -25933,6 +25941,14 @@ module.exports = require("net");
2593325941

2593425942
/***/ }),
2593525943

25944+
/***/ 7598:
25945+
/***/ ((module) => {
25946+
25947+
"use strict";
25948+
module.exports = require("node:crypto");
25949+
25950+
/***/ }),
25951+
2593625952
/***/ 8474:
2593725953
/***/ ((module) => {
2593825954

@@ -27698,7 +27714,7 @@ module.exports = parseParams
2769827714
/************************************************************************/
2769927715
/******/ // The module cache
2770027716
/******/ var __webpack_module_cache__ = {};
27701-
/******/
27717+
/******/
2770227718
/******/ // The require function
2770327719
/******/ function __nccwpck_require__(moduleId) {
2770427720
/******/ // Check if module is in cache
@@ -27712,7 +27728,7 @@ module.exports = parseParams
2771227728
/******/ // no module.loaded needed
2771327729
/******/ exports: {}
2771427730
/******/ };
27715-
/******/
27731+
/******/
2771627732
/******/ // Execute the module function
2771727733
/******/ var threw = true;
2771827734
/******/ try {
@@ -27721,23 +27737,23 @@ module.exports = parseParams
2772127737
/******/ } finally {
2772227738
/******/ if(threw) delete __webpack_module_cache__[moduleId];
2772327739
/******/ }
27724-
/******/
27740+
/******/
2772527741
/******/ // Return the exports of the module
2772627742
/******/ return module.exports;
2772727743
/******/ }
27728-
/******/
27744+
/******/
2772927745
/************************************************************************/
2773027746
/******/ /* webpack/runtime/compat */
27731-
/******/
27747+
/******/
2773227748
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
27733-
/******/
27749+
/******/
2773427750
/************************************************************************/
27735-
/******/
27751+
/******/
2773627752
/******/ // startup
2773727753
/******/ // Load entry module and return exports
2773827754
/******/ // This entry module is referenced by other modules so it can't be inlined
2773927755
/******/ var __webpack_exports__ = __nccwpck_require__(9407);
2774027756
/******/ module.exports = __webpack_exports__;
27741-
/******/
27757+
/******/
2774227758
/******/ })()
27743-
;
27759+
;

package-lock.json

+14-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
"@actions/exec": "^1.1.1"
1919
},
2020
"devDependencies": {
21-
"@types/node": "^20.17.8",
21+
"@types/node": "^20.17.14",
2222
"@vercel/ncc": "^0.38.3",
2323
"tsx": "^4.19.2",
24-
"typescript": "^5.7.2"
24+
"typescript": "^5.7.3"
2525
},
26-
"version": "2.1.0"
26+
"version": "2.1.1"
2727
}

0 commit comments

Comments
 (0)