@verdocs/web-sdk 6.9.10 → 6.9.12

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.
@@ -8,7 +8,7 @@ var utils = require('./utils-BtmSHO0F.js');
8
8
  require('./index-FVA5WPhX.js');
9
9
  require('./Types-DB6U9iuZ.js');
10
10
 
11
- /*! Axios v1.16.1 Copyright (c) 2026 Matt Zabriskie and contributors */
11
+ /*! Axios v1.17.0 Copyright (c) 2026 Matt Zabriskie and contributors */
12
12
 
13
13
  var axios_1;
14
14
  var hasRequiredAxios;
@@ -440,7 +440,9 @@ function requireAxios () {
440
440
  return;
441
441
  }
442
442
 
443
- const targetKey = (caseless && findKey(result, key)) || key;
443
+ // findKey lowercases the key, so caseless lookup only applies to strings —
444
+ // symbol keys are identity-matched.
445
+ const targetKey = (caseless && typeof key === 'string' && findKey(result, key)) || key;
444
446
  // Read via own-prop only — a bare `result[targetKey]` walks the prototype
445
447
  // chain, so a polluted Object.prototype value could surface here and get
446
448
  // copied into the merged result.
@@ -457,7 +459,24 @@ function requireAxios () {
457
459
  };
458
460
 
459
461
  for (let i = 0, l = objs.length; i < l; i++) {
460
- objs[i] && forEach(objs[i], assignValue);
462
+ const source = objs[i];
463
+ if (!source || isBuffer(source)) {
464
+ continue;
465
+ }
466
+
467
+ forEach(source, assignValue);
468
+
469
+ if (typeof source !== 'object' || isArray(source)) {
470
+ continue;
471
+ }
472
+
473
+ const symbols = Object.getOwnPropertySymbols(source);
474
+ for (let j = 0; j < symbols.length; j++) {
475
+ const symbol = symbols[j];
476
+ if (propertyIsEnumerable.call(source, symbol)) {
477
+ assignValue(source[symbol], symbol);
478
+ }
479
+ }
461
480
  }
462
481
  return result;
463
482
  }
@@ -686,6 +705,8 @@ function requireAxios () {
686
705
  hasOwnProperty.call(obj, prop)
687
706
  )(Object.prototype);
688
707
 
708
+ const { propertyIsEnumerable } = Object.prototype;
709
+
689
710
  /**
690
711
  * Determine if a value is a RegExp object
691
712
  *
@@ -1167,7 +1188,7 @@ function requireAxios () {
1167
1188
  const lHeader = normalizeHeader(_header);
1168
1189
 
1169
1190
  if (!lHeader) {
1170
- throw new Error('header name must be a non-empty string');
1191
+ return;
1171
1192
  }
1172
1193
 
1173
1194
  const key = utils$1.findKey(self, lHeader);
@@ -1195,7 +1216,7 @@ function requireAxios () {
1195
1216
  key;
1196
1217
  for (const entry of header) {
1197
1218
  if (!utils$1.isArray(entry)) {
1198
- throw TypeError('Object iterator must return a key-value pair');
1219
+ throw new TypeError('Object iterator must return a key-value pair');
1199
1220
  }
1200
1221
 
1201
1222
  obj[(key = entry[0])] = (dest = obj[key])
@@ -1810,7 +1831,7 @@ function requireAxios () {
1810
1831
  }
1811
1832
 
1812
1833
  if (stack.indexOf(value) !== -1) {
1813
- throw Error('Circular reference detected in ' + path.join('.'));
1834
+ throw new Error('Circular reference detected in ' + path.join('.'));
1814
1835
  }
1815
1836
 
1816
1837
  stack.push(value);
@@ -2027,6 +2048,7 @@ function requireAxios () {
2027
2048
  forcedJSONParsing: true,
2028
2049
  clarifyTimeoutError: false,
2029
2050
  legacyInterceptorReqResOrdering: true,
2051
+ advertiseZstdAcceptEncoding: false,
2030
2052
  };
2031
2053
 
2032
2054
  var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
@@ -2861,12 +2883,12 @@ function requireAxios () {
2861
2883
  *
2862
2884
  * @returns {string} UTF-8 bytes as a Latin-1 string
2863
2885
  */
2864
- const encodeUTF8 = (str) =>
2886
+ const encodeUTF8$1 = (str) =>
2865
2887
  encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>
2866
2888
  String.fromCharCode(parseInt(hex, 16))
2867
2889
  );
2868
2890
 
2869
- var resolveConfig = (config) => {
2891
+ function resolveConfig(config) {
2870
2892
  const newConfig = mergeConfig({}, config);
2871
2893
 
2872
2894
  // Read only own properties to prevent prototype pollution gadgets
@@ -2887,8 +2909,8 @@ function requireAxios () {
2887
2909
 
2888
2910
  newConfig.url = buildURL(
2889
2911
  buildFullPath(baseURL, url, allowAbsoluteUrls),
2890
- config.params,
2891
- config.paramsSerializer
2912
+ own('params'),
2913
+ own('paramsSerializer')
2892
2914
  );
2893
2915
 
2894
2916
  // HTTP basic authentication
@@ -2896,13 +2918,17 @@ function requireAxios () {
2896
2918
  headers.set(
2897
2919
  'Authorization',
2898
2920
  'Basic ' +
2899
- btoa((auth.username || '') + ':' + (auth.password ? encodeUTF8(auth.password) : ''))
2921
+ btoa((auth.username || '') + ':' + (auth.password ? encodeUTF8$1(auth.password) : ''))
2900
2922
  );
2901
2923
  }
2902
2924
 
2903
2925
  if (utils$1.isFormData(data)) {
2904
- if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
2905
- headers.setContentType(undefined); // browser handles it
2926
+ if (
2927
+ platform.hasStandardBrowserEnv ||
2928
+ platform.hasStandardBrowserWebWorkerEnv ||
2929
+ utils$1.isReactNative(data)
2930
+ ) {
2931
+ headers.setContentType(undefined); // browser/web worker/RN handles it
2906
2932
  } else if (utils$1.isFunction(data.getHeaders)) {
2907
2933
  // Node.js FormData (like form-data package)
2908
2934
  setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));
@@ -2934,7 +2960,7 @@ function requireAxios () {
2934
2960
  }
2935
2961
 
2936
2962
  return newConfig;
2937
- };
2963
+ }
2938
2964
 
2939
2965
  const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
2940
2966
 
@@ -3395,12 +3421,41 @@ function requireAxios () {
3395
3421
  return bytes;
3396
3422
  }
3397
3423
 
3398
- const VERSION = "1.16.1";
3424
+ const VERSION = "1.17.0";
3399
3425
 
3400
3426
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
3401
3427
 
3402
3428
  const { isFunction } = utils$1;
3403
3429
 
3430
+ /**
3431
+ * Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
3432
+ * This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
3433
+ *
3434
+ * @param {string} str The string to encode
3435
+ *
3436
+ * @returns {string} UTF-8 bytes as a Latin-1 string
3437
+ */
3438
+ const encodeUTF8 = (str) =>
3439
+ encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>
3440
+ String.fromCharCode(parseInt(hex, 16))
3441
+ );
3442
+
3443
+ // Node's WHATWG URL parser returns `username` and `password` percent-encoded.
3444
+ // Decode before composing the `auth` option so credentials such as
3445
+ // `my%40email.com:pass` are sent as `my@email.com:pass`. Falls back to the
3446
+ // original value for malformed input so a bad encoding never throws.
3447
+ const decodeURIComponentSafe = (value) => {
3448
+ if (!utils$1.isString(value)) {
3449
+ return value;
3450
+ }
3451
+
3452
+ try {
3453
+ return decodeURIComponent(value);
3454
+ } catch (error) {
3455
+ return value;
3456
+ }
3457
+ };
3458
+
3404
3459
  const test = (fn, ...args) => {
3405
3460
  try {
3406
3461
  return !!fn(...args);
@@ -3409,6 +3464,15 @@ function requireAxios () {
3409
3464
  }
3410
3465
  };
3411
3466
 
3467
+ const maybeWithAuthCredentials = (url) => {
3468
+ const protocolIndex = url.indexOf('://');
3469
+ let urlToCheck = url;
3470
+ if (protocolIndex !== -1) {
3471
+ urlToCheck = urlToCheck.slice(protocolIndex + 3);
3472
+ }
3473
+ return urlToCheck.includes('@') || urlToCheck.includes(':');
3474
+ };
3475
+
3412
3476
  const factory = (env) => {
3413
3477
  const globalObject =
3414
3478
  utils$1.global !== undefined && utils$1.global !== null
@@ -3556,6 +3620,7 @@ function requireAxios () {
3556
3620
 
3557
3621
  const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
3558
3622
  const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
3623
+ const own = (key) => (utils$1.hasOwnProp(config, key) ? config[key] : undefined);
3559
3624
 
3560
3625
  let _fetch = envFetch || fetch;
3561
3626
 
@@ -3578,6 +3643,46 @@ function requireAxios () {
3578
3643
  let requestContentLength;
3579
3644
 
3580
3645
  try {
3646
+ // HTTP basic authentication
3647
+ let auth = undefined;
3648
+ const configAuth = own('auth');
3649
+
3650
+ if (configAuth) {
3651
+ const username = configAuth.username || '';
3652
+ const password = configAuth.password || '';
3653
+ auth = {
3654
+ username,
3655
+ password
3656
+ };
3657
+ }
3658
+
3659
+ if (maybeWithAuthCredentials(url)) {
3660
+ const parsedURL = new URL(url, platform.origin);
3661
+
3662
+ if (!auth && (parsedURL.username || parsedURL.password)) {
3663
+ const urlUsername = decodeURIComponentSafe(parsedURL.username);
3664
+ const urlPassword = decodeURIComponentSafe(parsedURL.password);
3665
+ auth = {
3666
+ username: urlUsername,
3667
+ password: urlPassword
3668
+ };
3669
+ }
3670
+
3671
+ if (parsedURL.username || parsedURL.password) {
3672
+ parsedURL.username = '';
3673
+ parsedURL.password = '';
3674
+ url = parsedURL.href;
3675
+ }
3676
+ }
3677
+
3678
+ if (auth) {
3679
+ headers.delete('authorization');
3680
+ headers.set(
3681
+ 'Authorization',
3682
+ 'Basic ' + btoa(encodeUTF8((auth.username || '') + ':' + (auth.password || '')))
3683
+ );
3684
+ }
3685
+
3581
3686
  // Enforce maxContentLength for data: URLs up-front so we never materialize
3582
3687
  // an oversized payload. The HTTP adapter applies the same check (see http.js
3583
3688
  // "if (protocol === 'data:')" branch).
@@ -4259,6 +4364,7 @@ function requireAxios () {
4259
4364
  forcedJSONParsing: validators.transitional(validators.boolean),
4260
4365
  clarifyTimeoutError: validators.transitional(validators.boolean),
4261
4366
  legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
4367
+ advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
4262
4368
  },
4263
4369
  false
4264
4370
  );