Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kitsu

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kitsu - npm Package Compare versions

Comparing version 7.0.4 to 7.1.0

16

CHANGELOG.md

@@ -6,2 +6,18 @@ # Change Log

# [7.1.0](https://github.com/wopian/kitsu/tree/master/packages/kitsu/compare/v7.0.4...v7.1.0) (2019-10-15)
### Chores
* **release:** update documentation ([61d8407](https://github.com/wopian/kitsu/tree/master/packages/kitsu/commit/61d8407))
### New Features
* **kitsu:** added axiosOptions to Kitsu constructor ([b5fd092](https://github.com/wopian/kitsu/tree/master/packages/kitsu/commit/b5fd092))
## [7.0.4](https://github.com/wopian/kitsu/tree/master/packages/kitsu/compare/v7.0.3...v7.0.4) (2019-06-16)

@@ -8,0 +24,0 @@

4

lib/index.js

@@ -15,6 +15,6 @@ 'use strict';

"Content-Type": 'application/vnd.api+json'
}), this.axios = axios.create({
}), this.axios = axios.create(Object.assign({}, {
baseURL: options.baseURL || 'https://kitsu.io/api/edge',
timeout: options.timeout || 30000
}), this.fetch = this.get, this.update = this.patch, this.create = this.post, this.remove = this.delete;
}, options.axiosOptions)), this.fetch = this.get, this.update = this.patch, this.create = this.post, this.remove = this.delete;
}

@@ -21,0 +21,0 @@

@@ -14,6 +14,6 @@ 'use strict';

"Content-Type": 'application/vnd.api+json'
}), this.axios = axios.create({
}), this.axios = axios.create(Object.assign({}, {
baseURL: options.baseURL || 'https://kitsu.io/api/edge',
timeout: options.timeout || 30000
}), this.fetch = this.get, this.update = this.patch, this.create = this.post, this.remove = this.delete;
}, options.axiosOptions)), this.fetch = this.get, this.update = this.patch, this.create = this.post, this.remove = this.delete;
}

@@ -20,0 +20,0 @@

{
"version": "7.0.4",
"version": "7.1.0",
"name": "kitsu",

@@ -78,3 +78,3 @@ "description": "Simple & lightweight JSON-API client for Kitsu and other compliant APIs",

],
"gitHead": "ecac113a1f5df2605882b7cb2a4f969da3974b33"
"gitHead": "5c9778d191d17d7c9790cfc6d0f4e983b4742a53"
}

@@ -202,3 +202,3 @@ <h1 align=center>Kitsu</h1>

[packages/kitsu/src/index.js:29-289](https://github.com/wopian/kitsu/blob/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu/src/index.js#L29-L289 "Source code on GitHub")
[packages/kitsu/src/index.js:30-292](https://github.com/wopian/kitsu/blob/b5fd092aa99591bc4d2a6277698046f45f0243bb/packages/kitsu/src/index.js#L30-L292 "Source code on GitHub")

@@ -216,2 +216,3 @@ Creates a new `kitsu` instance

- `options.timeout` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Set the request timeout in milliseconds (default `30000`)
- `options.axiosOptions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Additional options for the axios instance

@@ -250,3 +251,3 @@ #### Examples

[packages/kitsu/src/index.js:51-52](https://github.com/wopian/kitsu/blob/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu/src/index.js#L51-L52 "Source code on GitHub")
[packages/kitsu/src/index.js:52-53](https://github.com/wopian/kitsu/blob/b5fd092aa99591bc4d2a6277698046f45f0243bb/packages/kitsu/src/index.js#L52-L53 "Source code on GitHub")

@@ -271,3 +272,3 @@ - **See: <https://www.npmjs.com/package/pluralize> for documentation**

[packages/kitsu/src/index.js:66-66](https://github.com/wopian/kitsu/blob/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu/src/index.js#L66-L66 "Source code on GitHub")
[packages/kitsu/src/index.js:67-67](https://github.com/wopian/kitsu/blob/b5fd092aa99591bc4d2a6277698046f45f0243bb/packages/kitsu/src/index.js#L67-L67 "Source code on GitHub")

@@ -303,3 +304,3 @@ Get the current headers or add additional headers

[packages/kitsu/src/index.js:149-168](https://github.com/wopian/kitsu/blob/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu/src/index.js#L149-L168 "Source code on GitHub")
[packages/kitsu/src/index.js:152-171](https://github.com/wopian/kitsu/blob/b5fd092aa99591bc4d2a6277698046f45f0243bb/packages/kitsu/src/index.js#L152-L171 "Source code on GitHub")

@@ -416,3 +417,3 @@ Fetch resources (alias `fetch`)

[packages/kitsu/src/index.js:184-198](https://github.com/wopian/kitsu/blob/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu/src/index.js#L184-L198 "Source code on GitHub")
[packages/kitsu/src/index.js:187-201](https://github.com/wopian/kitsu/blob/b5fd092aa99591bc4d2a6277698046f45f0243bb/packages/kitsu/src/index.js#L187-L201 "Source code on GitHub")

@@ -443,3 +444,3 @@ Update a resource (alias `update`)

[packages/kitsu/src/index.js:221-234](https://github.com/wopian/kitsu/blob/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu/src/index.js#L221-L234 "Source code on GitHub")
[packages/kitsu/src/index.js:224-237](https://github.com/wopian/kitsu/blob/b5fd092aa99591bc4d2a6277698046f45f0243bb/packages/kitsu/src/index.js#L224-L237 "Source code on GitHub")

@@ -477,3 +478,3 @@ Create a new resource (alias `create`)

[packages/kitsu/src/index.js:247-259](https://github.com/wopian/kitsu/blob/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu/src/index.js#L247-L259 "Source code on GitHub")
[packages/kitsu/src/index.js:250-262](https://github.com/wopian/kitsu/blob/b5fd092aa99591bc4d2a6277698046f45f0243bb/packages/kitsu/src/index.js#L250-L262 "Source code on GitHub")

@@ -501,3 +502,3 @@ Remove a resource (alias `remove`)

[packages/kitsu/src/index.js:281-288](https://github.com/wopian/kitsu/blob/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu/src/index.js#L281-L288 "Source code on GitHub")
[packages/kitsu/src/index.js:284-291](https://github.com/wopian/kitsu/blob/b5fd092aa99591bc4d2a6277698046f45f0243bb/packages/kitsu/src/index.js#L284-L291 "Source code on GitHub")

@@ -504,0 +505,0 @@ Get the authenticated user's data

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc