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