@apify/utilities 2.33.1 → 2.34.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/cjs/index.cjs +3 -1
- package/cjs/index.cjs.map +1 -1
- package/cjs/index.d.ts +4 -4
- package/esm/index.d.mts +4 -4
- package/esm/index.mjs +3 -1
- package/esm/index.mjs.map +1 -1
- package/package.json +2 -2
package/cjs/index.d.ts
CHANGED
|
@@ -253,10 +253,10 @@ declare class RetryableError extends Error {
|
|
|
253
253
|
readonly error: Error;
|
|
254
254
|
constructor(error: Error, ...args: unknown[]);
|
|
255
255
|
}
|
|
256
|
-
declare function retryWithExpBackoff<T>(params
|
|
257
|
-
func
|
|
258
|
-
expBackoffMillis
|
|
259
|
-
expBackoffMaxRepeats
|
|
256
|
+
declare function retryWithExpBackoff<T>(params: {
|
|
257
|
+
func: (...args: unknown[]) => T | Promise<T>;
|
|
258
|
+
expBackoffMillis: number;
|
|
259
|
+
expBackoffMaxRepeats: number;
|
|
260
260
|
}): Promise<T>;
|
|
261
261
|
|
|
262
262
|
declare enum CHECK_TYPES {
|
package/esm/index.d.mts
CHANGED
|
@@ -253,10 +253,10 @@ declare class RetryableError extends Error {
|
|
|
253
253
|
readonly error: Error;
|
|
254
254
|
constructor(error: Error, ...args: unknown[]);
|
|
255
255
|
}
|
|
256
|
-
declare function retryWithExpBackoff<T>(params
|
|
257
|
-
func
|
|
258
|
-
expBackoffMillis
|
|
259
|
-
expBackoffMaxRepeats
|
|
256
|
+
declare function retryWithExpBackoff<T>(params: {
|
|
257
|
+
func: (...args: unknown[]) => T | Promise<T>;
|
|
258
|
+
expBackoffMillis: number;
|
|
259
|
+
expBackoffMaxRepeats: number;
|
|
260
260
|
}): Promise<T>;
|
|
261
261
|
|
|
262
262
|
declare enum CHECK_TYPES {
|
package/esm/index.mjs
CHANGED
|
@@ -840,6 +840,8 @@ var FORBIDDEN_USERNAMES_REGEXPS = [
|
|
|
840
840
|
"core-team",
|
|
841
841
|
"oss",
|
|
842
842
|
"open-source",
|
|
843
|
+
"opensource",
|
|
844
|
+
"open-source-software",
|
|
843
845
|
// Anti-abuse / scam-bait names (frequently used in account fraud)
|
|
844
846
|
"spam",
|
|
845
847
|
"scam",
|
|
@@ -1604,7 +1606,7 @@ var _RetryableError = class _RetryableError extends Error {
|
|
|
1604
1606
|
};
|
|
1605
1607
|
__name(_RetryableError, "RetryableError");
|
|
1606
1608
|
var RetryableError = _RetryableError;
|
|
1607
|
-
async function retryWithExpBackoff(params
|
|
1609
|
+
async function retryWithExpBackoff(params) {
|
|
1608
1610
|
const { func, expBackoffMillis, expBackoffMaxRepeats } = params;
|
|
1609
1611
|
if (typeof func !== "function") {
|
|
1610
1612
|
throw new Error('Parameter "func" should be a function.');
|