Package Exports
- @yafetch/plugin-retry
 - @yafetch/plugin-retry/dist/es/index.js
 - @yafetch/plugin-retry/dist/index.js
 
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@yafetch/plugin-retry) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@yafetch/plugin-retry
About
This plugin is part of yafetch
Usage
const yafetch  = require('@yafetch/core')
const pluginRetry = require('@yafetch/plugin-retry')
// or
import yafetch, { GlobalOptions } from '@yafetch/core'
import pluginRetry from '@yafetch/plugin-retry'
// then, add plugin in global options
GlobalOptions.yafetch = {
  // ... other options, if any
  plugins: {
    wrap: [
      pluginRetry({
        delay: 2
      })
    ]
  }
}
// or in a per-request options
const res = await yafetch('< string url or Request object >', {
  // ... other options, if any
  plugins: {
    wrap: [
      pluginRetry({
        delay: 2
      })
    ]
  }
  // ... other options, if any
})See plugin-retry documentation for more information.
Previous work
This plugin was inspired by vercel/fetch-retry.