@ztimson/utils 0.22.0 → 0.22.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.
@@ -23,7 +23,7 @@ export type Method = '*' | 'n' | 'c' | 'r' | 'u' | 'd' | 'x';
23
23
  * @param {string} args
24
24
  * @return {PathEvent} Event object
25
25
  */
26
- export declare function PE(str: TemplateStringsArray, ...args: string[]): PathEvent;
26
+ export declare function PE(str: TemplateStringsArray, ...args: any[]): PathEvent;
27
27
  /**
28
28
  * Shorthand for creating Event strings, ensures paths are correct
29
29
  *
package/dist/string.d.ts CHANGED
@@ -26,6 +26,7 @@ export declare function formatPhoneNumber(number: string): string;
26
26
  * @param {string} str - Value that will be injected to parent
27
27
  * @param {number} index - Position to inject string at
28
28
  * @returns {string} - New string
29
+ * @deprecated use `strSplice()`
29
30
  */
30
31
  export declare function insertAt(target: string, str: string, index: number): String;
31
32
  /**
@@ -121,6 +122,7 @@ export type ParsedUrl = {
121
122
  *
122
123
  * @param {string} url URL string that will be parsed
123
124
  * @returns {RegExpExecArray} Parts of URL
125
+ * @deprecated Use built-in URL object: `new URL('...')`;
124
126
  */
125
127
  export declare function parseUrl(url: string): ParsedUrl;
126
128
  /**
package/dist/types.d.ts CHANGED
@@ -15,4 +15,4 @@
15
15
  *
16
16
  * @return {Array<keyof T>} Available keys
17
17
  */
18
- export declare function tyoeKeys<T extends object>(): Array<keyof T>;
18
+ export declare function typeKeys<T extends object>(): Array<keyof T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/utils",
3
- "version": "0.22.0",
3
+ "version": "0.22.2",
4
4
  "description": "Utility library",
5
5
  "author": "Zak Timson",
6
6
  "license": "MIT",