@dereekb/util 13.4.2 → 13.5.1
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/fetch/index.cjs.js +11 -36
- package/fetch/index.esm.js +11 -36
- package/fetch/package.json +2 -2
- package/index.cjs.js +255 -274
- package/index.esm.js +253 -275
- package/package.json +1 -1
- package/src/lib/contact/phone.d.ts +24 -3
- package/src/lib/string/html.d.ts +51 -0
- package/test/package.json +2 -2
package/fetch/index.cjs.js
CHANGED
|
@@ -281,7 +281,7 @@ var FetchTimeoutError = /*#__PURE__*/ function(BaseError) {
|
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
function _array_like_to_array$
|
|
284
|
+
function _array_like_to_array$2(arr, len) {
|
|
285
285
|
if (len == null || len > arr.length) len = arr.length;
|
|
286
286
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
287
287
|
return arr2;
|
|
@@ -400,19 +400,19 @@ function _object_spread_props$2(target, source) {
|
|
|
400
400
|
return target;
|
|
401
401
|
}
|
|
402
402
|
function _sliced_to_array$2(arr, i) {
|
|
403
|
-
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$
|
|
403
|
+
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
|
|
404
404
|
}
|
|
405
405
|
function _type_of$3(obj) {
|
|
406
406
|
"@swc/helpers - typeof";
|
|
407
407
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
408
408
|
}
|
|
409
|
-
function _unsupported_iterable_to_array$
|
|
409
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
410
410
|
if (!o) return;
|
|
411
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
411
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
412
412
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
413
413
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
414
414
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
415
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
415
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
416
416
|
}
|
|
417
417
|
function _ts_generator$4(thisArg, body) {
|
|
418
418
|
var f, y, t, _ = {
|
|
@@ -1733,7 +1733,7 @@ var FetchPageLimitReachedError = /*#__PURE__*/ function(FetchRequestFactoryError
|
|
|
1733
1733
|
};
|
|
1734
1734
|
}
|
|
1735
1735
|
|
|
1736
|
-
function _array_like_to_array$
|
|
1736
|
+
function _array_like_to_array$1(arr, len) {
|
|
1737
1737
|
if (len == null || len > arr.length) len = arr.length;
|
|
1738
1738
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1739
1739
|
return arr2;
|
|
@@ -1845,15 +1845,15 @@ function _object_spread_props$1(target, source) {
|
|
|
1845
1845
|
return target;
|
|
1846
1846
|
}
|
|
1847
1847
|
function _sliced_to_array$1(arr, i) {
|
|
1848
|
-
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$
|
|
1848
|
+
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
|
|
1849
1849
|
}
|
|
1850
|
-
function _unsupported_iterable_to_array$
|
|
1850
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
1851
1851
|
if (!o) return;
|
|
1852
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1852
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
1853
1853
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1854
1854
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1855
1855
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1856
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1856
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
1857
1857
|
}
|
|
1858
1858
|
function _ts_generator(thisArg, body) {
|
|
1859
1859
|
var f, y, t, _ = {
|
|
@@ -2212,31 +2212,6 @@ function iterateFetchPages(config) {
|
|
|
2212
2212
|
})();
|
|
2213
2213
|
}
|
|
2214
2214
|
|
|
2215
|
-
function _array_like_to_array$1(arr, len) {
|
|
2216
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
2217
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2218
|
-
return arr2;
|
|
2219
|
-
}
|
|
2220
|
-
function _array_without_holes(arr) {
|
|
2221
|
-
if (Array.isArray(arr)) return _array_like_to_array$1(arr);
|
|
2222
|
-
}
|
|
2223
|
-
function _iterable_to_array(iter) {
|
|
2224
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2225
|
-
}
|
|
2226
|
-
function _non_iterable_spread() {
|
|
2227
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2228
|
-
}
|
|
2229
|
-
function _to_consumable_array(arr) {
|
|
2230
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread();
|
|
2231
|
-
}
|
|
2232
|
-
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
2233
|
-
if (!o) return;
|
|
2234
|
-
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
2235
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2236
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2237
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2238
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
2239
|
-
}
|
|
2240
2215
|
/**
|
|
2241
2216
|
* Creates URLSearchParams from the input objects. The input objects are merged together.
|
|
2242
2217
|
*
|
|
@@ -2286,7 +2261,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
2286
2261
|
}
|
|
2287
2262
|
});
|
|
2288
2263
|
return {
|
|
2289
|
-
omitKeys: omitKeys.size > 0 ?
|
|
2264
|
+
omitKeys: omitKeys.size > 0 ? Array.from(omitKeys) : undefined
|
|
2290
2265
|
};
|
|
2291
2266
|
}
|
|
2292
2267
|
|
package/fetch/index.esm.js
CHANGED
|
@@ -279,7 +279,7 @@ var FetchTimeoutError = /*#__PURE__*/ function(BaseError) {
|
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
function _array_like_to_array$
|
|
282
|
+
function _array_like_to_array$2(arr, len) {
|
|
283
283
|
if (len == null || len > arr.length) len = arr.length;
|
|
284
284
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
285
285
|
return arr2;
|
|
@@ -398,19 +398,19 @@ function _object_spread_props$2(target, source) {
|
|
|
398
398
|
return target;
|
|
399
399
|
}
|
|
400
400
|
function _sliced_to_array$2(arr, i) {
|
|
401
|
-
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$
|
|
401
|
+
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
|
|
402
402
|
}
|
|
403
403
|
function _type_of$3(obj) {
|
|
404
404
|
"@swc/helpers - typeof";
|
|
405
405
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
406
406
|
}
|
|
407
|
-
function _unsupported_iterable_to_array$
|
|
407
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
408
408
|
if (!o) return;
|
|
409
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
409
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
410
410
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
411
411
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
412
412
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
413
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
413
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
414
414
|
}
|
|
415
415
|
function _ts_generator$4(thisArg, body) {
|
|
416
416
|
var f, y, t, _ = {
|
|
@@ -1731,7 +1731,7 @@ var FetchPageLimitReachedError = /*#__PURE__*/ function(FetchRequestFactoryError
|
|
|
1731
1731
|
};
|
|
1732
1732
|
}
|
|
1733
1733
|
|
|
1734
|
-
function _array_like_to_array$
|
|
1734
|
+
function _array_like_to_array$1(arr, len) {
|
|
1735
1735
|
if (len == null || len > arr.length) len = arr.length;
|
|
1736
1736
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1737
1737
|
return arr2;
|
|
@@ -1843,15 +1843,15 @@ function _object_spread_props$1(target, source) {
|
|
|
1843
1843
|
return target;
|
|
1844
1844
|
}
|
|
1845
1845
|
function _sliced_to_array$1(arr, i) {
|
|
1846
|
-
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$
|
|
1846
|
+
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
|
|
1847
1847
|
}
|
|
1848
|
-
function _unsupported_iterable_to_array$
|
|
1848
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
1849
1849
|
if (!o) return;
|
|
1850
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1850
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
1851
1851
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1852
1852
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1853
1853
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1854
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1854
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
1855
1855
|
}
|
|
1856
1856
|
function _ts_generator(thisArg, body) {
|
|
1857
1857
|
var f, y, t, _ = {
|
|
@@ -2210,31 +2210,6 @@ function iterateFetchPages(config) {
|
|
|
2210
2210
|
})();
|
|
2211
2211
|
}
|
|
2212
2212
|
|
|
2213
|
-
function _array_like_to_array$1(arr, len) {
|
|
2214
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
2215
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2216
|
-
return arr2;
|
|
2217
|
-
}
|
|
2218
|
-
function _array_without_holes(arr) {
|
|
2219
|
-
if (Array.isArray(arr)) return _array_like_to_array$1(arr);
|
|
2220
|
-
}
|
|
2221
|
-
function _iterable_to_array(iter) {
|
|
2222
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2223
|
-
}
|
|
2224
|
-
function _non_iterable_spread() {
|
|
2225
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2226
|
-
}
|
|
2227
|
-
function _to_consumable_array(arr) {
|
|
2228
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread();
|
|
2229
|
-
}
|
|
2230
|
-
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
2231
|
-
if (!o) return;
|
|
2232
|
-
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
2233
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2234
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2235
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2236
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
2237
|
-
}
|
|
2238
2213
|
/**
|
|
2239
2214
|
* Creates URLSearchParams from the input objects. The input objects are merged together.
|
|
2240
2215
|
*
|
|
@@ -2284,7 +2259,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
2284
2259
|
}
|
|
2285
2260
|
});
|
|
2286
2261
|
return {
|
|
2287
|
-
omitKeys: omitKeys.size > 0 ?
|
|
2262
|
+
omitKeys: omitKeys.size > 0 ? Array.from(omitKeys) : undefined
|
|
2288
2263
|
};
|
|
2289
2264
|
}
|
|
2290
2265
|
|
package/fetch/package.json
CHANGED