Comparing version 10.0.0-alpha.17 to 10.0.0-alpha.18
@@ -6,2 +6,10 @@ # Change Log | ||
# [10.0.0-alpha.18](https://github.com/wopian/kitsu/compare/v10.0.0-alpha.17...v10.0.0-alpha.18) (2021-11-02) | ||
**Note:** Version bump only for package kitsu | ||
# [10.0.0-alpha.17](https://github.com/wopian/kitsu/compare/v10.0.0-alpha.16...v10.0.0-alpha.17) (2021-10-19) | ||
@@ -8,0 +16,0 @@ |
@@ -13,3 +13,4 @@ 'use strict'; | ||
class Kitsu { | ||
constructor(options = {}) { | ||
constructor() { | ||
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
if (options.camelCaseTypes === false) this.camel = s => s;else this.camel = kitsuCore.camel; | ||
@@ -37,3 +38,5 @@ if (options.resourceCase === 'none') this.resCase = s => s;else if (options.resourceCase === 'snake') this.resCase = kitsuCore.snake;else this.resCase = kitsuCore.kebab; | ||
async get(model, config = {}) { | ||
async get(model) { | ||
let config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
try { | ||
@@ -69,3 +72,5 @@ const headers = { ...this.headers, | ||
async patch(model, body, config = {}) { | ||
async patch(model, body) { | ||
let config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
try { | ||
@@ -105,3 +110,5 @@ const headers = { ...this.headers, | ||
async post(model, body, config = {}) { | ||
async post(model, body) { | ||
let config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
try { | ||
@@ -139,3 +146,5 @@ const headers = { ...this.headers, | ||
async delete(model, id, config = {}) { | ||
async delete(model, id) { | ||
let config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
try { | ||
@@ -189,3 +198,5 @@ const headers = { ...this.headers, | ||
async self(config = {}) { | ||
async self() { | ||
let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
try { | ||
@@ -223,10 +234,12 @@ const headers = { ...this.headers, | ||
async request({ | ||
body, | ||
method, | ||
params, | ||
type, | ||
url, | ||
headers | ||
}) { | ||
async request(_ref) { | ||
let { | ||
body, | ||
method, | ||
params, | ||
type, | ||
url, | ||
headers | ||
} = _ref; | ||
try { | ||
@@ -233,0 +246,0 @@ var _method; |
{ | ||
"version": "10.0.0-alpha.17", | ||
"version": "10.0.0-alpha.18", | ||
"name": "kitsu", | ||
@@ -52,4 +52,4 @@ "description": "A simple, lightweight & framework agnostic JSON:API client using Axios", | ||
"dependencies": { | ||
"axios": "^0.23.0", | ||
"kitsu-core": "^10.0.0-alpha.17", | ||
"axios": "^0.24.0", | ||
"kitsu-core": "^10.0.0-alpha.18", | ||
"pluralize": "^8.0.0" | ||
@@ -56,0 +56,0 @@ }, |
@@ -245,3 +245,3 @@ <h1 align=center>Kitsu</h1> | ||
[packages/kitsu/src/index.js:30-513](https://github.com/wopian/kitsu/blob/fd4f1cb072492c552cb97f45f581b51d204e3f7b/packages/kitsu/src/index.js#L30-L513 "Source code on GitHub") | ||
[packages/kitsu/src/index.js:30-513](https://github.com/wopian/kitsu/blob/5163896a3358d83ac419fd43edb92ae123a0f052/packages/kitsu/src/index.js#L30-L513 "Source code on GitHub") | ||
@@ -291,3 +291,3 @@ Creates a new `kitsu` instance | ||
[packages/kitsu/src/index.js:52-53](https://github.com/wopian/kitsu/blob/fd4f1cb072492c552cb97f45f581b51d204e3f7b/packages/kitsu/src/index.js#L52-L53 "Source code on GitHub") | ||
[packages/kitsu/src/index.js:52-53](https://github.com/wopian/kitsu/blob/5163896a3358d83ac419fd43edb92ae123a0f052/packages/kitsu/src/index.js#L52-L53 "Source code on GitHub") | ||
@@ -311,3 +311,3 @@ * **See**: <https://www.npmjs.com/package/pluralize> for documentation | ||
[packages/kitsu/src/index.js:67-67](https://github.com/wopian/kitsu/blob/fd4f1cb072492c552cb97f45f581b51d204e3f7b/packages/kitsu/src/index.js#L67-L67 "Source code on GitHub") | ||
[packages/kitsu/src/index.js:67-67](https://github.com/wopian/kitsu/blob/5163896a3358d83ac419fd43edb92ae123a0f052/packages/kitsu/src/index.js#L67-L67 "Source code on GitHub") | ||
@@ -340,3 +340,3 @@ Get the current headers or add additional headers | ||
[packages/kitsu/src/index.js:113-113](https://github.com/wopian/kitsu/blob/fd4f1cb072492c552cb97f45f581b51d204e3f7b/packages/kitsu/src/index.js#L113-L113 "Source code on GitHub") | ||
[packages/kitsu/src/index.js:113-113](https://github.com/wopian/kitsu/blob/5163896a3358d83ac419fd43edb92ae123a0f052/packages/kitsu/src/index.js#L113-L113 "Source code on GitHub") | ||
@@ -388,3 +388,3 @@ * **See**: <https://github.com/axios/axios#interceptors> for documentation | ||
[packages/kitsu/src/index.js:210-238](https://github.com/wopian/kitsu/blob/fd4f1cb072492c552cb97f45f581b51d204e3f7b/packages/kitsu/src/index.js#L210-L238 "Source code on GitHub") | ||
[packages/kitsu/src/index.js:210-238](https://github.com/wopian/kitsu/blob/5163896a3358d83ac419fd43edb92ae123a0f052/packages/kitsu/src/index.js#L210-L238 "Source code on GitHub") | ||
@@ -525,3 +525,3 @@ Fetch resources (alias `fetch`) | ||
[packages/kitsu/src/index.js:273-300](https://github.com/wopian/kitsu/blob/fd4f1cb072492c552cb97f45f581b51d204e3f7b/packages/kitsu/src/index.js#L273-L300 "Source code on GitHub") | ||
[packages/kitsu/src/index.js:273-300](https://github.com/wopian/kitsu/blob/5163896a3358d83ac419fd43edb92ae123a0f052/packages/kitsu/src/index.js#L273-L300 "Source code on GitHub") | ||
@@ -587,3 +587,3 @@ Update a resource (alias `update`) | ||
[packages/kitsu/src/index.js:330-355](https://github.com/wopian/kitsu/blob/fd4f1cb072492c552cb97f45f581b51d204e3f7b/packages/kitsu/src/index.js#L330-L355 "Source code on GitHub") | ||
[packages/kitsu/src/index.js:330-355](https://github.com/wopian/kitsu/blob/5163896a3358d83ac419fd43edb92ae123a0f052/packages/kitsu/src/index.js#L330-L355 "Source code on GitHub") | ||
@@ -632,3 +632,3 @@ Create a new resource (alias `create`) | ||
[packages/kitsu/src/index.js:372-405](https://github.com/wopian/kitsu/blob/fd4f1cb072492c552cb97f45f581b51d204e3f7b/packages/kitsu/src/index.js#L372-L405 "Source code on GitHub") | ||
[packages/kitsu/src/index.js:372-405](https://github.com/wopian/kitsu/blob/5163896a3358d83ac419fd43edb92ae123a0f052/packages/kitsu/src/index.js#L372-L405 "Source code on GitHub") | ||
@@ -664,3 +664,3 @@ Remove a resource (alias `remove`) | ||
[packages/kitsu/src/index.js:428-437](https://github.com/wopian/kitsu/blob/fd4f1cb072492c552cb97f45f581b51d204e3f7b/packages/kitsu/src/index.js#L428-L437 "Source code on GitHub") | ||
[packages/kitsu/src/index.js:428-437](https://github.com/wopian/kitsu/blob/5163896a3358d83ac419fd43edb92ae123a0f052/packages/kitsu/src/index.js#L428-L437 "Source code on GitHub") | ||
@@ -702,3 +702,3 @@ Get the authenticated user's data | ||
[packages/kitsu/src/index.js:491-512](https://github.com/wopian/kitsu/blob/fd4f1cb072492c552cb97f45f581b51d204e3f7b/packages/kitsu/src/index.js#L491-L512 "Source code on GitHub") | ||
[packages/kitsu/src/index.js:491-512](https://github.com/wopian/kitsu/blob/5163896a3358d83ac419fd43edb92ae123a0f052/packages/kitsu/src/index.js#L491-L512 "Source code on GitHub") | ||
@@ -705,0 +705,0 @@ Send arbitrary requests |
@@ -107,3 +107,3 @@ /** | ||
request: import("axios").AxiosInterceptorManager<import("axios").AxiosRequestConfig<any>>; | ||
response: import("axios").AxiosInterceptorManager<import("axios").AxiosResponse<unknown, any>>; | ||
response: import("axios").AxiosInterceptorManager<import("axios").AxiosResponse<any, any>>; | ||
}; | ||
@@ -110,0 +110,0 @@ /** |
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
80413
891
+ Addedaxios@0.24.0(transitive)
- Removedaxios@0.23.0(transitive)
Updatedaxios@^0.24.0
Updatedkitsu-core@^10.0.0-alpha.18