@@ -572,8 +572,8 @@ class OidcClient {
572
572
const res = yield httpclient
573
573
.getJson(id_token_url)
574
574
.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
577
577
Error Message: ${error.message}`);
578
578
});
579
579
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
@@ -11522,6 +11522,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253)
11522
11522
const { File: UndiciFile } = __nccwpck_require__(3041)
11523
11523
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
11524
11524
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
+
11525
11533
let ReadableStream = globalThis.ReadableStream
11526
11534
11527
11535
/** @type {globalThis['File']} */
@@ -11607,7 +11615,7 @@ function extractBody (object, keepalive = false) {
11607
11615
// Set source to a copy of the bytes held by object.
11608
11616
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
11609
11617
} 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')}`
11611
11619
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
11612
11620
11613
11621
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
@@ -25933,6 +25941,14 @@ module.exports = require("net");
25933
25941
25934
25942
/***/ }),
25935
25943
25944
+ /***/ 7598:
25945
+ /***/ ((module) => {
25946
+
25947
+ "use strict";
25948
+ module.exports = require("node:crypto");
25949
+
25950
+ /***/ }),
25951
+
25936
25952
/***/ 8474:
25937
25953
/***/ ((module) => {
25938
25954
@@ -27698,7 +27714,7 @@ module.exports = parseParams
27698
27714
/************************************************************************/
27699
27715
/******/ // The module cache
27700
27716
/******/ var __webpack_module_cache__ = {};
27701
- /******/
27717
+ /******/
27702
27718
/******/ // The require function
27703
27719
/******/ function __nccwpck_require__(moduleId) {
27704
27720
/******/ // Check if module is in cache
@@ -27712,7 +27728,7 @@ module.exports = parseParams
27712
27728
/******/ // no module.loaded needed
27713
27729
/******/ exports: {}
27714
27730
/******/ };
27715
- /******/
27731
+ /******/
27716
27732
/******/ // Execute the module function
27717
27733
/******/ var threw = true;
27718
27734
/******/ try {
@@ -27721,23 +27737,23 @@ module.exports = parseParams
27721
27737
/******/ } finally {
27722
27738
/******/ if(threw) delete __webpack_module_cache__[moduleId];
27723
27739
/******/ }
27724
- /******/
27740
+ /******/
27725
27741
/******/ // Return the exports of the module
27726
27742
/******/ return module.exports;
27727
27743
/******/ }
27728
- /******/
27744
+ /******/
27729
27745
/************************************************************************/
27730
27746
/******/ /* webpack/runtime/compat */
27731
- /******/
27747
+ /******/
27732
27748
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
27733
- /******/
27749
+ /******/
27734
27750
/************************************************************************/
27735
- /******/
27751
+ /******/
27736
27752
/******/ // startup
27737
27753
/******/ // Load entry module and return exports
27738
27754
/******/ // This entry module is referenced by other modules so it can't be inlined
27739
27755
/******/ var __webpack_exports__ = __nccwpck_require__(9407);
27740
27756
/******/ module.exports = __webpack_exports__;
27741
- /******/
27757
+ /******/
27742
27758
/******/ })()
27743
- ;
27759
+ ;
0 commit comments