@apify/utilities 2.32.2 → 2.33.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 +1 -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 +1 -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
|
/**
|