Nothing Special   »   [go: up one dir, main page]

3.0.0 • Published 4 years ago

is-retry-allowed v3.0.0

Weekly downloads
10,351,331
License
MIT
Repository
github
Last release
4 years ago

is-retry-allowed

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

Install

$ npm install is-retry-allowed

Usage

import isRetryAllowed from '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.


@wetransfer/axios-retryarchetype-librarykilli8n-react-native-fast-imagengcrawlercad-cli@cashremit/cr-streamline-iconsdyx-reacttalent-to-vite-cliunblock-block-save-variables@infinitebrahmanuniverse/nolb-is-r@everything-registry/sub-chunk-1934web-elements-iconsweb-component-tester-bundlesciadvfilesretry-backofftest-public-provite_vue3_ts_ssssdddddyyyy3.0.0miguelcostero-ng2-toastylifion-kinesisheroku-clientgix-npm-serverjeuxuiinstall-ismicro-sub-climixin-sdk-testhubot-budahttp-callgot-tmpgot-litegot_with_strict_duplexer3_versiongotv7.1.0h5-templetehendo-clihendo-cli-luozheaolazy-bee-uimy-temp-climarkdownalint-cli2onqlave-nodeover-armour-masterpolen-web-components-reactnpmtest-05041pixiu-swap-corepixiuswap-libs-sdknimbu-clientreact-picky-with-clearnois-react-toastreact-native-teads-sdk-modulesindresorhus.jsud7-act2tools_may_24twine-libtwine-library@afria/afria-libraries@aevaldas/axios-retry@akiflow/axios-retry@bdkuni/service@chiaraani/bouncing-ball@chakra-swap/core263-web-finesdk@coin-miles/axios-retry@bonsaiswap-lib/lib@bonsaiswapv3/core@bonsaiswapv3/deployyangotyangzai-cliyf-sw-clivue-v3-yandex-metrikaweb-263-finesdkwcq-vuewechat-263-finesdk@hawkingnetwork/react-native-tab-view@eliteswap/v2-core@innoswap/core@innodata/vue-v3-ya-metrika@livecycle.io/rrweb-snapshot@litedexdev/litedex-core-swap@marinaga/bananize@materia-dex/materia-contracts-proxy@nandhakumarb/npm_sample@nodeberry/solidity-payment-processor@enime-project/axios-retry@faizanhaider/iconsax@memo28/service@mixin.dev/mixin-node-sdk@moezx/meting@kodinghandle/bullswap-lib@igniswap/igni-swap-lib@olympfin/olymp-swap-lib@onqlavelabs/onqlave-node@npm-lt/cli@serverless-devs/got@rezamoosavi/asiastartup-npm-package@rezamoosavi/asiastartup-npm-package-kit@borealisswap/borealis-swap-lib@rstacruz/pnpmcauseway-concrete-stylesgenerator-bootstrap-boilerplate-template@vtexlab/axios-concurrent-retry@vtex/axios-concurrent-retry
3.0.0

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.2.0

5 years ago

1.1.0

9 years ago

1.0.0

9 years ago