@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.
- package/dist/index.cjs +9 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9 -10
- package/dist/index.mjs.map +1 -1
- package/dist/objects.d.ts +0 -1
- package/dist/path-events.d.ts +1 -1
- package/dist/string.d.ts +2 -0
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/path-events.d.ts
CHANGED
|
@@ -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:
|
|
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