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 10.0.0-alpha.24 to 10.0.0-alpha.25

8

CHANGELOG.md

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

# [10.0.0-alpha.25](https://github.com/wopian/kitsu/compare/v10.0.0-alpha.24...v10.0.0-alpha.25) (2022-07-13)
**Note:** Version bump only for package kitsu-core
# [10.0.0-alpha.24](https://github.com/wopian/kitsu/compare/v10.0.0-alpha.23...v10.0.0-alpha.24) (2022-06-23)

@@ -8,0 +16,0 @@

4

dist/deserialise.js

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

function deserialiseArray(array) {
const previouslyLinked = {};
for (let value of array.data) {
value = linkRelationships.linkRelationships(value, [...array.data, ...(array.included || [])]);
value = linkRelationships.linkRelationships(value, [...array.data, ...(array.included || [])], previouslyLinked);
if (value.attributes) value = deattribute.deattribute(value);

@@ -15,0 +17,0 @@ array.data[array.data.indexOf(value)] = value;

@@ -88,3 +88,7 @@ (function (global, factory) {

const cache = previouslyLinked[`${resource.type}#${resource.id}`];
data[key].data.push(cache || link(resource, included, previouslyLinked));
let relationship = cache || link(resource, included, previouslyLinked);
if (resource.meta !== relationship.meta) relationship = { ...relationship,
meta: resource.meta
};
data[key].data.push(relationship);
}

@@ -137,4 +141,6 @@

function deserialiseArray(array) {
const previouslyLinked = {};
for (let value of array.data) {
value = linkRelationships(value, [...array.data, ...(array.included || [])]);
value = linkRelationships(value, [...array.data, ...(array.included || [])], previouslyLinked);
if (value.attributes) value = deattribute(value);

@@ -141,0 +147,0 @@ array.data[array.data.indexOf(value)] = value;

@@ -36,3 +36,7 @@ 'use strict';

const cache = previouslyLinked[`${resource.type}#${resource.id}`];
data[key].data.push(cache || link(resource, included, previouslyLinked));
let relationship = cache || link(resource, included, previouslyLinked);
if (resource.meta !== relationship.meta) relationship = { ...relationship,
meta: resource.meta
};
data[key].data.push(relationship);
}

@@ -39,0 +43,0 @@

{
"version": "10.0.0-alpha.24",
"version": "10.0.0-alpha.25",
"name": "kitsu-core",

@@ -4,0 +4,0 @@ "description": "Simple, lightweight & framework agnostic JSON:API (de)serialsation components",

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

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

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

[packages/kitsu-core/src/deattribute/index.js:29-51](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/deattribute/index.js#L29-L51 "Source code on GitHub")
[packages/kitsu-core/src/deattribute/index.js:29-51](https://github.com/wopian/kitsu/blob/b47ec069143eb03bb03c3e704cbbb4430421d371/packages/kitsu-core/src/deattribute/index.js#L29-L51 "Source code on GitHub")

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

[packages/kitsu-core/src/deserialise/index.js:56-71](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/deserialise/index.js#L56-L71 "Source code on GitHub")
[packages/kitsu-core/src/deserialise/index.js:57-72](https://github.com/wopian/kitsu/blob/b47ec069143eb03bb03c3e704cbbb4430421d371/packages/kitsu-core/src/deserialise/index.js#L57-L72 "Source code on GitHub")

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

[packages/kitsu-core/src/error/index.js:27-33](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/error/index.js#L27-L33 "Source code on GitHub")
[packages/kitsu-core/src/error/index.js:27-33](https://github.com/wopian/kitsu/blob/b47ec069143eb03bb03c3e704cbbb4430421d371/packages/kitsu-core/src/error/index.js#L27-L33 "Source code on GitHub")

@@ -297,3 +297,3 @@ Uniform error handling for Axios, JSON:API and internal package errors. Mutated Error object is rethrown to the caller.

[packages/kitsu-core/src/filterIncludes/index.js:33-46](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/filterIncludes/index.js#L33-L46 "Source code on GitHub")
[packages/kitsu-core/src/filterIncludes/index.js:33-46](https://github.com/wopian/kitsu/blob/b47ec069143eb03bb03c3e704cbbb4430421d371/packages/kitsu-core/src/filterIncludes/index.js#L33-L46 "Source code on GitHub")

@@ -338,3 +338,3 @@ Filters includes for the specific relationship requested

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

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

[packages/kitsu-core/src/linkRelationships/index.js:108-128](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/linkRelationships/index.js#L108-L128 "Source code on GitHub")
[packages/kitsu-core/src/linkRelationships/index.js:114-134](https://github.com/wopian/kitsu/blob/b47ec069143eb03bb03c3e704cbbb4430421d371/packages/kitsu-core/src/linkRelationships/index.js#L114-L134 "Source code on GitHub")

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

[packages/kitsu-core/src/query/index.js:33-42](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/query/index.js#L33-L42 "Source code on GitHub")
[packages/kitsu-core/src/query/index.js:33-42](https://github.com/wopian/kitsu/blob/b47ec069143eb03bb03c3e704cbbb4430421d371/packages/kitsu-core/src/query/index.js#L33-L42 "Source code on GitHub")

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

[packages/kitsu-core/src/serialise/index.js:213-224](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/serialise/index.js#L213-L224 "Source code on GitHub")
[packages/kitsu-core/src/serialise/index.js:213-224](https://github.com/wopian/kitsu/blob/b47ec069143eb03bb03c3e704cbbb4430421d371/packages/kitsu-core/src/serialise/index.js#L213-L224 "Source code on GitHub")

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

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

@@ -491,3 +491,3 @@ Converts camelCase into snake_case

[packages/kitsu-core/src/splitModel/index.js:29-39](https://github.com/wopian/kitsu/blob/42b871ebdd37600432613cefef247503413d890b/packages/kitsu-core/src/splitModel/index.js#L29-L39 "Source code on GitHub")
[packages/kitsu-core/src/splitModel/index.js:29-39](https://github.com/wopian/kitsu/blob/b47ec069143eb03bb03c3e704cbbb4430421d371/packages/kitsu-core/src/splitModel/index.js#L29-L39 "Source code on GitHub")

@@ -494,0 +494,0 @@ Split model name from the model's resource URL

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