@dereekb/util 13.9.0 → 13.10.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.
Files changed (59) hide show
  1. package/fetch/index.cjs.js +5 -3
  2. package/fetch/index.esm.js +5 -3
  3. package/fetch/package.json +3 -3
  4. package/index.cjs.js +682 -384
  5. package/index.esm.js +676 -384
  6. package/package.json +5 -5
  7. package/src/lib/array/array.boolean.d.ts +4 -0
  8. package/src/lib/array/array.number.d.ts +3 -0
  9. package/src/lib/auth/auth.role.claims.d.ts +5 -0
  10. package/src/lib/auth/auth.role.d.ts +5 -0
  11. package/src/lib/boolean.d.ts +4 -0
  12. package/src/lib/contact/domain.d.ts +5 -0
  13. package/src/lib/contact/email.d.ts +10 -0
  14. package/src/lib/contact/phone.d.ts +10 -0
  15. package/src/lib/date/date.d.ts +77 -0
  16. package/src/lib/date/date.time.d.ts +4 -0
  17. package/src/lib/date/date.unix.d.ts +4 -0
  18. package/src/lib/date/hour.d.ts +8 -0
  19. package/src/lib/encryption/encryption.object.d.ts +4 -0
  20. package/src/lib/error/error.d.ts +4 -0
  21. package/src/lib/file/file.d.ts +4 -0
  22. package/src/lib/file/xml.d.ts +4 -0
  23. package/src/lib/function/function.d.ts +1 -1
  24. package/src/lib/hash.d.ts +4 -0
  25. package/src/lib/model/model.d.ts +20 -0
  26. package/src/lib/number/bitwise.dencoder.d.ts +8 -0
  27. package/src/lib/number/dollar.d.ts +31 -0
  28. package/src/lib/number/encoded.d.ts +8 -0
  29. package/src/lib/number/number.d.ts +15 -0
  30. package/src/lib/number/pay.d.ts +8 -0
  31. package/src/lib/number/round.d.ts +10 -0
  32. package/src/lib/object/object.d.ts +4 -0
  33. package/src/lib/object/object.filter.pojo.d.ts +10 -0
  34. package/src/lib/page/page.d.ts +5 -0
  35. package/src/lib/path/path.d.ts +8 -0
  36. package/src/lib/promise/promise.d.ts +5 -0
  37. package/src/lib/relation/relation.d.ts +10 -0
  38. package/src/lib/sort.d.ts +3 -0
  39. package/src/lib/storage/storage.d.ts +9 -0
  40. package/src/lib/string/case.d.ts +28 -0
  41. package/src/lib/string/dencoder.d.ts +12 -0
  42. package/src/lib/string/html.d.ts +20 -0
  43. package/src/lib/string/index.d.ts +1 -0
  44. package/src/lib/string/json.d.ts +4 -0
  45. package/src/lib/string/mimetype.d.ts +13 -1
  46. package/src/lib/string/password.d.ts +4 -0
  47. package/src/lib/string/prefix.d.ts +36 -0
  48. package/src/lib/string/tree.d.ts +4 -0
  49. package/src/lib/string/url.d.ts +35 -1
  50. package/src/lib/value/address.d.ts +35 -0
  51. package/src/lib/value/cron.d.ts +4 -0
  52. package/src/lib/value/indexed.d.ts +4 -0
  53. package/src/lib/value/modifier.d.ts +4 -0
  54. package/src/lib/value/pixel.d.ts +14 -0
  55. package/src/lib/value/point.d.ts +11 -0
  56. package/src/lib/value/zoom.d.ts +4 -0
  57. package/test/index.cjs.js +1 -0
  58. package/test/index.esm.js +1 -0
  59. package/test/package.json +3 -3
@@ -332,6 +332,7 @@ function _define_property$3(obj, key, value) {
332
332
  return obj;
333
333
  }
334
334
  function _instanceof$1(left, right) {
335
+ "@swc/helpers - instanceof";
335
336
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
336
337
  return !!right[Symbol.hasInstance](left);
337
338
  } else {
@@ -1122,7 +1123,7 @@ function fetchFileFromUrl(input, safe) {
1122
1123
  */ function parseFetchFileResponse(response) {
1123
1124
  var rawContentType = response.headers.get('content-type');
1124
1125
  var parseContentTypeResult = fastContentTypeParse.safeParse(rawContentType !== null && rawContentType !== void 0 ? rawContentType : '');
1125
- var contentType = parseContentTypeResult.type !== '' ? parseContentTypeResult : undefined;
1126
+ var contentType = parseContentTypeResult.type === '' ? undefined : parseContentTypeResult;
1126
1127
  return {
1127
1128
  response: response,
1128
1129
  rawContentType: rawContentType,
@@ -2285,7 +2286,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
2285
2286
  */ function makeUrlSearchParamsString(input, options) {
2286
2287
  var params = makeUrlSearchParams(input, options);
2287
2288
  var str = params.toString();
2288
- return (options === null || options === void 0 ? void 0 : options.useUrlSearchSpaceHandling) ? str.replace(/\+/g, '%20') : str;
2289
+ return (options === null || options === void 0 ? void 0 : options.useUrlSearchSpaceHandling) ? str.replaceAll('+', '%20') : str;
2289
2290
  }
2290
2291
  /**
2291
2292
  * Updates or adds query parameters on an existing URL string.
@@ -2347,7 +2348,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
2347
2348
  }
2348
2349
  var queryString = existingParams.toString();
2349
2350
  if (options === null || options === void 0 ? void 0 : options.useUrlSearchSpaceHandling) {
2350
- queryString = queryString.replace(/\+/g, '%20');
2351
+ queryString = queryString.replaceAll('+', '%20');
2351
2352
  }
2352
2353
  return queryString ? "".concat(basePath, "?").concat(queryString) : basePath;
2353
2354
  }
@@ -2379,6 +2380,7 @@ function _array_with_holes(arr) {
2379
2380
  if (Array.isArray(arr)) return arr;
2380
2381
  }
2381
2382
  function _instanceof(left, right) {
2383
+ "@swc/helpers - instanceof";
2382
2384
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
2383
2385
  return !!right[Symbol.hasInstance](left);
2384
2386
  } else {
@@ -330,6 +330,7 @@ function _define_property$3(obj, key, value) {
330
330
  return obj;
331
331
  }
332
332
  function _instanceof$1(left, right) {
333
+ "@swc/helpers - instanceof";
333
334
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
334
335
  return !!right[Symbol.hasInstance](left);
335
336
  } else {
@@ -1120,7 +1121,7 @@ function fetchFileFromUrl(input, safe) {
1120
1121
  */ function parseFetchFileResponse(response) {
1121
1122
  var rawContentType = response.headers.get('content-type');
1122
1123
  var parseContentTypeResult = safeParse(rawContentType !== null && rawContentType !== void 0 ? rawContentType : '');
1123
- var contentType = parseContentTypeResult.type !== '' ? parseContentTypeResult : undefined;
1124
+ var contentType = parseContentTypeResult.type === '' ? undefined : parseContentTypeResult;
1124
1125
  return {
1125
1126
  response: response,
1126
1127
  rawContentType: rawContentType,
@@ -2283,7 +2284,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
2283
2284
  */ function makeUrlSearchParamsString(input, options) {
2284
2285
  var params = makeUrlSearchParams(input, options);
2285
2286
  var str = params.toString();
2286
- return (options === null || options === void 0 ? void 0 : options.useUrlSearchSpaceHandling) ? str.replace(/\+/g, '%20') : str;
2287
+ return (options === null || options === void 0 ? void 0 : options.useUrlSearchSpaceHandling) ? str.replaceAll('+', '%20') : str;
2287
2288
  }
2288
2289
  /**
2289
2290
  * Updates or adds query parameters on an existing URL string.
@@ -2345,7 +2346,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
2345
2346
  }
2346
2347
  var queryString = existingParams.toString();
2347
2348
  if (options === null || options === void 0 ? void 0 : options.useUrlSearchSpaceHandling) {
2348
- queryString = queryString.replace(/\+/g, '%20');
2349
+ queryString = queryString.replaceAll('+', '%20');
2349
2350
  }
2350
2351
  return queryString ? "".concat(basePath, "?").concat(queryString) : basePath;
2351
2352
  }
@@ -2377,6 +2378,7 @@ function _array_with_holes(arr) {
2377
2378
  if (Array.isArray(arr)) return arr;
2378
2379
  }
2379
2380
  function _instanceof(left, right) {
2381
+ "@swc/helpers - instanceof";
2380
2382
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
2381
2383
  return !!right[Symbol.hasInstance](left);
2382
2384
  } else {
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dereekb/util/fetch",
3
- "version": "13.9.0",
3
+ "version": "13.10.1",
4
4
  "peerDependencies": {
5
- "@dereekb/util": "13.9.0",
6
- "make-error": "^1.3.0",
5
+ "@dereekb/util": "13.10.1",
6
+ "make-error": "^1.3.6",
7
7
  "fast-content-type-parse": "^3.0.0"
8
8
  },
9
9
  "exports": {