toolbox-x 1.1.0 → 1.1.2

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/date.cjs CHANGED
@@ -19,8 +19,8 @@ const require_primitives = require('./primitives-CBGICrDR.cjs');
19
19
  const require_timezone = require('./timezone-CSz7R0L6.cjs');
20
20
  const require_specials = require('./specials-BM6cx43o.cjs');
21
21
  const require_utilities = require('./utilities-CzyXCRHM.cjs');
22
- const require_guards = require('./guards-FSW16LfU.cjs');
23
- const require_parse = require('./parse-CejohxY0.cjs');
22
+ const require_guards = require('./guards-DP5k4_Mm.cjs');
23
+ const require_parse = require('./parse-BpUlILVi.cjs');
24
24
 
25
25
  //#region src/date/utils.ts
26
26
  /**
package/dist/date.mjs CHANGED
@@ -18,8 +18,8 @@ import { m as isUndefined } from "./primitives-Djsevc69.mjs";
18
18
  import { n as NATIVE_TZ_IDS } from "./timezone-avZ4TvDx.mjs";
19
19
  import { T as isObject } from "./specials-Cye93-uo.mjs";
20
20
  import { a as normalizeNumber } from "./utilities-B9axOvOX.mjs";
21
- import { a as isValidTime, s as isValidUTCOffset } from "./guards-DEcnNbI5.mjs";
22
- import { a as _normalizeOffset, i as _gmtToUtcOffset, n as _dateArgsToDate, o as _resolveNativeTzName, r as _formatDate, t as parseMSec } from "./parse-DDN7KuOa.mjs";
21
+ import { a as isValidTime, s as isValidUTCOffset } from "./guards-Cp6KAkVI.mjs";
22
+ import { a as _normalizeOffset, i as _gmtToUtcOffset, n as _dateArgsToDate, o as _resolveNativeTzName, r as _formatDate, t as parseMSec } from "./parse-rcJRAOJl.mjs";
23
23
 
24
24
  //#region src/date/utils.ts
25
25
  /**
package/dist/dom.cjs CHANGED
@@ -17,9 +17,10 @@
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
18
  const require_primitives = require('./primitives-CBGICrDR.cjs');
19
19
  const require_specials = require('./specials-BM6cx43o.cjs');
20
- const require_guards = require('./guards-FSW16LfU.cjs');
21
- const require_objectify = require('./objectify-CRUYlTtI.cjs');
22
- const require_utils = require('./utils-B1BHomba.cjs');
20
+ const require_guards = require('./guards-DP5k4_Mm.cjs');
21
+ const require_basics = require('./basics-K8BDSYD6.cjs');
22
+ const require_objectify = require('./objectify-CZJr9hwg.cjs');
23
+ const require_utils = require('./utils-CFyEFj2Y.cjs');
23
24
 
24
25
  //#region src/dom/query.ts
25
26
  /**
@@ -266,19 +267,20 @@ async function copyToClipboard(text) {
266
267
  * @returns `FormData` instance containing the sanitized and transformed data.
267
268
  */
268
269
  const createFormData = (data, configs) => {
270
+ if (typeof FormData === "undefined") throw new Error("FormData is not available! Please make sure your environment supports FormData.");
269
271
  const formData = new FormData();
270
- const { stringifyNested = "*" } = configs || {};
271
- /** - Helper to compare a key with a path */
272
- const _compareKeyPath = (key, path) => {
273
- return key === path || key.startsWith(`${path}.`);
272
+ const { stringifyNested = "*", ignoreKeys = [], breakArray, lowerCaseKeys, dotNotateNested, lowerCaseValues, requiredKeys } = configs || {};
273
+ /** - Helper to check if a key (plain or dot-notated) matches a path */
274
+ const _compareKeyPaths = (key, paths) => {
275
+ return paths.some((path) => key === path || key.startsWith(`${path}.`));
274
276
  };
275
277
  /** - Helper to check if a key should be lowercase */
276
278
  const _shouldLowercaseKeys = (key) => {
277
- return Array.isArray(configs?.lowerCaseKeys) ? configs?.lowerCaseKeys?.some((path) => _compareKeyPath(key, path)) : configs?.lowerCaseKeys === "*";
279
+ return Array.isArray(lowerCaseKeys) ? _compareKeyPaths(key, lowerCaseKeys) : lowerCaseKeys === "*";
278
280
  };
279
281
  /** - Helper to check if a key should be lowercase */
280
282
  const _shouldLowercaseValue = (key) => {
281
- return Array.isArray(configs?.lowerCaseValues) ? configs.lowerCaseValues?.some((path) => _compareKeyPath(key, path)) : configs?.lowerCaseValues === "*";
283
+ return Array.isArray(lowerCaseValues) ? _compareKeyPaths(key, lowerCaseValues) : lowerCaseValues === "*";
282
284
  };
283
285
  /** - Transforms key to lowercase if needed */
284
286
  const _transformKey = (key) => {
@@ -291,29 +293,29 @@ const createFormData = (data, configs) => {
291
293
  /** - Helper function to check if a key matches a breakArray key. */
292
294
  const _isRequiredKey = (key) => {
293
295
  const transformedKey = _transformKey(key);
294
- return Array.isArray(configs?.requiredKeys) ? configs?.requiredKeys?.some((path) => _compareKeyPath(transformedKey, path)) : configs?.requiredKeys === "*";
296
+ return Array.isArray(requiredKeys) ? _compareKeyPaths(transformedKey, requiredKeys) : requiredKeys === "*";
295
297
  };
296
298
  /** - Helper function to check if a key matches a dotNotation path to preserve. */
297
299
  const _shouldDotNotate = (key) => {
298
300
  const transformedKey = _transformKey(key);
299
- return Array.isArray(configs?.dotNotateNested) ? configs?.dotNotateNested?.some((path) => _compareKeyPath(transformedKey, path)) : configs?.dotNotateNested === "*";
301
+ return Array.isArray(dotNotateNested) ? _compareKeyPaths(transformedKey, dotNotateNested) : dotNotateNested === "*";
300
302
  };
301
303
  /** - Helper function to check if a key matches a stringifyNested key. */
302
304
  const _shouldStringify = (key) => {
303
305
  const transformedKey = _transformKey(key);
304
- return Array.isArray(stringifyNested) ? stringifyNested?.some((path) => _compareKeyPath(transformedKey, path)) : stringifyNested === "*";
306
+ return Array.isArray(stringifyNested) ? _compareKeyPaths(transformedKey, stringifyNested) : stringifyNested === "*";
305
307
  };
306
308
  /** - Helper function to check if a key matches a breakArray key. */
307
309
  const _shouldBreakArray = (key) => {
308
310
  const transformedKey = _transformKey(key);
309
- return Array.isArray(configs?.breakArray) ? configs.breakArray.some((path) => _compareKeyPath(transformedKey, path)) : configs?.breakArray === "*";
311
+ return Array.isArray(breakArray) ? _compareKeyPaths(transformedKey, breakArray) : breakArray === "*";
310
312
  };
311
313
  /** - Helper to clean object by removing null/undefined/empty values while respecting required keys */
312
314
  const _cleanObject = (obj, parentKey = "") => {
313
315
  return Object.entries(obj).reduce((acc, [key, value]) => {
314
316
  const transformedKey = _transformKey(key);
315
317
  const fullKey = parentKey ? `${parentKey}.${transformedKey}` : transformedKey;
316
- if (configs?.ignoreKeys?.includes(fullKey)) return acc;
318
+ if (_compareKeyPaths(fullKey, ignoreKeys)) return acc;
317
319
  if (value != null && value !== "" || _isRequiredKey(fullKey) || require_primitives.isNonEmptyString(value) || require_specials.isValidArray(value) || require_specials.isNotEmptyObject(value)) if (require_guards.isDateLike(value)) acc[transformedKey] = value;
318
320
  else if (require_specials.isNotEmptyObject(value)) if (require_guards.isDateLike(value)) acc[transformedKey] = value;
319
321
  else {
@@ -322,7 +324,7 @@ const createFormData = (data, configs) => {
322
324
  }
323
325
  else if (require_primitives.isString(value)) if (require_primitives.isNonEmptyString(value)) {
324
326
  let cleanString = value;
325
- if (configs?.trimStrings) cleanString = cleanString?.trim();
327
+ if (configs?.trimStrings) cleanString = require_basics.trimString(cleanString);
326
328
  if (_shouldLowercaseValue(fullKey)) cleanString = cleanString?.toLowerCase();
327
329
  acc[transformedKey] = cleanString;
328
330
  } else acc[transformedKey] = value;
@@ -337,6 +339,7 @@ const createFormData = (data, configs) => {
337
339
  /** * Helper function to add values to formData */
338
340
  const _addToFormData = (key, value) => {
339
341
  const transformedKey = _transformKey(key);
342
+ if (_compareKeyPaths(transformedKey, ignoreKeys)) return;
340
343
  if (require_objectify.isCustomFileArray(value)) value?.forEach((file) => formData.append(transformedKey, file?.originFileObj));
341
344
  else if (require_objectify.isFileUpload(value)) {
342
345
  if (value?.fileList) value?.fileList.forEach((file) => formData.append(transformedKey, file?.originFileObj));
@@ -365,7 +368,7 @@ const createFormData = (data, configs) => {
365
368
  });
366
369
  else if (value != null && value !== "" || _isRequiredKey(key)) if (require_primitives.isString(value)) {
367
370
  let processedValue = value;
368
- if (configs?.trimStrings) processedValue = processedValue.trim();
371
+ if (configs?.trimStrings) processedValue = require_basics.trimString(processedValue);
369
372
  if (_shouldLowercaseValue(key)) processedValue = processedValue.toLowerCase();
370
373
  formData.append(transformedKey, processedValue);
371
374
  } else formData.append(transformedKey, value);
@@ -375,8 +378,8 @@ const createFormData = (data, configs) => {
375
378
  Object.entries(obj).forEach(([key, value]) => {
376
379
  const transformedKey = _transformKey(key);
377
380
  const fullKey = parentKey ? `${parentKey}.${transformedKey}` : transformedKey;
378
- if (configs?.ignoreKeys?.includes(fullKey)) return;
379
- if (configs?.trimStrings && require_primitives.isNonEmptyString(value)) value = value.trim();
381
+ if (_compareKeyPaths(fullKey, ignoreKeys)) return;
382
+ if (configs?.trimStrings && require_primitives.isNonEmptyString(value)) value = require_basics.trimString(value);
380
383
  if (_shouldDotNotate(fullKey)) _addToFormData(fullKey, value);
381
384
  else if (require_specials.isNotEmptyObject(value) && !_shouldStringify(fullKey)) if (require_guards.isDateLike(value)) _addToFormData(key, _parseDateLike(value));
382
385
  else _processObject(value, key);
package/dist/dom.mjs CHANGED
@@ -16,9 +16,10 @@
16
16
 
17
17
  import { a as isNonEmptyString, d as isString } from "./primitives-Djsevc69.mjs";
18
18
  import { j as isValidArray, v as isEmptyObject, w as isNotEmptyObject } from "./specials-Cye93-uo.mjs";
19
- import { t as isDateLike } from "./guards-DEcnNbI5.mjs";
20
- import { _ as isOriginFileObj, a as flattenObjectKeyValue, d as isCustomFile, f as isCustomFileArray, g as isFileUpload, h as isFileOrBlob, l as parseObjectValues, m as isFileList, p as isFileArray, v as isValidFormData } from "./objectify-DgkPCH_o.mjs";
21
- import { a as deepParsePrimitives } from "./utils-BCytS67y.mjs";
19
+ import { t as isDateLike } from "./guards-Cp6KAkVI.mjs";
20
+ import { n as trimString } from "./basics-1_M7UvCn.mjs";
21
+ import { _ as isOriginFileObj, a as flattenObjectKeyValue, d as isCustomFile, f as isCustomFileArray, g as isFileUpload, h as isFileOrBlob, l as parseObjectValues, m as isFileList, p as isFileArray, v as isValidFormData } from "./objectify-CfXtS_E0.mjs";
22
+ import { a as deepParsePrimitives } from "./utils-CN3ocK98.mjs";
22
23
 
23
24
  //#region src/dom/query.ts
24
25
  /**
@@ -265,19 +266,20 @@ async function copyToClipboard(text) {
265
266
  * @returns `FormData` instance containing the sanitized and transformed data.
266
267
  */
267
268
  const createFormData = (data, configs) => {
269
+ if (typeof FormData === "undefined") throw new Error("FormData is not available! Please make sure your environment supports FormData.");
268
270
  const formData = new FormData();
269
- const { stringifyNested = "*" } = configs || {};
270
- /** - Helper to compare a key with a path */
271
- const _compareKeyPath = (key, path) => {
272
- return key === path || key.startsWith(`${path}.`);
271
+ const { stringifyNested = "*", ignoreKeys = [], breakArray, lowerCaseKeys, dotNotateNested, lowerCaseValues, requiredKeys } = configs || {};
272
+ /** - Helper to check if a key (plain or dot-notated) matches a path */
273
+ const _compareKeyPaths = (key, paths) => {
274
+ return paths.some((path) => key === path || key.startsWith(`${path}.`));
273
275
  };
274
276
  /** - Helper to check if a key should be lowercase */
275
277
  const _shouldLowercaseKeys = (key) => {
276
- return Array.isArray(configs?.lowerCaseKeys) ? configs?.lowerCaseKeys?.some((path) => _compareKeyPath(key, path)) : configs?.lowerCaseKeys === "*";
278
+ return Array.isArray(lowerCaseKeys) ? _compareKeyPaths(key, lowerCaseKeys) : lowerCaseKeys === "*";
277
279
  };
278
280
  /** - Helper to check if a key should be lowercase */
279
281
  const _shouldLowercaseValue = (key) => {
280
- return Array.isArray(configs?.lowerCaseValues) ? configs.lowerCaseValues?.some((path) => _compareKeyPath(key, path)) : configs?.lowerCaseValues === "*";
282
+ return Array.isArray(lowerCaseValues) ? _compareKeyPaths(key, lowerCaseValues) : lowerCaseValues === "*";
281
283
  };
282
284
  /** - Transforms key to lowercase if needed */
283
285
  const _transformKey = (key) => {
@@ -290,29 +292,29 @@ const createFormData = (data, configs) => {
290
292
  /** - Helper function to check if a key matches a breakArray key. */
291
293
  const _isRequiredKey = (key) => {
292
294
  const transformedKey = _transformKey(key);
293
- return Array.isArray(configs?.requiredKeys) ? configs?.requiredKeys?.some((path) => _compareKeyPath(transformedKey, path)) : configs?.requiredKeys === "*";
295
+ return Array.isArray(requiredKeys) ? _compareKeyPaths(transformedKey, requiredKeys) : requiredKeys === "*";
294
296
  };
295
297
  /** - Helper function to check if a key matches a dotNotation path to preserve. */
296
298
  const _shouldDotNotate = (key) => {
297
299
  const transformedKey = _transformKey(key);
298
- return Array.isArray(configs?.dotNotateNested) ? configs?.dotNotateNested?.some((path) => _compareKeyPath(transformedKey, path)) : configs?.dotNotateNested === "*";
300
+ return Array.isArray(dotNotateNested) ? _compareKeyPaths(transformedKey, dotNotateNested) : dotNotateNested === "*";
299
301
  };
300
302
  /** - Helper function to check if a key matches a stringifyNested key. */
301
303
  const _shouldStringify = (key) => {
302
304
  const transformedKey = _transformKey(key);
303
- return Array.isArray(stringifyNested) ? stringifyNested?.some((path) => _compareKeyPath(transformedKey, path)) : stringifyNested === "*";
305
+ return Array.isArray(stringifyNested) ? _compareKeyPaths(transformedKey, stringifyNested) : stringifyNested === "*";
304
306
  };
305
307
  /** - Helper function to check if a key matches a breakArray key. */
306
308
  const _shouldBreakArray = (key) => {
307
309
  const transformedKey = _transformKey(key);
308
- return Array.isArray(configs?.breakArray) ? configs.breakArray.some((path) => _compareKeyPath(transformedKey, path)) : configs?.breakArray === "*";
310
+ return Array.isArray(breakArray) ? _compareKeyPaths(transformedKey, breakArray) : breakArray === "*";
309
311
  };
310
312
  /** - Helper to clean object by removing null/undefined/empty values while respecting required keys */
311
313
  const _cleanObject = (obj, parentKey = "") => {
312
314
  return Object.entries(obj).reduce((acc, [key, value]) => {
313
315
  const transformedKey = _transformKey(key);
314
316
  const fullKey = parentKey ? `${parentKey}.${transformedKey}` : transformedKey;
315
- if (configs?.ignoreKeys?.includes(fullKey)) return acc;
317
+ if (_compareKeyPaths(fullKey, ignoreKeys)) return acc;
316
318
  if (value != null && value !== "" || _isRequiredKey(fullKey) || isNonEmptyString(value) || isValidArray(value) || isNotEmptyObject(value)) if (isDateLike(value)) acc[transformedKey] = value;
317
319
  else if (isNotEmptyObject(value)) if (isDateLike(value)) acc[transformedKey] = value;
318
320
  else {
@@ -321,7 +323,7 @@ const createFormData = (data, configs) => {
321
323
  }
322
324
  else if (isString(value)) if (isNonEmptyString(value)) {
323
325
  let cleanString = value;
324
- if (configs?.trimStrings) cleanString = cleanString?.trim();
326
+ if (configs?.trimStrings) cleanString = trimString(cleanString);
325
327
  if (_shouldLowercaseValue(fullKey)) cleanString = cleanString?.toLowerCase();
326
328
  acc[transformedKey] = cleanString;
327
329
  } else acc[transformedKey] = value;
@@ -336,6 +338,7 @@ const createFormData = (data, configs) => {
336
338
  /** * Helper function to add values to formData */
337
339
  const _addToFormData = (key, value) => {
338
340
  const transformedKey = _transformKey(key);
341
+ if (_compareKeyPaths(transformedKey, ignoreKeys)) return;
339
342
  if (isCustomFileArray(value)) value?.forEach((file) => formData.append(transformedKey, file?.originFileObj));
340
343
  else if (isFileUpload(value)) {
341
344
  if (value?.fileList) value?.fileList.forEach((file) => formData.append(transformedKey, file?.originFileObj));
@@ -364,7 +367,7 @@ const createFormData = (data, configs) => {
364
367
  });
365
368
  else if (value != null && value !== "" || _isRequiredKey(key)) if (isString(value)) {
366
369
  let processedValue = value;
367
- if (configs?.trimStrings) processedValue = processedValue.trim();
370
+ if (configs?.trimStrings) processedValue = trimString(processedValue);
368
371
  if (_shouldLowercaseValue(key)) processedValue = processedValue.toLowerCase();
369
372
  formData.append(transformedKey, processedValue);
370
373
  } else formData.append(transformedKey, value);
@@ -374,8 +377,8 @@ const createFormData = (data, configs) => {
374
377
  Object.entries(obj).forEach(([key, value]) => {
375
378
  const transformedKey = _transformKey(key);
376
379
  const fullKey = parentKey ? `${parentKey}.${transformedKey}` : transformedKey;
377
- if (configs?.ignoreKeys?.includes(fullKey)) return;
378
- if (configs?.trimStrings && isNonEmptyString(value)) value = value.trim();
380
+ if (_compareKeyPaths(fullKey, ignoreKeys)) return;
381
+ if (configs?.trimStrings && isNonEmptyString(value)) value = trimString(value);
379
382
  if (_shouldDotNotate(fullKey)) _addToFormData(fullKey, value);
380
383
  else if (isNotEmptyObject(value) && !_shouldStringify(fullKey)) if (isDateLike(value)) _addToFormData(key, _parseDateLike(value));
381
384
  else _processObject(value, key);
@@ -94,9 +94,14 @@ function isDateLike(value) {
94
94
  if (isFunction(value.toISO) && isFunction(value.toFormat) && isBoolean(value.isValid)) return true;
95
95
  if (isFunction(value.plus) && isFunction(value.minus) && isFunction(value.equals) && isFunction(value.getClass)) return true;
96
96
  if (isFunction(value.toJSON) && isFunction(value.toString) && [
97
+ "Instant",
98
+ "Duration",
97
99
  "PlainDate",
98
- "ZonedDateTime",
99
- "Instant"
100
+ "PlainTime",
101
+ "PlainDateTime",
102
+ "PlainMonthDay",
103
+ "PlainYearMonth",
104
+ "ZonedDateTime"
100
105
  ].includes(value.constructor?.name ?? "")) return true;
101
106
  }
102
107
  return false;
@@ -94,9 +94,14 @@ function isDateLike(value) {
94
94
  if (require_specials.isFunction(value.toISO) && require_specials.isFunction(value.toFormat) && require_primitives.isBoolean(value.isValid)) return true;
95
95
  if (require_specials.isFunction(value.plus) && require_specials.isFunction(value.minus) && require_specials.isFunction(value.equals) && require_specials.isFunction(value.getClass)) return true;
96
96
  if (require_specials.isFunction(value.toJSON) && require_specials.isFunction(value.toString) && [
97
+ "Instant",
98
+ "Duration",
97
99
  "PlainDate",
98
- "ZonedDateTime",
99
- "Instant"
100
+ "PlainTime",
101
+ "PlainDateTime",
102
+ "PlainMonthDay",
103
+ "PlainYearMonth",
104
+ "ZonedDateTime"
100
105
  ].includes(value.constructor?.name ?? "")) return true;
101
106
  }
102
107
  return false;
package/dist/guards.cjs CHANGED
@@ -18,7 +18,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
18
  const require_primitives = require('./primitives-CBGICrDR.cjs');
19
19
  const require_guards = require('./guards-DGN95D2h.cjs');
20
20
  const require_specials = require('./specials-BM6cx43o.cjs');
21
- const require_guards$1 = require('./guards-FSW16LfU.cjs');
21
+ const require_guards$1 = require('./guards-DP5k4_Mm.cjs');
22
22
  const require_basics = require('./basics-K8BDSYD6.cjs');
23
23
  const require_guards$2 = require('./guards-0VjySrPM.cjs');
24
24
 
package/dist/guards.mjs CHANGED
@@ -17,7 +17,7 @@
17
17
  import { a as isNonEmptyString, c as isNumber, d as isString, f as isSymbol, i as isInteger, l as isPositiveInteger, m as isUndefined, n as isBoolean, o as isNormalPrimitive, p as isTruthy, r as isFalsy, s as isNull, t as isBigInt, u as isPrimitive } from "./primitives-Djsevc69.mjs";
18
18
  import { a as isHex8, i as isHex6, n as isHSL, o as isRGB, r as isHSLA, s as isRGBA, t as isCSSColor } from "./guards-DziDBD0p.mjs";
19
19
  import { A as isSet, C as isMethodDescriptor, D as isPromise, E as isObjectWithKeys, O as isRegExp, S as isMap, T as isObject, _ as isDate, a as isEmail, b as isFunction, c as isHexString, d as isNumericString, f as isPhoneNumber, g as isArrayOfType, h as isArray, i as isDateString, j as isValidArray, k as isReturningPromise, l as isIPAddress, m as isUUID, n as isBinaryString, o as isEmailArray, p as isURL, r as isBrowser, s as isEnvironment, t as isBase64, u as isNode, v as isEmptyObject, w as isNotEmptyObject, x as isJSON, y as isError } from "./specials-Cye93-uo.mjs";
20
- import { a as isValidTime, i as isTimeWithUnit, n as isLeapYear, o as isValidTimeZoneId, r as isNativeTimeZoneId, s as isValidUTCOffset, t as isDateLike } from "./guards-DEcnNbI5.mjs";
20
+ import { a as isValidTime, i as isTimeWithUnit, n as isLeapYear, o as isValidTimeZoneId, r as isNativeTimeZoneId, s as isValidUTCOffset, t as isDateLike } from "./guards-Cp6KAkVI.mjs";
21
21
  import { a as isUUIDv1, c as isUUIDv4, d as isUUIDv7, f as isUUIDv8, l as isUUIDv5, o as isUUIDv2, s as isUUIDv3, u as isUUIDv6 } from "./basics-1_M7UvCn.mjs";
22
22
  import { _ as isFibonacci, a as isPascalCase, b as isPerfectSquare, g as isEven, h as areInvalidNumbers, i as isPalindrome, n as isEmojiOnly, o as isSnakeCase, r as isKebabCase, t as isCamelCase, v as isMultiple, y as isOdd } from "./guards-DeO4ukiK.mjs";
23
23
 
package/dist/hash.cjs CHANGED
@@ -17,9 +17,9 @@
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
18
  const require_primitives = require('./primitives-CBGICrDR.cjs');
19
19
  const require_specials = require('./specials-BM6cx43o.cjs');
20
- const require_parse = require('./parse-CejohxY0.cjs');
20
+ const require_parse = require('./parse-BpUlILVi.cjs');
21
21
  const require_basics = require('./basics-K8BDSYD6.cjs');
22
- const require_utils = require('./utils-B1BHomba.cjs');
22
+ const require_utils = require('./utils-CFyEFj2Y.cjs');
23
23
 
24
24
  //#region src/hash/Cipher.ts
25
25
  /**
package/dist/hash.mjs CHANGED
@@ -16,9 +16,9 @@
16
16
 
17
17
  import { a as isNonEmptyString } from "./primitives-Djsevc69.mjs";
18
18
  import { c as isHexString, m as isUUID, n as isBinaryString, t as isBase64, w as isNotEmptyObject } from "./specials-Cye93-uo.mjs";
19
- import { c as _toSeconds, s as _secToDate, t as parseMSec } from "./parse-DDN7KuOa.mjs";
19
+ import { c as _toSeconds, s as _secToDate, t as parseMSec } from "./parse-rcJRAOJl.mjs";
20
20
  import { A as uint8To32ArrayBE, C as bytesToUtf8, D as intTo4BytesBE, E as hmacSha256, O as randomHex, S as bytesToHex, T as hexToBytes, _ as _constantTimeEquals, a as isUUIDv1, b as base64ToBytes, c as isUUIDv4, d as isUUIDv7, f as isUUIDv8, g as sha256, h as sha1, i as decodeUUID, j as utf8ToBytes, k as sha256Bytes, l as isUUIDv5, m as md5, o as isUUIDv2, p as uuid, s as isUUIDv3, t as generateRandomID, u as isUUIDv6, v as _padStartWith0, w as concatBytes, x as bytesToBase64, y as _splitByCharLength } from "./basics-1_M7UvCn.mjs";
21
- import { h as stripJsonEdgeGarbage, m as stableStringify } from "./utils-BCytS67y.mjs";
21
+ import { h as stripJsonEdgeGarbage, m as stableStringify } from "./utils-CN3ocK98.mjs";
22
22
 
23
23
  //#region src/hash/Cipher.ts
24
24
  /**
package/dist/index.cjs CHANGED
@@ -23,8 +23,8 @@ const require_specials = require('./specials-BM6cx43o.cjs');
23
23
  const require_utilities = require('./utilities-CzyXCRHM.cjs');
24
24
  const require_basics = require('./basics-K8BDSYD6.cjs');
25
25
  const require_guards = require('./guards-0VjySrPM.cjs');
26
- const require_objectify = require('./objectify-CRUYlTtI.cjs');
27
- const require_utils = require('./utils-B1BHomba.cjs');
26
+ const require_objectify = require('./objectify-CZJr9hwg.cjs');
27
+ const require_utils = require('./utils-CFyEFj2Y.cjs');
28
28
 
29
29
  //#region src/string/anagram.ts
30
30
  /** `WeakMap` to cache user provided dictionary array */
package/dist/index.mjs CHANGED
@@ -22,8 +22,8 @@ import { T as isObject, b as isFunction, d as isNumericString, j as isValidArray
22
22
  import { a as normalizeNumber, i as getRandomFloat, n as formatCurrency, o as roundToNearest, r as getOrdinal, t as clampNumber } from "./utilities-B9axOvOX.mjs";
23
23
  import { n as trimString, r as truncateString, t as generateRandomID } from "./basics-1_M7UvCn.mjs";
24
24
  import { c as extractURLs, d as normalizeString, f as replaceAllInString, g as isEven, h as areInvalidNumbers, l as formatUnitWithPlural, m as slugifyString, p as reverseString, s as extractEmails, u as maskString, y as isOdd } from "./guards-DeO4ukiK.mjs";
25
- import { a as flattenObjectKeyValue, c as parseJsonToObject, i as flattenObjectDotNotation, l as parseObjectValues, n as extractUpdatedAndNewFields, o as mergeAndFlattenObjects, r as extractUpdatedFields, s as mergeObjects, t as extractNewFields, u as sanitizeData } from "./objectify-DgkPCH_o.mjs";
26
- import { _ as naturalSort, a as deepParsePrimitives, b as _resolveNestedKey, c as getInstanceGetterNames, d as getStaticMethodNames, f as isDeepEqual, g as throttleAction, h as stripJsonEdgeGarbage, i as debounceAction, l as getInstanceMethodNames, m as stableStringify, n as countInstanceMethods, o as definePrototypeMethod, p as parseJSON, r as countStaticMethods, s as getClassDetails, t as convertArrayToString, u as getStaticGetterNames, v as sortAnArray, y as _getNumericProp } from "./utils-BCytS67y.mjs";
25
+ import { a as flattenObjectKeyValue, c as parseJsonToObject, i as flattenObjectDotNotation, l as parseObjectValues, n as extractUpdatedAndNewFields, o as mergeAndFlattenObjects, r as extractUpdatedFields, s as mergeObjects, t as extractNewFields, u as sanitizeData } from "./objectify-CfXtS_E0.mjs";
26
+ import { _ as naturalSort, a as deepParsePrimitives, b as _resolveNestedKey, c as getInstanceGetterNames, d as getStaticMethodNames, f as isDeepEqual, g as throttleAction, h as stripJsonEdgeGarbage, i as debounceAction, l as getInstanceMethodNames, m as stableStringify, n as countInstanceMethods, o as definePrototypeMethod, p as parseJSON, r as countStaticMethods, s as getClassDetails, t as convertArrayToString, u as getStaticGetterNames, v as sortAnArray, y as _getNumericProp } from "./utils-CN3ocK98.mjs";
27
27
 
28
28
  //#region src/string/anagram.ts
29
29
  /** `WeakMap` to cache user provided dictionary array */
@@ -16,9 +16,9 @@
16
16
 
17
17
  const require_primitives = require('./primitives-CBGICrDR.cjs');
18
18
  const require_specials = require('./specials-BM6cx43o.cjs');
19
- const require_guards = require('./guards-FSW16LfU.cjs');
19
+ const require_guards = require('./guards-DP5k4_Mm.cjs');
20
20
  const require_basics = require('./basics-K8BDSYD6.cjs');
21
- const require_utils = require('./utils-B1BHomba.cjs');
21
+ const require_utils = require('./utils-CFyEFj2Y.cjs');
22
22
 
23
23
  //#region src/form/guards.ts
24
24
  /**
@@ -16,9 +16,9 @@
16
16
 
17
17
  import { d as isString } from "./primitives-Djsevc69.mjs";
18
18
  import { E as isObjectWithKeys, T as isObject, g as isArrayOfType, j as isValidArray, v as isEmptyObject, w as isNotEmptyObject } from "./specials-Cye93-uo.mjs";
19
- import { t as isDateLike } from "./guards-DEcnNbI5.mjs";
19
+ import { t as isDateLike } from "./guards-Cp6KAkVI.mjs";
20
20
  import { n as trimString } from "./basics-1_M7UvCn.mjs";
21
- import { f as isDeepEqual } from "./utils-BCytS67y.mjs";
21
+ import { f as isDeepEqual } from "./utils-CN3ocK98.mjs";
22
22
 
23
23
  //#region src/form/guards.ts
24
24
  /**
@@ -18,7 +18,7 @@ const require_primitives = require('./primitives-CBGICrDR.cjs');
18
18
  const require_constants = require('./constants-C4RW7Lei.cjs');
19
19
  const require_specials = require('./specials-BM6cx43o.cjs');
20
20
  const require_utilities = require('./utilities-CzyXCRHM.cjs');
21
- const require_guards = require('./guards-FSW16LfU.cjs');
21
+ const require_guards = require('./guards-DP5k4_Mm.cjs');
22
22
 
23
23
  //#region src/date/helpers.ts
24
24
  /** Core formatting logic shared by `formatDate` and `Chronos`, `BanglaCalendar` classes */
@@ -18,7 +18,7 @@ import { a as isNonEmptyString, c as isNumber, d as isString } from "./primitive
18
18
  import { i as SORTED_TIME_FORMATS, n as MONTHS, r as MS_MAP, t as DAYS } from "./constants-rNhoy4DH.mjs";
19
19
  import { _ as isDate, d as isNumericString } from "./specials-Cye93-uo.mjs";
20
20
  import { r as getOrdinal } from "./utilities-B9axOvOX.mjs";
21
- import { i as isTimeWithUnit } from "./guards-DEcnNbI5.mjs";
21
+ import { i as isTimeWithUnit } from "./guards-Cp6KAkVI.mjs";
22
22
 
23
23
  //#region src/date/helpers.ts
24
24
  /** Core formatting logic shared by `formatDate` and `Chronos`, `BanglaCalendar` classes */
@@ -17,7 +17,7 @@
17
17
  const require_primitives = require('./primitives-CBGICrDR.cjs');
18
18
  const require_specials = require('./specials-BM6cx43o.cjs');
19
19
  const require_utilities = require('./utilities-CzyXCRHM.cjs');
20
- const require_guards = require('./guards-FSW16LfU.cjs');
20
+ const require_guards = require('./guards-DP5k4_Mm.cjs');
21
21
 
22
22
  //#region src/array/helpers.ts
23
23
  /**
@@ -17,7 +17,7 @@
17
17
  import { a as isNonEmptyString, c as isNumber, d as isString, n as isBoolean, u as isPrimitive } from "./primitives-Djsevc69.mjs";
18
18
  import { C as isMethodDescriptor, T as isObject, d as isNumericString, g as isArrayOfType, h as isArray, j as isValidArray, w as isNotEmptyObject } from "./specials-Cye93-uo.mjs";
19
19
  import { a as normalizeNumber } from "./utilities-B9axOvOX.mjs";
20
- import { t as isDateLike } from "./guards-DEcnNbI5.mjs";
20
+ import { t as isDateLike } from "./guards-Cp6KAkVI.mjs";
21
21
 
22
22
  //#region src/array/helpers.ts
23
23
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolbox-x",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "A versatile collection of smart, efficient, and reusable utility functions, classes and types for everyday development needs.",
5
5
  "main": "./dist/index.cjs",
6
6
  "type": "module",