Socket
Socket
Sign inDemoInstall

@humanwhocodes/retry

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@humanwhocodes/retry - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

3

dist/retrier.js

@@ -189,4 +189,3 @@ /**

result = fn();
} catch (error) {
// @ts-ignore TS doesn't know about the second argument to Error?
} catch (/** @type {any} */ error) {
return Promise.reject(new Error(`Synchronous error: ${error.message}`, { cause: error }));

@@ -193,0 +192,0 @@ }

{
"name": "@humanwhocodes/retry",
"version": "0.1.3",
"version": "0.2.0",
"description": "A utility to retry failed async methods.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -9,3 +9,3 @@ # Retry utility

A utility for retrying a failed async JavaScript call based on the error returned.
A utility for retrying failed async JavaScript calls based on the error returned.

@@ -38,9 +38,18 @@ ## Usage

Import into your Deno project:
Install using [JSR](https://jsr.io):
```shell
deno add @humanwhocodes/retry
#or
jsr add @humanwhocodes/retry
```
Then import into your Deno project:
```js
import { Retrier } from "https://cdn.skypack.dev/@humanwhocodes/retry?dts";
import { Retrier } from "@humanwhocodes/retry";
```
### Bun

@@ -47,0 +56,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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