New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kitsu-core

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kitsu-core - npm Package Compare versions

Comparing version 7.2.1 to 7.2.2

LICENSE.md

17

CHANGELOG.md

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

## [7.2.2](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v7.2.1...v7.2.2) (2019-11-25)
### Bug Fixes
* switch babel-minify to terser ([d687532](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/d687532))
### Chores
* **ci:** restore size-limit for bundle outputs ([56b9e01](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/56b9e01))
* **release:** update documentation ([29e9743](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/29e9743))
## [7.2.1](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v7.2.0...v7.2.1) (2019-11-25)

@@ -8,0 +25,0 @@

168

lib/index.js

@@ -1,167 +0,1 @@

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
async function deattribute(data) {
return 'object' === typeof data && null !== data && (Array.isArray(data) ? await data.map(async el => deattribute(el)) : data.attributes && data.attributes.constructor === Object && (Object.keys(data.attributes).forEach(key => {
data[key] = data.attributes[key];
}), delete data.attributes)), data;
}
function error(E) {
if (E.response) {
const e = E.response.data;
e && e.errors && (E.errors = e.errors);
}
throw E;
}
async function filterIncludes(included, _ref) {
let {
id,
type
} = _ref;
try {
const filtered = included.filter(el => el.id === id && el.type === type)[0] || {
id,
type
};
return Object.assign({}, filtered);
} catch (E) {
error(E);
}
}
async function link(_ref, included) {
let {
id,
type,
meta
} = _ref;
const filtered = await filterIncludes(included, {
id,
type
});
return filtered.relationships && (await linkRelationships(filtered, included)), meta && (filtered.meta = meta), deattribute(filtered);
}
async function linkArray(data, included, key) {
data[key] = [];
for (let resource of await data.relationships[key].data) data[key].push((await link(resource, included)));
}
async function linkObject(data, included, key) {
data[key] = await link(data.relationships[key].data, included), delete data[key].relationships;
}
async function linkRelationships(data, included) {
const {
relationships
} = data;
let removeRelationships = !1;
for (let key in await relationships) relationships[key].data && Array.isArray(relationships[key].data) ? (await linkArray(data, included, key), removeRelationships = !0) : relationships[key].data && (await linkObject(data, included, key), removeRelationships = !0);
return removeRelationships && delete data.relationships, data;
}
async function deserialiseArray(obj) {
for (let value of await obj.data) obj.included && (value = await linkRelationships(value, obj.included)), value.attributes && (value = await deattribute(value)), obj.data[obj.data.indexOf(value)] = value;
return obj;
}
async function deserialise(obj) {
return obj.data && obj.data.constructor === Array ? obj = await deserialiseArray(obj) : obj.included && (obj.data = await linkRelationships(obj.data, obj.included)), delete obj.included, obj.data && obj.data.attributes && (obj.data = await deattribute(obj.data)), obj;
}
function queryFormat(value, key) {
return null !== value && 'object' === typeof value ? query(value, key) : encodeURIComponent(key) + '=' + encodeURIComponent(value);
}
function query(params) {
let prefix = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : null;
const str = [];
for (const param in params) params.hasOwnProperty(param) && str.push(queryFormat(params[param], prefix ? "".concat(prefix, "[").concat(param, "]") : param));
return str.join('&');
}
const requiresID = (method, key) => "".concat(method, " requires an ID for the ").concat(key, " relationships");
async function isValid(obj, method, type) {
if (obj.constructor !== Object || 0 === Object.keys(obj).length) throw new Error("".concat(method, " requires a JSON object body"));
if ('POST' !== method && !obj.id) throw new Error("".concat(method, " requires an ID for the ").concat(type, " type"));
}
async function serialiseObject(node, nodeType, key, data, method) {
if ('string' !== typeof node.id) throw new Error(requiresID(method, key));
return data.relationships || (data.relationships = {}), node.type || (node.type = nodeType), data.relationships[key] = {
data: Object.assign(node)
}, data;
}
async function serialiseArray(node, nodeType, key, data, method) {
return data.relationships || (data.relationships = {}), data.relationships[key] = {
data: node.map((_ref) => {
let {
id,
type
} = _ref;
if (!id) throw new Error(requiresID(method, key));
return {
id,
type: type || nodeType
};
})
}, data;
}
async function serialiseAttr(node, key, data) {
return data.attributes || (data.attributes = {}), data.attributes[key] = node, data;
}
async function serialise(model) {
let obj = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {},
method = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : 'POST';
try {
const type = this.plural(this.camel(model));
let data = {
type
};
for (let key in await isValid(obj, method, type), 'POST' !== method && (data.id = obj.id + ""), obj) {
const node = obj[key],
nodeType = this.plural(this.camel(key));
null !== node && node.constructor === Object ? data = await serialiseObject(node, nodeType, key, data, method) : null !== node && Array.isArray(node) ? data = await serialiseArray(node, nodeType, key, data, method) : 'id' !== key && 'type' !== key && (data = await serialiseAttr(node, key, data));
}
return {
data
};
} catch (E) {
throw error(E);
}
}
var index = (s => s.replace(/[-_][a-z\u00E0-\u00F6\u00F8-\u00FE]/g, match => match.slice(1).toUpperCase()));
var index$1 = (s => s.charAt(0).toLowerCase() + s.slice(1).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g, match => '-' + match.toLowerCase()));
var index$2 = (s => s.charAt(0).toLowerCase() + s.slice(1).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g, match => '_' + match.toLowerCase()));
exports.camel = index;
exports.deattribute = deattribute;
exports.deserialise = deserialise;
exports.error = error;
exports.filterIncludes = filterIncludes;
exports.kebab = index$1;
exports.linkRelationships = linkRelationships;
exports.query = query;
exports.serialise = serialise;
exports.snake = index$2;
"use strict";async function deattribute(t){return"object"==typeof t&&null!==t&&(Array.isArray(t)?await t.map(async t=>deattribute(t)):t.attributes&&t.attributes.constructor===Object&&(Object.keys(t.attributes).forEach(e=>{t[e]=t.attributes[e]}),delete t.attributes)),t}function error(t){if(t.response){const e=t.response.data;e&&e.errors&&(t.errors=e.errors)}throw t}async function filterIncludes(t,e){let{id:r,type:a}=e;try{const e=t.filter(t=>t.id===r&&t.type===a)[0]||{id:r,type:a};return Object.assign({},e)}catch(t){error(t)}}async function link(t,e){let{id:r,type:a,meta:i}=t;const s=await filterIncludes(e,{id:r,type:a});return s.relationships&&await linkRelationships(s,e),i&&(s.meta=i),deattribute(s)}async function linkArray(t,e,r){t[r]=[];for(let a of await t.relationships[r].data)t[r].push(await link(a,e))}async function linkObject(t,e,r){t[r]=await link(t.relationships[r].data,e),delete t[r].relationships}async function linkRelationships(t,e){const{relationships:r}=t;let a=!1;for(let i in await r)r[i].data&&Array.isArray(r[i].data)?(await linkArray(t,e,i),a=!0):r[i].data&&(await linkObject(t,e,i),a=!0);return a&&delete t.relationships,t}async function deserialiseArray(t){for(let e of await t.data)t.included&&(e=await linkRelationships(e,t.included)),e.attributes&&(e=await deattribute(e)),t.data[t.data.indexOf(e)]=e;return t}async function deserialise(t){return t.data&&t.data.constructor===Array?t=await deserialiseArray(t):t.included&&(t.data=await linkRelationships(t.data,t.included)),delete t.included,t.data&&t.data.attributes&&(t.data=await deattribute(t.data)),t}function queryFormat(t,e){return null!==t&&"object"==typeof t?query(t,e):encodeURIComponent(e)+"="+encodeURIComponent(t)}function query(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const r=[];for(const a in t)t.hasOwnProperty(a)&&r.push(queryFormat(t[a],e?"".concat(e,"[").concat(a,"]"):a));return r.join("&")}Object.defineProperty(exports,"__esModule",{value:!0});const requiresID=(t,e)=>"".concat(t," requires an ID for the ").concat(e," relationships");async function isValid(t,e,r){if(t.constructor!==Object||0===Object.keys(t).length)throw new Error("".concat(e," requires a JSON object body"));if("POST"!==e&&!t.id)throw new Error("".concat(e," requires an ID for the ").concat(r," type"))}async function serialiseObject(t,e,r,a,i){if("string"!=typeof t.id)throw new Error(requiresID(i,r));return a.relationships||(a.relationships={}),t.type||(t.type=e),a.relationships[r]={data:Object.assign(t)},a}async function serialiseArray(t,e,r,a,i){return a.relationships||(a.relationships={}),a.relationships[r]={data:t.map(t=>{let{id:a,type:s}=t;if(!a)throw new Error(requiresID(i,r));return{id:a,type:s||e}})},a}async function serialiseAttr(t,e,r){return r.attributes||(r.attributes={}),r.attributes[e]=t,r}async function serialise(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"POST";try{const a=this.plural(this.camel(t));let i={type:a};await isValid(e,r,a),"POST"!==r&&(i.id=String(e.id));for(let t in e){const a=e[t],s=this.plural(this.camel(t));null!==a&&a.constructor===Object?i=await serialiseObject(a,s,t,i,r):null!==a&&Array.isArray(a)?i=await serialiseArray(a,s,t,i,r):"id"!==t&&"type"!==t&&(i=await serialiseAttr(a,t,i))}return{data:i}}catch(t){throw error(t)}}var index=t=>t.replace(/[-_][a-z\u00E0-\u00F6\u00F8-\u00FE]/g,t=>t.slice(1).toUpperCase()),index$1=t=>t.charAt(0).toLowerCase()+t.slice(1).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,t=>"-"+t.toLowerCase()),index$2=t=>t.charAt(0).toLowerCase()+t.slice(1).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,t=>"_"+t.toLowerCase());exports.camel=index,exports.deattribute=deattribute,exports.deserialise=deserialise,exports.error=error,exports.filterIncludes=filterIncludes,exports.kebab=index$1,exports.linkRelationships=linkRelationships,exports.query=query,exports.serialise=serialise,exports.snake=index$2;

@@ -1,159 +0,1 @@

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
async function deattribute(data) {
return 'object' === typeof data && null !== data && (Array.isArray(data) ? await data.map(async el => deattribute(el)) : data.attributes && data.attributes.constructor === Object && (Object.keys(data.attributes).forEach(key => {
data[key] = data.attributes[key];
}), delete data.attributes)), data;
}
function error(E) {
if (E.response) {
const e = E.response.data;
e && e.errors && (E.errors = e.errors);
}
throw E;
}
async function filterIncludes(included, {
id,
type
}) {
try {
const filtered = included.filter(el => el.id === id && el.type === type)[0] || {
id,
type
};
return Object.assign({}, filtered);
} catch (E) {
error(E);
}
}
async function link({
id,
type,
meta
}, included) {
const filtered = await filterIncludes(included, {
id,
type
});
return filtered.relationships && (await linkRelationships(filtered, included)), meta && (filtered.meta = meta), deattribute(filtered);
}
async function linkArray(data, included, key) {
data[key] = [];
for (let resource of await data.relationships[key].data) data[key].push((await link(resource, included)));
}
async function linkObject(data, included, key) {
data[key] = await link(data.relationships[key].data, included), delete data[key].relationships;
}
async function linkRelationships(data, included) {
const {
relationships
} = data;
let removeRelationships = !1;
for (let key in await relationships) relationships[key].data && Array.isArray(relationships[key].data) ? (await linkArray(data, included, key), removeRelationships = !0) : relationships[key].data && (await linkObject(data, included, key), removeRelationships = !0);
return removeRelationships && delete data.relationships, data;
}
async function deserialiseArray(obj) {
for (let value of await obj.data) obj.included && (value = await linkRelationships(value, obj.included)), value.attributes && (value = await deattribute(value)), obj.data[obj.data.indexOf(value)] = value;
return obj;
}
async function deserialise(obj) {
return obj.data && obj.data.constructor === Array ? obj = await deserialiseArray(obj) : obj.included && (obj.data = await linkRelationships(obj.data, obj.included)), delete obj.included, obj.data && obj.data.attributes && (obj.data = await deattribute(obj.data)), obj;
}
function queryFormat(value, key) {
return null !== value && 'object' === typeof value ? query(value, key) : encodeURIComponent(key) + '=' + encodeURIComponent(value);
}
function query(params, prefix = null) {
const str = [];
for (const param in params) params.hasOwnProperty(param) && str.push(queryFormat(params[param], prefix ? `${prefix}[${param}]` : param));
return str.join('&');
}
const requiresID = (method, key) => `${method} requires an ID for the ${key} relationships`;
async function isValid(obj, method, type) {
if (obj.constructor !== Object || 0 === Object.keys(obj).length) throw new Error(`${method} requires a JSON object body`);
if ('POST' !== method && !obj.id) throw new Error(`${method} requires an ID for the ${type} type`);
}
async function serialiseObject(node, nodeType, key, data, method) {
if ('string' !== typeof node.id) throw new Error(requiresID(method, key));
return data.relationships || (data.relationships = {}), node.type || (node.type = nodeType), data.relationships[key] = {
data: Object.assign(node)
}, data;
}
async function serialiseArray(node, nodeType, key, data, method) {
return data.relationships || (data.relationships = {}), data.relationships[key] = {
data: node.map(({
id,
type
}) => {
if (!id) throw new Error(requiresID(method, key));
return {
id,
type: type || nodeType
};
})
}, data;
}
async function serialiseAttr(node, key, data) {
return data.attributes || (data.attributes = {}), data.attributes[key] = node, data;
}
async function serialise(model, obj = {}, method = 'POST') {
try {
const type = this.plural(this.camel(model));
let data = {
type
};
for (let key in await isValid(obj, method, type), 'POST' !== method && (data.id = obj.id + ""), obj) {
const node = obj[key],
nodeType = this.plural(this.camel(key));
null !== node && node.constructor === Object ? data = await serialiseObject(node, nodeType, key, data, method) : null !== node && Array.isArray(node) ? data = await serialiseArray(node, nodeType, key, data, method) : 'id' !== key && 'type' !== key && (data = await serialiseAttr(node, key, data));
}
return {
data
};
} catch (E) {
throw error(E);
}
}
var index = (s => s.replace(/[-_][a-z\u00E0-\u00F6\u00F8-\u00FE]/g, match => match.slice(1).toUpperCase()));
var index$1 = (s => s.charAt(0).toLowerCase() + s.slice(1).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g, match => '-' + match.toLowerCase()));
var index$2 = (s => s.charAt(0).toLowerCase() + s.slice(1).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g, match => '_' + match.toLowerCase()));
exports.camel = index;
exports.deattribute = deattribute;
exports.deserialise = deserialise;
exports.error = error;
exports.filterIncludes = filterIncludes;
exports.kebab = index$1;
exports.linkRelationships = linkRelationships;
exports.query = query;
exports.serialise = serialise;
exports.snake = index$2;
"use strict";async function deattribute(t){return"object"==typeof t&&null!==t&&(Array.isArray(t)?await t.map(async t=>deattribute(t)):t.attributes&&t.attributes.constructor===Object&&(Object.keys(t.attributes).forEach(e=>{t[e]=t.attributes[e]}),delete t.attributes)),t}function error(t){if(t.response){const e=t.response.data;e&&e.errors&&(t.errors=e.errors)}throw t}async function filterIncludes(t,{id:e,type:r}){try{const i=t.filter(t=>t.id===e&&t.type===r)[0]||{id:e,type:r};return Object.assign({},i)}catch(t){error(t)}}async function link({id:t,type:e,meta:r},i){const a=await filterIncludes(i,{id:t,type:e});return a.relationships&&await linkRelationships(a,i),r&&(a.meta=r),deattribute(a)}async function linkArray(t,e,r){t[r]=[];for(let i of await t.relationships[r].data)t[r].push(await link(i,e))}async function linkObject(t,e,r){t[r]=await link(t.relationships[r].data,e),delete t[r].relationships}async function linkRelationships(t,e){const{relationships:r}=t;let i=!1;for(let a in await r)r[a].data&&Array.isArray(r[a].data)?(await linkArray(t,e,a),i=!0):r[a].data&&(await linkObject(t,e,a),i=!0);return i&&delete t.relationships,t}async function deserialiseArray(t){for(let e of await t.data)t.included&&(e=await linkRelationships(e,t.included)),e.attributes&&(e=await deattribute(e)),t.data[t.data.indexOf(e)]=e;return t}async function deserialise(t){return t.data&&t.data.constructor===Array?t=await deserialiseArray(t):t.included&&(t.data=await linkRelationships(t.data,t.included)),delete t.included,t.data&&t.data.attributes&&(t.data=await deattribute(t.data)),t}function queryFormat(t,e){return null!==t&&"object"==typeof t?query(t,e):encodeURIComponent(e)+"="+encodeURIComponent(t)}function query(t,e=null){const r=[];for(const i in t)t.hasOwnProperty(i)&&r.push(queryFormat(t[i],e?`${e}[${i}]`:i));return r.join("&")}Object.defineProperty(exports,"__esModule",{value:!0});const requiresID=(t,e)=>`${t} requires an ID for the ${e} relationships`;async function isValid(t,e,r){if(t.constructor!==Object||0===Object.keys(t).length)throw new Error(`${e} requires a JSON object body`);if("POST"!==e&&!t.id)throw new Error(`${e} requires an ID for the ${r} type`)}async function serialiseObject(t,e,r,i,a){if("string"!=typeof t.id)throw new Error(requiresID(a,r));return i.relationships||(i.relationships={}),t.type||(t.type=e),i.relationships[r]={data:Object.assign(t)},i}async function serialiseArray(t,e,r,i,a){return i.relationships||(i.relationships={}),i.relationships[r]={data:t.map(({id:t,type:i})=>{if(!t)throw new Error(requiresID(a,r));return{id:t,type:i||e}})},i}async function serialiseAttr(t,e,r){return r.attributes||(r.attributes={}),r.attributes[e]=t,r}async function serialise(t,e={},r="POST"){try{const i=this.plural(this.camel(t));let a={type:i};await isValid(e,r,i),"POST"!==r&&(a.id=String(e.id));for(let t in e){const i=e[t],s=this.plural(this.camel(t));null!==i&&i.constructor===Object?a=await serialiseObject(i,s,t,a,r):null!==i&&Array.isArray(i)?a=await serialiseArray(i,s,t,a,r):"id"!==t&&"type"!==t&&(a=await serialiseAttr(i,t,a))}return{data:a}}catch(t){throw error(t)}}var index=t=>t.replace(/[-_][a-z\u00E0-\u00F6\u00F8-\u00FE]/g,t=>t.slice(1).toUpperCase()),index$1=t=>t.charAt(0).toLowerCase()+t.slice(1).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,t=>"-"+t.toLowerCase()),index$2=t=>t.charAt(0).toLowerCase()+t.slice(1).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,t=>"_"+t.toLowerCase());exports.camel=index,exports.deattribute=deattribute,exports.deserialise=deserialise,exports.error=error,exports.filterIncludes=filterIncludes,exports.kebab=index$1,exports.linkRelationships=linkRelationships,exports.query=query,exports.serialise=serialise,exports.snake=index$2;
{
"version": "7.2.1",
"version": "7.2.2",
"name": "kitsu-core",

@@ -42,22 +42,21 @@ "description": "Core serialisation and deserialsation functions for the kitsu JSON:API client",

"path": "./lib/index.js",
"limit": "1.28 kb",
"running": false
"limit": "1.28 kb"
},
{
"path": "./lib/index.mjs",
"limit": "1.3 kb",
"running": false
"limit": "1.3 kb"
},
{
"path": "./node/index.js",
"limit": "1.22 kb",
"running": false
"limit": "1.22 kb"
},
{
"path": "./node/index.mjs",
"limit": "1.24 kb",
"running": false
"limit": "1.24 kb"
}
],
"gitHead": "5c9778d191d17d7c9790cfc6d0f4e983b4742a53"
"gitHead": "c3a4b3f3bb6bd678917092263b9b0e07b0f280a9",
"devDependencies": {
"@size-limit/preset-small-lib": "~2.2.1"
}
}

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

| -----------------: | :----------------: | :--: | :----: | :-----: | :----: | :--: |
| `kitsu-core` | ≤ 1.2 kb | 8+ | 61+ | 60+ | 11+ | 16+ |
| `kitsu-core` | ≤ 1.2 kb | 8+ | 63+ | 60+ | 11+ | 17+ |
| `kitsu-core/node`† | ≤ 1.1 kb | 8+ | | | | |

@@ -113,3 +113,3 @@

[packages/kitsu-core/src/deattribute/index.js:29-38](https://github.com/wopian/kitsu/blob/d6bf0d8e50c803d1f82163aba5e9f13d75122f24/packages/kitsu-core/src/deattribute/index.js#L29-L38 "Source code on GitHub")
[packages/kitsu-core/src/deattribute/index.js:29-38](https://github.com/wopian/kitsu/blob/56b9e016424a5335acdd3f4844dd8ed1fb446c99/packages/kitsu-core/src/deattribute/index.js#L29-L38 "Source code on GitHub")

@@ -158,3 +158,3 @@ Hoists attributes to be top-level

[packages/kitsu-core/src/deserialise/index.js:56-70](https://github.com/wopian/kitsu/blob/d6bf0d8e50c803d1f82163aba5e9f13d75122f24/packages/kitsu-core/src/deserialise/index.js#L56-L70 "Source code on GitHub")
[packages/kitsu-core/src/deserialise/index.js:56-70](https://github.com/wopian/kitsu/blob/56b9e016424a5335acdd3f4844dd8ed1fb446c99/packages/kitsu-core/src/deserialise/index.js#L56-L70 "Source code on GitHub")

@@ -211,3 +211,3 @@ Deserialises a JSON-API response

[packages/kitsu-core/src/error/index.js:7-13](https://github.com/wopian/kitsu/blob/d6bf0d8e50c803d1f82163aba5e9f13d75122f24/packages/kitsu-core/src/error/index.js#L7-L13 "Source code on GitHub")
[packages/kitsu-core/src/error/index.js:7-13](https://github.com/wopian/kitsu/blob/56b9e016424a5335acdd3f4844dd8ed1fb446c99/packages/kitsu-core/src/error/index.js#L7-L13 "Source code on GitHub")

@@ -225,3 +225,3 @@ Mutates an error and rethrows it

[packages/kitsu-core/src/filterIncludes/index.js:12-21](https://github.com/wopian/kitsu/blob/d6bf0d8e50c803d1f82163aba5e9f13d75122f24/packages/kitsu-core/src/filterIncludes/index.js#L12-L21 "Source code on GitHub")
[packages/kitsu-core/src/filterIncludes/index.js:12-21](https://github.com/wopian/kitsu/blob/56b9e016424a5335acdd3f4844dd8ed1fb446c99/packages/kitsu-core/src/filterIncludes/index.js#L12-L21 "Source code on GitHub")

@@ -241,3 +241,3 @@ Filters includes for the specific relationship

[packages/kitsu-core/src/linkRelationships/index.js:55-74](https://github.com/wopian/kitsu/blob/d6bf0d8e50c803d1f82163aba5e9f13d75122f24/packages/kitsu-core/src/linkRelationships/index.js#L55-L74 "Source code on GitHub")
[packages/kitsu-core/src/linkRelationships/index.js:55-74](https://github.com/wopian/kitsu/blob/56b9e016424a5335acdd3f4844dd8ed1fb446c99/packages/kitsu-core/src/linkRelationships/index.js#L55-L74 "Source code on GitHub")

@@ -253,3 +253,3 @@ Links relationships to included data

[packages/kitsu-core/src/query/index.js:21-32](https://github.com/wopian/kitsu/blob/d6bf0d8e50c803d1f82163aba5e9f13d75122f24/packages/kitsu-core/src/query/index.js#L21-L32 "Source code on GitHub")
[packages/kitsu-core/src/query/index.js:21-32](https://github.com/wopian/kitsu/blob/56b9e016424a5335acdd3f4844dd8ed1fb446c99/packages/kitsu-core/src/query/index.js#L21-L32 "Source code on GitHub")

@@ -267,3 +267,3 @@ Constructs a URL query string for JSON:API parameters

[packages/kitsu-core/src/serialise/index.js:96-121](https://github.com/wopian/kitsu/blob/d6bf0d8e50c803d1f82163aba5e9f13d75122f24/packages/kitsu-core/src/serialise/index.js#L96-L121 "Source code on GitHub")
[packages/kitsu-core/src/serialise/index.js:96-121](https://github.com/wopian/kitsu/blob/56b9e016424a5335acdd3f4844dd8ed1fb446c99/packages/kitsu-core/src/serialise/index.js#L96-L121 "Source code on GitHub")

@@ -294,3 +294,3 @@ Serialises an object into a JSON-API structure

[packages/kitsu-core/src/camel/index.js:14-14](https://github.com/wopian/kitsu/blob/d6bf0d8e50c803d1f82163aba5e9f13d75122f24/packages/kitsu-core/src/camel/index.js#L14-L14 "Source code on GitHub")
[packages/kitsu-core/src/camel/index.js:14-14](https://github.com/wopian/kitsu/blob/56b9e016424a5335acdd3f4844dd8ed1fb446c99/packages/kitsu-core/src/camel/index.js#L14-L14 "Source code on GitHub")

@@ -323,3 +323,3 @@ Converts kebab-case and snake_case into camelCase

[packages/kitsu-core/src/kebab/index.js:11-11](https://github.com/wopian/kitsu/blob/d6bf0d8e50c803d1f82163aba5e9f13d75122f24/packages/kitsu-core/src/kebab/index.js#L11-L11 "Source code on GitHub")
[packages/kitsu-core/src/kebab/index.js:11-11](https://github.com/wopian/kitsu/blob/56b9e016424a5335acdd3f4844dd8ed1fb446c99/packages/kitsu-core/src/kebab/index.js#L11-L11 "Source code on GitHub")

@@ -342,3 +342,3 @@ Converts camelCase into kebab-case

[packages/kitsu-core/src/snake/index.js:11-11](https://github.com/wopian/kitsu/blob/d6bf0d8e50c803d1f82163aba5e9f13d75122f24/packages/kitsu-core/src/snake/index.js#L11-L11 "Source code on GitHub")
[packages/kitsu-core/src/snake/index.js:11-11](https://github.com/wopian/kitsu/blob/56b9e016424a5335acdd3f4844dd8ed1fb446c99/packages/kitsu-core/src/snake/index.js#L11-L11 "Source code on GitHub")

@@ -345,0 +345,0 @@ Converts camelCase into snake_case

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