@verdocs/web-sdk 6.5.0-beta.28 → 6.5.0-beta.29
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/cjs/verdocs-contact-picker.cjs.entry.js +227 -136
- package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
- package/dist/components/{p-BqX9pHlZ.js → p-D1hacWuH.js} +229 -138
- package/dist/components/p-D1hacWuH.js.map +1 -0
- package/dist/components/{p-O5qIkOV_.js → p-DE8tttIU.js} +3 -3
- package/dist/components/{p-O5qIkOV_.js.map → p-DE8tttIU.js.map} +1 -1
- package/dist/components/verdocs-build.js +2 -2
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +227 -136
- package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
- package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/verdocs-web-sdk/p-31d87e8c.system.entry.js +4 -0
- package/dist/verdocs-web-sdk/p-31d87e8c.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
- package/dist/verdocs-web-sdk/p-a00a2483.entry.js +3 -0
- package/dist/verdocs-web-sdk/p-a00a2483.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-cbHPd-SJ.system.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/components/p-BqX9pHlZ.js.map +0 -1
- package/dist/custom-elements.json +0 -2460
- package/dist/verdocs-web-sdk/p-20ca00e4.system.entry.js +0 -4
- package/dist/verdocs-web-sdk/p-20ca00e4.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-5bf8bb27.entry.js +0 -3
- package/dist/verdocs-web-sdk/p-5bf8bb27.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-DAdumYIk.system.js.map +0 -1
|
@@ -6,7 +6,7 @@ import { e as convertToE164 } from './utils-7DStM5zD.js';
|
|
|
6
6
|
import './index-dzBXqXlK.js';
|
|
7
7
|
import './Types-dqxNbm_b.js';
|
|
8
8
|
|
|
9
|
-
/*! Axios v1.13.
|
|
9
|
+
/*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors */
|
|
10
10
|
|
|
11
11
|
var axios_1;
|
|
12
12
|
var hasRequiredAxios;
|
|
@@ -30,30 +30,30 @@ function requireAxios () {
|
|
|
30
30
|
|
|
31
31
|
// utils is a library of generic helper functions non-specific to axios
|
|
32
32
|
|
|
33
|
-
const {toString} = Object.prototype;
|
|
34
|
-
const {getPrototypeOf} = Object;
|
|
35
|
-
const {iterator, toStringTag} = Symbol;
|
|
33
|
+
const { toString } = Object.prototype;
|
|
34
|
+
const { getPrototypeOf } = Object;
|
|
35
|
+
const { iterator, toStringTag } = Symbol;
|
|
36
36
|
|
|
37
|
-
const kindOf = (cache => thing => {
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
const kindOf = ((cache) => (thing) => {
|
|
38
|
+
const str = toString.call(thing);
|
|
39
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
40
40
|
})(Object.create(null));
|
|
41
41
|
|
|
42
42
|
const kindOfTest = (type) => {
|
|
43
43
|
type = type.toLowerCase();
|
|
44
|
-
return (thing) => kindOf(thing) === type
|
|
44
|
+
return (thing) => kindOf(thing) === type;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
const typeOfTest = type => thing => typeof thing === type;
|
|
47
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* Determine if a value is
|
|
50
|
+
* Determine if a value is a non-null object
|
|
51
51
|
*
|
|
52
52
|
* @param {Object} val The value to test
|
|
53
53
|
*
|
|
54
54
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
55
55
|
*/
|
|
56
|
-
const {isArray} = Array;
|
|
56
|
+
const { isArray } = Array;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Determine if a value is undefined
|
|
@@ -62,7 +62,7 @@ function requireAxios () {
|
|
|
62
62
|
*
|
|
63
63
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
64
64
|
*/
|
|
65
|
-
const isUndefined = typeOfTest(
|
|
65
|
+
const isUndefined = typeOfTest("undefined");
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* Determine if a value is a Buffer
|
|
@@ -72,8 +72,14 @@ function requireAxios () {
|
|
|
72
72
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
73
73
|
*/
|
|
74
74
|
function isBuffer(val) {
|
|
75
|
-
return
|
|
76
|
-
|
|
75
|
+
return (
|
|
76
|
+
val !== null &&
|
|
77
|
+
!isUndefined(val) &&
|
|
78
|
+
val.constructor !== null &&
|
|
79
|
+
!isUndefined(val.constructor) &&
|
|
80
|
+
isFunction$1(val.constructor.isBuffer) &&
|
|
81
|
+
val.constructor.isBuffer(val)
|
|
82
|
+
);
|
|
77
83
|
}
|
|
78
84
|
|
|
79
85
|
/**
|
|
@@ -83,8 +89,7 @@ function requireAxios () {
|
|
|
83
89
|
*
|
|
84
90
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
85
91
|
*/
|
|
86
|
-
const isArrayBuffer = kindOfTest(
|
|
87
|
-
|
|
92
|
+
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
88
93
|
|
|
89
94
|
/**
|
|
90
95
|
* Determine if a value is a view on an ArrayBuffer
|
|
@@ -95,10 +100,10 @@ function requireAxios () {
|
|
|
95
100
|
*/
|
|
96
101
|
function isArrayBufferView(val) {
|
|
97
102
|
let result;
|
|
98
|
-
if (
|
|
103
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
99
104
|
result = ArrayBuffer.isView(val);
|
|
100
105
|
} else {
|
|
101
|
-
result =
|
|
106
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
102
107
|
}
|
|
103
108
|
return result;
|
|
104
109
|
}
|
|
@@ -110,7 +115,7 @@ function requireAxios () {
|
|
|
110
115
|
*
|
|
111
116
|
* @returns {boolean} True if value is a String, otherwise false
|
|
112
117
|
*/
|
|
113
|
-
const isString = typeOfTest(
|
|
118
|
+
const isString = typeOfTest("string");
|
|
114
119
|
|
|
115
120
|
/**
|
|
116
121
|
* Determine if a value is a Function
|
|
@@ -118,7 +123,7 @@ function requireAxios () {
|
|
|
118
123
|
* @param {*} val The value to test
|
|
119
124
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
120
125
|
*/
|
|
121
|
-
const isFunction$1 = typeOfTest(
|
|
126
|
+
const isFunction$1 = typeOfTest("function");
|
|
122
127
|
|
|
123
128
|
/**
|
|
124
129
|
* Determine if a value is a Number
|
|
@@ -127,7 +132,7 @@ function requireAxios () {
|
|
|
127
132
|
*
|
|
128
133
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
129
134
|
*/
|
|
130
|
-
const isNumber = typeOfTest(
|
|
135
|
+
const isNumber = typeOfTest("number");
|
|
131
136
|
|
|
132
137
|
/**
|
|
133
138
|
* Determine if a value is an Object
|
|
@@ -136,7 +141,7 @@ function requireAxios () {
|
|
|
136
141
|
*
|
|
137
142
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
138
143
|
*/
|
|
139
|
-
const isObject = (thing) => thing !== null && typeof thing ===
|
|
144
|
+
const isObject = (thing) => thing !== null && typeof thing === "object";
|
|
140
145
|
|
|
141
146
|
/**
|
|
142
147
|
* Determine if a value is a Boolean
|
|
@@ -144,7 +149,7 @@ function requireAxios () {
|
|
|
144
149
|
* @param {*} thing The value to test
|
|
145
150
|
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
146
151
|
*/
|
|
147
|
-
const isBoolean = thing => thing === true || thing === false;
|
|
152
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
148
153
|
|
|
149
154
|
/**
|
|
150
155
|
* Determine if a value is a plain Object
|
|
@@ -154,12 +159,18 @@ function requireAxios () {
|
|
|
154
159
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
155
160
|
*/
|
|
156
161
|
const isPlainObject = (val) => {
|
|
157
|
-
if (kindOf(val) !==
|
|
162
|
+
if (kindOf(val) !== "object") {
|
|
158
163
|
return false;
|
|
159
164
|
}
|
|
160
165
|
|
|
161
166
|
const prototype = getPrototypeOf(val);
|
|
162
|
-
return (
|
|
167
|
+
return (
|
|
168
|
+
(prototype === null ||
|
|
169
|
+
prototype === Object.prototype ||
|
|
170
|
+
Object.getPrototypeOf(prototype) === null) &&
|
|
171
|
+
!(toStringTag in val) &&
|
|
172
|
+
!(iterator in val)
|
|
173
|
+
);
|
|
163
174
|
};
|
|
164
175
|
|
|
165
176
|
/**
|
|
@@ -176,7 +187,10 @@ function requireAxios () {
|
|
|
176
187
|
}
|
|
177
188
|
|
|
178
189
|
try {
|
|
179
|
-
return
|
|
190
|
+
return (
|
|
191
|
+
Object.keys(val).length === 0 &&
|
|
192
|
+
Object.getPrototypeOf(val) === Object.prototype
|
|
193
|
+
);
|
|
180
194
|
} catch (e) {
|
|
181
195
|
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
182
196
|
return false;
|
|
@@ -190,7 +204,7 @@ function requireAxios () {
|
|
|
190
204
|
*
|
|
191
205
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
192
206
|
*/
|
|
193
|
-
const isDate = kindOfTest(
|
|
207
|
+
const isDate = kindOfTest("Date");
|
|
194
208
|
|
|
195
209
|
/**
|
|
196
210
|
* Determine if a value is a File
|
|
@@ -199,7 +213,7 @@ function requireAxios () {
|
|
|
199
213
|
*
|
|
200
214
|
* @returns {boolean} True if value is a File, otherwise false
|
|
201
215
|
*/
|
|
202
|
-
const isFile = kindOfTest(
|
|
216
|
+
const isFile = kindOfTest("File");
|
|
203
217
|
|
|
204
218
|
/**
|
|
205
219
|
* Determine if a value is a Blob
|
|
@@ -208,7 +222,7 @@ function requireAxios () {
|
|
|
208
222
|
*
|
|
209
223
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
210
224
|
*/
|
|
211
|
-
const isBlob = kindOfTest(
|
|
225
|
+
const isBlob = kindOfTest("Blob");
|
|
212
226
|
|
|
213
227
|
/**
|
|
214
228
|
* Determine if a value is a FileList
|
|
@@ -217,7 +231,7 @@ function requireAxios () {
|
|
|
217
231
|
*
|
|
218
232
|
* @returns {boolean} True if value is a File, otherwise false
|
|
219
233
|
*/
|
|
220
|
-
const isFileList = kindOfTest(
|
|
234
|
+
const isFileList = kindOfTest("FileList");
|
|
221
235
|
|
|
222
236
|
/**
|
|
223
237
|
* Determine if a value is a Stream
|
|
@@ -237,15 +251,16 @@ function requireAxios () {
|
|
|
237
251
|
*/
|
|
238
252
|
const isFormData = (thing) => {
|
|
239
253
|
let kind;
|
|
240
|
-
return
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
254
|
+
return (
|
|
255
|
+
thing &&
|
|
256
|
+
((typeof FormData === "function" && thing instanceof FormData) ||
|
|
257
|
+
(isFunction$1(thing.append) &&
|
|
258
|
+
((kind = kindOf(thing)) === "formdata" ||
|
|
259
|
+
// detect form-data instance
|
|
260
|
+
(kind === "object" &&
|
|
261
|
+
isFunction$1(thing.toString) &&
|
|
262
|
+
thing.toString() === "[object FormData]"))))
|
|
263
|
+
);
|
|
249
264
|
};
|
|
250
265
|
|
|
251
266
|
/**
|
|
@@ -255,9 +270,14 @@ function requireAxios () {
|
|
|
255
270
|
*
|
|
256
271
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
257
272
|
*/
|
|
258
|
-
const isURLSearchParams = kindOfTest(
|
|
273
|
+
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
259
274
|
|
|
260
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
275
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
276
|
+
"ReadableStream",
|
|
277
|
+
"Request",
|
|
278
|
+
"Response",
|
|
279
|
+
"Headers",
|
|
280
|
+
].map(kindOfTest);
|
|
261
281
|
|
|
262
282
|
/**
|
|
263
283
|
* Trim excess whitespace off the beginning and end of a string
|
|
@@ -266,8 +286,8 @@ function requireAxios () {
|
|
|
266
286
|
*
|
|
267
287
|
* @returns {String} The String freed of excess whitespace
|
|
268
288
|
*/
|
|
269
|
-
const trim = (str) =>
|
|
270
|
-
str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
289
|
+
const trim = (str) =>
|
|
290
|
+
str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
271
291
|
|
|
272
292
|
/**
|
|
273
293
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
@@ -285,9 +305,9 @@ function requireAxios () {
|
|
|
285
305
|
* @param {Boolean} [options.allOwnKeys = false]
|
|
286
306
|
* @returns {any}
|
|
287
307
|
*/
|
|
288
|
-
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
308
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
289
309
|
// Don't bother if no value provided
|
|
290
|
-
if (obj === null || typeof obj ===
|
|
310
|
+
if (obj === null || typeof obj === "undefined") {
|
|
291
311
|
return;
|
|
292
312
|
}
|
|
293
313
|
|
|
@@ -295,7 +315,7 @@ function requireAxios () {
|
|
|
295
315
|
let l;
|
|
296
316
|
|
|
297
317
|
// Force an array if not already something iterable
|
|
298
|
-
if (typeof obj !==
|
|
318
|
+
if (typeof obj !== "object") {
|
|
299
319
|
/*eslint no-param-reassign:0*/
|
|
300
320
|
obj = [obj];
|
|
301
321
|
}
|
|
@@ -312,7 +332,9 @@ function requireAxios () {
|
|
|
312
332
|
}
|
|
313
333
|
|
|
314
334
|
// Iterate over object keys
|
|
315
|
-
const keys = allOwnKeys
|
|
335
|
+
const keys = allOwnKeys
|
|
336
|
+
? Object.getOwnPropertyNames(obj)
|
|
337
|
+
: Object.keys(obj);
|
|
316
338
|
const len = keys.length;
|
|
317
339
|
let key;
|
|
318
340
|
|
|
@@ -324,7 +346,7 @@ function requireAxios () {
|
|
|
324
346
|
}
|
|
325
347
|
|
|
326
348
|
function findKey(obj, key) {
|
|
327
|
-
if (isBuffer(obj)){
|
|
349
|
+
if (isBuffer(obj)) {
|
|
328
350
|
return null;
|
|
329
351
|
}
|
|
330
352
|
|
|
@@ -344,10 +366,15 @@ function requireAxios () {
|
|
|
344
366
|
const _global = (() => {
|
|
345
367
|
/*eslint no-undef:0*/
|
|
346
368
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
347
|
-
return typeof self !== "undefined"
|
|
369
|
+
return typeof self !== "undefined"
|
|
370
|
+
? self
|
|
371
|
+
: typeof window !== "undefined"
|
|
372
|
+
? window
|
|
373
|
+
: commonjsGlobal;
|
|
348
374
|
})();
|
|
349
375
|
|
|
350
|
-
const isContextDefined = (context) =>
|
|
376
|
+
const isContextDefined = (context) =>
|
|
377
|
+
!isUndefined(context) && context !== _global;
|
|
351
378
|
|
|
352
379
|
/**
|
|
353
380
|
* Accepts varargs expecting each argument to be an object, then
|
|
@@ -368,10 +395,15 @@ function requireAxios () {
|
|
|
368
395
|
* @returns {Object} Result of all merge properties
|
|
369
396
|
*/
|
|
370
397
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
371
|
-
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
398
|
+
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
372
399
|
const result = {};
|
|
373
400
|
const assignValue = (val, key) => {
|
|
374
|
-
|
|
401
|
+
// Skip dangerous property names to prevent prototype pollution
|
|
402
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
403
|
+
return;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
375
407
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
376
408
|
result[targetKey] = merge(result[targetKey], val);
|
|
377
409
|
} else if (isPlainObject(val)) {
|
|
@@ -400,24 +432,28 @@ function requireAxios () {
|
|
|
400
432
|
* @param {Boolean} [options.allOwnKeys]
|
|
401
433
|
* @returns {Object} The resulting value of object a
|
|
402
434
|
*/
|
|
403
|
-
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
404
|
-
forEach(
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
435
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
436
|
+
forEach(
|
|
437
|
+
b,
|
|
438
|
+
(val, key) => {
|
|
439
|
+
if (thisArg && isFunction$1(val)) {
|
|
440
|
+
Object.defineProperty(a, key, {
|
|
441
|
+
value: bind(val, thisArg),
|
|
442
|
+
writable: true,
|
|
443
|
+
enumerable: true,
|
|
444
|
+
configurable: true,
|
|
445
|
+
});
|
|
446
|
+
} else {
|
|
447
|
+
Object.defineProperty(a, key, {
|
|
448
|
+
value: val,
|
|
449
|
+
writable: true,
|
|
450
|
+
enumerable: true,
|
|
451
|
+
configurable: true,
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
{ allOwnKeys },
|
|
456
|
+
);
|
|
421
457
|
return a;
|
|
422
458
|
};
|
|
423
459
|
|
|
@@ -429,7 +465,7 @@ function requireAxios () {
|
|
|
429
465
|
* @returns {string} content value without BOM
|
|
430
466
|
*/
|
|
431
467
|
const stripBOM = (content) => {
|
|
432
|
-
if (content.charCodeAt(0) ===
|
|
468
|
+
if (content.charCodeAt(0) === 0xfeff) {
|
|
433
469
|
content = content.slice(1);
|
|
434
470
|
}
|
|
435
471
|
return content;
|
|
@@ -445,15 +481,18 @@ function requireAxios () {
|
|
|
445
481
|
* @returns {void}
|
|
446
482
|
*/
|
|
447
483
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
448
|
-
constructor.prototype = Object.create(
|
|
449
|
-
|
|
484
|
+
constructor.prototype = Object.create(
|
|
485
|
+
superConstructor.prototype,
|
|
486
|
+
descriptors,
|
|
487
|
+
);
|
|
488
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
450
489
|
value: constructor,
|
|
451
490
|
writable: true,
|
|
452
491
|
enumerable: false,
|
|
453
|
-
configurable: true
|
|
492
|
+
configurable: true,
|
|
454
493
|
});
|
|
455
|
-
Object.defineProperty(constructor,
|
|
456
|
-
value: superConstructor.prototype
|
|
494
|
+
Object.defineProperty(constructor, "super", {
|
|
495
|
+
value: superConstructor.prototype,
|
|
457
496
|
});
|
|
458
497
|
props && Object.assign(constructor.prototype, props);
|
|
459
498
|
};
|
|
@@ -482,13 +521,20 @@ function requireAxios () {
|
|
|
482
521
|
i = props.length;
|
|
483
522
|
while (i-- > 0) {
|
|
484
523
|
prop = props[i];
|
|
485
|
-
if (
|
|
524
|
+
if (
|
|
525
|
+
(!propFilter || propFilter(prop, sourceObj, destObj)) &&
|
|
526
|
+
!merged[prop]
|
|
527
|
+
) {
|
|
486
528
|
destObj[prop] = sourceObj[prop];
|
|
487
529
|
merged[prop] = true;
|
|
488
530
|
}
|
|
489
531
|
}
|
|
490
532
|
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
|
491
|
-
} while (
|
|
533
|
+
} while (
|
|
534
|
+
sourceObj &&
|
|
535
|
+
(!filter || filter(sourceObj, destObj)) &&
|
|
536
|
+
sourceObj !== Object.prototype
|
|
537
|
+
);
|
|
492
538
|
|
|
493
539
|
return destObj;
|
|
494
540
|
};
|
|
@@ -512,7 +558,6 @@ function requireAxios () {
|
|
|
512
558
|
return lastIndex !== -1 && lastIndex === position;
|
|
513
559
|
};
|
|
514
560
|
|
|
515
|
-
|
|
516
561
|
/**
|
|
517
562
|
* Returns new array from array like object or null if failed
|
|
518
563
|
*
|
|
@@ -541,12 +586,12 @@ function requireAxios () {
|
|
|
541
586
|
* @returns {Array}
|
|
542
587
|
*/
|
|
543
588
|
// eslint-disable-next-line func-names
|
|
544
|
-
const isTypedArray = (TypedArray => {
|
|
589
|
+
const isTypedArray = ((TypedArray) => {
|
|
545
590
|
// eslint-disable-next-line func-names
|
|
546
|
-
return thing => {
|
|
591
|
+
return (thing) => {
|
|
547
592
|
return TypedArray && thing instanceof TypedArray;
|
|
548
593
|
};
|
|
549
|
-
})(typeof Uint8Array !==
|
|
594
|
+
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
550
595
|
|
|
551
596
|
/**
|
|
552
597
|
* For each entry in the object, call the function with the key and value.
|
|
@@ -589,18 +634,22 @@ function requireAxios () {
|
|
|
589
634
|
};
|
|
590
635
|
|
|
591
636
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
592
|
-
const isHTMLForm = kindOfTest(
|
|
637
|
+
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
593
638
|
|
|
594
|
-
const toCamelCase = str => {
|
|
595
|
-
return str
|
|
596
|
-
|
|
639
|
+
const toCamelCase = (str) => {
|
|
640
|
+
return str
|
|
641
|
+
.toLowerCase()
|
|
642
|
+
.replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
597
643
|
return p1.toUpperCase() + p2;
|
|
598
|
-
}
|
|
599
|
-
);
|
|
644
|
+
});
|
|
600
645
|
};
|
|
601
646
|
|
|
602
647
|
/* Creating a function that will check if an object has a property. */
|
|
603
|
-
const hasOwnProperty = (
|
|
648
|
+
const hasOwnProperty = (
|
|
649
|
+
({ hasOwnProperty }) =>
|
|
650
|
+
(obj, prop) =>
|
|
651
|
+
hasOwnProperty.call(obj, prop)
|
|
652
|
+
)(Object.prototype);
|
|
604
653
|
|
|
605
654
|
/**
|
|
606
655
|
* Determine if a value is a RegExp object
|
|
@@ -609,7 +658,7 @@ function requireAxios () {
|
|
|
609
658
|
*
|
|
610
659
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
611
660
|
*/
|
|
612
|
-
const isRegExp = kindOfTest(
|
|
661
|
+
const isRegExp = kindOfTest("RegExp");
|
|
613
662
|
|
|
614
663
|
const reduceDescriptors = (obj, reducer) => {
|
|
615
664
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -633,7 +682,10 @@ function requireAxios () {
|
|
|
633
682
|
const freezeMethods = (obj) => {
|
|
634
683
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
635
684
|
// skip restricted props in strict mode
|
|
636
|
-
if (
|
|
685
|
+
if (
|
|
686
|
+
isFunction$1(obj) &&
|
|
687
|
+
["arguments", "caller", "callee"].indexOf(name) !== -1
|
|
688
|
+
) {
|
|
637
689
|
return false;
|
|
638
690
|
}
|
|
639
691
|
|
|
@@ -643,14 +695,14 @@ function requireAxios () {
|
|
|
643
695
|
|
|
644
696
|
descriptor.enumerable = false;
|
|
645
697
|
|
|
646
|
-
if (
|
|
698
|
+
if ("writable" in descriptor) {
|
|
647
699
|
descriptor.writable = false;
|
|
648
700
|
return;
|
|
649
701
|
}
|
|
650
702
|
|
|
651
703
|
if (!descriptor.set) {
|
|
652
704
|
descriptor.set = () => {
|
|
653
|
-
throw Error(
|
|
705
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
654
706
|
};
|
|
655
707
|
}
|
|
656
708
|
});
|
|
@@ -660,12 +712,14 @@ function requireAxios () {
|
|
|
660
712
|
const obj = {};
|
|
661
713
|
|
|
662
714
|
const define = (arr) => {
|
|
663
|
-
arr.forEach(value => {
|
|
715
|
+
arr.forEach((value) => {
|
|
664
716
|
obj[value] = true;
|
|
665
717
|
});
|
|
666
718
|
};
|
|
667
719
|
|
|
668
|
-
isArray(arrayOrString)
|
|
720
|
+
isArray(arrayOrString)
|
|
721
|
+
? define(arrayOrString)
|
|
722
|
+
: define(String(arrayOrString).split(delimiter));
|
|
669
723
|
|
|
670
724
|
return obj;
|
|
671
725
|
};
|
|
@@ -673,11 +727,11 @@ function requireAxios () {
|
|
|
673
727
|
const noop = () => {};
|
|
674
728
|
|
|
675
729
|
const toFiniteNumber = (value, defaultValue) => {
|
|
676
|
-
return value != null && Number.isFinite(value = +value)
|
|
730
|
+
return value != null && Number.isFinite((value = +value))
|
|
731
|
+
? value
|
|
732
|
+
: defaultValue;
|
|
677
733
|
};
|
|
678
734
|
|
|
679
|
-
|
|
680
|
-
|
|
681
735
|
/**
|
|
682
736
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
683
737
|
*
|
|
@@ -686,14 +740,18 @@ function requireAxios () {
|
|
|
686
740
|
* @returns {boolean}
|
|
687
741
|
*/
|
|
688
742
|
function isSpecCompliantForm(thing) {
|
|
689
|
-
return !!(
|
|
743
|
+
return !!(
|
|
744
|
+
thing &&
|
|
745
|
+
isFunction$1(thing.append) &&
|
|
746
|
+
thing[toStringTag] === "FormData" &&
|
|
747
|
+
thing[iterator]
|
|
748
|
+
);
|
|
690
749
|
}
|
|
691
750
|
|
|
692
751
|
const toJSONObject = (obj) => {
|
|
693
752
|
const stack = new Array(10);
|
|
694
753
|
|
|
695
754
|
const visit = (source, i) => {
|
|
696
|
-
|
|
697
755
|
if (isObject(source)) {
|
|
698
756
|
if (stack.indexOf(source) >= 0) {
|
|
699
757
|
return;
|
|
@@ -704,7 +762,7 @@ function requireAxios () {
|
|
|
704
762
|
return source;
|
|
705
763
|
}
|
|
706
764
|
|
|
707
|
-
if(!(
|
|
765
|
+
if (!("toJSON" in source)) {
|
|
708
766
|
stack[i] = source;
|
|
709
767
|
const target = isArray(source) ? [] : {};
|
|
710
768
|
|
|
@@ -725,10 +783,13 @@ function requireAxios () {
|
|
|
725
783
|
return visit(obj, 0);
|
|
726
784
|
};
|
|
727
785
|
|
|
728
|
-
const isAsyncFn = kindOfTest(
|
|
786
|
+
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
729
787
|
|
|
730
788
|
const isThenable = (thing) =>
|
|
731
|
-
thing &&
|
|
789
|
+
thing &&
|
|
790
|
+
(isObject(thing) || isFunction$1(thing)) &&
|
|
791
|
+
isFunction$1(thing.then) &&
|
|
792
|
+
isFunction$1(thing.catch);
|
|
732
793
|
|
|
733
794
|
// original code
|
|
734
795
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
@@ -738,32 +799,35 @@ function requireAxios () {
|
|
|
738
799
|
return setImmediate;
|
|
739
800
|
}
|
|
740
801
|
|
|
741
|
-
return postMessageSupported
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
802
|
+
return postMessageSupported
|
|
803
|
+
? ((token, callbacks) => {
|
|
804
|
+
_global.addEventListener(
|
|
805
|
+
"message",
|
|
806
|
+
({ source, data }) => {
|
|
807
|
+
if (source === _global && data === token) {
|
|
808
|
+
callbacks.length && callbacks.shift()();
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
false,
|
|
812
|
+
);
|
|
747
813
|
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
isFunction$1(_global.postMessage)
|
|
756
|
-
);
|
|
814
|
+
return (cb) => {
|
|
815
|
+
callbacks.push(cb);
|
|
816
|
+
_global.postMessage(token, "*");
|
|
817
|
+
};
|
|
818
|
+
})(`axios@${Math.random()}`, [])
|
|
819
|
+
: (cb) => setTimeout(cb);
|
|
820
|
+
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
757
821
|
|
|
758
|
-
const asap =
|
|
759
|
-
|
|
822
|
+
const asap =
|
|
823
|
+
typeof queueMicrotask !== "undefined"
|
|
824
|
+
? queueMicrotask.bind(_global)
|
|
825
|
+
: (typeof process !== "undefined" && process.nextTick) || _setImmediate;
|
|
760
826
|
|
|
761
827
|
// *********************
|
|
762
828
|
|
|
763
|
-
|
|
764
829
|
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
765
830
|
|
|
766
|
-
|
|
767
831
|
var utils$1 = {
|
|
768
832
|
isArray,
|
|
769
833
|
isArrayBuffer,
|
|
@@ -821,7 +885,7 @@ function requireAxios () {
|
|
|
821
885
|
isThenable,
|
|
822
886
|
setImmediate: _setImmediate,
|
|
823
887
|
asap,
|
|
824
|
-
isIterable
|
|
888
|
+
isIterable,
|
|
825
889
|
};
|
|
826
890
|
|
|
827
891
|
class AxiosError extends Error {
|
|
@@ -1297,7 +1361,8 @@ function requireAxios () {
|
|
|
1297
1361
|
var transitionalDefaults = {
|
|
1298
1362
|
silentJSONParsing: true,
|
|
1299
1363
|
forcedJSONParsing: true,
|
|
1300
|
-
clarifyTimeoutError: false
|
|
1364
|
+
clarifyTimeoutError: false,
|
|
1365
|
+
legacyInterceptorReqResOrdering: true
|
|
1301
1366
|
};
|
|
1302
1367
|
|
|
1303
1368
|
var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
|
@@ -2277,6 +2342,10 @@ function requireAxios () {
|
|
|
2277
2342
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
2278
2343
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
2279
2344
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
2345
|
+
if (typeof url !== 'string') {
|
|
2346
|
+
return false;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2280
2349
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
2281
2350
|
}
|
|
2282
2351
|
|
|
@@ -2312,7 +2381,8 @@ function requireAxios () {
|
|
|
2312
2381
|
return requestedURL;
|
|
2313
2382
|
}
|
|
2314
2383
|
|
|
2315
|
-
const headersToObject = (thing) =>
|
|
2384
|
+
const headersToObject = (thing) =>
|
|
2385
|
+
thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
2316
2386
|
|
|
2317
2387
|
/**
|
|
2318
2388
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -2401,14 +2471,27 @@ function requireAxios () {
|
|
|
2401
2471
|
socketPath: defaultToConfig2,
|
|
2402
2472
|
responseEncoding: defaultToConfig2,
|
|
2403
2473
|
validateStatus: mergeDirectKeys,
|
|
2404
|
-
headers: (a, b, prop) =>
|
|
2474
|
+
headers: (a, b, prop) =>
|
|
2475
|
+
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
2405
2476
|
};
|
|
2406
2477
|
|
|
2407
|
-
utils$1.forEach(
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2478
|
+
utils$1.forEach(
|
|
2479
|
+
Object.keys({ ...config1, ...config2 }),
|
|
2480
|
+
function computeConfigValue(prop) {
|
|
2481
|
+
if (
|
|
2482
|
+
prop === "__proto__" ||
|
|
2483
|
+
prop === "constructor" ||
|
|
2484
|
+
prop === "prototype"
|
|
2485
|
+
)
|
|
2486
|
+
return;
|
|
2487
|
+
const merge = utils$1.hasOwnProp(mergeMap, prop)
|
|
2488
|
+
? mergeMap[prop]
|
|
2489
|
+
: mergeDeepProperties;
|
|
2490
|
+
const configValue = merge(config1[prop], config2[prop], prop);
|
|
2491
|
+
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) ||
|
|
2492
|
+
(config[prop] = configValue);
|
|
2493
|
+
},
|
|
2494
|
+
);
|
|
2412
2495
|
|
|
2413
2496
|
return config;
|
|
2414
2497
|
}
|
|
@@ -3026,14 +3109,14 @@ function requireAxios () {
|
|
|
3026
3109
|
|
|
3027
3110
|
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
3028
3111
|
throw Object.assign(
|
|
3029
|
-
new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
|
|
3112
|
+
new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request, err && err.response),
|
|
3030
3113
|
{
|
|
3031
3114
|
cause: err.cause || err
|
|
3032
3115
|
}
|
|
3033
3116
|
)
|
|
3034
3117
|
}
|
|
3035
3118
|
|
|
3036
|
-
throw AxiosError$1.from(err, err && err.code, config, request);
|
|
3119
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
3037
3120
|
}
|
|
3038
3121
|
}
|
|
3039
3122
|
};
|
|
@@ -3258,7 +3341,7 @@ function requireAxios () {
|
|
|
3258
3341
|
});
|
|
3259
3342
|
}
|
|
3260
3343
|
|
|
3261
|
-
const VERSION = "1.13.
|
|
3344
|
+
const VERSION = "1.13.5";
|
|
3262
3345
|
|
|
3263
3346
|
const validators$1 = {};
|
|
3264
3347
|
|
|
@@ -3426,7 +3509,8 @@ function requireAxios () {
|
|
|
3426
3509
|
validator.assertOptions(transitional, {
|
|
3427
3510
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
3428
3511
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
3429
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
3512
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
3513
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
3430
3514
|
}, false);
|
|
3431
3515
|
}
|
|
3432
3516
|
|
|
@@ -3483,7 +3567,14 @@ function requireAxios () {
|
|
|
3483
3567
|
|
|
3484
3568
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
3485
3569
|
|
|
3486
|
-
|
|
3570
|
+
const transitional = config.transitional || transitionalDefaults;
|
|
3571
|
+
const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
|
|
3572
|
+
|
|
3573
|
+
if (legacyInterceptorReqResOrdering) {
|
|
3574
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
3575
|
+
} else {
|
|
3576
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
3577
|
+
}
|
|
3487
3578
|
});
|
|
3488
3579
|
|
|
3489
3580
|
const responseInterceptorChain = [];
|