apify-client 2.22.1-beta.2 → 2.22.1-beta.4
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/dist/bundle.js +260 -166
- package/dist/bundle.js.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -18210,7 +18210,7 @@ function isStream(value) {
|
|
|
18210
18210
|
function getVersionData() {
|
|
18211
18211
|
if (true) {
|
|
18212
18212
|
return {
|
|
18213
|
-
version: "2.22.1-beta.
|
|
18213
|
+
version: "2.22.1-beta.4"
|
|
18214
18214
|
};
|
|
18215
18215
|
}
|
|
18216
18216
|
// eslint-disable-next-line
|
|
@@ -22093,14 +22093,14 @@ const factory = (env) => {
|
|
|
22093
22093
|
|
|
22094
22094
|
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
22095
22095
|
throw Object.assign(
|
|
22096
|
-
new _core_AxiosError_js__rspack_import_2["default"]('Network Error', _core_AxiosError_js__rspack_import_2["default"].ERR_NETWORK, config, request),
|
|
22096
|
+
new _core_AxiosError_js__rspack_import_2["default"]('Network Error', _core_AxiosError_js__rspack_import_2["default"].ERR_NETWORK, config, request, err && err.response),
|
|
22097
22097
|
{
|
|
22098
22098
|
cause: err.cause || err
|
|
22099
22099
|
}
|
|
22100
22100
|
)
|
|
22101
22101
|
}
|
|
22102
22102
|
|
|
22103
|
-
throw _core_AxiosError_js__rspack_import_2["default"].from(err, err && err.code, config, request);
|
|
22103
|
+
throw _core_AxiosError_js__rspack_import_2["default"].from(err, err && err.code, config, request, err && err.response);
|
|
22104
22104
|
}
|
|
22105
22105
|
}
|
|
22106
22106
|
}
|
|
@@ -22667,13 +22667,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
22667
22667
|
"default": () => (__rspack_default_export)
|
|
22668
22668
|
});
|
|
22669
22669
|
/* import */ var _utils_js__rspack_import_3 = __webpack_require__("./node_modules/axios/lib/utils.js");
|
|
22670
|
-
/* import */ var
|
|
22670
|
+
/* import */ var _helpers_buildURL_js__rspack_import_8 = __webpack_require__("./node_modules/axios/lib/helpers/buildURL.js");
|
|
22671
22671
|
/* import */ var _InterceptorManager_js__rspack_import_1 = __webpack_require__("./node_modules/axios/lib/core/InterceptorManager.js");
|
|
22672
|
-
/* import */ var
|
|
22672
|
+
/* import */ var _dispatchRequest_js__rspack_import_6 = __webpack_require__("./node_modules/axios/lib/core/dispatchRequest.js");
|
|
22673
22673
|
/* import */ var _mergeConfig_js__rspack_import_2 = __webpack_require__("./node_modules/axios/lib/core/mergeConfig.js");
|
|
22674
|
-
/* import */ var
|
|
22674
|
+
/* import */ var _buildFullPath_js__rspack_import_7 = __webpack_require__("./node_modules/axios/lib/core/buildFullPath.js");
|
|
22675
22675
|
/* import */ var _helpers_validator_js__rspack_import_0 = __webpack_require__("./node_modules/axios/lib/helpers/validator.js");
|
|
22676
22676
|
/* import */ var _AxiosHeaders_js__rspack_import_4 = __webpack_require__("./node_modules/axios/lib/core/AxiosHeaders.js");
|
|
22677
|
+
/* import */ var _defaults_transitional_js__rspack_import_5 = __webpack_require__("./node_modules/axios/lib/defaults/transitional.js");
|
|
22678
|
+
|
|
22677
22679
|
|
|
22678
22680
|
|
|
22679
22681
|
|
|
@@ -22756,7 +22758,8 @@ class Axios {
|
|
|
22756
22758
|
_helpers_validator_js__rspack_import_0["default"].assertOptions(transitional, {
|
|
22757
22759
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
22758
22760
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
22759
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
22761
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
22762
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
22760
22763
|
}, false);
|
|
22761
22764
|
}
|
|
22762
22765
|
|
|
@@ -22815,7 +22818,14 @@ class Axios {
|
|
|
22815
22818
|
|
|
22816
22819
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
22817
22820
|
|
|
22818
|
-
|
|
22821
|
+
const transitional = config.transitional || _defaults_transitional_js__rspack_import_5["default"];
|
|
22822
|
+
const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
|
|
22823
|
+
|
|
22824
|
+
if (legacyInterceptorReqResOrdering) {
|
|
22825
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
22826
|
+
} else {
|
|
22827
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
22828
|
+
}
|
|
22819
22829
|
});
|
|
22820
22830
|
|
|
22821
22831
|
const responseInterceptorChain = [];
|
|
@@ -22828,7 +22838,7 @@ class Axios {
|
|
|
22828
22838
|
let len;
|
|
22829
22839
|
|
|
22830
22840
|
if (!synchronousRequestInterceptors) {
|
|
22831
|
-
const chain = [
|
|
22841
|
+
const chain = [_dispatchRequest_js__rspack_import_6["default"].bind(this), undefined];
|
|
22832
22842
|
chain.unshift(...requestInterceptorChain);
|
|
22833
22843
|
chain.push(...responseInterceptorChain);
|
|
22834
22844
|
len = chain.length;
|
|
@@ -22858,7 +22868,7 @@ class Axios {
|
|
|
22858
22868
|
}
|
|
22859
22869
|
|
|
22860
22870
|
try {
|
|
22861
|
-
promise =
|
|
22871
|
+
promise = _dispatchRequest_js__rspack_import_6["default"].call(this, newConfig);
|
|
22862
22872
|
} catch (error) {
|
|
22863
22873
|
return Promise.reject(error);
|
|
22864
22874
|
}
|
|
@@ -22875,8 +22885,8 @@ class Axios {
|
|
|
22875
22885
|
|
|
22876
22886
|
getUri(config) {
|
|
22877
22887
|
config = (0,_mergeConfig_js__rspack_import_2["default"])(this.defaults, config);
|
|
22878
|
-
const fullPath = (0,
|
|
22879
|
-
return (0,
|
|
22888
|
+
const fullPath = (0,_buildFullPath_js__rspack_import_7["default"])(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
22889
|
+
return (0,_helpers_buildURL_js__rspack_import_8["default"])(fullPath, config.params, config.paramsSerializer);
|
|
22880
22890
|
}
|
|
22881
22891
|
}
|
|
22882
22892
|
|
|
@@ -23549,7 +23559,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
23549
23559
|
|
|
23550
23560
|
|
|
23551
23561
|
|
|
23552
|
-
const headersToObject = (thing) =>
|
|
23562
|
+
const headersToObject = (thing) =>
|
|
23563
|
+
thing instanceof _AxiosHeaders_js__rspack_import_0["default"] ? { ...thing } : thing;
|
|
23553
23564
|
|
|
23554
23565
|
/**
|
|
23555
23566
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -23638,14 +23649,27 @@ function mergeConfig(config1, config2) {
|
|
|
23638
23649
|
socketPath: defaultToConfig2,
|
|
23639
23650
|
responseEncoding: defaultToConfig2,
|
|
23640
23651
|
validateStatus: mergeDirectKeys,
|
|
23641
|
-
headers: (a, b, prop) =>
|
|
23652
|
+
headers: (a, b, prop) =>
|
|
23653
|
+
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
23642
23654
|
};
|
|
23643
23655
|
|
|
23644
|
-
_utils_js__rspack_import_1["default"].forEach(
|
|
23645
|
-
|
|
23646
|
-
|
|
23647
|
-
|
|
23648
|
-
|
|
23656
|
+
_utils_js__rspack_import_1["default"].forEach(
|
|
23657
|
+
Object.keys({ ...config1, ...config2 }),
|
|
23658
|
+
function computeConfigValue(prop) {
|
|
23659
|
+
if (
|
|
23660
|
+
prop === "__proto__" ||
|
|
23661
|
+
prop === "constructor" ||
|
|
23662
|
+
prop === "prototype"
|
|
23663
|
+
)
|
|
23664
|
+
return;
|
|
23665
|
+
const merge = _utils_js__rspack_import_1["default"].hasOwnProp(mergeMap, prop)
|
|
23666
|
+
? mergeMap[prop]
|
|
23667
|
+
: mergeDeepProperties;
|
|
23668
|
+
const configValue = merge(config1[prop], config2[prop], prop);
|
|
23669
|
+
(_utils_js__rspack_import_1["default"].isUndefined(configValue) && merge !== mergeDirectKeys) ||
|
|
23670
|
+
(config[prop] = configValue);
|
|
23671
|
+
},
|
|
23672
|
+
);
|
|
23649
23673
|
|
|
23650
23674
|
return config;
|
|
23651
23675
|
}
|
|
@@ -23917,7 +23941,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
23917
23941
|
/* export default */ const __rspack_default_export = ({
|
|
23918
23942
|
silentJSONParsing: true,
|
|
23919
23943
|
forcedJSONParsing: true,
|
|
23920
|
-
clarifyTimeoutError: false
|
|
23944
|
+
clarifyTimeoutError: false,
|
|
23945
|
+
legacyInterceptorReqResOrdering: true
|
|
23921
23946
|
});
|
|
23922
23947
|
|
|
23923
23948
|
|
|
@@ -23928,7 +23953,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23928
23953
|
__webpack_require__.d(__webpack_exports__, {
|
|
23929
23954
|
VERSION: () => (VERSION)
|
|
23930
23955
|
});
|
|
23931
|
-
const VERSION = "1.13.
|
|
23956
|
+
const VERSION = "1.13.5";
|
|
23932
23957
|
|
|
23933
23958
|
},
|
|
23934
23959
|
"./node_modules/axios/lib/helpers/AxiosURLSearchParams.js"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
@@ -24455,10 +24480,15 @@ function isAbsoluteURL(url) {
|
|
|
24455
24480
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
24456
24481
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
24457
24482
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
24483
|
+
if (typeof url !== 'string') {
|
|
24484
|
+
return false;
|
|
24485
|
+
}
|
|
24486
|
+
|
|
24458
24487
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
24459
24488
|
}
|
|
24460
24489
|
|
|
24461
24490
|
|
|
24491
|
+
|
|
24462
24492
|
},
|
|
24463
24493
|
"./node_modules/axios/lib/helpers/isAxiosError.js"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
24464
24494
|
"use strict";
|
|
@@ -25517,30 +25547,30 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
25517
25547
|
|
|
25518
25548
|
// utils is a library of generic helper functions non-specific to axios
|
|
25519
25549
|
|
|
25520
|
-
const {toString} = Object.prototype;
|
|
25521
|
-
const {getPrototypeOf} = Object;
|
|
25522
|
-
const {iterator, toStringTag} = Symbol;
|
|
25550
|
+
const { toString } = Object.prototype;
|
|
25551
|
+
const { getPrototypeOf } = Object;
|
|
25552
|
+
const { iterator, toStringTag } = Symbol;
|
|
25523
25553
|
|
|
25524
|
-
const kindOf = (cache => thing => {
|
|
25525
|
-
|
|
25526
|
-
|
|
25554
|
+
const kindOf = ((cache) => (thing) => {
|
|
25555
|
+
const str = toString.call(thing);
|
|
25556
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
25527
25557
|
})(Object.create(null));
|
|
25528
25558
|
|
|
25529
25559
|
const kindOfTest = (type) => {
|
|
25530
25560
|
type = type.toLowerCase();
|
|
25531
|
-
return (thing) => kindOf(thing) === type
|
|
25532
|
-
}
|
|
25561
|
+
return (thing) => kindOf(thing) === type;
|
|
25562
|
+
};
|
|
25533
25563
|
|
|
25534
|
-
const typeOfTest = type => thing => typeof thing === type;
|
|
25564
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
25535
25565
|
|
|
25536
25566
|
/**
|
|
25537
|
-
* Determine if a value is
|
|
25567
|
+
* Determine if a value is a non-null object
|
|
25538
25568
|
*
|
|
25539
25569
|
* @param {Object} val The value to test
|
|
25540
25570
|
*
|
|
25541
25571
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
25542
25572
|
*/
|
|
25543
|
-
const {isArray} = Array;
|
|
25573
|
+
const { isArray } = Array;
|
|
25544
25574
|
|
|
25545
25575
|
/**
|
|
25546
25576
|
* Determine if a value is undefined
|
|
@@ -25549,7 +25579,7 @@ const {isArray} = Array;
|
|
|
25549
25579
|
*
|
|
25550
25580
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
25551
25581
|
*/
|
|
25552
|
-
const isUndefined = typeOfTest(
|
|
25582
|
+
const isUndefined = typeOfTest("undefined");
|
|
25553
25583
|
|
|
25554
25584
|
/**
|
|
25555
25585
|
* Determine if a value is a Buffer
|
|
@@ -25559,8 +25589,14 @@ const isUndefined = typeOfTest('undefined');
|
|
|
25559
25589
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
25560
25590
|
*/
|
|
25561
25591
|
function isBuffer(val) {
|
|
25562
|
-
return
|
|
25563
|
-
|
|
25592
|
+
return (
|
|
25593
|
+
val !== null &&
|
|
25594
|
+
!isUndefined(val) &&
|
|
25595
|
+
val.constructor !== null &&
|
|
25596
|
+
!isUndefined(val.constructor) &&
|
|
25597
|
+
isFunction(val.constructor.isBuffer) &&
|
|
25598
|
+
val.constructor.isBuffer(val)
|
|
25599
|
+
);
|
|
25564
25600
|
}
|
|
25565
25601
|
|
|
25566
25602
|
/**
|
|
@@ -25570,8 +25606,7 @@ function isBuffer(val) {
|
|
|
25570
25606
|
*
|
|
25571
25607
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
25572
25608
|
*/
|
|
25573
|
-
const isArrayBuffer = kindOfTest(
|
|
25574
|
-
|
|
25609
|
+
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
25575
25610
|
|
|
25576
25611
|
/**
|
|
25577
25612
|
* Determine if a value is a view on an ArrayBuffer
|
|
@@ -25582,10 +25617,10 @@ const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
|
25582
25617
|
*/
|
|
25583
25618
|
function isArrayBufferView(val) {
|
|
25584
25619
|
let result;
|
|
25585
|
-
if (
|
|
25620
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
25586
25621
|
result = ArrayBuffer.isView(val);
|
|
25587
25622
|
} else {
|
|
25588
|
-
result =
|
|
25623
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
25589
25624
|
}
|
|
25590
25625
|
return result;
|
|
25591
25626
|
}
|
|
@@ -25597,7 +25632,7 @@ function isArrayBufferView(val) {
|
|
|
25597
25632
|
*
|
|
25598
25633
|
* @returns {boolean} True if value is a String, otherwise false
|
|
25599
25634
|
*/
|
|
25600
|
-
const isString = typeOfTest(
|
|
25635
|
+
const isString = typeOfTest("string");
|
|
25601
25636
|
|
|
25602
25637
|
/**
|
|
25603
25638
|
* Determine if a value is a Function
|
|
@@ -25605,7 +25640,7 @@ const isString = typeOfTest('string');
|
|
|
25605
25640
|
* @param {*} val The value to test
|
|
25606
25641
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
25607
25642
|
*/
|
|
25608
|
-
const isFunction = typeOfTest(
|
|
25643
|
+
const isFunction = typeOfTest("function");
|
|
25609
25644
|
|
|
25610
25645
|
/**
|
|
25611
25646
|
* Determine if a value is a Number
|
|
@@ -25614,7 +25649,7 @@ const isFunction = typeOfTest('function');
|
|
|
25614
25649
|
*
|
|
25615
25650
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
25616
25651
|
*/
|
|
25617
|
-
const isNumber = typeOfTest(
|
|
25652
|
+
const isNumber = typeOfTest("number");
|
|
25618
25653
|
|
|
25619
25654
|
/**
|
|
25620
25655
|
* Determine if a value is an Object
|
|
@@ -25623,7 +25658,7 @@ const isNumber = typeOfTest('number');
|
|
|
25623
25658
|
*
|
|
25624
25659
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
25625
25660
|
*/
|
|
25626
|
-
const isObject = (thing) => thing !== null && typeof thing ===
|
|
25661
|
+
const isObject = (thing) => thing !== null && typeof thing === "object";
|
|
25627
25662
|
|
|
25628
25663
|
/**
|
|
25629
25664
|
* Determine if a value is a Boolean
|
|
@@ -25631,7 +25666,7 @@ const isObject = (thing) => thing !== null && typeof thing === 'object';
|
|
|
25631
25666
|
* @param {*} thing The value to test
|
|
25632
25667
|
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
25633
25668
|
*/
|
|
25634
|
-
const isBoolean = thing => thing === true || thing === false;
|
|
25669
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
25635
25670
|
|
|
25636
25671
|
/**
|
|
25637
25672
|
* Determine if a value is a plain Object
|
|
@@ -25641,13 +25676,19 @@ const isBoolean = thing => thing === true || thing === false;
|
|
|
25641
25676
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
25642
25677
|
*/
|
|
25643
25678
|
const isPlainObject = (val) => {
|
|
25644
|
-
if (kindOf(val) !==
|
|
25679
|
+
if (kindOf(val) !== "object") {
|
|
25645
25680
|
return false;
|
|
25646
25681
|
}
|
|
25647
25682
|
|
|
25648
25683
|
const prototype = getPrototypeOf(val);
|
|
25649
|
-
return (
|
|
25650
|
-
|
|
25684
|
+
return (
|
|
25685
|
+
(prototype === null ||
|
|
25686
|
+
prototype === Object.prototype ||
|
|
25687
|
+
Object.getPrototypeOf(prototype) === null) &&
|
|
25688
|
+
!(toStringTag in val) &&
|
|
25689
|
+
!(iterator in val)
|
|
25690
|
+
);
|
|
25691
|
+
};
|
|
25651
25692
|
|
|
25652
25693
|
/**
|
|
25653
25694
|
* Determine if a value is an empty object (safely handles Buffers)
|
|
@@ -25663,12 +25704,15 @@ const isEmptyObject = (val) => {
|
|
|
25663
25704
|
}
|
|
25664
25705
|
|
|
25665
25706
|
try {
|
|
25666
|
-
return
|
|
25707
|
+
return (
|
|
25708
|
+
Object.keys(val).length === 0 &&
|
|
25709
|
+
Object.getPrototypeOf(val) === Object.prototype
|
|
25710
|
+
);
|
|
25667
25711
|
} catch (e) {
|
|
25668
25712
|
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
25669
25713
|
return false;
|
|
25670
25714
|
}
|
|
25671
|
-
}
|
|
25715
|
+
};
|
|
25672
25716
|
|
|
25673
25717
|
/**
|
|
25674
25718
|
* Determine if a value is a Date
|
|
@@ -25677,7 +25721,7 @@ const isEmptyObject = (val) => {
|
|
|
25677
25721
|
*
|
|
25678
25722
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
25679
25723
|
*/
|
|
25680
|
-
const isDate = kindOfTest(
|
|
25724
|
+
const isDate = kindOfTest("Date");
|
|
25681
25725
|
|
|
25682
25726
|
/**
|
|
25683
25727
|
* Determine if a value is a File
|
|
@@ -25686,7 +25730,7 @@ const isDate = kindOfTest('Date');
|
|
|
25686
25730
|
*
|
|
25687
25731
|
* @returns {boolean} True if value is a File, otherwise false
|
|
25688
25732
|
*/
|
|
25689
|
-
const isFile = kindOfTest(
|
|
25733
|
+
const isFile = kindOfTest("File");
|
|
25690
25734
|
|
|
25691
25735
|
/**
|
|
25692
25736
|
* Determine if a value is a Blob
|
|
@@ -25695,7 +25739,7 @@ const isFile = kindOfTest('File');
|
|
|
25695
25739
|
*
|
|
25696
25740
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
25697
25741
|
*/
|
|
25698
|
-
const isBlob = kindOfTest(
|
|
25742
|
+
const isBlob = kindOfTest("Blob");
|
|
25699
25743
|
|
|
25700
25744
|
/**
|
|
25701
25745
|
* Determine if a value is a FileList
|
|
@@ -25704,7 +25748,7 @@ const isBlob = kindOfTest('Blob');
|
|
|
25704
25748
|
*
|
|
25705
25749
|
* @returns {boolean} True if value is a File, otherwise false
|
|
25706
25750
|
*/
|
|
25707
|
-
const isFileList = kindOfTest(
|
|
25751
|
+
const isFileList = kindOfTest("FileList");
|
|
25708
25752
|
|
|
25709
25753
|
/**
|
|
25710
25754
|
* Determine if a value is a Stream
|
|
@@ -25724,16 +25768,17 @@ const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
|
25724
25768
|
*/
|
|
25725
25769
|
const isFormData = (thing) => {
|
|
25726
25770
|
let kind;
|
|
25727
|
-
return
|
|
25728
|
-
|
|
25729
|
-
|
|
25730
|
-
|
|
25731
|
-
|
|
25732
|
-
|
|
25733
|
-
|
|
25734
|
-
|
|
25735
|
-
|
|
25736
|
-
|
|
25771
|
+
return (
|
|
25772
|
+
thing &&
|
|
25773
|
+
((typeof FormData === "function" && thing instanceof FormData) ||
|
|
25774
|
+
(isFunction(thing.append) &&
|
|
25775
|
+
((kind = kindOf(thing)) === "formdata" ||
|
|
25776
|
+
// detect form-data instance
|
|
25777
|
+
(kind === "object" &&
|
|
25778
|
+
isFunction(thing.toString) &&
|
|
25779
|
+
thing.toString() === "[object FormData]"))))
|
|
25780
|
+
);
|
|
25781
|
+
};
|
|
25737
25782
|
|
|
25738
25783
|
/**
|
|
25739
25784
|
* Determine if a value is a URLSearchParams object
|
|
@@ -25742,9 +25787,14 @@ const isFormData = (thing) => {
|
|
|
25742
25787
|
*
|
|
25743
25788
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
25744
25789
|
*/
|
|
25745
|
-
const isURLSearchParams = kindOfTest(
|
|
25790
|
+
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
25746
25791
|
|
|
25747
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
25792
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
25793
|
+
"ReadableStream",
|
|
25794
|
+
"Request",
|
|
25795
|
+
"Response",
|
|
25796
|
+
"Headers",
|
|
25797
|
+
].map(kindOfTest);
|
|
25748
25798
|
|
|
25749
25799
|
/**
|
|
25750
25800
|
* Trim excess whitespace off the beginning and end of a string
|
|
@@ -25753,8 +25803,8 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream',
|
|
|
25753
25803
|
*
|
|
25754
25804
|
* @returns {String} The String freed of excess whitespace
|
|
25755
25805
|
*/
|
|
25756
|
-
const trim = (str) =>
|
|
25757
|
-
str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
25806
|
+
const trim = (str) =>
|
|
25807
|
+
str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
25758
25808
|
|
|
25759
25809
|
/**
|
|
25760
25810
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
@@ -25772,9 +25822,9 @@ const trim = (str) => str.trim ?
|
|
|
25772
25822
|
* @param {Boolean} [options.allOwnKeys = false]
|
|
25773
25823
|
* @returns {any}
|
|
25774
25824
|
*/
|
|
25775
|
-
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
25825
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
25776
25826
|
// Don't bother if no value provided
|
|
25777
|
-
if (obj === null || typeof obj ===
|
|
25827
|
+
if (obj === null || typeof obj === "undefined") {
|
|
25778
25828
|
return;
|
|
25779
25829
|
}
|
|
25780
25830
|
|
|
@@ -25782,7 +25832,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
25782
25832
|
let l;
|
|
25783
25833
|
|
|
25784
25834
|
// Force an array if not already something iterable
|
|
25785
|
-
if (typeof obj !==
|
|
25835
|
+
if (typeof obj !== "object") {
|
|
25786
25836
|
/*eslint no-param-reassign:0*/
|
|
25787
25837
|
obj = [obj];
|
|
25788
25838
|
}
|
|
@@ -25799,7 +25849,9 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
25799
25849
|
}
|
|
25800
25850
|
|
|
25801
25851
|
// Iterate over object keys
|
|
25802
|
-
const keys = allOwnKeys
|
|
25852
|
+
const keys = allOwnKeys
|
|
25853
|
+
? Object.getOwnPropertyNames(obj)
|
|
25854
|
+
: Object.keys(obj);
|
|
25803
25855
|
const len = keys.length;
|
|
25804
25856
|
let key;
|
|
25805
25857
|
|
|
@@ -25811,7 +25863,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
25811
25863
|
}
|
|
25812
25864
|
|
|
25813
25865
|
function findKey(obj, key) {
|
|
25814
|
-
if (isBuffer(obj)){
|
|
25866
|
+
if (isBuffer(obj)) {
|
|
25815
25867
|
return null;
|
|
25816
25868
|
}
|
|
25817
25869
|
|
|
@@ -25831,10 +25883,15 @@ function findKey(obj, key) {
|
|
|
25831
25883
|
const _global = (() => {
|
|
25832
25884
|
/*eslint no-undef:0*/
|
|
25833
25885
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
25834
|
-
return typeof self !== "undefined"
|
|
25886
|
+
return typeof self !== "undefined"
|
|
25887
|
+
? self
|
|
25888
|
+
: typeof window !== "undefined"
|
|
25889
|
+
? window
|
|
25890
|
+
: global;
|
|
25835
25891
|
})();
|
|
25836
25892
|
|
|
25837
|
-
const isContextDefined = (context) =>
|
|
25893
|
+
const isContextDefined = (context) =>
|
|
25894
|
+
!isUndefined(context) && context !== _global;
|
|
25838
25895
|
|
|
25839
25896
|
/**
|
|
25840
25897
|
* Accepts varargs expecting each argument to be an object, then
|
|
@@ -25855,10 +25912,15 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
25855
25912
|
* @returns {Object} Result of all merge properties
|
|
25856
25913
|
*/
|
|
25857
25914
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
25858
|
-
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
25915
|
+
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
25859
25916
|
const result = {};
|
|
25860
25917
|
const assignValue = (val, key) => {
|
|
25861
|
-
|
|
25918
|
+
// Skip dangerous property names to prevent prototype pollution
|
|
25919
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
25920
|
+
return;
|
|
25921
|
+
}
|
|
25922
|
+
|
|
25923
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
25862
25924
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
25863
25925
|
result[targetKey] = merge(result[targetKey], val);
|
|
25864
25926
|
} else if (isPlainObject(val)) {
|
|
@@ -25868,7 +25930,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
25868
25930
|
} else if (!skipUndefined || !isUndefined(val)) {
|
|
25869
25931
|
result[targetKey] = val;
|
|
25870
25932
|
}
|
|
25871
|
-
}
|
|
25933
|
+
};
|
|
25872
25934
|
|
|
25873
25935
|
for (let i = 0, l = arguments.length; i < l; i++) {
|
|
25874
25936
|
arguments[i] && forEach(arguments[i], assignValue);
|
|
@@ -25887,26 +25949,30 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
25887
25949
|
* @param {Boolean} [options.allOwnKeys]
|
|
25888
25950
|
* @returns {Object} The resulting value of object a
|
|
25889
25951
|
*/
|
|
25890
|
-
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
25891
|
-
forEach(
|
|
25892
|
-
|
|
25893
|
-
|
|
25894
|
-
|
|
25895
|
-
|
|
25896
|
-
|
|
25897
|
-
|
|
25898
|
-
|
|
25899
|
-
|
|
25900
|
-
|
|
25901
|
-
|
|
25902
|
-
|
|
25903
|
-
|
|
25904
|
-
|
|
25905
|
-
|
|
25906
|
-
|
|
25907
|
-
|
|
25952
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
25953
|
+
forEach(
|
|
25954
|
+
b,
|
|
25955
|
+
(val, key) => {
|
|
25956
|
+
if (thisArg && isFunction(val)) {
|
|
25957
|
+
Object.defineProperty(a, key, {
|
|
25958
|
+
value: (0,_helpers_bind_js__rspack_import_0["default"])(val, thisArg),
|
|
25959
|
+
writable: true,
|
|
25960
|
+
enumerable: true,
|
|
25961
|
+
configurable: true,
|
|
25962
|
+
});
|
|
25963
|
+
} else {
|
|
25964
|
+
Object.defineProperty(a, key, {
|
|
25965
|
+
value: val,
|
|
25966
|
+
writable: true,
|
|
25967
|
+
enumerable: true,
|
|
25968
|
+
configurable: true,
|
|
25969
|
+
});
|
|
25970
|
+
}
|
|
25971
|
+
},
|
|
25972
|
+
{ allOwnKeys },
|
|
25973
|
+
);
|
|
25908
25974
|
return a;
|
|
25909
|
-
}
|
|
25975
|
+
};
|
|
25910
25976
|
|
|
25911
25977
|
/**
|
|
25912
25978
|
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
|
@@ -25916,11 +25982,11 @@ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
|
25916
25982
|
* @returns {string} content value without BOM
|
|
25917
25983
|
*/
|
|
25918
25984
|
const stripBOM = (content) => {
|
|
25919
|
-
if (content.charCodeAt(0) ===
|
|
25985
|
+
if (content.charCodeAt(0) === 0xfeff) {
|
|
25920
25986
|
content = content.slice(1);
|
|
25921
25987
|
}
|
|
25922
25988
|
return content;
|
|
25923
|
-
}
|
|
25989
|
+
};
|
|
25924
25990
|
|
|
25925
25991
|
/**
|
|
25926
25992
|
* Inherit the prototype methods from one constructor into another
|
|
@@ -25932,18 +25998,21 @@ const stripBOM = (content) => {
|
|
|
25932
25998
|
* @returns {void}
|
|
25933
25999
|
*/
|
|
25934
26000
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
25935
|
-
constructor.prototype = Object.create(
|
|
25936
|
-
|
|
26001
|
+
constructor.prototype = Object.create(
|
|
26002
|
+
superConstructor.prototype,
|
|
26003
|
+
descriptors,
|
|
26004
|
+
);
|
|
26005
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
25937
26006
|
value: constructor,
|
|
25938
26007
|
writable: true,
|
|
25939
26008
|
enumerable: false,
|
|
25940
|
-
configurable: true
|
|
26009
|
+
configurable: true,
|
|
25941
26010
|
});
|
|
25942
|
-
Object.defineProperty(constructor,
|
|
25943
|
-
value: superConstructor.prototype
|
|
26011
|
+
Object.defineProperty(constructor, "super", {
|
|
26012
|
+
value: superConstructor.prototype,
|
|
25944
26013
|
});
|
|
25945
26014
|
props && Object.assign(constructor.prototype, props);
|
|
25946
|
-
}
|
|
26015
|
+
};
|
|
25947
26016
|
|
|
25948
26017
|
/**
|
|
25949
26018
|
* Resolve object with deep prototype chain to a flat object
|
|
@@ -25969,16 +26038,23 @@ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
|
|
|
25969
26038
|
i = props.length;
|
|
25970
26039
|
while (i-- > 0) {
|
|
25971
26040
|
prop = props[i];
|
|
25972
|
-
if (
|
|
26041
|
+
if (
|
|
26042
|
+
(!propFilter || propFilter(prop, sourceObj, destObj)) &&
|
|
26043
|
+
!merged[prop]
|
|
26044
|
+
) {
|
|
25973
26045
|
destObj[prop] = sourceObj[prop];
|
|
25974
26046
|
merged[prop] = true;
|
|
25975
26047
|
}
|
|
25976
26048
|
}
|
|
25977
26049
|
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
|
25978
|
-
} while (
|
|
26050
|
+
} while (
|
|
26051
|
+
sourceObj &&
|
|
26052
|
+
(!filter || filter(sourceObj, destObj)) &&
|
|
26053
|
+
sourceObj !== Object.prototype
|
|
26054
|
+
);
|
|
25979
26055
|
|
|
25980
26056
|
return destObj;
|
|
25981
|
-
}
|
|
26057
|
+
};
|
|
25982
26058
|
|
|
25983
26059
|
/**
|
|
25984
26060
|
* Determines whether a string ends with the characters of a specified string
|
|
@@ -25997,8 +26073,7 @@ const endsWith = (str, searchString, position) => {
|
|
|
25997
26073
|
position -= searchString.length;
|
|
25998
26074
|
const lastIndex = str.indexOf(searchString, position);
|
|
25999
26075
|
return lastIndex !== -1 && lastIndex === position;
|
|
26000
|
-
}
|
|
26001
|
-
|
|
26076
|
+
};
|
|
26002
26077
|
|
|
26003
26078
|
/**
|
|
26004
26079
|
* Returns new array from array like object or null if failed
|
|
@@ -26017,7 +26092,7 @@ const toArray = (thing) => {
|
|
|
26017
26092
|
arr[i] = thing[i];
|
|
26018
26093
|
}
|
|
26019
26094
|
return arr;
|
|
26020
|
-
}
|
|
26095
|
+
};
|
|
26021
26096
|
|
|
26022
26097
|
/**
|
|
26023
26098
|
* Checking if the Uint8Array exists and if it does, it returns a function that checks if the
|
|
@@ -26028,12 +26103,12 @@ const toArray = (thing) => {
|
|
|
26028
26103
|
* @returns {Array}
|
|
26029
26104
|
*/
|
|
26030
26105
|
// eslint-disable-next-line func-names
|
|
26031
|
-
const isTypedArray = (TypedArray => {
|
|
26106
|
+
const isTypedArray = ((TypedArray) => {
|
|
26032
26107
|
// eslint-disable-next-line func-names
|
|
26033
|
-
return thing => {
|
|
26108
|
+
return (thing) => {
|
|
26034
26109
|
return TypedArray && thing instanceof TypedArray;
|
|
26035
26110
|
};
|
|
26036
|
-
})(typeof Uint8Array !==
|
|
26111
|
+
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
26037
26112
|
|
|
26038
26113
|
/**
|
|
26039
26114
|
* For each entry in the object, call the function with the key and value.
|
|
@@ -26054,7 +26129,7 @@ const forEachEntry = (obj, fn) => {
|
|
|
26054
26129
|
const pair = result.value;
|
|
26055
26130
|
fn.call(obj, pair[0], pair[1]);
|
|
26056
26131
|
}
|
|
26057
|
-
}
|
|
26132
|
+
};
|
|
26058
26133
|
|
|
26059
26134
|
/**
|
|
26060
26135
|
* It takes a regular expression and a string, and returns an array of all the matches
|
|
@@ -26073,21 +26148,25 @@ const matchAll = (regExp, str) => {
|
|
|
26073
26148
|
}
|
|
26074
26149
|
|
|
26075
26150
|
return arr;
|
|
26076
|
-
}
|
|
26151
|
+
};
|
|
26077
26152
|
|
|
26078
26153
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
26079
|
-
const isHTMLForm = kindOfTest(
|
|
26154
|
+
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
26080
26155
|
|
|
26081
|
-
const toCamelCase = str => {
|
|
26082
|
-
return str
|
|
26083
|
-
|
|
26156
|
+
const toCamelCase = (str) => {
|
|
26157
|
+
return str
|
|
26158
|
+
.toLowerCase()
|
|
26159
|
+
.replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
26084
26160
|
return p1.toUpperCase() + p2;
|
|
26085
|
-
}
|
|
26086
|
-
);
|
|
26161
|
+
});
|
|
26087
26162
|
};
|
|
26088
26163
|
|
|
26089
26164
|
/* Creating a function that will check if an object has a property. */
|
|
26090
|
-
const hasOwnProperty = (
|
|
26165
|
+
const hasOwnProperty = (
|
|
26166
|
+
({ hasOwnProperty }) =>
|
|
26167
|
+
(obj, prop) =>
|
|
26168
|
+
hasOwnProperty.call(obj, prop)
|
|
26169
|
+
)(Object.prototype);
|
|
26091
26170
|
|
|
26092
26171
|
/**
|
|
26093
26172
|
* Determine if a value is a RegExp object
|
|
@@ -26096,7 +26175,7 @@ const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call
|
|
|
26096
26175
|
*
|
|
26097
26176
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
26098
26177
|
*/
|
|
26099
|
-
const isRegExp = kindOfTest(
|
|
26178
|
+
const isRegExp = kindOfTest("RegExp");
|
|
26100
26179
|
|
|
26101
26180
|
const reduceDescriptors = (obj, reducer) => {
|
|
26102
26181
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -26110,7 +26189,7 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
26110
26189
|
});
|
|
26111
26190
|
|
|
26112
26191
|
Object.defineProperties(obj, reducedDescriptors);
|
|
26113
|
-
}
|
|
26192
|
+
};
|
|
26114
26193
|
|
|
26115
26194
|
/**
|
|
26116
26195
|
* Makes all methods read-only
|
|
@@ -26120,7 +26199,10 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
26120
26199
|
const freezeMethods = (obj) => {
|
|
26121
26200
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
26122
26201
|
// skip restricted props in strict mode
|
|
26123
|
-
if (
|
|
26202
|
+
if (
|
|
26203
|
+
isFunction(obj) &&
|
|
26204
|
+
["arguments", "caller", "callee"].indexOf(name) !== -1
|
|
26205
|
+
) {
|
|
26124
26206
|
return false;
|
|
26125
26207
|
}
|
|
26126
26208
|
|
|
@@ -26130,40 +26212,42 @@ const freezeMethods = (obj) => {
|
|
|
26130
26212
|
|
|
26131
26213
|
descriptor.enumerable = false;
|
|
26132
26214
|
|
|
26133
|
-
if (
|
|
26215
|
+
if ("writable" in descriptor) {
|
|
26134
26216
|
descriptor.writable = false;
|
|
26135
26217
|
return;
|
|
26136
26218
|
}
|
|
26137
26219
|
|
|
26138
26220
|
if (!descriptor.set) {
|
|
26139
26221
|
descriptor.set = () => {
|
|
26140
|
-
throw Error(
|
|
26222
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
26141
26223
|
};
|
|
26142
26224
|
}
|
|
26143
26225
|
});
|
|
26144
|
-
}
|
|
26226
|
+
};
|
|
26145
26227
|
|
|
26146
26228
|
const toObjectSet = (arrayOrString, delimiter) => {
|
|
26147
26229
|
const obj = {};
|
|
26148
26230
|
|
|
26149
26231
|
const define = (arr) => {
|
|
26150
|
-
arr.forEach(value => {
|
|
26232
|
+
arr.forEach((value) => {
|
|
26151
26233
|
obj[value] = true;
|
|
26152
26234
|
});
|
|
26153
|
-
}
|
|
26235
|
+
};
|
|
26154
26236
|
|
|
26155
|
-
isArray(arrayOrString)
|
|
26237
|
+
isArray(arrayOrString)
|
|
26238
|
+
? define(arrayOrString)
|
|
26239
|
+
: define(String(arrayOrString).split(delimiter));
|
|
26156
26240
|
|
|
26157
26241
|
return obj;
|
|
26158
|
-
}
|
|
26242
|
+
};
|
|
26159
26243
|
|
|
26160
|
-
const noop = () => {}
|
|
26244
|
+
const noop = () => {};
|
|
26161
26245
|
|
|
26162
26246
|
const toFiniteNumber = (value, defaultValue) => {
|
|
26163
|
-
return value != null && Number.isFinite(value = +value)
|
|
26164
|
-
|
|
26165
|
-
|
|
26166
|
-
|
|
26247
|
+
return value != null && Number.isFinite((value = +value))
|
|
26248
|
+
? value
|
|
26249
|
+
: defaultValue;
|
|
26250
|
+
};
|
|
26167
26251
|
|
|
26168
26252
|
/**
|
|
26169
26253
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
@@ -26173,14 +26257,18 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
26173
26257
|
* @returns {boolean}
|
|
26174
26258
|
*/
|
|
26175
26259
|
function isSpecCompliantForm(thing) {
|
|
26176
|
-
return !!(
|
|
26260
|
+
return !!(
|
|
26261
|
+
thing &&
|
|
26262
|
+
isFunction(thing.append) &&
|
|
26263
|
+
thing[toStringTag] === "FormData" &&
|
|
26264
|
+
thing[iterator]
|
|
26265
|
+
);
|
|
26177
26266
|
}
|
|
26178
26267
|
|
|
26179
26268
|
const toJSONObject = (obj) => {
|
|
26180
26269
|
const stack = new Array(10);
|
|
26181
26270
|
|
|
26182
26271
|
const visit = (source, i) => {
|
|
26183
|
-
|
|
26184
26272
|
if (isObject(source)) {
|
|
26185
26273
|
if (stack.indexOf(source) >= 0) {
|
|
26186
26274
|
return;
|
|
@@ -26191,7 +26279,7 @@ const toJSONObject = (obj) => {
|
|
|
26191
26279
|
return source;
|
|
26192
26280
|
}
|
|
26193
26281
|
|
|
26194
|
-
if(!(
|
|
26282
|
+
if (!("toJSON" in source)) {
|
|
26195
26283
|
stack[i] = source;
|
|
26196
26284
|
const target = isArray(source) ? [] : {};
|
|
26197
26285
|
|
|
@@ -26207,15 +26295,18 @@ const toJSONObject = (obj) => {
|
|
|
26207
26295
|
}
|
|
26208
26296
|
|
|
26209
26297
|
return source;
|
|
26210
|
-
}
|
|
26298
|
+
};
|
|
26211
26299
|
|
|
26212
26300
|
return visit(obj, 0);
|
|
26213
|
-
}
|
|
26301
|
+
};
|
|
26214
26302
|
|
|
26215
|
-
const isAsyncFn = kindOfTest(
|
|
26303
|
+
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
26216
26304
|
|
|
26217
26305
|
const isThenable = (thing) =>
|
|
26218
|
-
thing &&
|
|
26306
|
+
thing &&
|
|
26307
|
+
(isObject(thing) || isFunction(thing)) &&
|
|
26308
|
+
isFunction(thing.then) &&
|
|
26309
|
+
isFunction(thing.catch);
|
|
26219
26310
|
|
|
26220
26311
|
// original code
|
|
26221
26312
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
@@ -26225,32 +26316,35 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
26225
26316
|
return setImmediate;
|
|
26226
26317
|
}
|
|
26227
26318
|
|
|
26228
|
-
return postMessageSupported
|
|
26229
|
-
|
|
26230
|
-
|
|
26231
|
-
|
|
26232
|
-
|
|
26233
|
-
|
|
26319
|
+
return postMessageSupported
|
|
26320
|
+
? ((token, callbacks) => {
|
|
26321
|
+
_global.addEventListener(
|
|
26322
|
+
"message",
|
|
26323
|
+
({ source, data }) => {
|
|
26324
|
+
if (source === _global && data === token) {
|
|
26325
|
+
callbacks.length && callbacks.shift()();
|
|
26326
|
+
}
|
|
26327
|
+
},
|
|
26328
|
+
false,
|
|
26329
|
+
);
|
|
26234
26330
|
|
|
26235
|
-
|
|
26236
|
-
|
|
26237
|
-
|
|
26238
|
-
|
|
26239
|
-
|
|
26240
|
-
|
|
26241
|
-
|
|
26242
|
-
isFunction(_global.postMessage)
|
|
26243
|
-
);
|
|
26331
|
+
return (cb) => {
|
|
26332
|
+
callbacks.push(cb);
|
|
26333
|
+
_global.postMessage(token, "*");
|
|
26334
|
+
};
|
|
26335
|
+
})(`axios@${Math.random()}`, [])
|
|
26336
|
+
: (cb) => setTimeout(cb);
|
|
26337
|
+
})(typeof setImmediate === "function", isFunction(_global.postMessage));
|
|
26244
26338
|
|
|
26245
|
-
const asap =
|
|
26246
|
-
|
|
26339
|
+
const asap =
|
|
26340
|
+
typeof queueMicrotask !== "undefined"
|
|
26341
|
+
? queueMicrotask.bind(_global)
|
|
26342
|
+
: (typeof process !== "undefined" && process.nextTick) || _setImmediate;
|
|
26247
26343
|
|
|
26248
26344
|
// *********************
|
|
26249
26345
|
|
|
26250
|
-
|
|
26251
26346
|
const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
26252
26347
|
|
|
26253
|
-
|
|
26254
26348
|
/* export default */ const __rspack_default_export = ({
|
|
26255
26349
|
isArray,
|
|
26256
26350
|
isArrayBuffer,
|
|
@@ -26308,14 +26402,14 @@ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
|
26308
26402
|
isThenable,
|
|
26309
26403
|
setImmediate: _setImmediate,
|
|
26310
26404
|
asap,
|
|
26311
|
-
isIterable
|
|
26405
|
+
isIterable,
|
|
26312
26406
|
});
|
|
26313
26407
|
|
|
26314
26408
|
|
|
26315
26409
|
},
|
|
26316
26410
|
"./package.json"(module) {
|
|
26317
26411
|
"use strict";
|
|
26318
|
-
module.exports = JSON.parse('{"name":"apify-client","version":"2.22.1-beta.
|
|
26412
|
+
module.exports = JSON.parse('{"name":"apify-client","version":"2.22.1-beta.4","description":"Apify API client for JavaScript","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","browser":"dist/bundle.js","unpkg":"dist/bundle.js","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.mjs","require":"./dist/index.js","types":"./dist/index.d.ts","browser":"./dist/bundle.js"}},"keywords":["apify","api","apifier","crawler","scraper"],"author":{"name":"Apify","email":"support@apify.com","url":"https://apify.com"},"contributors":["Jan Curn <jan@apify.com>","Marek Trunkát <marek@apify.com>","Ondra Urban <ondra@apify.com>","Jakub Drobník <jakub.drobnik@apify.com>"],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/apify/apify-client-js"},"bugs":{"url":"https://github.com/apify/apify-client-js/issues"},"homepage":"https://docs.apify.com/api/client/js/","files":["dist","!dist/*.tsbuildinfo"],"scripts":{"build":"npm run clean && npm run build:node && npm run build:browser","postbuild":"gen-esm-wrapper dist/index.js dist/index.mjs","prepublishOnly":"(test $CI || (echo \\"Publishing is reserved to CI!\\"; exit 1))","clean":"rimraf dist","test":"npm run build && vitest run","lint":"eslint","lint:fix":"eslint --fix","tsc-check-tests":"tsc --noEmit --project test/tsconfig.json","format":"prettier --write .","format:check":"prettier --check .","build:node":"tsc","build:browser":"rsbuild build"},"dependencies":{"@apify/consts":"^2.50.0","@apify/log":"^2.2.6","@apify/utilities":"^2.23.2","@crawlee/types":"^3.3.0","ansi-colors":"^4.1.1","async-retry":"^1.3.3","axios":"^1.6.7","content-type":"^1.0.5","ow":"^0.28.2","proxy-agent":"^6.5.0","tslib":"^2.5.0","type-fest":"^4.0.0"},"devDependencies":{"@apify/eslint-config":"^1.0.0","@apify/tsconfig":"^0.1.1","@crawlee/puppeteer":"^3.2.2","@rsbuild/core":"^1.3.6","@rsbuild/plugin-node-polyfill":"^1.3.0","@stylistic/eslint-plugin-ts":"^4.2.0","@types/async-retry":"^1.4.5","@types/compression":"^1.8.1","@types/content-type":"^1.1.5","@types/express":"^5.0.0","@types/node":"^24.0.0","body-parser":"^1.20.3","compression":"^1.7.4","eslint":"^9.24.0","eslint-config-prettier":"^10.1.2","express":"^5.0.0","gen-esm-wrapper":"^1.1.2","globals":"^17.0.0","prettier":"^3.5.3","puppeteer":"^24.0.0","rimraf":"^6.0.0","typescript":"^5.8.3","typescript-eslint":"^8.29.1","vitest":"^4.0.16"},"packageManager":"npm@10.9.2"}')
|
|
26319
26413
|
|
|
26320
26414
|
},
|
|
26321
26415
|
|
|
@@ -26438,7 +26532,7 @@ __webpack_require__.hu = (chunkId) => ('' + chunkId + '.' + __webpack_require__.
|
|
|
26438
26532
|
})();
|
|
26439
26533
|
// webpack/runtime/get_full_hash
|
|
26440
26534
|
(() => {
|
|
26441
|
-
__webpack_require__.h = () => ("
|
|
26535
|
+
__webpack_require__.h = () => ("36b89e3988fd1e9f")
|
|
26442
26536
|
})();
|
|
26443
26537
|
// webpack/runtime/get_main_filename/update manifest
|
|
26444
26538
|
(() => {
|