is-retry-allowed

WebJar for is-retry-allowed

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

is-retry-allowed
Последняя версия

Последняя версия

1.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

is-retry-allowed
WebJar for is-retry-allowed
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/sindresorhus/is-retry-allowed

Скачать is-retry-allowed

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-retry-allowed/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-retry-allowed</artifactId>
    <version>1.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-retry-allowed/
implementation 'org.webjars.npm:is-retry-allowed:1.2.0'
// https://jarcasting.com/artifacts/org.webjars.npm/is-retry-allowed/
implementation ("org.webjars.npm:is-retry-allowed:1.2.0")
'org.webjars.npm:is-retry-allowed:jar:1.2.0'
<dependency org="org.webjars.npm" name="is-retry-allowed" rev="1.2.0">
  <artifact name="is-retry-allowed" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-retry-allowed', version='1.2.0')
)
libraryDependencies += "org.webjars.npm" % "is-retry-allowed" % "1.2.0"
[org.webjars.npm/is-retry-allowed "1.2.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

is-retry-allowed

Check whether a request can be retried based on the error.code

Install

$ npm install --save is-retry-allowed

Usage

const isRetryAllowed = require('is-retry-allowed');

isRetryAllowed({code: 'ETIMEDOUT'});
//=> true

isRetryAllowed({code: 'ENOTFOUND'});
//=> false

isRetryAllowed({});
//=> true

API

isRetryAllowed(error)

error

Type: Error | object

The .code property, if it exists, will be used to determine whether retry is allowed.


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Версии библиотеки

Версия
1.2.0
1.1.0
1.0.0