1.5.2 • Published 7 years ago

axios-offline v1.5.2

Weekly downloads
20
License
MIT
Repository
github
Last release
7 years ago

axios-offline

npm package npm downloads License: MIT

Remembering failed requests and repeating when an internet connection is available

Install

npm install axios-offline --save

or

yarn add axios-offline

Usage

import Axios from 'axios'
import AxiosOffline from 'axios-offline'
import LocalForage from "localforage"

let AxiosOfflineAdapter = AxiosOffline({
  defaultAdapter: Axios.defaults.adapter, //require, basic adapter
  storageName: "axios-offline", //optional, default: "axios-stack"
  storageDriver: LocalForage.LOCALSTORAGE //optional, default: LocalForage.LOCALSTORAGE
})

let http = Axios.create({
  adapter: AxiosOfflineAdapter
})

export default http
1.5.2

7 years ago

1.5.1

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

0.0.0

8 years ago

1.0.0

8 years ago