@webiny/utils 5.40.5 → 5.40.6-beta.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.
@@ -1,2 +1,3 @@
1
1
  import pRetry from "p-retry";
2
- export declare const executeWithRetry: <T>(execute: () => Promise<T>, options?: Parameters<typeof pRetry>[1]) => Promise<T>;
2
+ export declare type ExecuteWithRetryOptions = Parameters<typeof pRetry>[1];
3
+ export declare const executeWithRetry: <T>(execute: () => Promise<T>, options?: ExecuteWithRetryOptions) => Promise<T>;
@@ -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?: Parameters<typeof pRetry>[1]\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;AAEO,MAAMC,gBAAgB,GAAGA,CAC5BC,OAAyB,EACzBC,OAAsC,KACrC;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":[]}
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.40.5",
3
+ "version": "5.40.6-beta.1",
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.40.5",
18
+ "@webiny/error": "5.40.6-beta.1",
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.40.5",
31
- "@webiny/project-utils": "5.40.5",
30
+ "@webiny/cli": "5.40.6-beta.1",
31
+ "@webiny/project-utils": "5.40.6-beta.1",
32
32
  "rimraf": "5.0.5",
33
33
  "ttypescript": "1.5.15",
34
34
  "typescript": "4.7.4"
@@ -47,5 +47,5 @@
47
47
  ]
48
48
  }
49
49
  },
50
- "gitHead": "f67778732392ed88f28da869ddacbf08a98cdec6"
50
+ "gitHead": "8e5c47c1cbad8da50813bea5257f9ab1eb8718c8"
51
51
  }