0.1.2 • Published 8 months ago

axios-tauri-fetch-adapter v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

axios-tauri-fetch-adapter

npm.io npm.io

Makes it easy to use Axios in Tauri App, Adapted for Tauri App 2.0.0

Installation

npm install axios-tauri-fetch-adapter

Usage

TypeScript / JavaScript

import axios from 'axios'
import axiosTauriApiAdapter from 'axios-tauri-fetch-adapter'
const client = axios.create({ adapter: axiosTauriFetchAdapter })

Tauri App

Configure the allowed URLs Tauri App HTTP client

{
  "permissions": [
    {
      "identifier": "http:default",
      "allow": [{ "url": "https://*.tauri.app" }],
      "deny": [{ "url": "https://private.tauri.app" }]
    }
  ]
}

License

MIT

0.1.2

8 months ago

0.1.1

8 months ago