@apify/utilities 2.34.0 → 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.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?: (...args: unknown[]) => T | Promise<T>;
258
- expBackoffMillis?: number;
259
- expBackoffMaxRepeats?: number;
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?: (...args: unknown[]) => T | Promise<T>;
258
- expBackoffMillis?: number;
259
- expBackoffMaxRepeats?: number;
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
@@ -1606,7 +1606,7 @@ var _RetryableError = class _RetryableError extends Error {
1606
1606
  };
1607
1607
  __name(_RetryableError, "RetryableError");
1608
1608
  var RetryableError = _RetryableError;
1609
- async function retryWithExpBackoff(params = {}) {
1609
+ async function retryWithExpBackoff(params) {
1610
1610
  const { func, expBackoffMillis, expBackoffMaxRepeats } = params;
1611
1611
  if (typeof func !== "function") {
1612
1612
  throw new Error('Parameter "func" should be a function.');