@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.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 {number} maxExcluded
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 {number} millis Time to wait. If the value is not larger than zero, the promise resolves immediately.
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 {number} maxExcluded
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 {number} millis Time to wait. If the value is not larger than zero, the promise resolves immediately.
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",