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/README.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -236,7 +236,7 @@ All code released under [MIT]
236
236
237
237
### Kitsu
238
238
239
-
[packages/kitsu/src/index.js:31-567](https://github.com/wopian/kitsu/blob/a794fdd4c0266be8d8404455ebf2847e47e66a64/packages/kitsu/src/index.js#L31-L567"Source code on GitHub")
239
+
[packages/kitsu/src/index.js:39-575](https://github.com/wopian/kitsu/blob/9039f9be49ca8ba032ad6b7099316b6751e18198/packages/kitsu/src/index.js#L39-L575"Source code on GitHub")
240
240
241
241
Creates a new `kitsu` instance
242
242
@@ -252,6 +252,11 @@ Creates a new `kitsu` instance
252
252
*`options.pluralize`**[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** If enabled, `/user` will become `/users` in the URL request and `type` will be pluralized in POST, PATCH and DELETE requests (optional, default `true`)
253
253
*`options.timeout`**[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Set the request timeout in milliseconds (optional, default `30000`)
254
254
*`options.axiosOptions`**[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** Additional options for the axios instance (see [axios/axios#request-config](https://github.com/axios/axios#request-config) for details)
255
+
*`options.hoistData`**[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** If enabled, the contents of the `data` property will be hoisted to the parent. This provides a flatter response object, but removes access to `links` and `meta` properties. It will transform:```js
[packages/kitsu/src/index.js:58-59](https://github.com/wopian/kitsu/blob/a794fdd4c0266be8d8404455ebf2847e47e66a64/packages/kitsu/src/index.js#L58-L59"Source code on GitHub")
290
+
[packages/kitsu/src/index.js:66-67](https://github.com/wopian/kitsu/blob/9039f9be49ca8ba032ad6b7099316b6751e18198/packages/kitsu/src/index.js#L66-L67"Source code on GitHub")
286
291
287
292
***See**: <https://www.npmjs.com/package/pluralize> for documentation
288
293
***See**: [Kitsu](#kitsu) constructor options for disabling pluralization
[packages/kitsu/src/index.js:73-73](https://github.com/wopian/kitsu/blob/a794fdd4c0266be8d8404455ebf2847e47e66a64/packages/kitsu/src/index.js#L73-L73"Source code on GitHub")
309
+
[packages/kitsu/src/index.js:81-81](https://github.com/wopian/kitsu/blob/9039f9be49ca8ba032ad6b7099316b6751e18198/packages/kitsu/src/index.js#L81-L81"Source code on GitHub")
[packages/kitsu/src/index.js:120-120](https://github.com/wopian/kitsu/blob/a794fdd4c0266be8d8404455ebf2847e47e66a64/packages/kitsu/src/index.js#L120-L120"Source code on GitHub")
337
+
[packages/kitsu/src/index.js:128-128](https://github.com/wopian/kitsu/blob/9039f9be49ca8ba032ad6b7099316b6751e18198/packages/kitsu/src/index.js#L128-L128"Source code on GitHub")
333
338
334
339
***See**: <https://github.com/axios/axios#interceptors> for documentation
[packages/kitsu/src/index.js:218-253](https://github.com/wopian/kitsu/blob/a794fdd4c0266be8d8404455ebf2847e47e66a64/packages/kitsu/src/index.js#L218-L253"Source code on GitHub")
384
+
[packages/kitsu/src/index.js:226-261](https://github.com/wopian/kitsu/blob/9039f9be49ca8ba032ad6b7099316b6751e18198/packages/kitsu/src/index.js#L226-L261"Source code on GitHub")
[packages/kitsu/src/index.js:289-323](https://github.com/wopian/kitsu/blob/a794fdd4c0266be8d8404455ebf2847e47e66a64/packages/kitsu/src/index.js#L289-L323"Source code on GitHub")
521
+
[packages/kitsu/src/index.js:297-331](https://github.com/wopian/kitsu/blob/9039f9be49ca8ba032ad6b7099316b6751e18198/packages/kitsu/src/index.js#L297-L331"Source code on GitHub")
[packages/kitsu/src/index.js:358-390](https://github.com/wopian/kitsu/blob/a794fdd4c0266be8d8404455ebf2847e47e66a64/packages/kitsu/src/index.js#L358-L390"Source code on GitHub")
583
+
[packages/kitsu/src/index.js:366-398](https://github.com/wopian/kitsu/blob/9039f9be49ca8ba032ad6b7099316b6751e18198/packages/kitsu/src/index.js#L366-L398"Source code on GitHub")
[packages/kitsu/src/index.js:410-450](https://github.com/wopian/kitsu/blob/a794fdd4c0266be8d8404455ebf2847e47e66a64/packages/kitsu/src/index.js#L410-L450"Source code on GitHub")
632
+
[packages/kitsu/src/index.js:418-458](https://github.com/wopian/kitsu/blob/9039f9be49ca8ba032ad6b7099316b6751e18198/packages/kitsu/src/index.js#L418-L458"Source code on GitHub")
[packages/kitsu/src/index.js:474-483](https://github.com/wopian/kitsu/blob/a794fdd4c0266be8d8404455ebf2847e47e66a64/packages/kitsu/src/index.js#L474-L483"Source code on GitHub")
670
+
[packages/kitsu/src/index.js:482-491](https://github.com/wopian/kitsu/blob/9039f9be49ca8ba032ad6b7099316b6751e18198/packages/kitsu/src/index.js#L482-L491"Source code on GitHub")
[packages/kitsu/src/index.js:538-566](https://github.com/wopian/kitsu/blob/a794fdd4c0266be8d8404455ebf2847e47e66a64/packages/kitsu/src/index.js#L538-L566"Source code on GitHub")
708
+
[packages/kitsu/src/index.js:546-574](https://github.com/wopian/kitsu/blob/9039f9be49ca8ba032ad6b7099316b6751e18198/packages/kitsu/src/index.js#L546-L574"Source code on GitHub")
Copy file name to clipboardExpand all lines: packages/kitsu/src/index.js
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,14 @@ import pluralise from 'pluralize'
14
14
* @param {boolean} [options.pluralize=true] If enabled, `/user` will become `/users` in the URL request and `type` will be pluralized in POST, PATCH and DELETE requests
15
15
* @param {number} [options.timeout=30000] Set the request timeout in milliseconds
16
16
* @param {Object} [options.axiosOptions] Additional options for the axios instance (see [axios/axios#request-config](https://github.com/axios/axios#request-config) for details)
17
+
* @param {boolean} [options.hoistData=false] If enabled, the contents of the `data` property will be hoisted to the parent. This provides a flatter response object, but removes access to `links` and `meta` properties. It will transform:
0 commit comments