@webiny/utils 5.40.6 → 5.41.0-beta.0
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/cacheKey.d.ts +2 -2
- package/compression/gzip.d.ts +1 -0
- package/cursor.d.ts +2 -2
- package/executeWithRetry.d.ts +1 -1
- package/package.json +6 -6
- package/removeNullValues.d.ts +1 -1
package/cacheKey.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { BinaryToTextEncoding } from "crypto";
|
|
3
|
-
export
|
|
3
|
+
export type ICacheKeyKeys = Record<string, any> | string | number;
|
|
4
4
|
export interface ICacheKeyOptions {
|
|
5
5
|
algorithm?: CacheKeyAlgorithmType;
|
|
6
6
|
encoding?: BinaryToTextEncoding;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type CacheKeyAlgorithmType = "md5" | "sha1" | "sha224" | "sha256" | "sha384" | "sha512";
|
|
9
9
|
export declare const createCacheKey: (input: ICacheKeyKeys, options?: ICacheKeyOptions) => string;
|
package/compression/gzip.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
2
3
|
import zlib from "zlib";
|
|
3
4
|
export declare const compress: (input: zlib.InputType, options?: zlib.ZlibOptions) => Promise<Buffer>;
|
|
4
5
|
export declare const decompress: (input: zlib.InputType, options?: zlib.ZlibOptions) => Promise<Buffer>;
|
package/cursor.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type CursorInput = string | number | (string | number)[] | null;
|
|
2
|
+
export type CursorOutput = string | null;
|
|
3
3
|
export declare const encodeCursor: (cursor?: CursorInput) => CursorOutput;
|
|
4
4
|
export declare const decodeCursor: (cursor?: CursorOutput) => CursorInput;
|
package/executeWithRetry.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import pRetry from "p-retry";
|
|
2
|
-
export
|
|
2
|
+
export type ExecuteWithRetryOptions = Parameters<typeof pRetry>[1];
|
|
3
3
|
export declare const executeWithRetry: <T>(execute: () => Promise<T>, options?: ExecuteWithRetryOptions) => Promise<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/utils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.41.0-beta.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"directory": "dist"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@webiny/error": "5.
|
|
18
|
+
"@webiny/error": "5.41.0-beta.0",
|
|
19
19
|
"mdbid": "1.0.0",
|
|
20
20
|
"nanoid": "3.3.7",
|
|
21
21
|
"nanoid-dictionary": "4.3.0",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"@babel/preset-env": "7.24.3",
|
|
28
28
|
"@babel/preset-typescript": "7.24.1",
|
|
29
29
|
"@babel/runtime": "7.24.1",
|
|
30
|
-
"@webiny/cli": "5.
|
|
31
|
-
"@webiny/project-utils": "5.
|
|
30
|
+
"@webiny/cli": "5.41.0-beta.0",
|
|
31
|
+
"@webiny/project-utils": "5.41.0-beta.0",
|
|
32
32
|
"rimraf": "5.0.5",
|
|
33
33
|
"ttypescript": "1.5.15",
|
|
34
|
-
"typescript": "4.
|
|
34
|
+
"typescript": "4.9.5"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"zod": "^3.22.4"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
]
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "9ce5e75fc577aa4de2cf08d5ca734b3c98fe65b6"
|
|
51
51
|
}
|
package/removeNullValues.d.ts
CHANGED