Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

polly-js

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polly-js - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

23

d.ts/polly-js.d.ts

@@ -0,15 +1,22 @@

type Info = {
count: number;
};
declare interface AsyncRetryable {
executeForPromise<T>(fn: () => Promise<T>): Promise<T>
executeForNode(fn: (err?: object, data?: any) => any, cb?: (err?: object, data?: any) => any): void
executeForPromise<T>(fn: (info: Info) => Promise<T>): Promise<T>;
executeForNode(
fn: (cb: (err?: object, data?: any) => any, info: Info) => any,
cb?: (err?: object, data?: any) => any
): void;
}
declare interface Retryable extends AsyncRetryable {
execute(fn: Function): any
execute(fn: (info: Info) => any): any;
}
declare interface Polly {
handle(fn: (err: any) => boolean): Polly
retry(numRetries: number): Retryable
waitAndRetry(delays: number[]): AsyncRetryable
waitAndRetry(numRetries : number): AsyncRetryable
handle(fn: (err: any) => boolean): Polly;
retry(numRetries: number): Retryable;
waitAndRetry(delays: number[]): AsyncRetryable;
waitAndRetry(numRetries: number): AsyncRetryable;
}

@@ -19,4 +26,4 @@

declare module "polly-js" {
declare module 'polly-js' {
export default polly;
}
{
"name": "polly-js",
"version": "1.6.0",
"version": "1.6.1",
"description": "Transient exception handling",

@@ -5,0 +5,0 @@ "main": "src/polly.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc