You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/kitsu-core/README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ kitsuCore.camel(...)
116
116
117
117
### deattribute
118
118
119
-
[packages/kitsu-core/src/deattribute/index.js:29-51](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu-core/src/deattribute/index.js#L29-L51"Source code on GitHub")
119
+
[packages/kitsu-core/src/deattribute/index.js:29-51](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu-core/src/deattribute/index.js#L29-L51"Source code on GitHub")
[packages/kitsu-core/src/deserialise/index.js:57-72](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu-core/src/deserialise/index.js#L57-L72"Source code on GitHub")
163
+
[packages/kitsu-core/src/deserialise/index.js:57-72](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu-core/src/deserialise/index.js#L57-L72"Source code on GitHub")
[packages/kitsu-core/src/error/index.js:27-33](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu-core/src/error/index.js#L27-L33"Source code on GitHub")
215
+
[packages/kitsu-core/src/error/index.js:27-33](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu-core/src/error/index.js#L27-L33"Source code on GitHub")
216
216
217
217
Uniform error handling for Axios, JSON:API and internal package errors. Mutated Error object is rethrown to the caller.
218
218
@@ -249,7 +249,7 @@ error({
249
249
250
250
### filterIncludes
251
251
252
-
[packages/kitsu-core/src/filterIncludes/index.js:33-46](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu-core/src/filterIncludes/index.js#L33-L46"Source code on GitHub")
252
+
[packages/kitsu-core/src/filterIncludes/index.js:33-46](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu-core/src/filterIncludes/index.js#L33-L46"Source code on GitHub")
253
253
254
254
Filters includes for the specific relationship requested
[packages/kitsu-core/src/linkRelationships/index.js:97-117](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu-core/src/linkRelationships/index.js#L97-L117"Source code on GitHub")
291
+
[packages/kitsu-core/src/linkRelationships/index.js:97-117](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu-core/src/linkRelationships/index.js#L97-L117"Source code on GitHub")
292
292
293
293
Links relationships to included data
294
294
@@ -326,7 +326,7 @@ Returns **any** Parsed data
326
326
327
327
### query
328
328
329
-
[packages/kitsu-core/src/query/index.js:33-44](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu-core/src/query/index.js#L33-L44"Source code on GitHub")
329
+
[packages/kitsu-core/src/query/index.js:33-44](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu-core/src/query/index.js#L33-L44"Source code on GitHub")
330
330
331
331
Constructs a URL query string for JSON:API parameters
[packages/kitsu-core/src/serialise/index.js:191-202](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu-core/src/serialise/index.js#L191-L202"Source code on GitHub")
357
+
[packages/kitsu-core/src/serialise/index.js:191-202](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu-core/src/serialise/index.js#L191-L202"Source code on GitHub")
[packages/kitsu-core/src/splitModel/index.js:29-39](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu-core/src/splitModel/index.js#L29-L39"Source code on GitHub")
403
+
[packages/kitsu-core/src/splitModel/index.js:29-39](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu-core/src/splitModel/index.js#L29-L39"Source code on GitHub")
[packages/kitsu-core/src/camel/index.js:14-14](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu-core/src/camel/index.js#L14-L14"Source code on GitHub")
446
+
[packages/kitsu-core/src/camel/index.js:14-14](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu-core/src/camel/index.js#L14-L14"Source code on GitHub")
[packages/kitsu-core/src/kebab/index.js:11-11](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu-core/src/kebab/index.js#L11-L11"Source code on GitHub")
474
+
[packages/kitsu-core/src/kebab/index.js:11-11](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu-core/src/kebab/index.js#L11-L11"Source code on GitHub")
[packages/kitsu-core/src/snake/index.js:11-11](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu-core/src/snake/index.js#L11-L11"Source code on GitHub")
492
+
[packages/kitsu-core/src/snake/index.js:11-11](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu-core/src/snake/index.js#L11-L11"Source code on GitHub")
Copy file name to clipboardExpand all lines: packages/kitsu/README.md
+26-22Lines changed: 26 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,7 @@ If you're working with [Kitsu.io]'s API, their [API docs][kitsu.io api docs] lis
213
213
214
214
### Kitsu
215
215
216
-
[packages/kitsu/src/index.js:30-459](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu/src/index.js#L30-L459"Source code on GitHub")
216
+
[packages/kitsu/src/index.js:30-463](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu/src/index.js#L30-L463"Source code on GitHub")
217
217
218
218
Creates a new `kitsu` instance
219
219
@@ -260,7 +260,7 @@ const api = new Kitsu({
260
260
261
261
#### plural
262
262
263
-
[packages/kitsu/src/index.js:52-53](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu/src/index.js#L52-L53"Source code on GitHub")
263
+
[packages/kitsu/src/index.js:52-53](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu/src/index.js#L52-L53"Source code on GitHub")
264
264
265
265
-**See: <https://www.npmjs.com/package/pluralize> for documentation
[packages/kitsu/src/index.js:67-67](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu/src/index.js#L67-L67"Source code on GitHub")
285
+
[packages/kitsu/src/index.js:67-67](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu/src/index.js#L67-L67"Source code on GitHub")
[packages/kitsu/src/index.js:112-112](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu/src/index.js#L112-L112"Source code on GitHub")
316
+
[packages/kitsu/src/index.js:112-112](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu/src/index.js#L112-L112"Source code on GitHub")
317
317
318
318
-**See: <https://github.com/axios/axios#interceptors> for documentation
[packages/kitsu/src/index.js:185-204](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu/src/index.js#L185-L204"Source code on GitHub")
367
+
[packages/kitsu/src/index.js:189-208](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu/src/index.js#L189-L208"Source code on GitHub")
368
368
369
369
Fetch resources (alias `fetch`)
370
370
371
371
##### Parameters
372
372
373
373
-`model`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Model to fetch data from
-`params.page.limit`**[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Number of resources to return in request (Max `20` for Kitsu.io except on `libraryEntries` which has a max of `500`)
377
-
-`params.page.offset`**[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Number of resources to offset the dataset by
374
+
-`params`**[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** JSON-API request queries. Any JSON:API query parameter not mentioned below is supported out of the box. (optional, default `{}`)
375
+
-`params.page`**[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?**[JSON:API Pagination](http://jsonapi.org/format/#fetching-pagination). All pagination strategies are supported, even if they are not listed below.
376
+
-`params.page.limit`**[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Number of resources to return in request (Offset-based) - **Note:** For Kitsu.io, max is `20` except on `libraryEntries` which has a max of `500`
377
+
-`params.page.offset`**[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Number of resources to offset the dataset by (Offset-based)
378
+
-`params.page.number`**[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Page of resources to return in request (Page-based) - **Note:** Not supported on Kitsu.io
379
+
-`params.page.size`**[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Number of resources to return in request (Page-based and cursor-based) - **Note:** Not supported on Kitsu.io
380
+
-`params.page.before`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** Get the previous page of resources (Cursor-based) - **Note:** Not Supported on Kitsu.io
381
+
-`params.page.after`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** Get the next page of resources (Cursor-based) - **Note:** Not Supported on Kitsu.io
378
382
-`params.fields`**[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** Return a sparse fieldset with only the included attributes/relationships - [JSON:API Sparse Fieldsets](http://jsonapi.org/format/#fetching-sparse-fieldsets)
379
383
-`params.filter`**[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** Filter dataset by attribute values - [JSON:API Filtering](http://jsonapi.org/format/#fetching-filtering)
380
384
-`params.sort`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** Sort dataset by one or more comma separated attributes (prepend `-` for descending order) - [JSON:API Sorting](http://jsonapi.org/format/#fetching-sorting)
[packages/kitsu/src/index.js:237-257](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu/src/index.js#L237-L257"Source code on GitHub")
483
+
[packages/kitsu/src/index.js:241-261](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu/src/index.js#L241-L261"Source code on GitHub")
[packages/kitsu/src/index.js:285-304](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu/src/index.js#L285-L304"Source code on GitHub")
546
+
[packages/kitsu/src/index.js:289-308](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu/src/index.js#L289-L308"Source code on GitHub")
[packages/kitsu/src/index.js:319-348](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu/src/index.js#L319-L348"Source code on GitHub")
589
+
[packages/kitsu/src/index.js:323-352](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu/src/index.js#L323-L352"Source code on GitHub")
[packages/kitsu/src/index.js:370-377](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu/src/index.js#L370-L377"Source code on GitHub")
619
+
[packages/kitsu/src/index.js:374-381](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu/src/index.js#L374-L381"Source code on GitHub")
[packages/kitsu/src/index.js:438-458](https://github.com/wopian/kitsu/blob/113e60fa60d3029df81c36741703748635470cd6/packages/kitsu/src/index.js#L438-L458"Source code on GitHub")
656
+
[packages/kitsu/src/index.js:442-462](https://github.com/wopian/kitsu/blob/b54ede662374aa5d4845a88d4e0158ca78289792/packages/kitsu/src/index.js#L442-L462"Source code on GitHub")
-`config.body`**([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)\|[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>)?** Data to send in the request
662
666
-`config.method`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** Request method - `GET`, `PATCH`, `POST` or `DELETE` (defaults to `GET`, case-insensitive)
-`config.params.page.limit`**[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Number of resources to return in request (Max `20` for Kitsu.ioexcept on `libraryEntries` which has a max of `500`)
666
-
-`config.params.page.offset`**[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Number of resources to offset the dataset by
667
-
-`config.params.fields`**[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?**Return a sparse fieldset with only the included attributes/relationships - [JSON:API Sparse Fieldsets](http://jsonapi.org/format/#fetching-sparse-fieldsets)
668
-
-`config.params.filter`**[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?**Filter dataset by attribute values - [JSON:API Filtering](http://jsonapi.org/format/#fetching-filtering)
669
-
-`config.params.sort`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?**Sort dataset by one or more comma separated attributes (prepend `-` for descending order) - [JSON:API Sorting](http://jsonapi.org/format/#fetching-sorting)
670
-
-`config.params.include`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?**Include relationship data - [JSON:API Includes](http://jsonapi.org/format/#fetching-includes)
667
+
-`config.params`**[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** JSON-API request queries. Any JSON:API query parameter not mentioned below is supported out of the box.
668
+
-`config.params.page`**[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?**[JSON:API Pagination](http://jsonapi.org/format/#fetching-pagination). All pagination strategies are supported, even if they are not listed below.
669
+
-`config.params.page.limit`**[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Number of resources to return in request (Offset-based) - **Note:** For Kitsu.io, max is `20`except on `libraryEntries` which has a max of `500`
670
+
-`config.params.page.offset`**[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Number of resources to offset the dataset by (Offset-based)
671
+
-`config.params.page.number`**[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**Page of resources to return in request (Page-based) - **Note:** Not supported on Kitsu.io
672
+
-`config.params.page.size`**[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**Number of resources to return in request (Page-based and cursor-based) - **Note:** Not supported on Kitsu.io
673
+
-`config.params.page.before`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?**Get the previous page of resources (Cursor-based) - **Note:** Not Supported on Kitsu.io
674
+
-`config.params.page.after`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?**Get the next page of resources (Cursor-based) - **Note:** Not Supported on Kitsu.io
671
675
-`config.type`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The resource type
672
676
-`config.url`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The URL path of the resource
673
677
-`headers`**[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** Additional headers to send with the request (optional, default `{}`)
0 commit comments