nhb-toolbox 4.0.90 → 4.0.91

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.
@@ -16,10 +16,10 @@ export declare function sanitizeData(input: string): string;
16
16
  export declare function sanitizeData(input: string[]): string[];
17
17
  /**
18
18
  * * Sanitizes an object by ignoring specified keys and trimming string values based on options provided.
19
- * * Also excludes nullish values (null, undefined) if specified. Always ignores empty nested object(s).
19
+ * * Also excludes nullish values (`null`, `undefined`), falsy (`nullish` + `0` & `""`) or empty values (`object`, `array`) if specified.
20
20
  *
21
21
  * @param object - The object to sanitize.
22
- * @param options - Options that define which keys to ignore, whether to trim string values, and whether to exclude nullish values.
22
+ * @param options - Options that define which keys to ignore, whether to trim string values, and whether to exclude nullish, falsy or empty values.
23
23
  * @returns A new object with the specified modifications.
24
24
  */
25
25
  export declare function sanitizeData<T extends GenericObject>(object: T, options?: SanitizeOptions<T>): FlattenPartial<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nhb-toolbox",
3
- "version": "4.0.90",
3
+ "version": "4.0.91",
4
4
  "description": "A versatile collection of smart, efficient, and reusable utility functions and classes for everyday development needs.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",