@nsshunt/stsrunnerframework 1.0.54 → 1.0.55

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.
@@ -1796,21 +1796,6 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1796
1796
  const toFiniteNumber = (value2, defaultValue) => {
1797
1797
  return value2 != null && Number.isFinite(value2 = +value2) ? value2 : defaultValue;
1798
1798
  };
1799
- const ALPHA = "abcdefghijklmnopqrstuvwxyz";
1800
- const DIGIT = "0123456789";
1801
- const ALPHABET = {
1802
- DIGIT,
1803
- ALPHA,
1804
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
1805
- };
1806
- const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
1807
- let str = "";
1808
- const { length } = alphabet;
1809
- while (size--) {
1810
- str += alphabet[Math.random() * length | 0];
1811
- }
1812
- return str;
1813
- };
1814
1799
  function isSpecCompliantForm(thing) {
1815
1800
  return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
1816
1801
  }
@@ -1909,8 +1894,6 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1909
1894
  findKey,
1910
1895
  global: _global,
1911
1896
  isContextDefined,
1912
- ALPHABET,
1913
- generateString,
1914
1897
  isSpecCompliantForm,
1915
1898
  toJSONObject,
1916
1899
  isAsyncFn,
@@ -2866,8 +2849,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
2866
2849
  function combineURLs(baseURL, relativeURL) {
2867
2850
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
2868
2851
  }
2869
- function buildFullPath(baseURL, requestedURL) {
2870
- if (baseURL && !isAbsoluteURL(requestedURL)) {
2852
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
2853
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
2854
+ if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
2871
2855
  return combineURLs(baseURL, requestedURL);
2872
2856
  }
2873
2857
  return requestedURL;
@@ -3471,7 +3455,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
3471
3455
  return Promise.reject(reason);
3472
3456
  });
3473
3457
  }
3474
- const VERSION$1 = "1.7.9";
3458
+ const VERSION$1 = "1.8.1";
3475
3459
  const validators$2 = {};
3476
3460
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
3477
3461
  validators$2[type] = function validator2(thing) {
@@ -3599,6 +3583,12 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
3599
3583
  }, true);
3600
3584
  }
3601
3585
  }
3586
+ if (config2.allowAbsoluteUrls !== void 0) ;
3587
+ else if (this.defaults.allowAbsoluteUrls !== void 0) {
3588
+ config2.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
3589
+ } else {
3590
+ config2.allowAbsoluteUrls = true;
3591
+ }
3602
3592
  validator.assertOptions(config2, {
3603
3593
  baseUrl: validators$1.spelling("baseURL"),
3604
3594
  withXsrfToken: validators$1.spelling("withXSRFToken")
@@ -3669,7 +3659,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
3669
3659
  }
3670
3660
  getUri(config2) {
3671
3661
  config2 = mergeConfig$1(this.defaults, config2);
3672
- const fullPath = buildFullPath(config2.baseURL, config2.url);
3662
+ const fullPath = buildFullPath(config2.baseURL, config2.url, config2.allowAbsoluteUrls);
3673
3663
  return buildURL(fullPath, config2.params, config2.paramsSerializer);
3674
3664
  }
3675
3665
  };
@@ -8834,7 +8824,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
8834
8824
  hasRequiredVersion = 1;
8835
8825
  Object.defineProperty(version$1, "__esModule", { value: true });
8836
8826
  version$1.version = void 0;
8837
- version$1.version = "5.1.0";
8827
+ version$1.version = "5.1.2";
8838
8828
  return version$1;
8839
8829
  }
8840
8830
  var canonicalDomain = {};
@@ -8843,14 +8833,16 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
8843
8833
  function requireConstants$1() {
8844
8834
  if (hasRequiredConstants$1) return constants$1;
8845
8835
  hasRequiredConstants$1 = 1;
8846
- Object.defineProperty(constants$1, "__esModule", { value: true });
8847
- constants$1.IP_V6_REGEX_OBJECT = constants$1.PrefixSecurityEnum = void 0;
8848
- constants$1.PrefixSecurityEnum = Object.freeze({
8849
- SILENT: "silent",
8850
- STRICT: "strict",
8851
- DISABLED: "unsafe-disabled"
8852
- });
8853
- const IP_V6_REGEX = `
8836
+ (function(exports3) {
8837
+ Object.defineProperty(exports3, "__esModule", { value: true });
8838
+ exports3.IP_V6_REGEX_OBJECT = exports3.PrefixSecurityEnum = void 0;
8839
+ exports3.PrefixSecurityEnum = {
8840
+ SILENT: "silent",
8841
+ STRICT: "strict",
8842
+ DISABLED: "unsafe-disabled"
8843
+ };
8844
+ Object.freeze(exports3.PrefixSecurityEnum);
8845
+ const IP_V6_REGEX = `
8854
8846
  \\[?(?:
8855
8847
  (?:[a-fA-F\\d]{1,4}:){7}(?:[a-fA-F\\d]{1,4}|:)|
8856
8848
  (?:[a-fA-F\\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|:[a-fA-F\\d]{1,4}|:)|
@@ -8862,7 +8854,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
8862
8854
  (?::(?:(?::[a-fA-F\\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,7}|:))
8863
8855
  )(?:%[0-9a-zA-Z]{1,})?\\]?
8864
8856
  `.replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
8865
- constants$1.IP_V6_REGEX_OBJECT = new RegExp(`^${IP_V6_REGEX}$`);
8857
+ exports3.IP_V6_REGEX_OBJECT = new RegExp(`^${IP_V6_REGEX}$`);
8858
+ })(constants$1);
8866
8859
  return constants$1;
8867
8860
  }
8868
8861
  var hasRequiredCanonicalDomain;
@@ -9848,7 +9841,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
9848
9841
  if (_str == _domStr) {
9849
9842
  return true;
9850
9843
  }
9851
- const idx = _str.lastIndexOf(cookieDomain);
9844
+ const idx = _str.lastIndexOf(_domStr);
9852
9845
  if (idx <= 0) {
9853
9846
  return false;
9854
9847
  }