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

kitsu-core

Package Overview
Dependencies
Maintainers
1
Versions
122
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.0.3 to 7.0.4

21

CHANGELOG.md

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

## [7.0.4](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v7.0.3...v7.0.4) (2019-06-16)
### Bug Fixes
* **rollup:** remove dependencies lookup for kitsu-core ([e380524](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/e380524))
### Chores
* **release:** update documentation ([9000c94](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/9000c94))
### Continuous Integration
* **kitsu-core:** disable unneeded size-limit feature ([853d474](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/commit/853d474))
## [7.0.3](https://github.com/wopian/kitsu/tree/master/packages/kitsu-core/compare/v7.0.2...v7.0.3) (2019-05-12)

@@ -8,0 +29,0 @@

24

lib/index.js

@@ -21,4 +21,6 @@ 'use strict';

async function filterIncludes(included, _ref) {
let id = _ref.id,
type = _ref.type;
let {
id,
type
} = _ref;

@@ -37,5 +39,7 @@ try {

async function link(_ref, included) {
let id = _ref.id,
type = _ref.type,
meta = _ref.meta;
let {
id,
type,
meta
} = _ref;
const filtered = await filterIncludes(included, {

@@ -59,3 +63,5 @@ id,

async function linkRelationships(data, included) {
const relationships = data.relationships;
const {
relationships
} = data;
let removeRelationships = !1;

@@ -108,4 +114,6 @@

data: node.map((_ref) => {
let id = _ref.id,
type = _ref.type;
let {
id,
type
} = _ref;
if (!id) throw new Error(requiresID(method, key));

@@ -112,0 +120,0 @@ return {

{
"version": "7.0.3",
"version": "7.0.4",
"name": "kitsu-core",

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

"path": "./lib/index.js",
"limit": "1.28 kb"
"limit": "1.28 kb",
"running": false
},
{
"path": "./lib/index.mjs",
"limit": "1.3 kb"
"limit": "1.3 kb",
"running": false
},
{
"path": "./node/index.js",
"limit": "1.22 kb"
"limit": "1.22 kb",
"running": false
},
{
"path": "./node/index.mjs",
"limit": "1.24 kb"
"limit": "1.24 kb",
"running": false
}
],
"gitHead": "56aadd20b900afa978f6ad609226bb66d3af3a5a"
"gitHead": "ecac113a1f5df2605882b7cb2a4f969da3974b33"
}

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

[packages/kitsu-core/src/deattribute/index.js:29-38](https://github.com/wopian/kitsu/blob/679d6b6203c7e3718a03f373bdd67e2443155796/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/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu-core/src/deattribute/index.js#L29-L38 "Source code on GitHub")

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

[packages/kitsu-core/src/deserialise/index.js:56-70](https://github.com/wopian/kitsu/blob/679d6b6203c7e3718a03f373bdd67e2443155796/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/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu-core/src/deserialise/index.js#L56-L70 "Source code on GitHub")

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

[packages/kitsu-core/src/error/index.js:7-13](https://github.com/wopian/kitsu/blob/679d6b6203c7e3718a03f373bdd67e2443155796/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/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu-core/src/error/index.js#L7-L13 "Source code on GitHub")

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

[packages/kitsu-core/src/filterIncludes/index.js:12-21](https://github.com/wopian/kitsu/blob/679d6b6203c7e3718a03f373bdd67e2443155796/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/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu-core/src/filterIncludes/index.js#L12-L21 "Source code on GitHub")

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

[packages/kitsu-core/src/linkRelationships/index.js:55-74](https://github.com/wopian/kitsu/blob/679d6b6203c7e3718a03f373bdd67e2443155796/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/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu-core/src/linkRelationships/index.js#L55-L74 "Source code on GitHub")

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

[packages/kitsu-core/src/query/index.js:21-32](https://github.com/wopian/kitsu/blob/679d6b6203c7e3718a03f373bdd67e2443155796/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/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu-core/src/query/index.js#L21-L32 "Source code on GitHub")

@@ -266,3 +266,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/679d6b6203c7e3718a03f373bdd67e2443155796/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/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu-core/src/serialise/index.js#L96-L121 "Source code on GitHub")

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

[packages/kitsu-core/src/camel/index.js:14-14](https://github.com/wopian/kitsu/blob/679d6b6203c7e3718a03f373bdd67e2443155796/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/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu-core/src/camel/index.js#L14-L14 "Source code on GitHub")

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

[packages/kitsu-core/src/kebab/index.js:11-11](https://github.com/wopian/kitsu/blob/679d6b6203c7e3718a03f373bdd67e2443155796/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/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu-core/src/kebab/index.js#L11-L11 "Source code on GitHub")

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

[packages/kitsu-core/src/snake/index.js:11-11](https://github.com/wopian/kitsu/blob/679d6b6203c7e3718a03f373bdd67e2443155796/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/853d47496c249abd9eae34ff8829559ffa4519b7/packages/kitsu-core/src/snake/index.js#L11-L11 "Source code on GitHub")

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

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