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

promise-again

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-again - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

12

package.json
{
"name": "promise-again",
"version": "1.3.0",
"version": "1.3.1",
"main": "./dist/umd/index.js",
"module": "./dist/es6/index.js",
"license": "MIT",
"keywords": [
"promise",
"again",
"retry",
"typescript",
"ts",
"delay",
"pause",
"attempt"
],
"dependencies": {

@@ -8,0 +18,0 @@ "delay": "^2.0.0"

10

README.md

@@ -10,3 +10,3 @@ # promise-again

```
```javascript
import promiseAgain from 'promise-again';

@@ -34,3 +34,3 @@

**/
delay: number | ((attempt: number, ...args: any[]) => number | Promise<number>);
delay: 1000, /*number | ((attempt: number, ...args: any[]) => number | Promise<number>)*/

@@ -46,3 +46,3 @@ /**

**/
attempts: number | ((attempt: number, ...args: any[]) => boolean | Promise<boolean>);
attempts: 10, /*number | ((attempt: number, ...args: any[]) => boolean | Promise<boolean>);*/

@@ -58,6 +58,8 @@ /**

**/
retryArgumentsInterceptor: (reason: any, attempt: number, ...args: any[]) => any[] | Promise<any[]>;
retryArgumentsInterceptor: (reason, attempt, ...args) => args /*(reason: any, attempt: number, ...args: any[]) => any[] | Promise<any[]>;*/
}
)
wrappedFunction().then();
```
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