@cabloy/utils 1.0.40 → 1.0.41

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/utils.d.ts CHANGED
@@ -15,3 +15,6 @@ export declare function combineParamsAndQuery(path: string, options?: {
15
15
  export declare function combineQueries(pagePath?: string, queries?: Record<string, any>): string;
16
16
  export declare function defaultPathSerializer(pathName: string, pathParams?: Record<string, any>): string;
17
17
  export declare function ensureArray(arr: any, sep?: string): any[] | undefined;
18
+ export declare function stringLazy(fn: () => string): {
19
+ toString: () => string;
20
+ };
package/dist/utils.js CHANGED
@@ -178,3 +178,8 @@ export function ensureArray(arr, sep) {
178
178
  return arr.split(sep ?? ',');
179
179
  return [arr];
180
180
  }
181
+ export function stringLazy(fn) {
182
+ return {
183
+ toString: fn,
184
+ };
185
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cabloy/utils",
3
3
  "type": "module",
4
- "version": "1.0.40",
4
+ "version": "1.0.41",
5
5
  "description": "cabloy utils",
6
6
  "publishConfig": {
7
7
  "access": "public"