@apify/utilities 2.32.2 → 2.34.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/cjs/index.cjs +3 -0
- package/cjs/index.cjs.map +1 -1
- package/cjs/index.d.ts +2 -3
- package/esm/index.d.mts +2 -3
- package/esm/index.mjs +3 -0
- package/esm/index.mjs.map +1 -1
- package/package.json +2 -2
package/cjs/index.d.ts
CHANGED
|
@@ -22,8 +22,7 @@ declare function cryptoRandomObjectId(length?: number): string;
|
|
|
22
22
|
declare function deterministicUniqueId(key: string, length?: number): string;
|
|
23
23
|
/**
|
|
24
24
|
* Returns a random integer between 0 and max (excluded, unless it is also 0).
|
|
25
|
-
* @param
|
|
26
|
-
* @returns {number}
|
|
25
|
+
* @param maxExcluded - exclusive upper bound; the returned value is always lower than this
|
|
27
26
|
*/
|
|
28
27
|
declare function getRandomInt(maxExcluded: number): number;
|
|
29
28
|
/**
|
|
@@ -34,7 +33,7 @@ declare function getRandomInt(maxExcluded: number): number;
|
|
|
34
33
|
declare function parseDateFromJson(date: string | Date): Date;
|
|
35
34
|
/**
|
|
36
35
|
* Returns a Promise object that will wait a specific number of milliseconds.
|
|
37
|
-
* @param
|
|
36
|
+
* @param millis - time to wait in milliseconds; if not larger than zero, the promise resolves immediately
|
|
38
37
|
*/
|
|
39
38
|
declare function delayPromise(millis: number): Promise<void>;
|
|
40
39
|
/**
|
package/esm/index.d.mts
CHANGED
|
@@ -22,8 +22,7 @@ declare function cryptoRandomObjectId(length?: number): string;
|
|
|
22
22
|
declare function deterministicUniqueId(key: string, length?: number): string;
|
|
23
23
|
/**
|
|
24
24
|
* Returns a random integer between 0 and max (excluded, unless it is also 0).
|
|
25
|
-
* @param
|
|
26
|
-
* @returns {number}
|
|
25
|
+
* @param maxExcluded - exclusive upper bound; the returned value is always lower than this
|
|
27
26
|
*/
|
|
28
27
|
declare function getRandomInt(maxExcluded: number): number;
|
|
29
28
|
/**
|
|
@@ -34,7 +33,7 @@ declare function getRandomInt(maxExcluded: number): number;
|
|
|
34
33
|
declare function parseDateFromJson(date: string | Date): Date;
|
|
35
34
|
/**
|
|
36
35
|
* Returns a Promise object that will wait a specific number of milliseconds.
|
|
37
|
-
* @param
|
|
36
|
+
* @param millis - time to wait in milliseconds; if not larger than zero, the promise resolves immediately
|
|
38
37
|
*/
|
|
39
38
|
declare function delayPromise(millis: number): Promise<void>;
|
|
40
39
|
/**
|
package/esm/index.mjs
CHANGED
|
@@ -698,6 +698,7 @@ var FORBIDDEN_USERNAMES_REGEXPS = [
|
|
|
698
698
|
"1m-usd-challenge",
|
|
699
699
|
"contact-sales",
|
|
700
700
|
"creator",
|
|
701
|
+
"creators",
|
|
701
702
|
"creator-plan",
|
|
702
703
|
"request-an-integration",
|
|
703
704
|
"whitepaper",
|
|
@@ -839,6 +840,8 @@ var FORBIDDEN_USERNAMES_REGEXPS = [
|
|
|
839
840
|
"core-team",
|
|
840
841
|
"oss",
|
|
841
842
|
"open-source",
|
|
843
|
+
"opensource",
|
|
844
|
+
"open-source-software",
|
|
842
845
|
// Anti-abuse / scam-bait names (frequently used in account fraud)
|
|
843
846
|
"spam",
|
|
844
847
|
"scam",
|