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