vndb-api-kana
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -1,2 +0,1 @@ | ||
import { ApiPath as ApiPath$1 } from 'src/apis/createApis'; | ||
import * as axios from 'axios'; | ||
@@ -813,2 +812,7 @@ import { CreateAxiosDefaults } from 'axios'; | ||
interface ApiPath { | ||
method: 'GET' | 'POST'; | ||
path: string; | ||
} | ||
interface BaseQuery { | ||
@@ -953,11 +957,6 @@ /** | ||
} | ||
type UseRequest = <T, S>(params: T, path: ApiPath$1, | ||
type UseRequest = <T, S>(params: T, path: ApiPath, | ||
/** default has BaseURL header */ | ||
config?: CreateAxiosDefaults) => Promise<S>; | ||
interface ApiPath { | ||
method: 'GET' | 'POST'; | ||
path: string; | ||
} | ||
declare const _default: { | ||
@@ -982,2 +981,6 @@ getCharacter: (config: axios.CreateAxiosDefaults<any>, use: UseRequest) => (params?: CharacterRequest) => Promise<BaseResponse<Character>>; | ||
setAuth(auth: string): void; | ||
/** | ||
* | ||
* @ignore TODO | ||
*/ | ||
use(use: UseRequest): void; | ||
@@ -984,0 +987,0 @@ } |
{ | ||
"name": "vndb-api-kana", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"license": "MIT", | ||
@@ -19,7 +19,6 @@ "author": "TachibanaKimika", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"build": "rollup --config" | ||
}, | ||
"keywords": [ | ||
"vndb", "erogame", "visual novel" | ||
"vndb", | ||
"erogame", | ||
"visual novel" | ||
], | ||
@@ -50,3 +49,6 @@ "repository": { | ||
"axios": "^1.2.2" | ||
}, | ||
"scripts": { | ||
"build": "rollup --config" | ||
} | ||
} | ||
} |
# vndb-api-Kana | ||
An API wrapper for V[VNDB HTTP API(v2)](https://api.vndb.org/kana) that allows you to interact with the VNDB API in a type-safe manner using TypeScript. | ||
An API wrapper for [VNDB HTTP API(v2)](https://api.vndb.org/kana) that allows you to interact with the VNDB API in a type-safe manner using TypeScript. | ||
@@ -14,3 +14,3 @@ ## Features | ||
```bash | ||
npm install vndb-api-kana | ||
npm install vndb-api-kana axios | ||
``` | ||
@@ -17,0 +17,0 @@ ## Usage |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57954
1007