Socket
Socket
Sign inDemoInstall

retry-request

Package Overview
Dependencies
29
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0 to 7.0.1

7

CHANGELOG.md
# Changelog
## [7.0.1](https://github.com/googleapis/retry-request/compare/v7.0.0...v7.0.1) (2023-10-12)
### Bug Fixes
* Types ([#109](https://github.com/googleapis/retry-request/issues/109)) ([35c0260](https://github.com/googleapis/retry-request/commit/35c02608138a4b66cf488e4e1e90cbff05d42c2f))
## [7.0.0](https://github.com/googleapis/retry-request/compare/v6.0.0...v7.0.0) (2023-10-11)

@@ -4,0 +11,0 @@

16

index.d.ts

@@ -5,8 +5,18 @@ declare module 'retry-request' {

type teenyRequestFunction = typeof teenyRequest extends Function
? typeof teenyRequest
: never;
namespace retryRequest {
defaults = retryRequest.Options;
function getNextRetryDelay(retryNumber: number): void;
/**
* Set the defaults for `retryRequest`.
*/
const defaults: retryRequest.Options;
/**
* Determines the next retry based on the provided configuration.
*/
function getNextRetryDelay(config: Options): number;
interface Options {
objectMode?: boolean;
request: typeof request | typeof teenyRequest;
request: typeof request | teenyRequestFunction;
retries?: number;

@@ -13,0 +23,0 @@ noResponseRetries?: number;

2

package.json
{
"name": "retry-request",
"version": "7.0.0",
"version": "7.0.1",
"description": "Retry a request.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc