@webiny/utils 5.41.0-dbt.0 → 5.41.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/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/executeWithRetry.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import pRetry from "p-retry";
|
|
2
|
-
export
|
|
2
|
+
export type ExecuteWithRetryOptions = Parameters<typeof pRetry>[1];
|
|
3
|
+
export declare const executeWithRetry: <T>(execute: () => Promise<T>, options?: ExecuteWithRetryOptions) => Promise<T>;
|
package/executeWithRetry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_pRetry","_interopRequireDefault","require","executeWithRetry","execute","options","retries","pRetry","maxRetryTime","minTimeout","maxTimeout","exports"],"sources":["executeWithRetry.ts"],"sourcesContent":["import pRetry from \"p-retry\";\n\nexport const executeWithRetry = <T>(\n execute: () => Promise<T>,\n options?:
|
|
1
|
+
{"version":3,"names":["_pRetry","_interopRequireDefault","require","executeWithRetry","execute","options","retries","pRetry","maxRetryTime","minTimeout","maxTimeout","exports"],"sources":["executeWithRetry.ts"],"sourcesContent":["import pRetry from \"p-retry\";\n\nexport type ExecuteWithRetryOptions = Parameters<typeof pRetry>[1];\n\nexport const executeWithRetry = <T>(\n execute: () => Promise<T>,\n options?: ExecuteWithRetryOptions\n) => {\n const retries = 20;\n return pRetry(execute, {\n maxRetryTime: 300000,\n retries,\n minTimeout: 1500,\n maxTimeout: 30000,\n ...options\n });\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIO,MAAMC,gBAAgB,GAAGA,CAC5BC,OAAyB,EACzBC,OAAiC,KAChC;EACD,MAAMC,OAAO,GAAG,EAAE;EAClB,OAAO,IAAAC,eAAM,EAACH,OAAO,EAAE;IACnBI,YAAY,EAAE,MAAM;IACpBF,OAAO;IACPG,UAAU,EAAE,IAAI;IAChBC,UAAU,EAAE,KAAK;IACjB,GAAGL;EACP,CAAC,CAAC;AACN,CAAC;AAACM,OAAA,CAAAR,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/utils",
|
|
3
|
-
"version": "5.41.0
|
|
3
|
+
"version": "5.41.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.41.0
|
|
18
|
+
"@webiny/error": "5.41.0",
|
|
19
19
|
"mdbid": "1.0.0",
|
|
20
20
|
"nanoid": "3.3.7",
|
|
21
21
|
"nanoid-dictionary": "4.3.0",
|
|
@@ -27,8 +27,8 @@
|
|
|
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.41.0
|
|
31
|
-
"@webiny/project-utils": "5.41.0
|
|
30
|
+
"@webiny/cli": "5.41.0",
|
|
31
|
+
"@webiny/project-utils": "5.41.0",
|
|
32
32
|
"rimraf": "5.0.5",
|
|
33
33
|
"ttypescript": "1.5.15",
|
|
34
34
|
"typescript": "4.9.5"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
]
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "a542f4d0806744c5e2333b3786478c4af3b6b750"
|
|
51
51
|
}
|