@jsnw/common-utils 1.5.0 → 1.5.1
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.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -68,7 +68,7 @@ declare function isObjectEmpty(obj: object): boolean;
|
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/createInFlightDeduper.d.ts
|
|
70
70
|
type InFlightDeduper = {
|
|
71
|
-
use: <
|
|
71
|
+
use: <R extends any>(key: string, fn: () => R | Promise<R>) => Promise<Awaited<R>>;
|
|
72
72
|
};
|
|
73
73
|
/**
|
|
74
74
|
* Creates a deduplicator for in-flight promises or sync functions.
|
package/dist/index.d.mts
CHANGED
|
@@ -68,7 +68,7 @@ declare function isObjectEmpty(obj: object): boolean;
|
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/createInFlightDeduper.d.ts
|
|
70
70
|
type InFlightDeduper = {
|
|
71
|
-
use: <
|
|
71
|
+
use: <R extends any>(key: string, fn: () => R | Promise<R>) => Promise<Awaited<R>>;
|
|
72
72
|
};
|
|
73
73
|
/**
|
|
74
74
|
* Creates a deduplicator for in-flight promises or sync functions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsnw/common-utils",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Lightweight JavaScript/TypeScript utilities with async helpers, array and string operations",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"homepage": "https://github.com/pvbaliuk/jsn-utils#readme",
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/jest": "^30.0.0",
|
|
44
|
-
"@types/node": "^24.13.
|
|
44
|
+
"@types/node": "^24.13.4",
|
|
45
45
|
"jest": "^30.5.1",
|
|
46
46
|
"ts-jest": "^29.4.12",
|
|
47
47
|
"tsdown": "^0.22.14",
|