@bitrix24/b24jssdk 1.0.1 → 1.0.3
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/esm/_virtual/_commonjsHelpers.mjs +1 -1
- package/dist/esm/_virtual/protobuf.mjs +1 -1
- package/dist/esm/_virtual/protobuf2.mjs +1 -1
- package/dist/esm/core/abstract-b24.mjs +1 -1
- package/dist/esm/core/abstract-b24.mjs.map +1 -1
- package/dist/esm/core/actions/abstract-action.mjs +1 -1
- package/dist/esm/core/actions/abstract-batch.mjs +1 -1
- package/dist/esm/core/actions/manager.mjs +1 -1
- package/dist/esm/core/actions/v2/batch-by-chunk.mjs +2 -1
- package/dist/esm/core/actions/v2/batch-by-chunk.mjs.map +1 -1
- package/dist/esm/core/actions/v2/batch.mjs +1 -1
- package/dist/esm/core/actions/v2/call-list.mjs +1 -1
- package/dist/esm/core/actions/v2/call-list.mjs.map +1 -1
- package/dist/esm/core/actions/v2/call.mjs +1 -1
- package/dist/esm/core/actions/v2/fetch-list.mjs +1 -1
- package/dist/esm/core/actions/v2/fetch-list.mjs.map +1 -1
- package/dist/esm/core/actions/v2/manager-v2.mjs +1 -1
- package/dist/esm/core/actions/v3/batch-by-chunk.mjs +1 -1
- package/dist/esm/core/actions/v3/batch-by-chunk.mjs.map +1 -1
- package/dist/esm/core/actions/v3/batch.mjs +1 -1
- package/dist/esm/core/actions/v3/call-list.mjs +1 -1
- package/dist/esm/core/actions/v3/call-list.mjs.map +1 -1
- package/dist/esm/core/actions/v3/call.mjs +1 -1
- package/dist/esm/core/actions/v3/fetch-list.mjs +2 -1
- package/dist/esm/core/actions/v3/fetch-list.mjs.map +1 -1
- package/dist/esm/core/actions/v3/manager-v3.mjs +1 -1
- package/dist/esm/core/http/abstract-http.mjs +2 -2
- package/dist/esm/core/http/ajax-error.mjs +1 -1
- package/dist/esm/core/http/ajax-result.mjs +1 -1
- package/dist/esm/core/http/limiters/adaptive-delayer.mjs +1 -1
- package/dist/esm/core/http/limiters/manager.mjs +2 -1
- package/dist/esm/core/http/limiters/manager.mjs.map +1 -1
- package/dist/esm/core/http/limiters/operating-limiter.mjs +1 -1
- package/dist/esm/core/http/limiters/params-factory.mjs +1 -1
- package/dist/esm/core/http/limiters/rate-limiter.mjs +1 -1
- package/dist/esm/core/http/v2.mjs +2 -2
- package/dist/esm/core/http/v3.mjs +2 -2
- package/dist/esm/core/interaction/batch/abstract-interaction-batch.mjs +1 -1
- package/dist/esm/core/interaction/batch/parse-row.mjs +1 -1
- package/dist/esm/core/interaction/batch/processing/interface-strategy.mjs +1 -1
- package/dist/esm/core/interaction/batch/processing/v2/abstract-processing.mjs +1 -1
- package/dist/esm/core/interaction/batch/processing/v2/as-array.mjs +1 -1
- package/dist/esm/core/interaction/batch/processing/v2/as-object.mjs +1 -1
- package/dist/esm/core/interaction/batch/processing/v3/abstract-processing.mjs +1 -1
- package/dist/esm/core/interaction/batch/processing/v3/as-array.mjs +1 -1
- package/dist/esm/core/interaction/batch/processing/v3/as-object.mjs +1 -1
- package/dist/esm/core/interaction/batch/v2.mjs +1 -1
- package/dist/esm/core/interaction/batch/v3.mjs +1 -1
- package/dist/esm/core/language/list.mjs +1 -1
- package/dist/esm/core/request-id-generator.mjs +1 -1
- package/dist/esm/core/result.mjs +1 -1
- package/dist/esm/core/sdk-error.mjs +1 -1
- package/dist/esm/core/tools/abstract-tool.mjs +1 -1
- package/dist/esm/core/tools/healthcheck.mjs +1 -1
- package/dist/esm/core/tools/manager.mjs +1 -1
- package/dist/esm/core/tools/ping.mjs +1 -1
- package/dist/esm/core/version-manager.mjs +1 -1
- package/dist/esm/frame/auth.mjs +1 -1
- package/dist/esm/frame/b24.mjs +1 -1
- package/dist/esm/frame/dialog.mjs +1 -1
- package/dist/esm/frame/frame.mjs +1 -1
- package/dist/esm/frame/message/commands.mjs +1 -1
- package/dist/esm/frame/message/controller.mjs +5 -4
- package/dist/esm/frame/message/controller.mjs.map +1 -1
- package/dist/esm/frame/options.mjs +1 -1
- package/dist/esm/frame/parent.mjs +4 -1
- package/dist/esm/frame/parent.mjs.map +1 -1
- package/dist/esm/frame/placement.mjs +1 -1
- package/dist/esm/frame/slider.mjs +1 -1
- package/dist/esm/helper/abstract-helper.mjs +1 -1
- package/dist/esm/helper/app-manager.mjs +1 -1
- package/dist/esm/helper/currency-manager.mjs +1 -1
- package/dist/esm/helper/helper-manager.mjs +1 -1
- package/dist/esm/helper/license-manager.mjs +1 -1
- package/dist/esm/helper/options-manager.mjs +1 -1
- package/dist/esm/helper/payment-manager.mjs +1 -1
- package/dist/esm/helper/profile-manager.mjs +1 -1
- package/dist/esm/helper/use-b24-helper.mjs +1 -1
- package/dist/esm/hook/auth.mjs +1 -1
- package/dist/esm/hook/b24.mjs +1 -1
- package/dist/esm/index.d.mts +11 -8
- package/dist/esm/index.d.ts +11 -8
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/loader-b24frame.mjs +1 -1
- package/dist/esm/logger/abstract-logger.mjs +1 -1
- package/dist/esm/logger/browser.mjs +1 -1
- package/dist/esm/logger/formatter/abstract-formatter.mjs +1 -1
- package/dist/esm/logger/formatter/json-formatter.mjs +1 -1
- package/dist/esm/logger/formatter/line-formatter.mjs +1 -1
- package/dist/esm/logger/formatter/telegram-formatter.mjs +1 -1
- package/dist/esm/logger/handler/abstract-handler.mjs +1 -1
- package/dist/esm/logger/handler/consola-adapter.mjs +1 -1
- package/dist/esm/logger/handler/console-handler.mjs +1 -1
- package/dist/esm/logger/handler/console-v2-handler.mjs +1 -1
- package/dist/esm/logger/handler/memory-handler.mjs +1 -1
- package/dist/esm/logger/handler/stream-handler.mjs +1 -1
- package/dist/esm/logger/handler/telegram-handler.mjs +1 -1
- package/dist/esm/logger/handler/winston-adapter.mjs +1 -1
- package/dist/esm/logger/logger-factory.mjs +1 -1
- package/dist/esm/logger/logger.mjs +1 -1
- package/dist/esm/logger/null-logger.mjs +1 -1
- package/dist/esm/logger/processor/memory-usage-processor.mjs +1 -1
- package/dist/esm/logger/processor/pid-processor.mjs +1 -1
- package/dist/esm/oauth/auth.mjs +1 -1
- package/dist/esm/oauth/auth.mjs.map +1 -1
- package/dist/esm/oauth/b24.mjs +1 -1
- package/dist/esm/oauth/refresh-token-error.mjs +1 -1
- package/dist/esm/pullClient/abstract-connector.mjs +1 -1
- package/dist/esm/pullClient/channel-manager.mjs +1 -1
- package/dist/esm/pullClient/client.mjs +1 -1
- package/dist/esm/pullClient/client.mjs.map +1 -1
- package/dist/esm/pullClient/errors.mjs +1 -1
- package/dist/esm/pullClient/json-rpc.mjs +1 -1
- package/dist/esm/pullClient/long-polling-connector.mjs +1 -1
- package/dist/esm/pullClient/protobuf/index.mjs +1 -1
- package/dist/esm/pullClient/protobuf/model.mjs +1 -1
- package/dist/esm/pullClient/protobuf/protobuf.mjs +1 -1
- package/dist/esm/pullClient/shared-config.mjs +1 -1
- package/dist/esm/pullClient/storage-manager.mjs +1 -1
- package/dist/esm/pullClient/web-socket-connector.mjs +1 -1
- package/dist/esm/tools/browser.mjs +1 -1
- package/dist/esm/tools/environment.mjs +1 -1
- package/dist/esm/tools/formatters/iban.mjs +1 -1
- package/dist/esm/tools/formatters/numbers.mjs +1 -1
- package/dist/esm/tools/index.mjs +1 -1
- package/dist/esm/tools/scroll-size.mjs +1 -1
- package/dist/esm/tools/text.mjs +1 -1
- package/dist/esm/tools/type.mjs +1 -1
- package/dist/esm/tools/use-formatters.mjs +1 -1
- package/dist/esm/tools/uuidv7.mjs +1 -1
- package/dist/esm/types/b24-helper.mjs +1 -1
- package/dist/esm/types/b24.mjs +1 -1
- package/dist/esm/types/bizproc/index.mjs +1 -1
- package/dist/esm/types/catalog/index.mjs +1 -1
- package/dist/esm/types/common.mjs +1 -1
- package/dist/esm/types/crm/entity-type.mjs +1 -1
- package/dist/esm/types/crm/productrow.mjs +1 -1
- package/dist/esm/types/logger.mjs +1 -1
- package/dist/esm/types/pull.mjs +1 -1
- package/dist/umd/index.js +240 -142
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/index.min.js +21 -21
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +3 -3
package/dist/umd/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @package @bitrix24/b24jssdk
|
|
3
|
-
* @version 1.0.
|
|
3
|
+
* @version 1.0.3
|
|
4
4
|
* @copyright (c) 2026 Bitrix24
|
|
5
5
|
* @license MIT
|
|
6
6
|
* @see https://github.com/bitrix24/b24jssdk
|
|
@@ -11727,6 +11727,7 @@ ${this.stack}`;
|
|
|
11727
11727
|
*/
|
|
11728
11728
|
get exceptionCodeForSoft() {
|
|
11729
11729
|
return [
|
|
11730
|
+
"ERROR_ENTITY_NOT_FOUND",
|
|
11730
11731
|
"BITRIX_REST_V3_EXCEPTION_ACCESSDENIEDEXCEPTION",
|
|
11731
11732
|
"BITRIX_REST_V3_EXCEPTION_INVALIDJSONEXCEPTION",
|
|
11732
11733
|
"BITRIX_REST_V3_EXCEPTION_INVALIDFILTEREXCEPTION",
|
|
@@ -12543,6 +12544,7 @@ ${JSON.stringify({
|
|
|
12543
12544
|
* requestId: 'batch-by-chunk-123'
|
|
12544
12545
|
* }
|
|
12545
12546
|
* })
|
|
12547
|
+
*
|
|
12546
12548
|
* if (!response.isSuccess) {
|
|
12547
12549
|
* throw new Error(`Problem: ${response.getErrorMessages().join('; ')}`)
|
|
12548
12550
|
* }
|
|
@@ -12843,6 +12845,7 @@ ${JSON.stringify({
|
|
|
12843
12845
|
* requestId: 'eventlog-123',
|
|
12844
12846
|
* limit: 60
|
|
12845
12847
|
* })
|
|
12848
|
+
*
|
|
12846
12849
|
* for await (const chunk of generator) {
|
|
12847
12850
|
* // Process chunk (e.g., save to database, analyze, etc.)
|
|
12848
12851
|
* console.log(`Processing ${chunk.length} items`)
|
|
@@ -13674,30 +13677,30 @@ ${JSON.stringify({
|
|
|
13674
13677
|
|
|
13675
13678
|
// utils is a library of generic helper functions non-specific to axios
|
|
13676
13679
|
|
|
13677
|
-
const {toString} = Object.prototype;
|
|
13678
|
-
const {getPrototypeOf} = Object;
|
|
13679
|
-
const {iterator, toStringTag} = Symbol;
|
|
13680
|
+
const { toString } = Object.prototype;
|
|
13681
|
+
const { getPrototypeOf } = Object;
|
|
13682
|
+
const { iterator, toStringTag } = Symbol;
|
|
13680
13683
|
|
|
13681
|
-
const kindOf = (cache => thing => {
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
+
const kindOf = ((cache) => (thing) => {
|
|
13685
|
+
const str = toString.call(thing);
|
|
13686
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
13684
13687
|
})(Object.create(null));
|
|
13685
13688
|
|
|
13686
13689
|
const kindOfTest = (type) => {
|
|
13687
13690
|
type = type.toLowerCase();
|
|
13688
|
-
return (thing) => kindOf(thing) === type
|
|
13691
|
+
return (thing) => kindOf(thing) === type;
|
|
13689
13692
|
};
|
|
13690
13693
|
|
|
13691
|
-
const typeOfTest = type => thing => typeof thing === type;
|
|
13694
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
13692
13695
|
|
|
13693
13696
|
/**
|
|
13694
|
-
* Determine if a value is
|
|
13697
|
+
* Determine if a value is a non-null object
|
|
13695
13698
|
*
|
|
13696
13699
|
* @param {Object} val The value to test
|
|
13697
13700
|
*
|
|
13698
13701
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
13699
13702
|
*/
|
|
13700
|
-
const {isArray: isArray$2} = Array;
|
|
13703
|
+
const { isArray: isArray$2 } = Array;
|
|
13701
13704
|
|
|
13702
13705
|
/**
|
|
13703
13706
|
* Determine if a value is undefined
|
|
@@ -13706,7 +13709,7 @@ ${JSON.stringify({
|
|
|
13706
13709
|
*
|
|
13707
13710
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
13708
13711
|
*/
|
|
13709
|
-
const isUndefined = typeOfTest(
|
|
13712
|
+
const isUndefined = typeOfTest("undefined");
|
|
13710
13713
|
|
|
13711
13714
|
/**
|
|
13712
13715
|
* Determine if a value is a Buffer
|
|
@@ -13716,8 +13719,14 @@ ${JSON.stringify({
|
|
|
13716
13719
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
13717
13720
|
*/
|
|
13718
13721
|
function isBuffer$1(val) {
|
|
13719
|
-
return
|
|
13720
|
-
|
|
13722
|
+
return (
|
|
13723
|
+
val !== null &&
|
|
13724
|
+
!isUndefined(val) &&
|
|
13725
|
+
val.constructor !== null &&
|
|
13726
|
+
!isUndefined(val.constructor) &&
|
|
13727
|
+
isFunction$1(val.constructor.isBuffer) &&
|
|
13728
|
+
val.constructor.isBuffer(val)
|
|
13729
|
+
);
|
|
13721
13730
|
}
|
|
13722
13731
|
|
|
13723
13732
|
/**
|
|
@@ -13727,8 +13736,7 @@ ${JSON.stringify({
|
|
|
13727
13736
|
*
|
|
13728
13737
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
13729
13738
|
*/
|
|
13730
|
-
const isArrayBuffer = kindOfTest(
|
|
13731
|
-
|
|
13739
|
+
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
13732
13740
|
|
|
13733
13741
|
/**
|
|
13734
13742
|
* Determine if a value is a view on an ArrayBuffer
|
|
@@ -13739,10 +13747,10 @@ ${JSON.stringify({
|
|
|
13739
13747
|
*/
|
|
13740
13748
|
function isArrayBufferView(val) {
|
|
13741
13749
|
let result;
|
|
13742
|
-
if (
|
|
13750
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
13743
13751
|
result = ArrayBuffer.isView(val);
|
|
13744
13752
|
} else {
|
|
13745
|
-
result =
|
|
13753
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
13746
13754
|
}
|
|
13747
13755
|
return result;
|
|
13748
13756
|
}
|
|
@@ -13754,7 +13762,7 @@ ${JSON.stringify({
|
|
|
13754
13762
|
*
|
|
13755
13763
|
* @returns {boolean} True if value is a String, otherwise false
|
|
13756
13764
|
*/
|
|
13757
|
-
const isString = typeOfTest(
|
|
13765
|
+
const isString = typeOfTest("string");
|
|
13758
13766
|
|
|
13759
13767
|
/**
|
|
13760
13768
|
* Determine if a value is a Function
|
|
@@ -13762,7 +13770,7 @@ ${JSON.stringify({
|
|
|
13762
13770
|
* @param {*} val The value to test
|
|
13763
13771
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
13764
13772
|
*/
|
|
13765
|
-
const isFunction$1 = typeOfTest(
|
|
13773
|
+
const isFunction$1 = typeOfTest("function");
|
|
13766
13774
|
|
|
13767
13775
|
/**
|
|
13768
13776
|
* Determine if a value is a Number
|
|
@@ -13771,7 +13779,7 @@ ${JSON.stringify({
|
|
|
13771
13779
|
*
|
|
13772
13780
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
13773
13781
|
*/
|
|
13774
|
-
const isNumber = typeOfTest(
|
|
13782
|
+
const isNumber = typeOfTest("number");
|
|
13775
13783
|
|
|
13776
13784
|
/**
|
|
13777
13785
|
* Determine if a value is an Object
|
|
@@ -13780,7 +13788,7 @@ ${JSON.stringify({
|
|
|
13780
13788
|
*
|
|
13781
13789
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
13782
13790
|
*/
|
|
13783
|
-
const isObject = (thing) => thing !== null && typeof thing ===
|
|
13791
|
+
const isObject = (thing) => thing !== null && typeof thing === "object";
|
|
13784
13792
|
|
|
13785
13793
|
/**
|
|
13786
13794
|
* Determine if a value is a Boolean
|
|
@@ -13788,7 +13796,7 @@ ${JSON.stringify({
|
|
|
13788
13796
|
* @param {*} thing The value to test
|
|
13789
13797
|
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
13790
13798
|
*/
|
|
13791
|
-
const isBoolean = thing => thing === true || thing === false;
|
|
13799
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
13792
13800
|
|
|
13793
13801
|
/**
|
|
13794
13802
|
* Determine if a value is a plain Object
|
|
@@ -13798,12 +13806,18 @@ ${JSON.stringify({
|
|
|
13798
13806
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
13799
13807
|
*/
|
|
13800
13808
|
const isPlainObject = (val) => {
|
|
13801
|
-
if (kindOf(val) !==
|
|
13809
|
+
if (kindOf(val) !== "object") {
|
|
13802
13810
|
return false;
|
|
13803
13811
|
}
|
|
13804
13812
|
|
|
13805
13813
|
const prototype = getPrototypeOf(val);
|
|
13806
|
-
return (
|
|
13814
|
+
return (
|
|
13815
|
+
(prototype === null ||
|
|
13816
|
+
prototype === Object.prototype ||
|
|
13817
|
+
Object.getPrototypeOf(prototype) === null) &&
|
|
13818
|
+
!(toStringTag in val) &&
|
|
13819
|
+
!(iterator in val)
|
|
13820
|
+
);
|
|
13807
13821
|
};
|
|
13808
13822
|
|
|
13809
13823
|
/**
|
|
@@ -13820,7 +13834,10 @@ ${JSON.stringify({
|
|
|
13820
13834
|
}
|
|
13821
13835
|
|
|
13822
13836
|
try {
|
|
13823
|
-
return
|
|
13837
|
+
return (
|
|
13838
|
+
Object.keys(val).length === 0 &&
|
|
13839
|
+
Object.getPrototypeOf(val) === Object.prototype
|
|
13840
|
+
);
|
|
13824
13841
|
} catch (e) {
|
|
13825
13842
|
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
13826
13843
|
return false;
|
|
@@ -13834,7 +13851,7 @@ ${JSON.stringify({
|
|
|
13834
13851
|
*
|
|
13835
13852
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
13836
13853
|
*/
|
|
13837
|
-
const isDate = kindOfTest(
|
|
13854
|
+
const isDate = kindOfTest("Date");
|
|
13838
13855
|
|
|
13839
13856
|
/**
|
|
13840
13857
|
* Determine if a value is a File
|
|
@@ -13843,7 +13860,7 @@ ${JSON.stringify({
|
|
|
13843
13860
|
*
|
|
13844
13861
|
* @returns {boolean} True if value is a File, otherwise false
|
|
13845
13862
|
*/
|
|
13846
|
-
const isFile = kindOfTest(
|
|
13863
|
+
const isFile = kindOfTest("File");
|
|
13847
13864
|
|
|
13848
13865
|
/**
|
|
13849
13866
|
* Determine if a value is a Blob
|
|
@@ -13852,7 +13869,7 @@ ${JSON.stringify({
|
|
|
13852
13869
|
*
|
|
13853
13870
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
13854
13871
|
*/
|
|
13855
|
-
const isBlob = kindOfTest(
|
|
13872
|
+
const isBlob = kindOfTest("Blob");
|
|
13856
13873
|
|
|
13857
13874
|
/**
|
|
13858
13875
|
* Determine if a value is a FileList
|
|
@@ -13861,7 +13878,7 @@ ${JSON.stringify({
|
|
|
13861
13878
|
*
|
|
13862
13879
|
* @returns {boolean} True if value is a File, otherwise false
|
|
13863
13880
|
*/
|
|
13864
|
-
const isFileList = kindOfTest(
|
|
13881
|
+
const isFileList = kindOfTest("FileList");
|
|
13865
13882
|
|
|
13866
13883
|
/**
|
|
13867
13884
|
* Determine if a value is a Stream
|
|
@@ -13881,15 +13898,16 @@ ${JSON.stringify({
|
|
|
13881
13898
|
*/
|
|
13882
13899
|
const isFormData = (thing) => {
|
|
13883
13900
|
let kind;
|
|
13884
|
-
return
|
|
13885
|
-
|
|
13886
|
-
|
|
13887
|
-
|
|
13888
|
-
|
|
13889
|
-
|
|
13890
|
-
|
|
13891
|
-
|
|
13892
|
-
|
|
13901
|
+
return (
|
|
13902
|
+
thing &&
|
|
13903
|
+
((typeof FormData === "function" && thing instanceof FormData) ||
|
|
13904
|
+
(isFunction$1(thing.append) &&
|
|
13905
|
+
((kind = kindOf(thing)) === "formdata" ||
|
|
13906
|
+
// detect form-data instance
|
|
13907
|
+
(kind === "object" &&
|
|
13908
|
+
isFunction$1(thing.toString) &&
|
|
13909
|
+
thing.toString() === "[object FormData]"))))
|
|
13910
|
+
);
|
|
13893
13911
|
};
|
|
13894
13912
|
|
|
13895
13913
|
/**
|
|
@@ -13899,9 +13917,14 @@ ${JSON.stringify({
|
|
|
13899
13917
|
*
|
|
13900
13918
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
13901
13919
|
*/
|
|
13902
|
-
const isURLSearchParams = kindOfTest(
|
|
13920
|
+
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
13903
13921
|
|
|
13904
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
13922
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
13923
|
+
"ReadableStream",
|
|
13924
|
+
"Request",
|
|
13925
|
+
"Response",
|
|
13926
|
+
"Headers",
|
|
13927
|
+
].map(kindOfTest);
|
|
13905
13928
|
|
|
13906
13929
|
/**
|
|
13907
13930
|
* Trim excess whitespace off the beginning and end of a string
|
|
@@ -13910,8 +13933,8 @@ ${JSON.stringify({
|
|
|
13910
13933
|
*
|
|
13911
13934
|
* @returns {String} The String freed of excess whitespace
|
|
13912
13935
|
*/
|
|
13913
|
-
const trim = (str) =>
|
|
13914
|
-
str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
13936
|
+
const trim = (str) =>
|
|
13937
|
+
str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
13915
13938
|
|
|
13916
13939
|
/**
|
|
13917
13940
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
@@ -13929,9 +13952,9 @@ ${JSON.stringify({
|
|
|
13929
13952
|
* @param {Boolean} [options.allOwnKeys = false]
|
|
13930
13953
|
* @returns {any}
|
|
13931
13954
|
*/
|
|
13932
|
-
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
13955
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
13933
13956
|
// Don't bother if no value provided
|
|
13934
|
-
if (obj === null || typeof obj ===
|
|
13957
|
+
if (obj === null || typeof obj === "undefined") {
|
|
13935
13958
|
return;
|
|
13936
13959
|
}
|
|
13937
13960
|
|
|
@@ -13939,7 +13962,7 @@ ${JSON.stringify({
|
|
|
13939
13962
|
let l;
|
|
13940
13963
|
|
|
13941
13964
|
// Force an array if not already something iterable
|
|
13942
|
-
if (typeof obj !==
|
|
13965
|
+
if (typeof obj !== "object") {
|
|
13943
13966
|
/*eslint no-param-reassign:0*/
|
|
13944
13967
|
obj = [obj];
|
|
13945
13968
|
}
|
|
@@ -13956,7 +13979,9 @@ ${JSON.stringify({
|
|
|
13956
13979
|
}
|
|
13957
13980
|
|
|
13958
13981
|
// Iterate over object keys
|
|
13959
|
-
const keys = allOwnKeys
|
|
13982
|
+
const keys = allOwnKeys
|
|
13983
|
+
? Object.getOwnPropertyNames(obj)
|
|
13984
|
+
: Object.keys(obj);
|
|
13960
13985
|
const len = keys.length;
|
|
13961
13986
|
let key;
|
|
13962
13987
|
|
|
@@ -13968,7 +13993,7 @@ ${JSON.stringify({
|
|
|
13968
13993
|
}
|
|
13969
13994
|
|
|
13970
13995
|
function findKey(obj, key) {
|
|
13971
|
-
if (isBuffer$1(obj)){
|
|
13996
|
+
if (isBuffer$1(obj)) {
|
|
13972
13997
|
return null;
|
|
13973
13998
|
}
|
|
13974
13999
|
|
|
@@ -13988,10 +14013,15 @@ ${JSON.stringify({
|
|
|
13988
14013
|
const _global = (() => {
|
|
13989
14014
|
/*eslint no-undef:0*/
|
|
13990
14015
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
13991
|
-
return typeof self !== "undefined"
|
|
14016
|
+
return typeof self !== "undefined"
|
|
14017
|
+
? self
|
|
14018
|
+
: typeof window !== "undefined"
|
|
14019
|
+
? window
|
|
14020
|
+
: global;
|
|
13992
14021
|
})();
|
|
13993
14022
|
|
|
13994
|
-
const isContextDefined = (context) =>
|
|
14023
|
+
const isContextDefined = (context) =>
|
|
14024
|
+
!isUndefined(context) && context !== _global;
|
|
13995
14025
|
|
|
13996
14026
|
/**
|
|
13997
14027
|
* Accepts varargs expecting each argument to be an object, then
|
|
@@ -14012,10 +14042,15 @@ ${JSON.stringify({
|
|
|
14012
14042
|
* @returns {Object} Result of all merge properties
|
|
14013
14043
|
*/
|
|
14014
14044
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
14015
|
-
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
14045
|
+
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
14016
14046
|
const result = {};
|
|
14017
14047
|
const assignValue = (val, key) => {
|
|
14018
|
-
|
|
14048
|
+
// Skip dangerous property names to prevent prototype pollution
|
|
14049
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
14050
|
+
return;
|
|
14051
|
+
}
|
|
14052
|
+
|
|
14053
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
14019
14054
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
14020
14055
|
result[targetKey] = merge(result[targetKey], val);
|
|
14021
14056
|
} else if (isPlainObject(val)) {
|
|
@@ -14044,24 +14079,28 @@ ${JSON.stringify({
|
|
|
14044
14079
|
* @param {Boolean} [options.allOwnKeys]
|
|
14045
14080
|
* @returns {Object} The resulting value of object a
|
|
14046
14081
|
*/
|
|
14047
|
-
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
14048
|
-
forEach(
|
|
14049
|
-
|
|
14050
|
-
|
|
14051
|
-
|
|
14052
|
-
|
|
14053
|
-
|
|
14054
|
-
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
|
|
14058
|
-
|
|
14059
|
-
|
|
14060
|
-
|
|
14061
|
-
|
|
14062
|
-
|
|
14063
|
-
|
|
14064
|
-
|
|
14082
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
14083
|
+
forEach(
|
|
14084
|
+
b,
|
|
14085
|
+
(val, key) => {
|
|
14086
|
+
if (thisArg && isFunction$1(val)) {
|
|
14087
|
+
Object.defineProperty(a, key, {
|
|
14088
|
+
value: bind(val, thisArg),
|
|
14089
|
+
writable: true,
|
|
14090
|
+
enumerable: true,
|
|
14091
|
+
configurable: true,
|
|
14092
|
+
});
|
|
14093
|
+
} else {
|
|
14094
|
+
Object.defineProperty(a, key, {
|
|
14095
|
+
value: val,
|
|
14096
|
+
writable: true,
|
|
14097
|
+
enumerable: true,
|
|
14098
|
+
configurable: true,
|
|
14099
|
+
});
|
|
14100
|
+
}
|
|
14101
|
+
},
|
|
14102
|
+
{ allOwnKeys },
|
|
14103
|
+
);
|
|
14065
14104
|
return a;
|
|
14066
14105
|
};
|
|
14067
14106
|
|
|
@@ -14073,7 +14112,7 @@ ${JSON.stringify({
|
|
|
14073
14112
|
* @returns {string} content value without BOM
|
|
14074
14113
|
*/
|
|
14075
14114
|
const stripBOM = (content) => {
|
|
14076
|
-
if (content.charCodeAt(0) ===
|
|
14115
|
+
if (content.charCodeAt(0) === 0xfeff) {
|
|
14077
14116
|
content = content.slice(1);
|
|
14078
14117
|
}
|
|
14079
14118
|
return content;
|
|
@@ -14089,15 +14128,18 @@ ${JSON.stringify({
|
|
|
14089
14128
|
* @returns {void}
|
|
14090
14129
|
*/
|
|
14091
14130
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
14092
|
-
constructor.prototype = Object.create(
|
|
14093
|
-
|
|
14131
|
+
constructor.prototype = Object.create(
|
|
14132
|
+
superConstructor.prototype,
|
|
14133
|
+
descriptors,
|
|
14134
|
+
);
|
|
14135
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
14094
14136
|
value: constructor,
|
|
14095
14137
|
writable: true,
|
|
14096
14138
|
enumerable: false,
|
|
14097
|
-
configurable: true
|
|
14139
|
+
configurable: true,
|
|
14098
14140
|
});
|
|
14099
|
-
Object.defineProperty(constructor,
|
|
14100
|
-
value: superConstructor.prototype
|
|
14141
|
+
Object.defineProperty(constructor, "super", {
|
|
14142
|
+
value: superConstructor.prototype,
|
|
14101
14143
|
});
|
|
14102
14144
|
props && Object.assign(constructor.prototype, props);
|
|
14103
14145
|
};
|
|
@@ -14126,13 +14168,20 @@ ${JSON.stringify({
|
|
|
14126
14168
|
i = props.length;
|
|
14127
14169
|
while (i-- > 0) {
|
|
14128
14170
|
prop = props[i];
|
|
14129
|
-
if (
|
|
14171
|
+
if (
|
|
14172
|
+
(!propFilter || propFilter(prop, sourceObj, destObj)) &&
|
|
14173
|
+
!merged[prop]
|
|
14174
|
+
) {
|
|
14130
14175
|
destObj[prop] = sourceObj[prop];
|
|
14131
14176
|
merged[prop] = true;
|
|
14132
14177
|
}
|
|
14133
14178
|
}
|
|
14134
14179
|
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
|
14135
|
-
} while (
|
|
14180
|
+
} while (
|
|
14181
|
+
sourceObj &&
|
|
14182
|
+
(!filter || filter(sourceObj, destObj)) &&
|
|
14183
|
+
sourceObj !== Object.prototype
|
|
14184
|
+
);
|
|
14136
14185
|
|
|
14137
14186
|
return destObj;
|
|
14138
14187
|
};
|
|
@@ -14156,7 +14205,6 @@ ${JSON.stringify({
|
|
|
14156
14205
|
return lastIndex !== -1 && lastIndex === position;
|
|
14157
14206
|
};
|
|
14158
14207
|
|
|
14159
|
-
|
|
14160
14208
|
/**
|
|
14161
14209
|
* Returns new array from array like object or null if failed
|
|
14162
14210
|
*
|
|
@@ -14185,12 +14233,12 @@ ${JSON.stringify({
|
|
|
14185
14233
|
* @returns {Array}
|
|
14186
14234
|
*/
|
|
14187
14235
|
// eslint-disable-next-line func-names
|
|
14188
|
-
const isTypedArray = (TypedArray => {
|
|
14236
|
+
const isTypedArray = ((TypedArray) => {
|
|
14189
14237
|
// eslint-disable-next-line func-names
|
|
14190
|
-
return thing => {
|
|
14238
|
+
return (thing) => {
|
|
14191
14239
|
return TypedArray && thing instanceof TypedArray;
|
|
14192
14240
|
};
|
|
14193
|
-
})(typeof Uint8Array !==
|
|
14241
|
+
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
14194
14242
|
|
|
14195
14243
|
/**
|
|
14196
14244
|
* For each entry in the object, call the function with the key and value.
|
|
@@ -14233,18 +14281,22 @@ ${JSON.stringify({
|
|
|
14233
14281
|
};
|
|
14234
14282
|
|
|
14235
14283
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
14236
|
-
const isHTMLForm = kindOfTest(
|
|
14284
|
+
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
14237
14285
|
|
|
14238
|
-
const toCamelCase = str => {
|
|
14239
|
-
return str
|
|
14240
|
-
|
|
14286
|
+
const toCamelCase = (str) => {
|
|
14287
|
+
return str
|
|
14288
|
+
.toLowerCase()
|
|
14289
|
+
.replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
14241
14290
|
return p1.toUpperCase() + p2;
|
|
14242
|
-
}
|
|
14243
|
-
);
|
|
14291
|
+
});
|
|
14244
14292
|
};
|
|
14245
14293
|
|
|
14246
14294
|
/* Creating a function that will check if an object has a property. */
|
|
14247
|
-
const hasOwnProperty = (
|
|
14295
|
+
const hasOwnProperty = (
|
|
14296
|
+
({ hasOwnProperty }) =>
|
|
14297
|
+
(obj, prop) =>
|
|
14298
|
+
hasOwnProperty.call(obj, prop)
|
|
14299
|
+
)(Object.prototype);
|
|
14248
14300
|
|
|
14249
14301
|
/**
|
|
14250
14302
|
* Determine if a value is a RegExp object
|
|
@@ -14253,7 +14305,7 @@ ${JSON.stringify({
|
|
|
14253
14305
|
*
|
|
14254
14306
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
14255
14307
|
*/
|
|
14256
|
-
const isRegExp = kindOfTest(
|
|
14308
|
+
const isRegExp = kindOfTest("RegExp");
|
|
14257
14309
|
|
|
14258
14310
|
const reduceDescriptors = (obj, reducer) => {
|
|
14259
14311
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -14277,7 +14329,10 @@ ${JSON.stringify({
|
|
|
14277
14329
|
const freezeMethods = (obj) => {
|
|
14278
14330
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
14279
14331
|
// skip restricted props in strict mode
|
|
14280
|
-
if (
|
|
14332
|
+
if (
|
|
14333
|
+
isFunction$1(obj) &&
|
|
14334
|
+
["arguments", "caller", "callee"].indexOf(name) !== -1
|
|
14335
|
+
) {
|
|
14281
14336
|
return false;
|
|
14282
14337
|
}
|
|
14283
14338
|
|
|
@@ -14287,14 +14342,14 @@ ${JSON.stringify({
|
|
|
14287
14342
|
|
|
14288
14343
|
descriptor.enumerable = false;
|
|
14289
14344
|
|
|
14290
|
-
if (
|
|
14345
|
+
if ("writable" in descriptor) {
|
|
14291
14346
|
descriptor.writable = false;
|
|
14292
14347
|
return;
|
|
14293
14348
|
}
|
|
14294
14349
|
|
|
14295
14350
|
if (!descriptor.set) {
|
|
14296
14351
|
descriptor.set = () => {
|
|
14297
|
-
throw Error(
|
|
14352
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
14298
14353
|
};
|
|
14299
14354
|
}
|
|
14300
14355
|
});
|
|
@@ -14304,12 +14359,14 @@ ${JSON.stringify({
|
|
|
14304
14359
|
const obj = {};
|
|
14305
14360
|
|
|
14306
14361
|
const define = (arr) => {
|
|
14307
|
-
arr.forEach(value => {
|
|
14362
|
+
arr.forEach((value) => {
|
|
14308
14363
|
obj[value] = true;
|
|
14309
14364
|
});
|
|
14310
14365
|
};
|
|
14311
14366
|
|
|
14312
|
-
isArray$2(arrayOrString)
|
|
14367
|
+
isArray$2(arrayOrString)
|
|
14368
|
+
? define(arrayOrString)
|
|
14369
|
+
: define(String(arrayOrString).split(delimiter));
|
|
14313
14370
|
|
|
14314
14371
|
return obj;
|
|
14315
14372
|
};
|
|
@@ -14317,11 +14374,11 @@ ${JSON.stringify({
|
|
|
14317
14374
|
const noop = () => {};
|
|
14318
14375
|
|
|
14319
14376
|
const toFiniteNumber = (value, defaultValue) => {
|
|
14320
|
-
return value != null && Number.isFinite(value = +value)
|
|
14377
|
+
return value != null && Number.isFinite((value = +value))
|
|
14378
|
+
? value
|
|
14379
|
+
: defaultValue;
|
|
14321
14380
|
};
|
|
14322
14381
|
|
|
14323
|
-
|
|
14324
|
-
|
|
14325
14382
|
/**
|
|
14326
14383
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
14327
14384
|
*
|
|
@@ -14330,14 +14387,18 @@ ${JSON.stringify({
|
|
|
14330
14387
|
* @returns {boolean}
|
|
14331
14388
|
*/
|
|
14332
14389
|
function isSpecCompliantForm(thing) {
|
|
14333
|
-
return !!(
|
|
14390
|
+
return !!(
|
|
14391
|
+
thing &&
|
|
14392
|
+
isFunction$1(thing.append) &&
|
|
14393
|
+
thing[toStringTag] === "FormData" &&
|
|
14394
|
+
thing[iterator]
|
|
14395
|
+
);
|
|
14334
14396
|
}
|
|
14335
14397
|
|
|
14336
14398
|
const toJSONObject = (obj) => {
|
|
14337
14399
|
const stack = new Array(10);
|
|
14338
14400
|
|
|
14339
14401
|
const visit = (source, i) => {
|
|
14340
|
-
|
|
14341
14402
|
if (isObject(source)) {
|
|
14342
14403
|
if (stack.indexOf(source) >= 0) {
|
|
14343
14404
|
return;
|
|
@@ -14348,7 +14409,7 @@ ${JSON.stringify({
|
|
|
14348
14409
|
return source;
|
|
14349
14410
|
}
|
|
14350
14411
|
|
|
14351
|
-
if(!(
|
|
14412
|
+
if (!("toJSON" in source)) {
|
|
14352
14413
|
stack[i] = source;
|
|
14353
14414
|
const target = isArray$2(source) ? [] : {};
|
|
14354
14415
|
|
|
@@ -14369,10 +14430,13 @@ ${JSON.stringify({
|
|
|
14369
14430
|
return visit(obj, 0);
|
|
14370
14431
|
};
|
|
14371
14432
|
|
|
14372
|
-
const isAsyncFn = kindOfTest(
|
|
14433
|
+
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
14373
14434
|
|
|
14374
14435
|
const isThenable = (thing) =>
|
|
14375
|
-
thing &&
|
|
14436
|
+
thing &&
|
|
14437
|
+
(isObject(thing) || isFunction$1(thing)) &&
|
|
14438
|
+
isFunction$1(thing.then) &&
|
|
14439
|
+
isFunction$1(thing.catch);
|
|
14376
14440
|
|
|
14377
14441
|
// original code
|
|
14378
14442
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
@@ -14382,32 +14446,35 @@ ${JSON.stringify({
|
|
|
14382
14446
|
return setImmediate;
|
|
14383
14447
|
}
|
|
14384
14448
|
|
|
14385
|
-
return postMessageSupported
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
14390
|
-
|
|
14449
|
+
return postMessageSupported
|
|
14450
|
+
? ((token, callbacks) => {
|
|
14451
|
+
_global.addEventListener(
|
|
14452
|
+
"message",
|
|
14453
|
+
({ source, data }) => {
|
|
14454
|
+
if (source === _global && data === token) {
|
|
14455
|
+
callbacks.length && callbacks.shift()();
|
|
14456
|
+
}
|
|
14457
|
+
},
|
|
14458
|
+
false,
|
|
14459
|
+
);
|
|
14391
14460
|
|
|
14392
|
-
|
|
14393
|
-
|
|
14394
|
-
|
|
14395
|
-
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
|
-
|
|
14399
|
-
isFunction$1(_global.postMessage)
|
|
14400
|
-
);
|
|
14461
|
+
return (cb) => {
|
|
14462
|
+
callbacks.push(cb);
|
|
14463
|
+
_global.postMessage(token, "*");
|
|
14464
|
+
};
|
|
14465
|
+
})(`axios@${Math.random()}`, [])
|
|
14466
|
+
: (cb) => setTimeout(cb);
|
|
14467
|
+
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
14401
14468
|
|
|
14402
|
-
const asap =
|
|
14403
|
-
|
|
14469
|
+
const asap =
|
|
14470
|
+
typeof queueMicrotask !== "undefined"
|
|
14471
|
+
? queueMicrotask.bind(_global)
|
|
14472
|
+
: (typeof process !== "undefined" && process.nextTick) || _setImmediate;
|
|
14404
14473
|
|
|
14405
14474
|
// *********************
|
|
14406
14475
|
|
|
14407
|
-
|
|
14408
14476
|
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
14409
14477
|
|
|
14410
|
-
|
|
14411
14478
|
const utils$1 = {
|
|
14412
14479
|
isArray: isArray$2,
|
|
14413
14480
|
isArrayBuffer,
|
|
@@ -14465,7 +14532,7 @@ ${JSON.stringify({
|
|
|
14465
14532
|
isThenable,
|
|
14466
14533
|
setImmediate: _setImmediate,
|
|
14467
14534
|
asap,
|
|
14468
|
-
isIterable
|
|
14535
|
+
isIterable,
|
|
14469
14536
|
};
|
|
14470
14537
|
|
|
14471
14538
|
let AxiosError$1 = class AxiosError extends Error {
|
|
@@ -14937,7 +15004,8 @@ ${JSON.stringify({
|
|
|
14937
15004
|
const transitionalDefaults = {
|
|
14938
15005
|
silentJSONParsing: true,
|
|
14939
15006
|
forcedJSONParsing: true,
|
|
14940
|
-
clarifyTimeoutError: false
|
|
15007
|
+
clarifyTimeoutError: false,
|
|
15008
|
+
legacyInterceptorReqResOrdering: true
|
|
14941
15009
|
};
|
|
14942
15010
|
|
|
14943
15011
|
const URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
|
@@ -15911,6 +15979,10 @@ ${JSON.stringify({
|
|
|
15911
15979
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
15912
15980
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
15913
15981
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
15982
|
+
if (typeof url !== 'string') {
|
|
15983
|
+
return false;
|
|
15984
|
+
}
|
|
15985
|
+
|
|
15914
15986
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
15915
15987
|
}
|
|
15916
15988
|
|
|
@@ -15946,7 +16018,8 @@ ${JSON.stringify({
|
|
|
15946
16018
|
return requestedURL;
|
|
15947
16019
|
}
|
|
15948
16020
|
|
|
15949
|
-
const headersToObject = (thing) =>
|
|
16021
|
+
const headersToObject = (thing) =>
|
|
16022
|
+
thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
15950
16023
|
|
|
15951
16024
|
/**
|
|
15952
16025
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -16035,14 +16108,27 @@ ${JSON.stringify({
|
|
|
16035
16108
|
socketPath: defaultToConfig2,
|
|
16036
16109
|
responseEncoding: defaultToConfig2,
|
|
16037
16110
|
validateStatus: mergeDirectKeys,
|
|
16038
|
-
headers: (a, b, prop) =>
|
|
16111
|
+
headers: (a, b, prop) =>
|
|
16112
|
+
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
16039
16113
|
};
|
|
16040
16114
|
|
|
16041
|
-
utils$1.forEach(
|
|
16042
|
-
|
|
16043
|
-
|
|
16044
|
-
|
|
16045
|
-
|
|
16115
|
+
utils$1.forEach(
|
|
16116
|
+
Object.keys({ ...config1, ...config2 }),
|
|
16117
|
+
function computeConfigValue(prop) {
|
|
16118
|
+
if (
|
|
16119
|
+
prop === "__proto__" ||
|
|
16120
|
+
prop === "constructor" ||
|
|
16121
|
+
prop === "prototype"
|
|
16122
|
+
)
|
|
16123
|
+
return;
|
|
16124
|
+
const merge = utils$1.hasOwnProp(mergeMap, prop)
|
|
16125
|
+
? mergeMap[prop]
|
|
16126
|
+
: mergeDeepProperties;
|
|
16127
|
+
const configValue = merge(config1[prop], config2[prop], prop);
|
|
16128
|
+
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) ||
|
|
16129
|
+
(config[prop] = configValue);
|
|
16130
|
+
},
|
|
16131
|
+
);
|
|
16046
16132
|
|
|
16047
16133
|
return config;
|
|
16048
16134
|
}
|
|
@@ -16658,14 +16744,14 @@ ${JSON.stringify({
|
|
|
16658
16744
|
|
|
16659
16745
|
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
16660
16746
|
throw Object.assign(
|
|
16661
|
-
new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
|
|
16747
|
+
new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request, err && err.response),
|
|
16662
16748
|
{
|
|
16663
16749
|
cause: err.cause || err
|
|
16664
16750
|
}
|
|
16665
16751
|
)
|
|
16666
16752
|
}
|
|
16667
16753
|
|
|
16668
|
-
throw AxiosError$1.from(err, err && err.code, config, request);
|
|
16754
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
16669
16755
|
}
|
|
16670
16756
|
}
|
|
16671
16757
|
};
|
|
@@ -16890,7 +16976,7 @@ ${JSON.stringify({
|
|
|
16890
16976
|
});
|
|
16891
16977
|
}
|
|
16892
16978
|
|
|
16893
|
-
const VERSION$1 = "1.13.
|
|
16979
|
+
const VERSION$1 = "1.13.5";
|
|
16894
16980
|
|
|
16895
16981
|
const validators$1 = {};
|
|
16896
16982
|
|
|
@@ -17058,7 +17144,8 @@ ${JSON.stringify({
|
|
|
17058
17144
|
validator.assertOptions(transitional, {
|
|
17059
17145
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
17060
17146
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
17061
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
17147
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
17148
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
17062
17149
|
}, false);
|
|
17063
17150
|
}
|
|
17064
17151
|
|
|
@@ -17115,7 +17202,14 @@ ${JSON.stringify({
|
|
|
17115
17202
|
|
|
17116
17203
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
17117
17204
|
|
|
17118
|
-
|
|
17205
|
+
const transitional = config.transitional || transitionalDefaults;
|
|
17206
|
+
const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
|
|
17207
|
+
|
|
17208
|
+
if (legacyInterceptorReqResOrdering) {
|
|
17209
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
17210
|
+
} else {
|
|
17211
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
17212
|
+
}
|
|
17119
17213
|
});
|
|
17120
17214
|
|
|
17121
17215
|
const responseInterceptorChain = [];
|
|
@@ -17603,7 +17697,7 @@ ${JSON.stringify({
|
|
|
17603
17697
|
this._logger = LoggerFactory.createNullLogger();
|
|
17604
17698
|
const defaultHeaders = {};
|
|
17605
17699
|
if (this.isServerSide()) {
|
|
17606
|
-
defaultHeaders["User-Agent"] = "b24-js-sdk/1.0.
|
|
17700
|
+
defaultHeaders["User-Agent"] = "b24-js-sdk/1.0.3";
|
|
17607
17701
|
}
|
|
17608
17702
|
this._authActions = authActions;
|
|
17609
17703
|
this._requestIdGenerator = new RequestIdGenerator();
|
|
@@ -18877,7 +18971,7 @@ ${JSON.stringify({
|
|
|
18877
18971
|
}
|
|
18878
18972
|
const queryParams = new URLSearchParams({
|
|
18879
18973
|
[this._requestIdGenerator.getQueryStringParameterName()]: requestId,
|
|
18880
|
-
[this._requestIdGenerator.getQueryStringSdkParameterName()]: "1.0.
|
|
18974
|
+
[this._requestIdGenerator.getQueryStringSdkParameterName()]: "1.0.3",
|
|
18881
18975
|
[this._requestIdGenerator.getQueryStringSdkTypeParameterName()]: "b24-js-sdk"
|
|
18882
18976
|
});
|
|
18883
18977
|
return `${baseUrl}${methodUrl}?${queryParams.toString()}`;
|
|
@@ -19124,7 +19218,7 @@ ${JSON.stringify({
|
|
|
19124
19218
|
const methodUrl = `/${encodeURIComponent(method)}`;
|
|
19125
19219
|
const queryParams = new URLSearchParams({
|
|
19126
19220
|
[this._requestIdGenerator.getQueryStringParameterName()]: requestId,
|
|
19127
|
-
[this._requestIdGenerator.getQueryStringSdkParameterName()]: "1.0.
|
|
19221
|
+
[this._requestIdGenerator.getQueryStringSdkParameterName()]: "1.0.3",
|
|
19128
19222
|
[this._requestIdGenerator.getQueryStringSdkTypeParameterName()]: "b24-js-sdk"
|
|
19129
19223
|
});
|
|
19130
19224
|
return `${baseUrl}${methodUrl}?${queryParams.toString()}`;
|
|
@@ -20184,8 +20278,8 @@ ${JSON.stringify({
|
|
|
20184
20278
|
};
|
|
20185
20279
|
const keyPromise = this.#setCallbackPromise(promiseHandler);
|
|
20186
20280
|
let paramsSend = null;
|
|
20187
|
-
const optionsSend = omit(params || {}, ["singleOption", "callBack", "isSafely", "safelyTime"]);
|
|
20188
|
-
const { callBack, singleOption } = params || {};
|
|
20281
|
+
const optionsSend = omit(params || {}, ["singleOption", "callBack", "isSafely", "safelyTime", "requestId"]);
|
|
20282
|
+
const { callBack, singleOption, requestId } = params || {};
|
|
20189
20283
|
if (callBack) {
|
|
20190
20284
|
this.#callbackSingletone.set(keyPromise, callBack);
|
|
20191
20285
|
}
|
|
@@ -20199,7 +20293,8 @@ ${JSON.stringify({
|
|
|
20199
20293
|
method: command.toString(),
|
|
20200
20294
|
params: paramsSend || "",
|
|
20201
20295
|
callback: keyPromise,
|
|
20202
|
-
appSid: this.#appFrame.getAppSid()
|
|
20296
|
+
appSid: this.#appFrame.getAppSid(),
|
|
20297
|
+
requestId
|
|
20203
20298
|
};
|
|
20204
20299
|
} else {
|
|
20205
20300
|
cmd = command.toString();
|
|
@@ -20475,6 +20570,9 @@ ${JSON.stringify({
|
|
|
20475
20570
|
constructor(messageManager) {
|
|
20476
20571
|
this.#messageManager = messageManager;
|
|
20477
20572
|
}
|
|
20573
|
+
get message() {
|
|
20574
|
+
return this.#messageManager;
|
|
20575
|
+
}
|
|
20478
20576
|
/**
|
|
20479
20577
|
* The method closes the open modal window with the application
|
|
20480
20578
|
*
|