@rharkor/caching-for-turbo 2.2.3 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/dist/cli/index.js +1343 -209
- package/package.json +2 -2
package/dist/cli/index.js
CHANGED
|
@@ -79703,7 +79703,7 @@ var splitHeader = (value) => {
|
|
|
79703
79703
|
};
|
|
79704
79704
|
|
|
79705
79705
|
// src/submodules/serde/value/NumericValue.ts
|
|
79706
|
-
var NumericValue = class {
|
|
79706
|
+
var NumericValue = class _NumericValue {
|
|
79707
79707
|
constructor(string, type) {
|
|
79708
79708
|
this.string = string;
|
|
79709
79709
|
this.type = type;
|
|
@@ -79730,15 +79730,19 @@ var NumericValue = class {
|
|
|
79730
79730
|
toString() {
|
|
79731
79731
|
return this.string;
|
|
79732
79732
|
}
|
|
79733
|
-
[Symbol.hasInstance](object) {
|
|
79733
|
+
static [Symbol.hasInstance](object) {
|
|
79734
79734
|
if (!object || typeof object !== "object") {
|
|
79735
79735
|
return false;
|
|
79736
79736
|
}
|
|
79737
79737
|
const _nv = object;
|
|
79738
|
+
const prototypeMatch = _NumericValue.prototype.isPrototypeOf(object.constructor?.prototype);
|
|
79739
|
+
if (prototypeMatch) {
|
|
79740
|
+
return prototypeMatch;
|
|
79741
|
+
}
|
|
79738
79742
|
if (typeof _nv.string === "string" && typeof _nv.type === "string" && _nv.constructor?.name === "NumericValue") {
|
|
79739
79743
|
return true;
|
|
79740
79744
|
}
|
|
79741
|
-
return
|
|
79745
|
+
return prototypeMatch;
|
|
79742
79746
|
}
|
|
79743
79747
|
};
|
|
79744
79748
|
function nv(input) {
|
|
@@ -96494,6 +96498,78 @@ function range(a, b, str) {
|
|
|
96494
96498
|
}
|
|
96495
96499
|
|
|
96496
96500
|
|
|
96501
|
+
/***/ }),
|
|
96502
|
+
|
|
96503
|
+
/***/ 22639:
|
|
96504
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
96505
|
+
|
|
96506
|
+
|
|
96507
|
+
|
|
96508
|
+
var bind = __nccwpck_require__(37564);
|
|
96509
|
+
|
|
96510
|
+
var $apply = __nccwpck_require__(33945);
|
|
96511
|
+
var $call = __nccwpck_require__(88093);
|
|
96512
|
+
var $reflectApply = __nccwpck_require__(31330);
|
|
96513
|
+
|
|
96514
|
+
/** @type {import('./actualApply')} */
|
|
96515
|
+
module.exports = $reflectApply || bind.call($call, $apply);
|
|
96516
|
+
|
|
96517
|
+
|
|
96518
|
+
/***/ }),
|
|
96519
|
+
|
|
96520
|
+
/***/ 33945:
|
|
96521
|
+
/***/ ((module) => {
|
|
96522
|
+
|
|
96523
|
+
|
|
96524
|
+
|
|
96525
|
+
/** @type {import('./functionApply')} */
|
|
96526
|
+
module.exports = Function.prototype.apply;
|
|
96527
|
+
|
|
96528
|
+
|
|
96529
|
+
/***/ }),
|
|
96530
|
+
|
|
96531
|
+
/***/ 88093:
|
|
96532
|
+
/***/ ((module) => {
|
|
96533
|
+
|
|
96534
|
+
|
|
96535
|
+
|
|
96536
|
+
/** @type {import('./functionCall')} */
|
|
96537
|
+
module.exports = Function.prototype.call;
|
|
96538
|
+
|
|
96539
|
+
|
|
96540
|
+
/***/ }),
|
|
96541
|
+
|
|
96542
|
+
/***/ 88705:
|
|
96543
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
96544
|
+
|
|
96545
|
+
|
|
96546
|
+
|
|
96547
|
+
var bind = __nccwpck_require__(37564);
|
|
96548
|
+
var $TypeError = __nccwpck_require__(73314);
|
|
96549
|
+
|
|
96550
|
+
var $call = __nccwpck_require__(88093);
|
|
96551
|
+
var $actualApply = __nccwpck_require__(22639);
|
|
96552
|
+
|
|
96553
|
+
/** @type {import('.')} */
|
|
96554
|
+
module.exports = function callBindBasic(args) {
|
|
96555
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
96556
|
+
throw new $TypeError('a function is required');
|
|
96557
|
+
}
|
|
96558
|
+
return $actualApply(bind, $call, args);
|
|
96559
|
+
};
|
|
96560
|
+
|
|
96561
|
+
|
|
96562
|
+
/***/ }),
|
|
96563
|
+
|
|
96564
|
+
/***/ 31330:
|
|
96565
|
+
/***/ ((module) => {
|
|
96566
|
+
|
|
96567
|
+
|
|
96568
|
+
|
|
96569
|
+
/** @type {import('./reflectApply')} */
|
|
96570
|
+
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
96571
|
+
|
|
96572
|
+
|
|
96497
96573
|
/***/ }),
|
|
96498
96574
|
|
|
96499
96575
|
/***/ 35630:
|
|
@@ -98004,9 +98080,12 @@ const version = packageJson.version
|
|
|
98004
98080
|
|
|
98005
98081
|
// Array of tips to display randomly
|
|
98006
98082
|
const TIPS = [
|
|
98007
|
-
'🔐 encrypt with
|
|
98083
|
+
'🔐 encrypt with Dotenvx: https://dotenvx.com',
|
|
98008
98084
|
'🔐 prevent committing .env to code: https://dotenvx.com/precommit',
|
|
98009
98085
|
'🔐 prevent building .env in docker: https://dotenvx.com/prebuild',
|
|
98086
|
+
'📡 observe env with Radar: https://dotenvx.com/radar',
|
|
98087
|
+
'📡 auto-backup env with Radar: https://dotenvx.com/radar',
|
|
98088
|
+
'📡 version env with Radar: https://dotenvx.com/radar',
|
|
98010
98089
|
'🛠️ run anywhere with `dotenvx run -- yourcommand`',
|
|
98011
98090
|
'⚙️ specify custom .env file path with { path: \'/custom/path/.env\' }',
|
|
98012
98091
|
'⚙️ enable debug logging with { debug: true }',
|
|
@@ -98307,7 +98386,7 @@ function configDotenv (options) {
|
|
|
98307
98386
|
}
|
|
98308
98387
|
}
|
|
98309
98388
|
|
|
98310
|
-
_log(`injecting env (${keysCount}) from ${shortPaths.join(',')} ${dim(
|
|
98389
|
+
_log(`injecting env (${keysCount}) from ${shortPaths.join(',')} ${dim(`-- tip: ${_getRandomTip()}`)}`)
|
|
98311
98390
|
}
|
|
98312
98391
|
|
|
98313
98392
|
if (lastError) {
|
|
@@ -98424,6 +98503,43 @@ module.exports.populate = DotenvModule.populate
|
|
|
98424
98503
|
module.exports = DotenvModule
|
|
98425
98504
|
|
|
98426
98505
|
|
|
98506
|
+
/***/ }),
|
|
98507
|
+
|
|
98508
|
+
/***/ 26669:
|
|
98509
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
98510
|
+
|
|
98511
|
+
|
|
98512
|
+
|
|
98513
|
+
var callBind = __nccwpck_require__(88705);
|
|
98514
|
+
var gOPD = __nccwpck_require__(33170);
|
|
98515
|
+
|
|
98516
|
+
var hasProtoAccessor;
|
|
98517
|
+
try {
|
|
98518
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
98519
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
98520
|
+
} catch (e) {
|
|
98521
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
98522
|
+
throw e;
|
|
98523
|
+
}
|
|
98524
|
+
}
|
|
98525
|
+
|
|
98526
|
+
// eslint-disable-next-line no-extra-parens
|
|
98527
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
98528
|
+
|
|
98529
|
+
var $Object = Object;
|
|
98530
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
98531
|
+
|
|
98532
|
+
/** @type {import('./get')} */
|
|
98533
|
+
module.exports = desc && typeof desc.get === 'function'
|
|
98534
|
+
? callBind([desc.get])
|
|
98535
|
+
: typeof $getPrototypeOf === 'function'
|
|
98536
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
98537
|
+
// eslint-disable-next-line eqeqeq
|
|
98538
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
98539
|
+
}
|
|
98540
|
+
: false;
|
|
98541
|
+
|
|
98542
|
+
|
|
98427
98543
|
/***/ }),
|
|
98428
98544
|
|
|
98429
98545
|
/***/ 31424:
|
|
@@ -98525,6 +98641,157 @@ var eos = function(stream, opts, callback) {
|
|
|
98525
98641
|
module.exports = eos;
|
|
98526
98642
|
|
|
98527
98643
|
|
|
98644
|
+
/***/ }),
|
|
98645
|
+
|
|
98646
|
+
/***/ 79094:
|
|
98647
|
+
/***/ ((module) => {
|
|
98648
|
+
|
|
98649
|
+
|
|
98650
|
+
|
|
98651
|
+
/** @type {import('.')} */
|
|
98652
|
+
var $defineProperty = Object.defineProperty || false;
|
|
98653
|
+
if ($defineProperty) {
|
|
98654
|
+
try {
|
|
98655
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
98656
|
+
} catch (e) {
|
|
98657
|
+
// IE 8 has a broken defineProperty
|
|
98658
|
+
$defineProperty = false;
|
|
98659
|
+
}
|
|
98660
|
+
}
|
|
98661
|
+
|
|
98662
|
+
module.exports = $defineProperty;
|
|
98663
|
+
|
|
98664
|
+
|
|
98665
|
+
/***/ }),
|
|
98666
|
+
|
|
98667
|
+
/***/ 33056:
|
|
98668
|
+
/***/ ((module) => {
|
|
98669
|
+
|
|
98670
|
+
|
|
98671
|
+
|
|
98672
|
+
/** @type {import('./eval')} */
|
|
98673
|
+
module.exports = EvalError;
|
|
98674
|
+
|
|
98675
|
+
|
|
98676
|
+
/***/ }),
|
|
98677
|
+
|
|
98678
|
+
/***/ 31620:
|
|
98679
|
+
/***/ ((module) => {
|
|
98680
|
+
|
|
98681
|
+
|
|
98682
|
+
|
|
98683
|
+
/** @type {import('.')} */
|
|
98684
|
+
module.exports = Error;
|
|
98685
|
+
|
|
98686
|
+
|
|
98687
|
+
/***/ }),
|
|
98688
|
+
|
|
98689
|
+
/***/ 14585:
|
|
98690
|
+
/***/ ((module) => {
|
|
98691
|
+
|
|
98692
|
+
|
|
98693
|
+
|
|
98694
|
+
/** @type {import('./range')} */
|
|
98695
|
+
module.exports = RangeError;
|
|
98696
|
+
|
|
98697
|
+
|
|
98698
|
+
/***/ }),
|
|
98699
|
+
|
|
98700
|
+
/***/ 46905:
|
|
98701
|
+
/***/ ((module) => {
|
|
98702
|
+
|
|
98703
|
+
|
|
98704
|
+
|
|
98705
|
+
/** @type {import('./ref')} */
|
|
98706
|
+
module.exports = ReferenceError;
|
|
98707
|
+
|
|
98708
|
+
|
|
98709
|
+
/***/ }),
|
|
98710
|
+
|
|
98711
|
+
/***/ 80105:
|
|
98712
|
+
/***/ ((module) => {
|
|
98713
|
+
|
|
98714
|
+
|
|
98715
|
+
|
|
98716
|
+
/** @type {import('./syntax')} */
|
|
98717
|
+
module.exports = SyntaxError;
|
|
98718
|
+
|
|
98719
|
+
|
|
98720
|
+
/***/ }),
|
|
98721
|
+
|
|
98722
|
+
/***/ 73314:
|
|
98723
|
+
/***/ ((module) => {
|
|
98724
|
+
|
|
98725
|
+
|
|
98726
|
+
|
|
98727
|
+
/** @type {import('./type')} */
|
|
98728
|
+
module.exports = TypeError;
|
|
98729
|
+
|
|
98730
|
+
|
|
98731
|
+
/***/ }),
|
|
98732
|
+
|
|
98733
|
+
/***/ 32578:
|
|
98734
|
+
/***/ ((module) => {
|
|
98735
|
+
|
|
98736
|
+
|
|
98737
|
+
|
|
98738
|
+
/** @type {import('./uri')} */
|
|
98739
|
+
module.exports = URIError;
|
|
98740
|
+
|
|
98741
|
+
|
|
98742
|
+
/***/ }),
|
|
98743
|
+
|
|
98744
|
+
/***/ 95399:
|
|
98745
|
+
/***/ ((module) => {
|
|
98746
|
+
|
|
98747
|
+
|
|
98748
|
+
|
|
98749
|
+
/** @type {import('.')} */
|
|
98750
|
+
module.exports = Object;
|
|
98751
|
+
|
|
98752
|
+
|
|
98753
|
+
/***/ }),
|
|
98754
|
+
|
|
98755
|
+
/***/ 88700:
|
|
98756
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
98757
|
+
|
|
98758
|
+
|
|
98759
|
+
|
|
98760
|
+
var GetIntrinsic = __nccwpck_require__(60470);
|
|
98761
|
+
|
|
98762
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
98763
|
+
|
|
98764
|
+
var hasToStringTag = __nccwpck_require__(85479)();
|
|
98765
|
+
var hasOwn = __nccwpck_require__(54076);
|
|
98766
|
+
var $TypeError = __nccwpck_require__(73314);
|
|
98767
|
+
|
|
98768
|
+
var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
|
|
98769
|
+
|
|
98770
|
+
/** @type {import('.')} */
|
|
98771
|
+
module.exports = function setToStringTag(object, value) {
|
|
98772
|
+
var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
|
|
98773
|
+
var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
98774
|
+
if (
|
|
98775
|
+
(typeof overrideIfSet !== 'undefined' && typeof overrideIfSet !== 'boolean')
|
|
98776
|
+
|| (typeof nonConfigurable !== 'undefined' && typeof nonConfigurable !== 'boolean')
|
|
98777
|
+
) {
|
|
98778
|
+
throw new $TypeError('if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans');
|
|
98779
|
+
}
|
|
98780
|
+
if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
|
|
98781
|
+
if ($defineProperty) {
|
|
98782
|
+
$defineProperty(object, toStringTag, {
|
|
98783
|
+
configurable: !nonConfigurable,
|
|
98784
|
+
enumerable: false,
|
|
98785
|
+
value: value,
|
|
98786
|
+
writable: false
|
|
98787
|
+
});
|
|
98788
|
+
} else {
|
|
98789
|
+
object[toStringTag] = value; // eslint-disable-line no-param-reassign
|
|
98790
|
+
}
|
|
98791
|
+
}
|
|
98792
|
+
};
|
|
98793
|
+
|
|
98794
|
+
|
|
98528
98795
|
/***/ }),
|
|
98529
98796
|
|
|
98530
98797
|
/***/ 28998:
|
|
@@ -110381,6 +110648,8 @@ module.exports.wrap = wrap;
|
|
|
110381
110648
|
/***/ 96454:
|
|
110382
110649
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
110383
110650
|
|
|
110651
|
+
|
|
110652
|
+
|
|
110384
110653
|
var CombinedStream = __nccwpck_require__(35630);
|
|
110385
110654
|
var util = __nccwpck_require__(39023);
|
|
110386
110655
|
var path = __nccwpck_require__(16928);
|
|
@@ -110389,23 +110658,20 @@ var https = __nccwpck_require__(65692);
|
|
|
110389
110658
|
var parseUrl = (__nccwpck_require__(87016).parse);
|
|
110390
110659
|
var fs = __nccwpck_require__(79896);
|
|
110391
110660
|
var Stream = (__nccwpck_require__(2203).Stream);
|
|
110661
|
+
var crypto = __nccwpck_require__(76982);
|
|
110392
110662
|
var mime = __nccwpck_require__(14096);
|
|
110393
110663
|
var asynckit = __nccwpck_require__(31324);
|
|
110664
|
+
var setToStringTag = __nccwpck_require__(88700);
|
|
110665
|
+
var hasOwn = __nccwpck_require__(54076);
|
|
110394
110666
|
var populate = __nccwpck_require__(11835);
|
|
110395
110667
|
|
|
110396
|
-
// Public API
|
|
110397
|
-
module.exports = FormData;
|
|
110398
|
-
|
|
110399
|
-
// make it a Stream
|
|
110400
|
-
util.inherits(FormData, CombinedStream);
|
|
110401
|
-
|
|
110402
110668
|
/**
|
|
110403
110669
|
* Create readable "multipart/form-data" streams.
|
|
110404
110670
|
* Can be used to submit forms
|
|
110405
110671
|
* and file uploads to other web applications.
|
|
110406
110672
|
*
|
|
110407
110673
|
* @constructor
|
|
110408
|
-
* @param {
|
|
110674
|
+
* @param {object} options - Properties to be added/overriden for FormData and CombinedStream
|
|
110409
110675
|
*/
|
|
110410
110676
|
function FormData(options) {
|
|
110411
110677
|
if (!(this instanceof FormData)) {
|
|
@@ -110418,35 +110684,39 @@ function FormData(options) {
|
|
|
110418
110684
|
|
|
110419
110685
|
CombinedStream.call(this);
|
|
110420
110686
|
|
|
110421
|
-
options = options || {};
|
|
110422
|
-
for (var option in options) {
|
|
110687
|
+
options = options || {}; // eslint-disable-line no-param-reassign
|
|
110688
|
+
for (var option in options) { // eslint-disable-line no-restricted-syntax
|
|
110423
110689
|
this[option] = options[option];
|
|
110424
110690
|
}
|
|
110425
110691
|
}
|
|
110426
110692
|
|
|
110693
|
+
// make it a Stream
|
|
110694
|
+
util.inherits(FormData, CombinedStream);
|
|
110695
|
+
|
|
110427
110696
|
FormData.LINE_BREAK = '\r\n';
|
|
110428
110697
|
FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';
|
|
110429
110698
|
|
|
110430
|
-
FormData.prototype.append = function(field, value, options) {
|
|
110431
|
-
|
|
110432
|
-
options = options || {};
|
|
110699
|
+
FormData.prototype.append = function (field, value, options) {
|
|
110700
|
+
options = options || {}; // eslint-disable-line no-param-reassign
|
|
110433
110701
|
|
|
110434
110702
|
// allow filename as single option
|
|
110435
|
-
if (typeof options
|
|
110436
|
-
options = {filename: options};
|
|
110703
|
+
if (typeof options === 'string') {
|
|
110704
|
+
options = { filename: options }; // eslint-disable-line no-param-reassign
|
|
110437
110705
|
}
|
|
110438
110706
|
|
|
110439
110707
|
var append = CombinedStream.prototype.append.bind(this);
|
|
110440
110708
|
|
|
110441
110709
|
// all that streamy business can't handle numbers
|
|
110442
|
-
if (typeof value
|
|
110443
|
-
value =
|
|
110710
|
+
if (typeof value === 'number' || value == null) {
|
|
110711
|
+
value = String(value); // eslint-disable-line no-param-reassign
|
|
110444
110712
|
}
|
|
110445
110713
|
|
|
110446
110714
|
// https://github.com/felixge/node-form-data/issues/38
|
|
110447
|
-
if (
|
|
110448
|
-
|
|
110449
|
-
|
|
110715
|
+
if (Array.isArray(value)) {
|
|
110716
|
+
/*
|
|
110717
|
+
* Please convert your array into string
|
|
110718
|
+
* the way web server expects it
|
|
110719
|
+
*/
|
|
110450
110720
|
this._error(new Error('Arrays are not supported.'));
|
|
110451
110721
|
return;
|
|
110452
110722
|
}
|
|
@@ -110462,15 +110732,17 @@ FormData.prototype.append = function(field, value, options) {
|
|
|
110462
110732
|
this._trackLength(header, value, options);
|
|
110463
110733
|
};
|
|
110464
110734
|
|
|
110465
|
-
FormData.prototype._trackLength = function(header, value, options) {
|
|
110735
|
+
FormData.prototype._trackLength = function (header, value, options) {
|
|
110466
110736
|
var valueLength = 0;
|
|
110467
110737
|
|
|
110468
|
-
|
|
110469
|
-
|
|
110470
|
-
|
|
110471
|
-
|
|
110738
|
+
/*
|
|
110739
|
+
* used w/ getLengthSync(), when length is known.
|
|
110740
|
+
* e.g. for streaming directly from a remote server,
|
|
110741
|
+
* w/ a known file a size, and not wanting to wait for
|
|
110742
|
+
* incoming file to finish to get its size.
|
|
110743
|
+
*/
|
|
110472
110744
|
if (options.knownLength != null) {
|
|
110473
|
-
valueLength +=
|
|
110745
|
+
valueLength += Number(options.knownLength);
|
|
110474
110746
|
} else if (Buffer.isBuffer(value)) {
|
|
110475
110747
|
valueLength = value.length;
|
|
110476
110748
|
} else if (typeof value === 'string') {
|
|
@@ -110480,12 +110752,10 @@ FormData.prototype._trackLength = function(header, value, options) {
|
|
|
110480
110752
|
this._valueLength += valueLength;
|
|
110481
110753
|
|
|
110482
110754
|
// @check why add CRLF? does this account for custom/multiple CRLFs?
|
|
110483
|
-
this._overheadLength +=
|
|
110484
|
-
Buffer.byteLength(header) +
|
|
110485
|
-
FormData.LINE_BREAK.length;
|
|
110755
|
+
this._overheadLength += Buffer.byteLength(header) + FormData.LINE_BREAK.length;
|
|
110486
110756
|
|
|
110487
110757
|
// empty or either doesn't have path or not an http response or not a stream
|
|
110488
|
-
if (!value || (
|
|
110758
|
+
if (!value || (!value.path && !(value.readable && hasOwn(value, 'httpVersion')) && !(value instanceof Stream))) {
|
|
110489
110759
|
return;
|
|
110490
110760
|
}
|
|
110491
110761
|
|
|
@@ -110495,10 +110765,8 @@ FormData.prototype._trackLength = function(header, value, options) {
|
|
|
110495
110765
|
}
|
|
110496
110766
|
};
|
|
110497
110767
|
|
|
110498
|
-
FormData.prototype._lengthRetriever = function(value, callback) {
|
|
110499
|
-
|
|
110500
|
-
if (value.hasOwnProperty('fd')) {
|
|
110501
|
-
|
|
110768
|
+
FormData.prototype._lengthRetriever = function (value, callback) {
|
|
110769
|
+
if (hasOwn(value, 'fd')) {
|
|
110502
110770
|
// take read range into a account
|
|
110503
110771
|
// `end` = Infinity –> read file till the end
|
|
110504
110772
|
//
|
|
@@ -110507,54 +110775,52 @@ FormData.prototype._lengthRetriever = function(value, callback) {
|
|
|
110507
110775
|
// Fix it when node fixes it.
|
|
110508
110776
|
// https://github.com/joyent/node/issues/7819
|
|
110509
110777
|
if (value.end != undefined && value.end != Infinity && value.start != undefined) {
|
|
110510
|
-
|
|
110511
110778
|
// when end specified
|
|
110512
110779
|
// no need to calculate range
|
|
110513
110780
|
// inclusive, starts with 0
|
|
110514
|
-
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
110781
|
+
callback(null, value.end + 1 - (value.start ? value.start : 0)); // eslint-disable-line callback-return
|
|
110515
110782
|
|
|
110516
|
-
|
|
110783
|
+
// not that fast snoopy
|
|
110517
110784
|
} else {
|
|
110518
110785
|
// still need to fetch file size from fs
|
|
110519
|
-
fs.stat(value.path, function(err, stat) {
|
|
110520
|
-
|
|
110521
|
-
var fileSize;
|
|
110522
|
-
|
|
110786
|
+
fs.stat(value.path, function (err, stat) {
|
|
110523
110787
|
if (err) {
|
|
110524
110788
|
callback(err);
|
|
110525
110789
|
return;
|
|
110526
110790
|
}
|
|
110527
110791
|
|
|
110528
110792
|
// update final size based on the range options
|
|
110529
|
-
fileSize = stat.size - (value.start ? value.start : 0);
|
|
110793
|
+
var fileSize = stat.size - (value.start ? value.start : 0);
|
|
110530
110794
|
callback(null, fileSize);
|
|
110531
110795
|
});
|
|
110532
110796
|
}
|
|
110533
110797
|
|
|
110534
|
-
|
|
110535
|
-
} else if (value
|
|
110536
|
-
callback(null,
|
|
110798
|
+
// or http response
|
|
110799
|
+
} else if (hasOwn(value, 'httpVersion')) {
|
|
110800
|
+
callback(null, Number(value.headers['content-length'])); // eslint-disable-line callback-return
|
|
110537
110801
|
|
|
110538
|
-
|
|
110539
|
-
} else if (value
|
|
110802
|
+
// or request stream http://github.com/mikeal/request
|
|
110803
|
+
} else if (hasOwn(value, 'httpModule')) {
|
|
110540
110804
|
// wait till response come back
|
|
110541
|
-
value.on('response', function(response) {
|
|
110805
|
+
value.on('response', function (response) {
|
|
110542
110806
|
value.pause();
|
|
110543
|
-
callback(null,
|
|
110807
|
+
callback(null, Number(response.headers['content-length']));
|
|
110544
110808
|
});
|
|
110545
110809
|
value.resume();
|
|
110546
110810
|
|
|
110547
|
-
|
|
110811
|
+
// something else
|
|
110548
110812
|
} else {
|
|
110549
|
-
callback('Unknown stream');
|
|
110813
|
+
callback('Unknown stream'); // eslint-disable-line callback-return
|
|
110550
110814
|
}
|
|
110551
110815
|
};
|
|
110552
110816
|
|
|
110553
|
-
FormData.prototype._multiPartHeader = function(field, value, options) {
|
|
110554
|
-
|
|
110555
|
-
|
|
110556
|
-
|
|
110557
|
-
|
|
110817
|
+
FormData.prototype._multiPartHeader = function (field, value, options) {
|
|
110818
|
+
/*
|
|
110819
|
+
* custom header specified (as string)?
|
|
110820
|
+
* it becomes responsible for boundary
|
|
110821
|
+
* (e.g. to handle extra CRLFs on .NET servers)
|
|
110822
|
+
*/
|
|
110823
|
+
if (typeof options.header === 'string') {
|
|
110558
110824
|
return options.header;
|
|
110559
110825
|
}
|
|
110560
110826
|
|
|
@@ -110562,7 +110828,7 @@ FormData.prototype._multiPartHeader = function(field, value, options) {
|
|
|
110562
110828
|
var contentType = this._getContentType(value, options);
|
|
110563
110829
|
|
|
110564
110830
|
var contents = '';
|
|
110565
|
-
var headers
|
|
110831
|
+
var headers = {
|
|
110566
110832
|
// add custom disposition as third element or keep it two elements if not
|
|
110567
110833
|
'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []),
|
|
110568
110834
|
// if no content type. allow it to be empty array
|
|
@@ -110570,77 +110836,74 @@ FormData.prototype._multiPartHeader = function(field, value, options) {
|
|
|
110570
110836
|
};
|
|
110571
110837
|
|
|
110572
110838
|
// allow custom headers.
|
|
110573
|
-
if (typeof options.header
|
|
110839
|
+
if (typeof options.header === 'object') {
|
|
110574
110840
|
populate(headers, options.header);
|
|
110575
110841
|
}
|
|
110576
110842
|
|
|
110577
110843
|
var header;
|
|
110578
|
-
for (var prop in headers) {
|
|
110579
|
-
if (
|
|
110580
|
-
|
|
110844
|
+
for (var prop in headers) { // eslint-disable-line no-restricted-syntax
|
|
110845
|
+
if (hasOwn(headers, prop)) {
|
|
110846
|
+
header = headers[prop];
|
|
110581
110847
|
|
|
110582
|
-
|
|
110583
|
-
|
|
110584
|
-
|
|
110585
|
-
|
|
110848
|
+
// skip nullish headers.
|
|
110849
|
+
if (header == null) {
|
|
110850
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
110851
|
+
}
|
|
110586
110852
|
|
|
110587
|
-
|
|
110588
|
-
|
|
110589
|
-
|
|
110590
|
-
|
|
110853
|
+
// convert all headers to arrays.
|
|
110854
|
+
if (!Array.isArray(header)) {
|
|
110855
|
+
header = [header];
|
|
110856
|
+
}
|
|
110591
110857
|
|
|
110592
|
-
|
|
110593
|
-
|
|
110594
|
-
|
|
110858
|
+
// add non-empty headers.
|
|
110859
|
+
if (header.length) {
|
|
110860
|
+
contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;
|
|
110861
|
+
}
|
|
110595
110862
|
}
|
|
110596
110863
|
}
|
|
110597
110864
|
|
|
110598
110865
|
return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;
|
|
110599
110866
|
};
|
|
110600
110867
|
|
|
110601
|
-
FormData.prototype._getContentDisposition = function(value, options) {
|
|
110602
|
-
|
|
110603
|
-
var filename
|
|
110604
|
-
, contentDisposition
|
|
110605
|
-
;
|
|
110868
|
+
FormData.prototype._getContentDisposition = function (value, options) { // eslint-disable-line consistent-return
|
|
110869
|
+
var filename;
|
|
110606
110870
|
|
|
110607
110871
|
if (typeof options.filepath === 'string') {
|
|
110608
110872
|
// custom filepath for relative paths
|
|
110609
110873
|
filename = path.normalize(options.filepath).replace(/\\/g, '/');
|
|
110610
|
-
} else if (options.filename || value.name || value.path) {
|
|
110611
|
-
|
|
110612
|
-
|
|
110613
|
-
|
|
110614
|
-
|
|
110615
|
-
|
|
110874
|
+
} else if (options.filename || (value && (value.name || value.path))) {
|
|
110875
|
+
/*
|
|
110876
|
+
* custom filename take precedence
|
|
110877
|
+
* formidable and the browser add a name property
|
|
110878
|
+
* fs- and request- streams have path property
|
|
110879
|
+
*/
|
|
110880
|
+
filename = path.basename(options.filename || (value && (value.name || value.path)));
|
|
110881
|
+
} else if (value && value.readable && hasOwn(value, 'httpVersion')) {
|
|
110616
110882
|
// or try http response
|
|
110617
110883
|
filename = path.basename(value.client._httpMessage.path || '');
|
|
110618
110884
|
}
|
|
110619
110885
|
|
|
110620
110886
|
if (filename) {
|
|
110621
|
-
|
|
110887
|
+
return 'filename="' + filename + '"';
|
|
110622
110888
|
}
|
|
110623
|
-
|
|
110624
|
-
return contentDisposition;
|
|
110625
110889
|
};
|
|
110626
110890
|
|
|
110627
|
-
FormData.prototype._getContentType = function(value, options) {
|
|
110628
|
-
|
|
110891
|
+
FormData.prototype._getContentType = function (value, options) {
|
|
110629
110892
|
// use custom content-type above all
|
|
110630
110893
|
var contentType = options.contentType;
|
|
110631
110894
|
|
|
110632
110895
|
// or try `name` from formidable, browser
|
|
110633
|
-
if (!contentType && value.name) {
|
|
110896
|
+
if (!contentType && value && value.name) {
|
|
110634
110897
|
contentType = mime.lookup(value.name);
|
|
110635
110898
|
}
|
|
110636
110899
|
|
|
110637
110900
|
// or try `path` from fs-, request- streams
|
|
110638
|
-
if (!contentType && value.path) {
|
|
110901
|
+
if (!contentType && value && value.path) {
|
|
110639
110902
|
contentType = mime.lookup(value.path);
|
|
110640
110903
|
}
|
|
110641
110904
|
|
|
110642
110905
|
// or if it's http-reponse
|
|
110643
|
-
if (!contentType && value.readable && value
|
|
110906
|
+
if (!contentType && value && value.readable && hasOwn(value, 'httpVersion')) {
|
|
110644
110907
|
contentType = value.headers['content-type'];
|
|
110645
110908
|
}
|
|
110646
110909
|
|
|
@@ -110650,18 +110913,18 @@ FormData.prototype._getContentType = function(value, options) {
|
|
|
110650
110913
|
}
|
|
110651
110914
|
|
|
110652
110915
|
// fallback to the default content type if `value` is not simple value
|
|
110653
|
-
if (!contentType && typeof value
|
|
110916
|
+
if (!contentType && value && typeof value === 'object') {
|
|
110654
110917
|
contentType = FormData.DEFAULT_CONTENT_TYPE;
|
|
110655
110918
|
}
|
|
110656
110919
|
|
|
110657
110920
|
return contentType;
|
|
110658
110921
|
};
|
|
110659
110922
|
|
|
110660
|
-
FormData.prototype._multiPartFooter = function() {
|
|
110661
|
-
return function(next) {
|
|
110923
|
+
FormData.prototype._multiPartFooter = function () {
|
|
110924
|
+
return function (next) {
|
|
110662
110925
|
var footer = FormData.LINE_BREAK;
|
|
110663
110926
|
|
|
110664
|
-
var lastPart =
|
|
110927
|
+
var lastPart = this._streams.length === 0;
|
|
110665
110928
|
if (lastPart) {
|
|
110666
110929
|
footer += this._lastBoundary();
|
|
110667
110930
|
}
|
|
@@ -110670,18 +110933,18 @@ FormData.prototype._multiPartFooter = function() {
|
|
|
110670
110933
|
}.bind(this);
|
|
110671
110934
|
};
|
|
110672
110935
|
|
|
110673
|
-
FormData.prototype._lastBoundary = function() {
|
|
110936
|
+
FormData.prototype._lastBoundary = function () {
|
|
110674
110937
|
return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;
|
|
110675
110938
|
};
|
|
110676
110939
|
|
|
110677
|
-
FormData.prototype.getHeaders = function(userHeaders) {
|
|
110940
|
+
FormData.prototype.getHeaders = function (userHeaders) {
|
|
110678
110941
|
var header;
|
|
110679
110942
|
var formHeaders = {
|
|
110680
110943
|
'content-type': 'multipart/form-data; boundary=' + this.getBoundary()
|
|
110681
110944
|
};
|
|
110682
110945
|
|
|
110683
|
-
for (header in userHeaders) {
|
|
110684
|
-
if (userHeaders
|
|
110946
|
+
for (header in userHeaders) { // eslint-disable-line no-restricted-syntax
|
|
110947
|
+
if (hasOwn(userHeaders, header)) {
|
|
110685
110948
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
110686
110949
|
}
|
|
110687
110950
|
}
|
|
@@ -110689,11 +110952,14 @@ FormData.prototype.getHeaders = function(userHeaders) {
|
|
|
110689
110952
|
return formHeaders;
|
|
110690
110953
|
};
|
|
110691
110954
|
|
|
110692
|
-
FormData.prototype.setBoundary = function(boundary) {
|
|
110955
|
+
FormData.prototype.setBoundary = function (boundary) {
|
|
110956
|
+
if (typeof boundary !== 'string') {
|
|
110957
|
+
throw new TypeError('FormData boundary must be a string');
|
|
110958
|
+
}
|
|
110693
110959
|
this._boundary = boundary;
|
|
110694
110960
|
};
|
|
110695
110961
|
|
|
110696
|
-
FormData.prototype.getBoundary = function() {
|
|
110962
|
+
FormData.prototype.getBoundary = function () {
|
|
110697
110963
|
if (!this._boundary) {
|
|
110698
110964
|
this._generateBoundary();
|
|
110699
110965
|
}
|
|
@@ -110701,60 +110967,55 @@ FormData.prototype.getBoundary = function() {
|
|
|
110701
110967
|
return this._boundary;
|
|
110702
110968
|
};
|
|
110703
110969
|
|
|
110704
|
-
FormData.prototype.getBuffer = function() {
|
|
110705
|
-
var dataBuffer = new Buffer.alloc(
|
|
110970
|
+
FormData.prototype.getBuffer = function () {
|
|
110971
|
+
var dataBuffer = new Buffer.alloc(0); // eslint-disable-line new-cap
|
|
110706
110972
|
var boundary = this.getBoundary();
|
|
110707
110973
|
|
|
110708
110974
|
// Create the form content. Add Line breaks to the end of data.
|
|
110709
110975
|
for (var i = 0, len = this._streams.length; i < len; i++) {
|
|
110710
110976
|
if (typeof this._streams[i] !== 'function') {
|
|
110711
|
-
|
|
110712
110977
|
// Add content to the buffer.
|
|
110713
|
-
if(Buffer.isBuffer(this._streams[i])) {
|
|
110714
|
-
dataBuffer = Buffer.concat(
|
|
110715
|
-
}else {
|
|
110716
|
-
dataBuffer = Buffer.concat(
|
|
110978
|
+
if (Buffer.isBuffer(this._streams[i])) {
|
|
110979
|
+
dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);
|
|
110980
|
+
} else {
|
|
110981
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
|
|
110717
110982
|
}
|
|
110718
110983
|
|
|
110719
110984
|
// Add break after content.
|
|
110720
|
-
if (typeof this._streams[i] !== 'string' || this._streams[i].substring(
|
|
110721
|
-
dataBuffer = Buffer.concat(
|
|
110985
|
+
if (typeof this._streams[i] !== 'string' || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
|
|
110986
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData.LINE_BREAK)]);
|
|
110722
110987
|
}
|
|
110723
110988
|
}
|
|
110724
110989
|
}
|
|
110725
110990
|
|
|
110726
110991
|
// Add the footer and return the Buffer object.
|
|
110727
|
-
return Buffer.concat(
|
|
110992
|
+
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
110728
110993
|
};
|
|
110729
110994
|
|
|
110730
|
-
FormData.prototype._generateBoundary = function() {
|
|
110995
|
+
FormData.prototype._generateBoundary = function () {
|
|
110731
110996
|
// This generates a 50 character boundary similar to those used by Firefox.
|
|
110732
|
-
// They are optimized for boyer-moore parsing.
|
|
110733
|
-
var boundary = '--------------------------';
|
|
110734
|
-
for (var i = 0; i < 24; i++) {
|
|
110735
|
-
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
110736
|
-
}
|
|
110737
110997
|
|
|
110738
|
-
|
|
110998
|
+
// They are optimized for boyer-moore parsing.
|
|
110999
|
+
this._boundary = '--------------------------' + crypto.randomBytes(12).toString('hex');
|
|
110739
111000
|
};
|
|
110740
111001
|
|
|
110741
111002
|
// Note: getLengthSync DOESN'T calculate streams length
|
|
110742
|
-
// As workaround one can calculate file size manually
|
|
110743
|
-
|
|
110744
|
-
FormData.prototype.getLengthSync = function() {
|
|
111003
|
+
// As workaround one can calculate file size manually and add it as knownLength option
|
|
111004
|
+
FormData.prototype.getLengthSync = function () {
|
|
110745
111005
|
var knownLength = this._overheadLength + this._valueLength;
|
|
110746
111006
|
|
|
110747
|
-
// Don't get confused, there are 3 "internal" streams for each keyval pair
|
|
110748
|
-
// so it basically checks if there is any value added to the form
|
|
111007
|
+
// Don't get confused, there are 3 "internal" streams for each keyval pair so it basically checks if there is any value added to the form
|
|
110749
111008
|
if (this._streams.length) {
|
|
110750
111009
|
knownLength += this._lastBoundary().length;
|
|
110751
111010
|
}
|
|
110752
111011
|
|
|
110753
111012
|
// https://github.com/form-data/form-data/issues/40
|
|
110754
111013
|
if (!this.hasKnownLength()) {
|
|
110755
|
-
|
|
110756
|
-
|
|
110757
|
-
|
|
111014
|
+
/*
|
|
111015
|
+
* Some async length retrievers are present
|
|
111016
|
+
* therefore synchronous length calculation is false.
|
|
111017
|
+
* Please use getLength(callback) to get proper length
|
|
111018
|
+
*/
|
|
110758
111019
|
this._error(new Error('Cannot calculate proper length in synchronous way.'));
|
|
110759
111020
|
}
|
|
110760
111021
|
|
|
@@ -110764,7 +111025,7 @@ FormData.prototype.getLengthSync = function() {
|
|
|
110764
111025
|
// Public API to check if length of added values is known
|
|
110765
111026
|
// https://github.com/form-data/form-data/issues/196
|
|
110766
111027
|
// https://github.com/form-data/form-data/issues/262
|
|
110767
|
-
FormData.prototype.hasKnownLength = function() {
|
|
111028
|
+
FormData.prototype.hasKnownLength = function () {
|
|
110768
111029
|
var hasKnownLength = true;
|
|
110769
111030
|
|
|
110770
111031
|
if (this._valuesToMeasure.length) {
|
|
@@ -110774,7 +111035,7 @@ FormData.prototype.hasKnownLength = function() {
|
|
|
110774
111035
|
return hasKnownLength;
|
|
110775
111036
|
};
|
|
110776
111037
|
|
|
110777
|
-
FormData.prototype.getLength = function(cb) {
|
|
111038
|
+
FormData.prototype.getLength = function (cb) {
|
|
110778
111039
|
var knownLength = this._overheadLength + this._valueLength;
|
|
110779
111040
|
|
|
110780
111041
|
if (this._streams.length) {
|
|
@@ -110786,13 +111047,13 @@ FormData.prototype.getLength = function(cb) {
|
|
|
110786
111047
|
return;
|
|
110787
111048
|
}
|
|
110788
111049
|
|
|
110789
|
-
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
|
|
111050
|
+
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function (err, values) {
|
|
110790
111051
|
if (err) {
|
|
110791
111052
|
cb(err);
|
|
110792
111053
|
return;
|
|
110793
111054
|
}
|
|
110794
111055
|
|
|
110795
|
-
values.forEach(function(length) {
|
|
111056
|
+
values.forEach(function (length) {
|
|
110796
111057
|
knownLength += length;
|
|
110797
111058
|
});
|
|
110798
111059
|
|
|
@@ -110800,31 +111061,26 @@ FormData.prototype.getLength = function(cb) {
|
|
|
110800
111061
|
});
|
|
110801
111062
|
};
|
|
110802
111063
|
|
|
110803
|
-
FormData.prototype.submit = function(params, cb) {
|
|
110804
|
-
var request
|
|
110805
|
-
|
|
110806
|
-
|
|
110807
|
-
;
|
|
110808
|
-
|
|
110809
|
-
// parse provided url if it's string
|
|
110810
|
-
// or treat it as options object
|
|
110811
|
-
if (typeof params == 'string') {
|
|
111064
|
+
FormData.prototype.submit = function (params, cb) {
|
|
111065
|
+
var request;
|
|
111066
|
+
var options;
|
|
111067
|
+
var defaults = { method: 'post' };
|
|
110812
111068
|
|
|
110813
|
-
|
|
111069
|
+
// parse provided url if it's string or treat it as options object
|
|
111070
|
+
if (typeof params === 'string') {
|
|
111071
|
+
params = parseUrl(params); // eslint-disable-line no-param-reassign
|
|
111072
|
+
/* eslint sort-keys: 0 */
|
|
110814
111073
|
options = populate({
|
|
110815
111074
|
port: params.port,
|
|
110816
111075
|
path: params.pathname,
|
|
110817
111076
|
host: params.hostname,
|
|
110818
111077
|
protocol: params.protocol
|
|
110819
111078
|
}, defaults);
|
|
110820
|
-
|
|
110821
|
-
// use custom params
|
|
110822
|
-
} else {
|
|
110823
|
-
|
|
111079
|
+
} else { // use custom params
|
|
110824
111080
|
options = populate(params, defaults);
|
|
110825
111081
|
// if no port provided use default one
|
|
110826
111082
|
if (!options.port) {
|
|
110827
|
-
options.port = options.protocol
|
|
111083
|
+
options.port = options.protocol === 'https:' ? 443 : 80;
|
|
110828
111084
|
}
|
|
110829
111085
|
}
|
|
110830
111086
|
|
|
@@ -110832,14 +111088,14 @@ FormData.prototype.submit = function(params, cb) {
|
|
|
110832
111088
|
options.headers = this.getHeaders(params.headers);
|
|
110833
111089
|
|
|
110834
111090
|
// https if specified, fallback to http in any other case
|
|
110835
|
-
if (options.protocol
|
|
111091
|
+
if (options.protocol === 'https:') {
|
|
110836
111092
|
request = https.request(options);
|
|
110837
111093
|
} else {
|
|
110838
111094
|
request = http.request(options);
|
|
110839
111095
|
}
|
|
110840
111096
|
|
|
110841
111097
|
// get content length and fire away
|
|
110842
|
-
this.getLength(function(err, length) {
|
|
111098
|
+
this.getLength(function (err, length) {
|
|
110843
111099
|
if (err && err !== 'Unknown stream') {
|
|
110844
111100
|
this._error(err);
|
|
110845
111101
|
return;
|
|
@@ -110858,7 +111114,7 @@ FormData.prototype.submit = function(params, cb) {
|
|
|
110858
111114
|
request.removeListener('error', callback);
|
|
110859
111115
|
request.removeListener('response', onResponse);
|
|
110860
111116
|
|
|
110861
|
-
return cb.call(this, error, responce);
|
|
111117
|
+
return cb.call(this, error, responce); // eslint-disable-line no-invalid-this
|
|
110862
111118
|
};
|
|
110863
111119
|
|
|
110864
111120
|
onResponse = callback.bind(this, null);
|
|
@@ -110871,7 +111127,7 @@ FormData.prototype.submit = function(params, cb) {
|
|
|
110871
111127
|
return request;
|
|
110872
111128
|
};
|
|
110873
111129
|
|
|
110874
|
-
FormData.prototype._error = function(err) {
|
|
111130
|
+
FormData.prototype._error = function (err) {
|
|
110875
111131
|
if (!this.error) {
|
|
110876
111132
|
this.error = err;
|
|
110877
111133
|
this.pause();
|
|
@@ -110882,6 +111138,10 @@ FormData.prototype._error = function(err) {
|
|
|
110882
111138
|
FormData.prototype.toString = function () {
|
|
110883
111139
|
return '[object FormData]';
|
|
110884
111140
|
};
|
|
111141
|
+
setToStringTag(FormData, 'FormData');
|
|
111142
|
+
|
|
111143
|
+
// Public API
|
|
111144
|
+
module.exports = FormData;
|
|
110885
111145
|
|
|
110886
111146
|
|
|
110887
111147
|
/***/ }),
|
|
@@ -110889,18 +111149,596 @@ FormData.prototype.toString = function () {
|
|
|
110889
111149
|
/***/ 11835:
|
|
110890
111150
|
/***/ ((module) => {
|
|
110891
111151
|
|
|
110892
|
-
// populates missing values
|
|
110893
|
-
module.exports = function(dst, src) {
|
|
110894
111152
|
|
|
110895
|
-
|
|
110896
|
-
|
|
110897
|
-
|
|
111153
|
+
|
|
111154
|
+
// populates missing values
|
|
111155
|
+
module.exports = function (dst, src) {
|
|
111156
|
+
Object.keys(src).forEach(function (prop) {
|
|
111157
|
+
dst[prop] = dst[prop] || src[prop]; // eslint-disable-line no-param-reassign
|
|
110898
111158
|
});
|
|
110899
111159
|
|
|
110900
111160
|
return dst;
|
|
110901
111161
|
};
|
|
110902
111162
|
|
|
110903
111163
|
|
|
111164
|
+
/***/ }),
|
|
111165
|
+
|
|
111166
|
+
/***/ 99808:
|
|
111167
|
+
/***/ ((module) => {
|
|
111168
|
+
|
|
111169
|
+
|
|
111170
|
+
|
|
111171
|
+
/* eslint no-invalid-this: 1 */
|
|
111172
|
+
|
|
111173
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
111174
|
+
var toStr = Object.prototype.toString;
|
|
111175
|
+
var max = Math.max;
|
|
111176
|
+
var funcType = '[object Function]';
|
|
111177
|
+
|
|
111178
|
+
var concatty = function concatty(a, b) {
|
|
111179
|
+
var arr = [];
|
|
111180
|
+
|
|
111181
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
111182
|
+
arr[i] = a[i];
|
|
111183
|
+
}
|
|
111184
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
111185
|
+
arr[j + a.length] = b[j];
|
|
111186
|
+
}
|
|
111187
|
+
|
|
111188
|
+
return arr;
|
|
111189
|
+
};
|
|
111190
|
+
|
|
111191
|
+
var slicy = function slicy(arrLike, offset) {
|
|
111192
|
+
var arr = [];
|
|
111193
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
111194
|
+
arr[j] = arrLike[i];
|
|
111195
|
+
}
|
|
111196
|
+
return arr;
|
|
111197
|
+
};
|
|
111198
|
+
|
|
111199
|
+
var joiny = function (arr, joiner) {
|
|
111200
|
+
var str = '';
|
|
111201
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
111202
|
+
str += arr[i];
|
|
111203
|
+
if (i + 1 < arr.length) {
|
|
111204
|
+
str += joiner;
|
|
111205
|
+
}
|
|
111206
|
+
}
|
|
111207
|
+
return str;
|
|
111208
|
+
};
|
|
111209
|
+
|
|
111210
|
+
module.exports = function bind(that) {
|
|
111211
|
+
var target = this;
|
|
111212
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
111213
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
111214
|
+
}
|
|
111215
|
+
var args = slicy(arguments, 1);
|
|
111216
|
+
|
|
111217
|
+
var bound;
|
|
111218
|
+
var binder = function () {
|
|
111219
|
+
if (this instanceof bound) {
|
|
111220
|
+
var result = target.apply(
|
|
111221
|
+
this,
|
|
111222
|
+
concatty(args, arguments)
|
|
111223
|
+
);
|
|
111224
|
+
if (Object(result) === result) {
|
|
111225
|
+
return result;
|
|
111226
|
+
}
|
|
111227
|
+
return this;
|
|
111228
|
+
}
|
|
111229
|
+
return target.apply(
|
|
111230
|
+
that,
|
|
111231
|
+
concatty(args, arguments)
|
|
111232
|
+
);
|
|
111233
|
+
|
|
111234
|
+
};
|
|
111235
|
+
|
|
111236
|
+
var boundLength = max(0, target.length - args.length);
|
|
111237
|
+
var boundArgs = [];
|
|
111238
|
+
for (var i = 0; i < boundLength; i++) {
|
|
111239
|
+
boundArgs[i] = '$' + i;
|
|
111240
|
+
}
|
|
111241
|
+
|
|
111242
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
111243
|
+
|
|
111244
|
+
if (target.prototype) {
|
|
111245
|
+
var Empty = function Empty() {};
|
|
111246
|
+
Empty.prototype = target.prototype;
|
|
111247
|
+
bound.prototype = new Empty();
|
|
111248
|
+
Empty.prototype = null;
|
|
111249
|
+
}
|
|
111250
|
+
|
|
111251
|
+
return bound;
|
|
111252
|
+
};
|
|
111253
|
+
|
|
111254
|
+
|
|
111255
|
+
/***/ }),
|
|
111256
|
+
|
|
111257
|
+
/***/ 37564:
|
|
111258
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
111259
|
+
|
|
111260
|
+
|
|
111261
|
+
|
|
111262
|
+
var implementation = __nccwpck_require__(99808);
|
|
111263
|
+
|
|
111264
|
+
module.exports = Function.prototype.bind || implementation;
|
|
111265
|
+
|
|
111266
|
+
|
|
111267
|
+
/***/ }),
|
|
111268
|
+
|
|
111269
|
+
/***/ 60470:
|
|
111270
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
111271
|
+
|
|
111272
|
+
|
|
111273
|
+
|
|
111274
|
+
var undefined;
|
|
111275
|
+
|
|
111276
|
+
var $Object = __nccwpck_require__(95399);
|
|
111277
|
+
|
|
111278
|
+
var $Error = __nccwpck_require__(31620);
|
|
111279
|
+
var $EvalError = __nccwpck_require__(33056);
|
|
111280
|
+
var $RangeError = __nccwpck_require__(14585);
|
|
111281
|
+
var $ReferenceError = __nccwpck_require__(46905);
|
|
111282
|
+
var $SyntaxError = __nccwpck_require__(80105);
|
|
111283
|
+
var $TypeError = __nccwpck_require__(73314);
|
|
111284
|
+
var $URIError = __nccwpck_require__(32578);
|
|
111285
|
+
|
|
111286
|
+
var abs = __nccwpck_require__(55641);
|
|
111287
|
+
var floor = __nccwpck_require__(96171);
|
|
111288
|
+
var max = __nccwpck_require__(57147);
|
|
111289
|
+
var min = __nccwpck_require__(41017);
|
|
111290
|
+
var pow = __nccwpck_require__(56947);
|
|
111291
|
+
var round = __nccwpck_require__(42621);
|
|
111292
|
+
var sign = __nccwpck_require__(30156);
|
|
111293
|
+
|
|
111294
|
+
var $Function = Function;
|
|
111295
|
+
|
|
111296
|
+
// eslint-disable-next-line consistent-return
|
|
111297
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
111298
|
+
try {
|
|
111299
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
111300
|
+
} catch (e) {}
|
|
111301
|
+
};
|
|
111302
|
+
|
|
111303
|
+
var $gOPD = __nccwpck_require__(33170);
|
|
111304
|
+
var $defineProperty = __nccwpck_require__(79094);
|
|
111305
|
+
|
|
111306
|
+
var throwTypeError = function () {
|
|
111307
|
+
throw new $TypeError();
|
|
111308
|
+
};
|
|
111309
|
+
var ThrowTypeError = $gOPD
|
|
111310
|
+
? (function () {
|
|
111311
|
+
try {
|
|
111312
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
111313
|
+
arguments.callee; // IE 8 does not throw here
|
|
111314
|
+
return throwTypeError;
|
|
111315
|
+
} catch (calleeThrows) {
|
|
111316
|
+
try {
|
|
111317
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
111318
|
+
return $gOPD(arguments, 'callee').get;
|
|
111319
|
+
} catch (gOPDthrows) {
|
|
111320
|
+
return throwTypeError;
|
|
111321
|
+
}
|
|
111322
|
+
}
|
|
111323
|
+
}())
|
|
111324
|
+
: throwTypeError;
|
|
111325
|
+
|
|
111326
|
+
var hasSymbols = __nccwpck_require__(23336)();
|
|
111327
|
+
|
|
111328
|
+
var getProto = __nccwpck_require__(81967);
|
|
111329
|
+
var $ObjectGPO = __nccwpck_require__(91311);
|
|
111330
|
+
var $ReflectGPO = __nccwpck_require__(48681);
|
|
111331
|
+
|
|
111332
|
+
var $apply = __nccwpck_require__(33945);
|
|
111333
|
+
var $call = __nccwpck_require__(88093);
|
|
111334
|
+
|
|
111335
|
+
var needsEval = {};
|
|
111336
|
+
|
|
111337
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
111338
|
+
|
|
111339
|
+
var INTRINSICS = {
|
|
111340
|
+
__proto__: null,
|
|
111341
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
111342
|
+
'%Array%': Array,
|
|
111343
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
111344
|
+
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
111345
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
111346
|
+
'%AsyncFunction%': needsEval,
|
|
111347
|
+
'%AsyncGenerator%': needsEval,
|
|
111348
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
111349
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
111350
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
111351
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
111352
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
|
|
111353
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
|
|
111354
|
+
'%Boolean%': Boolean,
|
|
111355
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
111356
|
+
'%Date%': Date,
|
|
111357
|
+
'%decodeURI%': decodeURI,
|
|
111358
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
111359
|
+
'%encodeURI%': encodeURI,
|
|
111360
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
111361
|
+
'%Error%': $Error,
|
|
111362
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
111363
|
+
'%EvalError%': $EvalError,
|
|
111364
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
111365
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
111366
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
111367
|
+
'%Function%': $Function,
|
|
111368
|
+
'%GeneratorFunction%': needsEval,
|
|
111369
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
111370
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
111371
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
111372
|
+
'%isFinite%': isFinite,
|
|
111373
|
+
'%isNaN%': isNaN,
|
|
111374
|
+
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
111375
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
111376
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
111377
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
111378
|
+
'%Math%': Math,
|
|
111379
|
+
'%Number%': Number,
|
|
111380
|
+
'%Object%': $Object,
|
|
111381
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
111382
|
+
'%parseFloat%': parseFloat,
|
|
111383
|
+
'%parseInt%': parseInt,
|
|
111384
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
111385
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
111386
|
+
'%RangeError%': $RangeError,
|
|
111387
|
+
'%ReferenceError%': $ReferenceError,
|
|
111388
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
111389
|
+
'%RegExp%': RegExp,
|
|
111390
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
111391
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
111392
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
111393
|
+
'%String%': String,
|
|
111394
|
+
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
|
111395
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
111396
|
+
'%SyntaxError%': $SyntaxError,
|
|
111397
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
111398
|
+
'%TypedArray%': TypedArray,
|
|
111399
|
+
'%TypeError%': $TypeError,
|
|
111400
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
111401
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
111402
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
111403
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
111404
|
+
'%URIError%': $URIError,
|
|
111405
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
111406
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
111407
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
|
111408
|
+
|
|
111409
|
+
'%Function.prototype.call%': $call,
|
|
111410
|
+
'%Function.prototype.apply%': $apply,
|
|
111411
|
+
'%Object.defineProperty%': $defineProperty,
|
|
111412
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
111413
|
+
'%Math.abs%': abs,
|
|
111414
|
+
'%Math.floor%': floor,
|
|
111415
|
+
'%Math.max%': max,
|
|
111416
|
+
'%Math.min%': min,
|
|
111417
|
+
'%Math.pow%': pow,
|
|
111418
|
+
'%Math.round%': round,
|
|
111419
|
+
'%Math.sign%': sign,
|
|
111420
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
111421
|
+
};
|
|
111422
|
+
|
|
111423
|
+
if (getProto) {
|
|
111424
|
+
try {
|
|
111425
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
111426
|
+
} catch (e) {
|
|
111427
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
111428
|
+
var errorProto = getProto(getProto(e));
|
|
111429
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
111430
|
+
}
|
|
111431
|
+
}
|
|
111432
|
+
|
|
111433
|
+
var doEval = function doEval(name) {
|
|
111434
|
+
var value;
|
|
111435
|
+
if (name === '%AsyncFunction%') {
|
|
111436
|
+
value = getEvalledConstructor('async function () {}');
|
|
111437
|
+
} else if (name === '%GeneratorFunction%') {
|
|
111438
|
+
value = getEvalledConstructor('function* () {}');
|
|
111439
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
111440
|
+
value = getEvalledConstructor('async function* () {}');
|
|
111441
|
+
} else if (name === '%AsyncGenerator%') {
|
|
111442
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
111443
|
+
if (fn) {
|
|
111444
|
+
value = fn.prototype;
|
|
111445
|
+
}
|
|
111446
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
111447
|
+
var gen = doEval('%AsyncGenerator%');
|
|
111448
|
+
if (gen && getProto) {
|
|
111449
|
+
value = getProto(gen.prototype);
|
|
111450
|
+
}
|
|
111451
|
+
}
|
|
111452
|
+
|
|
111453
|
+
INTRINSICS[name] = value;
|
|
111454
|
+
|
|
111455
|
+
return value;
|
|
111456
|
+
};
|
|
111457
|
+
|
|
111458
|
+
var LEGACY_ALIASES = {
|
|
111459
|
+
__proto__: null,
|
|
111460
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
111461
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
111462
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
111463
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
111464
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
111465
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
111466
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
111467
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
111468
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
111469
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
111470
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
111471
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
111472
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
111473
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
111474
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
111475
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
111476
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
111477
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
111478
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
111479
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
111480
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
111481
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
111482
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
111483
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
111484
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
111485
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
111486
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
111487
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
111488
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
111489
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
111490
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
111491
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
111492
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
111493
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
111494
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
111495
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
111496
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
111497
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
111498
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
111499
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
111500
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
111501
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
111502
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
111503
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
111504
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
111505
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
111506
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
111507
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
111508
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
111509
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
111510
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
111511
|
+
};
|
|
111512
|
+
|
|
111513
|
+
var bind = __nccwpck_require__(37564);
|
|
111514
|
+
var hasOwn = __nccwpck_require__(54076);
|
|
111515
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
111516
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
111517
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
111518
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
111519
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
111520
|
+
|
|
111521
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
111522
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
111523
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
111524
|
+
var stringToPath = function stringToPath(string) {
|
|
111525
|
+
var first = $strSlice(string, 0, 1);
|
|
111526
|
+
var last = $strSlice(string, -1);
|
|
111527
|
+
if (first === '%' && last !== '%') {
|
|
111528
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
111529
|
+
} else if (last === '%' && first !== '%') {
|
|
111530
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
111531
|
+
}
|
|
111532
|
+
var result = [];
|
|
111533
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
111534
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
111535
|
+
});
|
|
111536
|
+
return result;
|
|
111537
|
+
};
|
|
111538
|
+
/* end adaptation */
|
|
111539
|
+
|
|
111540
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
111541
|
+
var intrinsicName = name;
|
|
111542
|
+
var alias;
|
|
111543
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
111544
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
111545
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
111546
|
+
}
|
|
111547
|
+
|
|
111548
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
111549
|
+
var value = INTRINSICS[intrinsicName];
|
|
111550
|
+
if (value === needsEval) {
|
|
111551
|
+
value = doEval(intrinsicName);
|
|
111552
|
+
}
|
|
111553
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
111554
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
111555
|
+
}
|
|
111556
|
+
|
|
111557
|
+
return {
|
|
111558
|
+
alias: alias,
|
|
111559
|
+
name: intrinsicName,
|
|
111560
|
+
value: value
|
|
111561
|
+
};
|
|
111562
|
+
}
|
|
111563
|
+
|
|
111564
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
111565
|
+
};
|
|
111566
|
+
|
|
111567
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
111568
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
111569
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
111570
|
+
}
|
|
111571
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
111572
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
111573
|
+
}
|
|
111574
|
+
|
|
111575
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
111576
|
+
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
111577
|
+
}
|
|
111578
|
+
var parts = stringToPath(name);
|
|
111579
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
111580
|
+
|
|
111581
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
111582
|
+
var intrinsicRealName = intrinsic.name;
|
|
111583
|
+
var value = intrinsic.value;
|
|
111584
|
+
var skipFurtherCaching = false;
|
|
111585
|
+
|
|
111586
|
+
var alias = intrinsic.alias;
|
|
111587
|
+
if (alias) {
|
|
111588
|
+
intrinsicBaseName = alias[0];
|
|
111589
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
111590
|
+
}
|
|
111591
|
+
|
|
111592
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
111593
|
+
var part = parts[i];
|
|
111594
|
+
var first = $strSlice(part, 0, 1);
|
|
111595
|
+
var last = $strSlice(part, -1);
|
|
111596
|
+
if (
|
|
111597
|
+
(
|
|
111598
|
+
(first === '"' || first === "'" || first === '`')
|
|
111599
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
111600
|
+
)
|
|
111601
|
+
&& first !== last
|
|
111602
|
+
) {
|
|
111603
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
111604
|
+
}
|
|
111605
|
+
if (part === 'constructor' || !isOwn) {
|
|
111606
|
+
skipFurtherCaching = true;
|
|
111607
|
+
}
|
|
111608
|
+
|
|
111609
|
+
intrinsicBaseName += '.' + part;
|
|
111610
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
111611
|
+
|
|
111612
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
111613
|
+
value = INTRINSICS[intrinsicRealName];
|
|
111614
|
+
} else if (value != null) {
|
|
111615
|
+
if (!(part in value)) {
|
|
111616
|
+
if (!allowMissing) {
|
|
111617
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
111618
|
+
}
|
|
111619
|
+
return void undefined;
|
|
111620
|
+
}
|
|
111621
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
111622
|
+
var desc = $gOPD(value, part);
|
|
111623
|
+
isOwn = !!desc;
|
|
111624
|
+
|
|
111625
|
+
// By convention, when a data property is converted to an accessor
|
|
111626
|
+
// property to emulate a data property that does not suffer from
|
|
111627
|
+
// the override mistake, that accessor's getter is marked with
|
|
111628
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
111629
|
+
// uphold the illusion by pretending to see that original data
|
|
111630
|
+
// property, i.e., returning the value rather than the getter
|
|
111631
|
+
// itself.
|
|
111632
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
111633
|
+
value = desc.get;
|
|
111634
|
+
} else {
|
|
111635
|
+
value = value[part];
|
|
111636
|
+
}
|
|
111637
|
+
} else {
|
|
111638
|
+
isOwn = hasOwn(value, part);
|
|
111639
|
+
value = value[part];
|
|
111640
|
+
}
|
|
111641
|
+
|
|
111642
|
+
if (isOwn && !skipFurtherCaching) {
|
|
111643
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
111644
|
+
}
|
|
111645
|
+
}
|
|
111646
|
+
}
|
|
111647
|
+
return value;
|
|
111648
|
+
};
|
|
111649
|
+
|
|
111650
|
+
|
|
111651
|
+
/***/ }),
|
|
111652
|
+
|
|
111653
|
+
/***/ 91311:
|
|
111654
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
111655
|
+
|
|
111656
|
+
|
|
111657
|
+
|
|
111658
|
+
var $Object = __nccwpck_require__(95399);
|
|
111659
|
+
|
|
111660
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
111661
|
+
module.exports = $Object.getPrototypeOf || null;
|
|
111662
|
+
|
|
111663
|
+
|
|
111664
|
+
/***/ }),
|
|
111665
|
+
|
|
111666
|
+
/***/ 48681:
|
|
111667
|
+
/***/ ((module) => {
|
|
111668
|
+
|
|
111669
|
+
|
|
111670
|
+
|
|
111671
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
111672
|
+
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
111673
|
+
|
|
111674
|
+
|
|
111675
|
+
/***/ }),
|
|
111676
|
+
|
|
111677
|
+
/***/ 81967:
|
|
111678
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
111679
|
+
|
|
111680
|
+
|
|
111681
|
+
|
|
111682
|
+
var reflectGetProto = __nccwpck_require__(48681);
|
|
111683
|
+
var originalGetProto = __nccwpck_require__(91311);
|
|
111684
|
+
|
|
111685
|
+
var getDunderProto = __nccwpck_require__(26669);
|
|
111686
|
+
|
|
111687
|
+
/** @type {import('.')} */
|
|
111688
|
+
module.exports = reflectGetProto
|
|
111689
|
+
? function getProto(O) {
|
|
111690
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
111691
|
+
return reflectGetProto(O);
|
|
111692
|
+
}
|
|
111693
|
+
: originalGetProto
|
|
111694
|
+
? function getProto(O) {
|
|
111695
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
111696
|
+
throw new TypeError('getProto: not an object');
|
|
111697
|
+
}
|
|
111698
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
111699
|
+
return originalGetProto(O);
|
|
111700
|
+
}
|
|
111701
|
+
: getDunderProto
|
|
111702
|
+
? function getProto(O) {
|
|
111703
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
111704
|
+
return getDunderProto(O);
|
|
111705
|
+
}
|
|
111706
|
+
: null;
|
|
111707
|
+
|
|
111708
|
+
|
|
111709
|
+
/***/ }),
|
|
111710
|
+
|
|
111711
|
+
/***/ 1174:
|
|
111712
|
+
/***/ ((module) => {
|
|
111713
|
+
|
|
111714
|
+
|
|
111715
|
+
|
|
111716
|
+
/** @type {import('./gOPD')} */
|
|
111717
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
111718
|
+
|
|
111719
|
+
|
|
111720
|
+
/***/ }),
|
|
111721
|
+
|
|
111722
|
+
/***/ 33170:
|
|
111723
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
111724
|
+
|
|
111725
|
+
|
|
111726
|
+
|
|
111727
|
+
/** @type {import('.')} */
|
|
111728
|
+
var $gOPD = __nccwpck_require__(1174);
|
|
111729
|
+
|
|
111730
|
+
if ($gOPD) {
|
|
111731
|
+
try {
|
|
111732
|
+
$gOPD([], 'length');
|
|
111733
|
+
} catch (e) {
|
|
111734
|
+
// IE 8 has a broken gOPD
|
|
111735
|
+
$gOPD = null;
|
|
111736
|
+
}
|
|
111737
|
+
}
|
|
111738
|
+
|
|
111739
|
+
module.exports = $gOPD;
|
|
111740
|
+
|
|
111741
|
+
|
|
110904
111742
|
/***/ }),
|
|
110905
111743
|
|
|
110906
111744
|
/***/ 83813:
|
|
@@ -110916,6 +111754,109 @@ module.exports = (flag, argv = process.argv) => {
|
|
|
110916
111754
|
};
|
|
110917
111755
|
|
|
110918
111756
|
|
|
111757
|
+
/***/ }),
|
|
111758
|
+
|
|
111759
|
+
/***/ 23336:
|
|
111760
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
111761
|
+
|
|
111762
|
+
|
|
111763
|
+
|
|
111764
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
111765
|
+
var hasSymbolSham = __nccwpck_require__(61114);
|
|
111766
|
+
|
|
111767
|
+
/** @type {import('.')} */
|
|
111768
|
+
module.exports = function hasNativeSymbols() {
|
|
111769
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
111770
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
111771
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
111772
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
111773
|
+
|
|
111774
|
+
return hasSymbolSham();
|
|
111775
|
+
};
|
|
111776
|
+
|
|
111777
|
+
|
|
111778
|
+
/***/ }),
|
|
111779
|
+
|
|
111780
|
+
/***/ 61114:
|
|
111781
|
+
/***/ ((module) => {
|
|
111782
|
+
|
|
111783
|
+
|
|
111784
|
+
|
|
111785
|
+
/** @type {import('./shams')} */
|
|
111786
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
111787
|
+
module.exports = function hasSymbols() {
|
|
111788
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
111789
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
111790
|
+
|
|
111791
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
111792
|
+
var obj = {};
|
|
111793
|
+
var sym = Symbol('test');
|
|
111794
|
+
var symObj = Object(sym);
|
|
111795
|
+
if (typeof sym === 'string') { return false; }
|
|
111796
|
+
|
|
111797
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
111798
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
111799
|
+
|
|
111800
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
111801
|
+
// if (sym instanceof Symbol) { return false; }
|
|
111802
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
111803
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
111804
|
+
|
|
111805
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
111806
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
111807
|
+
|
|
111808
|
+
var symVal = 42;
|
|
111809
|
+
obj[sym] = symVal;
|
|
111810
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
111811
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
111812
|
+
|
|
111813
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
111814
|
+
|
|
111815
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
111816
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
111817
|
+
|
|
111818
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
111819
|
+
|
|
111820
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
111821
|
+
// eslint-disable-next-line no-extra-parens
|
|
111822
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
111823
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
111824
|
+
}
|
|
111825
|
+
|
|
111826
|
+
return true;
|
|
111827
|
+
};
|
|
111828
|
+
|
|
111829
|
+
|
|
111830
|
+
/***/ }),
|
|
111831
|
+
|
|
111832
|
+
/***/ 85479:
|
|
111833
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
111834
|
+
|
|
111835
|
+
|
|
111836
|
+
|
|
111837
|
+
var hasSymbols = __nccwpck_require__(61114);
|
|
111838
|
+
|
|
111839
|
+
/** @type {import('.')} */
|
|
111840
|
+
module.exports = function hasToStringTagShams() {
|
|
111841
|
+
return hasSymbols() && !!Symbol.toStringTag;
|
|
111842
|
+
};
|
|
111843
|
+
|
|
111844
|
+
|
|
111845
|
+
/***/ }),
|
|
111846
|
+
|
|
111847
|
+
/***/ 54076:
|
|
111848
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
111849
|
+
|
|
111850
|
+
|
|
111851
|
+
|
|
111852
|
+
var call = Function.prototype.call;
|
|
111853
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
111854
|
+
var bind = __nccwpck_require__(37564);
|
|
111855
|
+
|
|
111856
|
+
/** @type {import('.')} */
|
|
111857
|
+
module.exports = bind.call(call, $hasOwn);
|
|
111858
|
+
|
|
111859
|
+
|
|
110919
111860
|
/***/ }),
|
|
110920
111861
|
|
|
110921
111862
|
/***/ 81970:
|
|
@@ -123835,6 +124776,103 @@ u&&(Z.prototype[t]=function(){var t=this.__wrapped__,o=e?[1]:arguments,f=t insta
|
|
|
123835
124776
|
var t=_l[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Z.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(bh(u)?u:[],n)}return this[r](function(r){return t.apply(bh(r)?r:[],n)})}}),ue(Ct.prototype,function(n,t){var r=Z[t];if(r){var e=r.name+"";bl.call(fs,e)||(fs[e]=[]),fs[e].push({name:t,func:r})}}),fs[Qu(X,vn).name]=[{name:"wrapper",func:X}],Ct.prototype.clone=$t,Ct.prototype.reverse=Yt,Ct.prototype.value=Qt,Z.prototype.at=Qs,
|
|
123836
124777
|
Z.prototype.chain=tf,Z.prototype.commit=rf,Z.prototype.next=ef,Z.prototype.plant=of,Z.prototype.reverse=ff,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=cf,Z.prototype.first=Z.prototype.head,Ul&&(Z.prototype[Ul]=uf),Z},be=de();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(re._=be,define(function(){return be})):ue?((ue.exports=be)._=be,ee._=be):re._=be}).call(this);
|
|
123837
124778
|
|
|
124779
|
+
/***/ }),
|
|
124780
|
+
|
|
124781
|
+
/***/ 55641:
|
|
124782
|
+
/***/ ((module) => {
|
|
124783
|
+
|
|
124784
|
+
|
|
124785
|
+
|
|
124786
|
+
/** @type {import('./abs')} */
|
|
124787
|
+
module.exports = Math.abs;
|
|
124788
|
+
|
|
124789
|
+
|
|
124790
|
+
/***/ }),
|
|
124791
|
+
|
|
124792
|
+
/***/ 96171:
|
|
124793
|
+
/***/ ((module) => {
|
|
124794
|
+
|
|
124795
|
+
|
|
124796
|
+
|
|
124797
|
+
/** @type {import('./floor')} */
|
|
124798
|
+
module.exports = Math.floor;
|
|
124799
|
+
|
|
124800
|
+
|
|
124801
|
+
/***/ }),
|
|
124802
|
+
|
|
124803
|
+
/***/ 77044:
|
|
124804
|
+
/***/ ((module) => {
|
|
124805
|
+
|
|
124806
|
+
|
|
124807
|
+
|
|
124808
|
+
/** @type {import('./isNaN')} */
|
|
124809
|
+
module.exports = Number.isNaN || function isNaN(a) {
|
|
124810
|
+
return a !== a;
|
|
124811
|
+
};
|
|
124812
|
+
|
|
124813
|
+
|
|
124814
|
+
/***/ }),
|
|
124815
|
+
|
|
124816
|
+
/***/ 57147:
|
|
124817
|
+
/***/ ((module) => {
|
|
124818
|
+
|
|
124819
|
+
|
|
124820
|
+
|
|
124821
|
+
/** @type {import('./max')} */
|
|
124822
|
+
module.exports = Math.max;
|
|
124823
|
+
|
|
124824
|
+
|
|
124825
|
+
/***/ }),
|
|
124826
|
+
|
|
124827
|
+
/***/ 41017:
|
|
124828
|
+
/***/ ((module) => {
|
|
124829
|
+
|
|
124830
|
+
|
|
124831
|
+
|
|
124832
|
+
/** @type {import('./min')} */
|
|
124833
|
+
module.exports = Math.min;
|
|
124834
|
+
|
|
124835
|
+
|
|
124836
|
+
/***/ }),
|
|
124837
|
+
|
|
124838
|
+
/***/ 56947:
|
|
124839
|
+
/***/ ((module) => {
|
|
124840
|
+
|
|
124841
|
+
|
|
124842
|
+
|
|
124843
|
+
/** @type {import('./pow')} */
|
|
124844
|
+
module.exports = Math.pow;
|
|
124845
|
+
|
|
124846
|
+
|
|
124847
|
+
/***/ }),
|
|
124848
|
+
|
|
124849
|
+
/***/ 42621:
|
|
124850
|
+
/***/ ((module) => {
|
|
124851
|
+
|
|
124852
|
+
|
|
124853
|
+
|
|
124854
|
+
/** @type {import('./round')} */
|
|
124855
|
+
module.exports = Math.round;
|
|
124856
|
+
|
|
124857
|
+
|
|
124858
|
+
/***/ }),
|
|
124859
|
+
|
|
124860
|
+
/***/ 30156:
|
|
124861
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
124862
|
+
|
|
124863
|
+
|
|
124864
|
+
|
|
124865
|
+
var $isNaN = __nccwpck_require__(77044);
|
|
124866
|
+
|
|
124867
|
+
/** @type {import('./sign')} */
|
|
124868
|
+
module.exports = function sign(number) {
|
|
124869
|
+
if ($isNaN(number) || number === 0) {
|
|
124870
|
+
return number;
|
|
124871
|
+
}
|
|
124872
|
+
return number < 0 ? -1 : +1;
|
|
124873
|
+
};
|
|
124874
|
+
|
|
124875
|
+
|
|
123838
124876
|
/***/ }),
|
|
123839
124877
|
|
|
123840
124878
|
/***/ 99829:
|
|
@@ -195931,7 +196969,7 @@ module.exports = waitOn;
|
|
|
195931
196969
|
/***/ 87269:
|
|
195932
196970
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
195933
196971
|
|
|
195934
|
-
/*! Axios v1.
|
|
196972
|
+
/*! Axios v1.11.0 Copyright (c) 2025 Matt Zabriskie and contributors */
|
|
195935
196973
|
|
|
195936
196974
|
|
|
195937
196975
|
const FormData$1 = __nccwpck_require__(96454);
|
|
@@ -195969,6 +197007,7 @@ function bind(fn, thisArg) {
|
|
|
195969
197007
|
|
|
195970
197008
|
const {toString} = Object.prototype;
|
|
195971
197009
|
const {getPrototypeOf} = Object;
|
|
197010
|
+
const {iterator, toStringTag} = Symbol;
|
|
195972
197011
|
|
|
195973
197012
|
const kindOf = (cache => thing => {
|
|
195974
197013
|
const str = toString.call(thing);
|
|
@@ -196095,7 +197134,28 @@ const isPlainObject = (val) => {
|
|
|
196095
197134
|
}
|
|
196096
197135
|
|
|
196097
197136
|
const prototype = getPrototypeOf(val);
|
|
196098
|
-
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(
|
|
197137
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
|
197138
|
+
};
|
|
197139
|
+
|
|
197140
|
+
/**
|
|
197141
|
+
* Determine if a value is an empty object (safely handles Buffers)
|
|
197142
|
+
*
|
|
197143
|
+
* @param {*} val The value to test
|
|
197144
|
+
*
|
|
197145
|
+
* @returns {boolean} True if value is an empty object, otherwise false
|
|
197146
|
+
*/
|
|
197147
|
+
const isEmptyObject = (val) => {
|
|
197148
|
+
// Early return for non-objects or Buffers to prevent RangeError
|
|
197149
|
+
if (!isObject(val) || isBuffer(val)) {
|
|
197150
|
+
return false;
|
|
197151
|
+
}
|
|
197152
|
+
|
|
197153
|
+
try {
|
|
197154
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
197155
|
+
} catch (e) {
|
|
197156
|
+
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
197157
|
+
return false;
|
|
197158
|
+
}
|
|
196099
197159
|
};
|
|
196100
197160
|
|
|
196101
197161
|
/**
|
|
@@ -196220,6 +197280,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
196220
197280
|
fn.call(null, obj[i], i, obj);
|
|
196221
197281
|
}
|
|
196222
197282
|
} else {
|
|
197283
|
+
// Buffer check
|
|
197284
|
+
if (isBuffer(obj)) {
|
|
197285
|
+
return;
|
|
197286
|
+
}
|
|
197287
|
+
|
|
196223
197288
|
// Iterate over object keys
|
|
196224
197289
|
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
196225
197290
|
const len = keys.length;
|
|
@@ -196233,6 +197298,10 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
196233
197298
|
}
|
|
196234
197299
|
|
|
196235
197300
|
function findKey(obj, key) {
|
|
197301
|
+
if (isBuffer(obj)){
|
|
197302
|
+
return null;
|
|
197303
|
+
}
|
|
197304
|
+
|
|
196236
197305
|
key = key.toLowerCase();
|
|
196237
197306
|
const keys = Object.keys(obj);
|
|
196238
197307
|
let i = keys.length;
|
|
@@ -196446,13 +197515,13 @@ const isTypedArray = (TypedArray => {
|
|
|
196446
197515
|
* @returns {void}
|
|
196447
197516
|
*/
|
|
196448
197517
|
const forEachEntry = (obj, fn) => {
|
|
196449
|
-
const generator = obj && obj[
|
|
197518
|
+
const generator = obj && obj[iterator];
|
|
196450
197519
|
|
|
196451
|
-
const
|
|
197520
|
+
const _iterator = generator.call(obj);
|
|
196452
197521
|
|
|
196453
197522
|
let result;
|
|
196454
197523
|
|
|
196455
|
-
while ((result =
|
|
197524
|
+
while ((result = _iterator.next()) && !result.done) {
|
|
196456
197525
|
const pair = result.value;
|
|
196457
197526
|
fn.call(obj, pair[0], pair[1]);
|
|
196458
197527
|
}
|
|
@@ -196573,7 +197642,7 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
196573
197642
|
* @returns {boolean}
|
|
196574
197643
|
*/
|
|
196575
197644
|
function isSpecCompliantForm(thing) {
|
|
196576
|
-
return !!(thing && isFunction(thing.append) && thing[
|
|
197645
|
+
return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
196577
197646
|
}
|
|
196578
197647
|
|
|
196579
197648
|
const toJSONObject = (obj) => {
|
|
@@ -196586,6 +197655,11 @@ const toJSONObject = (obj) => {
|
|
|
196586
197655
|
return;
|
|
196587
197656
|
}
|
|
196588
197657
|
|
|
197658
|
+
//Buffer check
|
|
197659
|
+
if (isBuffer(source)) {
|
|
197660
|
+
return source;
|
|
197661
|
+
}
|
|
197662
|
+
|
|
196589
197663
|
if(!('toJSON' in source)) {
|
|
196590
197664
|
stack[i] = source;
|
|
196591
197665
|
const target = isArray(source) ? [] : {};
|
|
@@ -196642,6 +197716,10 @@ const asap = typeof queueMicrotask !== 'undefined' ?
|
|
|
196642
197716
|
|
|
196643
197717
|
// *********************
|
|
196644
197718
|
|
|
197719
|
+
|
|
197720
|
+
const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
197721
|
+
|
|
197722
|
+
|
|
196645
197723
|
const utils$1 = {
|
|
196646
197724
|
isArray,
|
|
196647
197725
|
isArrayBuffer,
|
|
@@ -196653,6 +197731,7 @@ const utils$1 = {
|
|
|
196653
197731
|
isBoolean,
|
|
196654
197732
|
isObject,
|
|
196655
197733
|
isPlainObject,
|
|
197734
|
+
isEmptyObject,
|
|
196656
197735
|
isReadableStream,
|
|
196657
197736
|
isRequest,
|
|
196658
197737
|
isResponse,
|
|
@@ -196697,7 +197776,8 @@ const utils$1 = {
|
|
|
196697
197776
|
isAsyncFn,
|
|
196698
197777
|
isThenable,
|
|
196699
197778
|
setImmediate: _setImmediate,
|
|
196700
|
-
asap
|
|
197779
|
+
asap,
|
|
197780
|
+
isIterable
|
|
196701
197781
|
};
|
|
196702
197782
|
|
|
196703
197783
|
/**
|
|
@@ -196913,6 +197993,10 @@ function toFormData(obj, formData, options) {
|
|
|
196913
197993
|
return value.toISOString();
|
|
196914
197994
|
}
|
|
196915
197995
|
|
|
197996
|
+
if (utils$1.isBoolean(value)) {
|
|
197997
|
+
return value.toString();
|
|
197998
|
+
}
|
|
197999
|
+
|
|
196916
198000
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
196917
198001
|
throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
196918
198002
|
}
|
|
@@ -197297,7 +198381,7 @@ const platform = {
|
|
|
197297
198381
|
};
|
|
197298
198382
|
|
|
197299
198383
|
function toURLEncodedForm(data, options) {
|
|
197300
|
-
return toFormData(data, new platform.classes.URLSearchParams(),
|
|
198384
|
+
return toFormData(data, new platform.classes.URLSearchParams(), {
|
|
197301
198385
|
visitor: function(value, key, path, helpers) {
|
|
197302
198386
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
197303
198387
|
this.append(key, value.toString('base64'));
|
|
@@ -197305,8 +198389,9 @@ function toURLEncodedForm(data, options) {
|
|
|
197305
198389
|
}
|
|
197306
198390
|
|
|
197307
198391
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
197308
|
-
}
|
|
197309
|
-
|
|
198392
|
+
},
|
|
198393
|
+
...options
|
|
198394
|
+
});
|
|
197310
198395
|
}
|
|
197311
198396
|
|
|
197312
198397
|
/**
|
|
@@ -197700,10 +198785,18 @@ class AxiosHeaders {
|
|
|
197700
198785
|
setHeaders(header, valueOrRewrite);
|
|
197701
198786
|
} else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
197702
198787
|
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
197703
|
-
} else if (utils$1.
|
|
197704
|
-
|
|
197705
|
-
|
|
198788
|
+
} else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
198789
|
+
let obj = {}, dest, key;
|
|
198790
|
+
for (const entry of header) {
|
|
198791
|
+
if (!utils$1.isArray(entry)) {
|
|
198792
|
+
throw TypeError('Object iterator must return a key-value pair');
|
|
198793
|
+
}
|
|
198794
|
+
|
|
198795
|
+
obj[key = entry[0]] = (dest = obj[key]) ?
|
|
198796
|
+
(utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
|
|
197706
198797
|
}
|
|
198798
|
+
|
|
198799
|
+
setHeaders(obj, valueOrRewrite);
|
|
197707
198800
|
} else {
|
|
197708
198801
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
197709
198802
|
}
|
|
@@ -197845,6 +198938,10 @@ class AxiosHeaders {
|
|
|
197845
198938
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
|
|
197846
198939
|
}
|
|
197847
198940
|
|
|
198941
|
+
getSetCookie() {
|
|
198942
|
+
return this.get("set-cookie") || [];
|
|
198943
|
+
}
|
|
198944
|
+
|
|
197848
198945
|
get [Symbol.toStringTag]() {
|
|
197849
198946
|
return 'AxiosHeaders';
|
|
197850
198947
|
}
|
|
@@ -198011,13 +199108,13 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
198011
199108
|
*/
|
|
198012
199109
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
198013
199110
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
198014
|
-
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
|
199111
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
198015
199112
|
return combineURLs(baseURL, requestedURL);
|
|
198016
199113
|
}
|
|
198017
199114
|
return requestedURL;
|
|
198018
199115
|
}
|
|
198019
199116
|
|
|
198020
|
-
const VERSION = "1.
|
|
199117
|
+
const VERSION = "1.11.0";
|
|
198021
199118
|
|
|
198022
199119
|
function parseProtocol(url) {
|
|
198023
199120
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
@@ -198299,7 +199396,7 @@ const formDataToStream = (form, headersHandler, options) => {
|
|
|
198299
199396
|
}
|
|
198300
199397
|
|
|
198301
199398
|
const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
|
|
198302
|
-
const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF
|
|
199399
|
+
const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF);
|
|
198303
199400
|
let contentLength = footerBytes.byteLength;
|
|
198304
199401
|
|
|
198305
199402
|
const parts = Array.from(form.entries()).map(([name, value]) => {
|
|
@@ -198445,7 +199542,7 @@ function throttle(fn, freq) {
|
|
|
198445
199542
|
clearTimeout(timer);
|
|
198446
199543
|
timer = null;
|
|
198447
199544
|
}
|
|
198448
|
-
fn
|
|
199545
|
+
fn(...args);
|
|
198449
199546
|
};
|
|
198450
199547
|
|
|
198451
199548
|
const throttled = (...args) => {
|
|
@@ -199319,7 +200416,7 @@ function mergeConfig(config1, config2) {
|
|
|
199319
200416
|
headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
|
|
199320
200417
|
};
|
|
199321
200418
|
|
|
199322
|
-
utils$1.forEach(Object.keys(
|
|
200419
|
+
utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
|
|
199323
200420
|
const merge = mergeMap[prop] || mergeDeepProperties;
|
|
199324
200421
|
const configValue = merge(config1[prop], config2[prop], prop);
|
|
199325
200422
|
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
@@ -199335,7 +200432,7 @@ const resolveConfig = (config) => {
|
|
|
199335
200432
|
|
|
199336
200433
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
199337
200434
|
|
|
199338
|
-
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
200435
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
199339
200436
|
|
|
199340
200437
|
// HTTP basic authentication
|
|
199341
200438
|
if (auth) {
|
|
@@ -199854,7 +200951,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
199854
200951
|
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
199855
200952
|
});
|
|
199856
200953
|
|
|
199857
|
-
let response = await fetch(request);
|
|
200954
|
+
let response = await fetch(request, fetchOptions);
|
|
199858
200955
|
|
|
199859
200956
|
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
199860
200957
|
|
|
@@ -199900,7 +200997,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
199900
200997
|
} catch (err) {
|
|
199901
200998
|
unsubscribe && unsubscribe();
|
|
199902
200999
|
|
|
199903
|
-
if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
|
|
201000
|
+
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
199904
201001
|
throw Object.assign(
|
|
199905
201002
|
new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
|
|
199906
201003
|
{
|
|
@@ -200166,7 +201263,7 @@ const validators = validator.validators;
|
|
|
200166
201263
|
*/
|
|
200167
201264
|
class Axios {
|
|
200168
201265
|
constructor(instanceConfig) {
|
|
200169
|
-
this.defaults = instanceConfig;
|
|
201266
|
+
this.defaults = instanceConfig || {};
|
|
200170
201267
|
this.interceptors = {
|
|
200171
201268
|
request: new InterceptorManager$1(),
|
|
200172
201269
|
response: new InterceptorManager$1()
|
|
@@ -200297,8 +201394,8 @@ class Axios {
|
|
|
200297
201394
|
|
|
200298
201395
|
if (!synchronousRequestInterceptors) {
|
|
200299
201396
|
const chain = [dispatchRequest.bind(this), undefined];
|
|
200300
|
-
chain.unshift
|
|
200301
|
-
chain.push
|
|
201397
|
+
chain.unshift(...requestInterceptorChain);
|
|
201398
|
+
chain.push(...responseInterceptorChain);
|
|
200302
201399
|
len = chain.length;
|
|
200303
201400
|
|
|
200304
201401
|
promise = Promise.resolve(config);
|
|
@@ -201595,21 +202692,21 @@ module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.
|
|
|
201595
202692
|
/***/ 27413:
|
|
201596
202693
|
/***/ ((module) => {
|
|
201597
202694
|
|
|
201598
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-s3","description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","version":"3.
|
|
202695
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-s3","description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","version":"3.859.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3","test":"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.ts","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.ts && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.ts","test:integration":"yarn g:vitest run -c vitest.config.integ.ts","test:integration:watch":"yarn g:vitest watch -c vitest.config.integ.ts","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.858.0","@aws-sdk/credential-provider-node":"3.859.0","@aws-sdk/middleware-bucket-endpoint":"3.840.0","@aws-sdk/middleware-expect-continue":"3.840.0","@aws-sdk/middleware-flexible-checksums":"3.858.0","@aws-sdk/middleware-host-header":"3.840.0","@aws-sdk/middleware-location-constraint":"3.840.0","@aws-sdk/middleware-logger":"3.840.0","@aws-sdk/middleware-recursion-detection":"3.840.0","@aws-sdk/middleware-sdk-s3":"3.858.0","@aws-sdk/middleware-ssec":"3.840.0","@aws-sdk/middleware-user-agent":"3.858.0","@aws-sdk/region-config-resolver":"3.840.0","@aws-sdk/signature-v4-multi-region":"3.858.0","@aws-sdk/types":"3.840.0","@aws-sdk/util-endpoints":"3.848.0","@aws-sdk/util-user-agent-browser":"3.840.0","@aws-sdk/util-user-agent-node":"3.858.0","@aws-sdk/xml-builder":"3.821.0","@smithy/config-resolver":"^4.1.4","@smithy/core":"^3.7.2","@smithy/eventstream-serde-browser":"^4.0.4","@smithy/eventstream-serde-config-resolver":"^4.1.2","@smithy/eventstream-serde-node":"^4.0.4","@smithy/fetch-http-handler":"^5.1.0","@smithy/hash-blob-browser":"^4.0.4","@smithy/hash-node":"^4.0.4","@smithy/hash-stream-node":"^4.0.4","@smithy/invalid-dependency":"^4.0.4","@smithy/md5-js":"^4.0.4","@smithy/middleware-content-length":"^4.0.4","@smithy/middleware-endpoint":"^4.1.17","@smithy/middleware-retry":"^4.1.18","@smithy/middleware-serde":"^4.0.8","@smithy/middleware-stack":"^4.0.4","@smithy/node-config-provider":"^4.1.3","@smithy/node-http-handler":"^4.1.0","@smithy/protocol-http":"^5.1.2","@smithy/smithy-client":"^4.4.9","@smithy/types":"^4.3.1","@smithy/url-parser":"^4.0.4","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.25","@smithy/util-defaults-mode-node":"^4.0.25","@smithy/util-endpoints":"^3.0.6","@smithy/util-middleware":"^4.0.4","@smithy/util-retry":"^4.0.6","@smithy/util-stream":"^4.2.3","@smithy/util-utf8":"^4.0.0","@smithy/util-waiter":"^4.0.6","@types/uuid":"^9.0.1","tslib":"^2.6.2","uuid":"^9.0.1"},"devDependencies":{"@aws-sdk/signature-v4-crt":"3.858.0","@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-s3"}}');
|
|
201599
202696
|
|
|
201600
202697
|
/***/ }),
|
|
201601
202698
|
|
|
201602
202699
|
/***/ 45188:
|
|
201603
202700
|
/***/ ((module) => {
|
|
201604
202701
|
|
|
201605
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.
|
|
202702
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.858.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.858.0","@aws-sdk/middleware-host-header":"3.840.0","@aws-sdk/middleware-logger":"3.840.0","@aws-sdk/middleware-recursion-detection":"3.840.0","@aws-sdk/middleware-user-agent":"3.858.0","@aws-sdk/region-config-resolver":"3.840.0","@aws-sdk/types":"3.840.0","@aws-sdk/util-endpoints":"3.848.0","@aws-sdk/util-user-agent-browser":"3.840.0","@aws-sdk/util-user-agent-node":"3.858.0","@smithy/config-resolver":"^4.1.4","@smithy/core":"^3.7.2","@smithy/fetch-http-handler":"^5.1.0","@smithy/hash-node":"^4.0.4","@smithy/invalid-dependency":"^4.0.4","@smithy/middleware-content-length":"^4.0.4","@smithy/middleware-endpoint":"^4.1.17","@smithy/middleware-retry":"^4.1.18","@smithy/middleware-serde":"^4.0.8","@smithy/middleware-stack":"^4.0.4","@smithy/node-config-provider":"^4.1.3","@smithy/node-http-handler":"^4.1.0","@smithy/protocol-http":"^5.1.2","@smithy/smithy-client":"^4.4.9","@smithy/types":"^4.3.1","@smithy/url-parser":"^4.0.4","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.25","@smithy/util-defaults-mode-node":"^4.0.25","@smithy/util-endpoints":"^3.0.6","@smithy/util-middleware":"^4.0.4","@smithy/util-retry":"^4.0.6","@smithy/util-utf8":"^4.0.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}');
|
|
201606
202703
|
|
|
201607
202704
|
/***/ }),
|
|
201608
202705
|
|
|
201609
202706
|
/***/ 39955:
|
|
201610
202707
|
/***/ ((module) => {
|
|
201611
202708
|
|
|
201612
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.
|
|
202709
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.858.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.858.0","@aws-sdk/middleware-host-header":"3.840.0","@aws-sdk/middleware-logger":"3.840.0","@aws-sdk/middleware-recursion-detection":"3.840.0","@aws-sdk/middleware-user-agent":"3.858.0","@aws-sdk/region-config-resolver":"3.840.0","@aws-sdk/types":"3.840.0","@aws-sdk/util-endpoints":"3.848.0","@aws-sdk/util-user-agent-browser":"3.840.0","@aws-sdk/util-user-agent-node":"3.858.0","@smithy/config-resolver":"^4.1.4","@smithy/core":"^3.7.2","@smithy/fetch-http-handler":"^5.1.0","@smithy/hash-node":"^4.0.4","@smithy/invalid-dependency":"^4.0.4","@smithy/middleware-content-length":"^4.0.4","@smithy/middleware-endpoint":"^4.1.17","@smithy/middleware-retry":"^4.1.18","@smithy/middleware-serde":"^4.0.8","@smithy/middleware-stack":"^4.0.4","@smithy/node-config-provider":"^4.1.3","@smithy/node-http-handler":"^4.1.0","@smithy/protocol-http":"^5.1.2","@smithy/smithy-client":"^4.4.9","@smithy/types":"^4.3.1","@smithy/url-parser":"^4.0.4","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.25","@smithy/util-defaults-mode-node":"^4.0.25","@smithy/util-endpoints":"^3.0.6","@smithy/util-middleware":"^4.0.4","@smithy/util-retry":"^4.0.6","@smithy/util-utf8":"^4.0.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"}}}');
|
|
201613
202710
|
|
|
201614
202711
|
/***/ }),
|
|
201615
202712
|
|
|
@@ -201644,7 +202741,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"http://json-schema.org/dra
|
|
|
201644
202741
|
/***/ 80056:
|
|
201645
202742
|
/***/ ((module) => {
|
|
201646
202743
|
|
|
201647
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"dotenv","version":"17.2.
|
|
202744
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"dotenv","version":"17.2.1","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}');
|
|
201648
202745
|
|
|
201649
202746
|
/***/ }),
|
|
201650
202747
|
|
|
@@ -201874,7 +202971,8 @@ var external_path_ = __nccwpck_require__(16928);
|
|
|
201874
202971
|
const envObject = {
|
|
201875
202972
|
ACTIONS_RUNTIME_TOKEN: process.env.ACTIONS_RUNTIME_TOKEN,
|
|
201876
202973
|
ACTIONS_CACHE_URL: process.env.ACTIONS_CACHE_URL,
|
|
201877
|
-
RUNNER_TEMP: process.env.RUNNER_TEMP
|
|
202974
|
+
RUNNER_TEMP: process.env.RUNNER_TEMP,
|
|
202975
|
+
LOG_LEVEL: process.env.LOG_LEVEL
|
|
201878
202976
|
};
|
|
201879
202977
|
const env = {
|
|
201880
202978
|
valid: Object.values(envObject).every(value => value !== undefined),
|
|
@@ -202277,6 +203375,21 @@ function getCacheClient() {
|
|
|
202277
203375
|
};
|
|
202278
203376
|
}
|
|
202279
203377
|
|
|
203378
|
+
;// CONCATENATED MODULE: ./src/lib/utils.ts
|
|
203379
|
+
|
|
203380
|
+
const timingProvider = (name, tracker, fn) => {
|
|
203381
|
+
return async (...args) => {
|
|
203382
|
+
const start = performance.now();
|
|
203383
|
+
const result = await fn(...args);
|
|
203384
|
+
const end = performance.now();
|
|
203385
|
+
if (env.LOG_LEVEL === 'debug') {
|
|
203386
|
+
console.log(`${name} took ${end - start}ms`);
|
|
203387
|
+
}
|
|
203388
|
+
tracker[name] += end - start;
|
|
203389
|
+
return result;
|
|
203390
|
+
};
|
|
203391
|
+
};
|
|
203392
|
+
|
|
202280
203393
|
;// CONCATENATED MODULE: ./src/lib/providers/cache/index.ts
|
|
202281
203394
|
|
|
202282
203395
|
|
|
@@ -202284,6 +203397,7 @@ function getCacheClient() {
|
|
|
202284
203397
|
|
|
202285
203398
|
|
|
202286
203399
|
|
|
203400
|
+
|
|
202287
203401
|
//* Cache API
|
|
202288
203402
|
async function saveCache(ctx, hash, tag, stream) {
|
|
202289
203403
|
if (!env.valid) {
|
|
@@ -202332,12 +203446,12 @@ async function listCache() {
|
|
|
202332
203446
|
core_core.error(`Cannot list github cache automatically.`);
|
|
202333
203447
|
throw new Error(`Cannot list github cache automatically.`);
|
|
202334
203448
|
}
|
|
202335
|
-
const getGithubProvider = () => {
|
|
203449
|
+
const getGithubProvider = (tracker) => {
|
|
202336
203450
|
return {
|
|
202337
|
-
save: saveCache,
|
|
202338
|
-
get: getCache,
|
|
202339
|
-
delete: deleteCache,
|
|
202340
|
-
list: listCache
|
|
203451
|
+
save: timingProvider('save', tracker, saveCache),
|
|
203452
|
+
get: timingProvider('get', tracker, getCache),
|
|
203453
|
+
delete: timingProvider('delete', tracker, deleteCache),
|
|
203454
|
+
list: timingProvider('list', tracker, listCache)
|
|
202341
203455
|
};
|
|
202342
203456
|
};
|
|
202343
203457
|
|
|
@@ -202350,6 +203464,7 @@ var lib_storage_dist_cjs = __nccwpck_require__(22358);
|
|
|
202350
203464
|
|
|
202351
203465
|
|
|
202352
203466
|
|
|
203467
|
+
|
|
202353
203468
|
// Helper function to get input value, prioritizing environment variables for local development
|
|
202354
203469
|
const s3_getInput = (name, envNames) => {
|
|
202355
203470
|
// In GitHub Actions context, try core.getInput first
|
|
@@ -202367,7 +203482,7 @@ const s3_getInput = (name, envNames) => {
|
|
|
202367
203482
|
}
|
|
202368
203483
|
return undefined;
|
|
202369
203484
|
};
|
|
202370
|
-
const getS3Provider = () => {
|
|
203485
|
+
const getS3Provider = (tracker) => {
|
|
202371
203486
|
const s3AccessKeyId = s3_getInput('s3-access-key-id', [
|
|
202372
203487
|
'AWS_ACCESS_KEY_ID',
|
|
202373
203488
|
'S3_ACCESS_KEY_ID'
|
|
@@ -202413,7 +203528,6 @@ const getS3Provider = () => {
|
|
|
202413
203528
|
};
|
|
202414
203529
|
const save = async (ctx, hash, tag, stream) => {
|
|
202415
203530
|
const objectKey = getS3Key(hash, tag);
|
|
202416
|
-
console.log({ objectKey, s3Prefix });
|
|
202417
203531
|
try {
|
|
202418
203532
|
// Use the S3 Upload utility which handles multipart uploads for large files
|
|
202419
203533
|
const upload = new lib_storage_dist_cjs.Upload({
|
|
@@ -202539,10 +203653,10 @@ const getS3Provider = () => {
|
|
|
202539
203653
|
}
|
|
202540
203654
|
};
|
|
202541
203655
|
return {
|
|
202542
|
-
save,
|
|
202543
|
-
get,
|
|
202544
|
-
delete: deleteObj,
|
|
202545
|
-
list
|
|
203656
|
+
save: timingProvider('save', tracker, save),
|
|
203657
|
+
get: timingProvider('get', tracker, get),
|
|
203658
|
+
delete: timingProvider('delete', tracker, deleteObj),
|
|
203659
|
+
list: timingProvider('list', tracker, list)
|
|
202546
203660
|
};
|
|
202547
203661
|
};
|
|
202548
203662
|
|
|
@@ -202550,16 +203664,16 @@ const getS3Provider = () => {
|
|
|
202550
203664
|
|
|
202551
203665
|
|
|
202552
203666
|
|
|
202553
|
-
const getProvider = () => {
|
|
203667
|
+
const getProvider = (tracker) => {
|
|
202554
203668
|
const provider = core_core.getInput('provider') || process.env.PROVIDER;
|
|
202555
203669
|
if (!provider) {
|
|
202556
203670
|
throw new Error('Provider is required. Set PROVIDER environment variable or provider input.');
|
|
202557
203671
|
}
|
|
202558
203672
|
if (provider === 'github') {
|
|
202559
|
-
return getGithubProvider();
|
|
203673
|
+
return getGithubProvider(tracker);
|
|
202560
203674
|
}
|
|
202561
203675
|
if (provider === 's3') {
|
|
202562
|
-
return getS3Provider();
|
|
203676
|
+
return getS3Provider(tracker);
|
|
202563
203677
|
}
|
|
202564
203678
|
throw new Error(`Provider ${provider} not supported`);
|
|
202565
203679
|
};
|
|
@@ -202658,7 +203772,7 @@ const parseFileSize = (size) => {
|
|
|
202658
203772
|
|
|
202659
203773
|
|
|
202660
203774
|
|
|
202661
|
-
async function cleanup(ctx) {
|
|
203775
|
+
async function cleanup(ctx, tracker) {
|
|
202662
203776
|
const maxAge = core_core.getInput('max-age') || process.env.MAX_AGE;
|
|
202663
203777
|
const maxFiles = core_core.getInput('max-files') || process.env.MAX_FILES;
|
|
202664
203778
|
const maxSize = core_core.getInput('max-size') || process.env.MAX_SIZE;
|
|
@@ -202683,7 +203797,7 @@ async function cleanup(ctx) {
|
|
|
202683
203797
|
core_core.error('Invalid max-size provided');
|
|
202684
203798
|
throw new Error('Invalid max-size provided');
|
|
202685
203799
|
}
|
|
202686
|
-
const provider = getProvider();
|
|
203800
|
+
const provider = getProvider(tracker);
|
|
202687
203801
|
const files = await provider.list();
|
|
202688
203802
|
const fileToDelete = [];
|
|
202689
203803
|
if (maxAgeParsed) {
|
|
@@ -202720,8 +203834,9 @@ async function cleanup(ctx) {
|
|
|
202720
203834
|
ctx.log.info(`Cleaning up ${fileToDelete.length} files (${fileToDelete.map(f => `${f.path} (${f.reason})`)})`);
|
|
202721
203835
|
for (const file of fileToDelete) {
|
|
202722
203836
|
try {
|
|
203837
|
+
console.log('Deleting', file);
|
|
202723
203838
|
await provider.delete(file.path);
|
|
202724
|
-
ctx.log.info(`Deleted ${file
|
|
203839
|
+
ctx.log.info(`Deleted ${file}`);
|
|
202725
203840
|
}
|
|
202726
203841
|
catch (error) {
|
|
202727
203842
|
core_core.error(`Failed to delete ${file.path}: ${error}`);
|
|
@@ -202735,16 +203850,27 @@ async function cleanup(ctx) {
|
|
|
202735
203850
|
|
|
202736
203851
|
// EXTERNAL MODULE: external "stream"
|
|
202737
203852
|
var external_stream_ = __nccwpck_require__(2203);
|
|
203853
|
+
;// CONCATENATED MODULE: ./src/lib/tracker.ts
|
|
203854
|
+
const getTracker = () => ({
|
|
203855
|
+
save: 0,
|
|
203856
|
+
get: 0,
|
|
203857
|
+
delete: 0,
|
|
203858
|
+
list: 0
|
|
203859
|
+
});
|
|
203860
|
+
|
|
202738
203861
|
;// CONCATENATED MODULE: ./src/lib/server/index.ts
|
|
202739
203862
|
|
|
202740
203863
|
|
|
202741
203864
|
|
|
202742
203865
|
|
|
202743
203866
|
|
|
203867
|
+
|
|
203868
|
+
|
|
202744
203869
|
async function server() {
|
|
203870
|
+
const tracker = getTracker();
|
|
202745
203871
|
//* Create the server
|
|
202746
203872
|
const fastify = fastify_default()({
|
|
202747
|
-
logger: true
|
|
203873
|
+
logger: env.LOG_LEVEL === 'debug' ? true : false
|
|
202748
203874
|
});
|
|
202749
203875
|
//? Server status check
|
|
202750
203876
|
fastify.get('/', async () => {
|
|
@@ -202755,7 +203881,7 @@ async function server() {
|
|
|
202755
203881
|
request.log.info('Ping endpoint called - testing cache provider functionality');
|
|
202756
203882
|
try {
|
|
202757
203883
|
const tests = [];
|
|
202758
|
-
const provider = getProvider();
|
|
203884
|
+
const provider = getProvider(tracker);
|
|
202759
203885
|
const testHash = 'ping-test-file';
|
|
202760
203886
|
const testContent = 'This is a test file for ping functionality';
|
|
202761
203887
|
// Create a readable stream from the test content
|
|
@@ -202803,7 +203929,15 @@ async function server() {
|
|
|
202803
203929
|
//? Shut down the server
|
|
202804
203930
|
const shutdown = async (ctx) => {
|
|
202805
203931
|
//* Handle cleanup
|
|
202806
|
-
await cleanup(ctx);
|
|
203932
|
+
await cleanup(ctx, tracker);
|
|
203933
|
+
//* Print tracker
|
|
203934
|
+
const total = tracker.save + tracker.get + tracker.delete + tracker.list;
|
|
203935
|
+
console.log('Average time taken:', {
|
|
203936
|
+
save: `${tracker.save}ms (${Math.round((tracker.save / Math.max(total, 1)) * 100)}%)`,
|
|
203937
|
+
get: `${tracker.get}ms (${Math.round((tracker.get / Math.max(total, 1)) * 100)}%)`,
|
|
203938
|
+
delete: `${tracker.delete}ms (${Math.round((tracker.delete / Math.max(total, 1)) * 100)}%)`,
|
|
203939
|
+
list: `${tracker.list}ms (${Math.round((tracker.list / Math.max(total, 1)) * 100)}%)`
|
|
203940
|
+
});
|
|
202807
203941
|
// Exit the server after responding (100ms)
|
|
202808
203942
|
setTimeout(() => process.exit(0), 100);
|
|
202809
203943
|
return { ok: true };
|
|
@@ -202820,7 +203954,7 @@ async function server() {
|
|
|
202820
203954
|
fastify.put('/v8/artifacts/:hash', async (request) => {
|
|
202821
203955
|
const hash = request.params.hash;
|
|
202822
203956
|
request.log.info(`Received artifact for ${hash}`);
|
|
202823
|
-
const provider = getProvider();
|
|
203957
|
+
const provider = getProvider(tracker);
|
|
202824
203958
|
await provider.save(request, hash, String(request.headers['x-artifact-tag'] || ''), request.raw);
|
|
202825
203959
|
request.log.info(`Saved artifact for ${hash}`);
|
|
202826
203960
|
return { ok: true };
|
|
@@ -202829,7 +203963,7 @@ async function server() {
|
|
|
202829
203963
|
fastify.get('/v8/artifacts/:hash', async (request, reply) => {
|
|
202830
203964
|
const hash = request.params.hash;
|
|
202831
203965
|
request.log.info(`Requested artifact for ${hash}`);
|
|
202832
|
-
const provider = getProvider();
|
|
203966
|
+
const provider = getProvider(tracker);
|
|
202833
203967
|
const result = await provider.get(request, hash);
|
|
202834
203968
|
if (result === null) {
|
|
202835
203969
|
request.log.info(`Artifact for ${hash} not found`);
|