@ztimson/utils 0.25.7 → 0.25.9

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/string.d.ts CHANGED
@@ -52,7 +52,7 @@ export declare function insertAt(target: string, str: string, index: number): St
52
52
  /**
53
53
  * Converts text to kebab-case
54
54
  */
55
- export declare function kebabCase(str: string): string;
55
+ export declare function kebabCase(str?: string): string;
56
56
  /**
57
57
  * Add padding to string
58
58
  *
@@ -166,6 +166,10 @@ export declare function parseUrl(url: string): ParsedUrl;
166
166
  * @returns {string} Hashed string
167
167
  */
168
168
  export declare function md5(d: string): string;
169
+ /**
170
+ * Splits a string into logical word segments
171
+ */
172
+ export declare function wordSegments(str?: string): string[];
169
173
  /**
170
174
  * Check if email is valid
171
175
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/utils",
3
- "version": "0.25.7",
3
+ "version": "0.25.9",
4
4
  "description": "Utility library",
5
5
  "author": "Zak Timson",
6
6
  "license": "MIT",