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

jsona

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsona - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

6

lib/builders/ReduxObjectDenormalizer.js

@@ -123,5 +123,3 @@ "use strict";

var model = _this.buildModel(dataItem.type, dataItem.id);
if (model) {
relationModels_1.push(model);
}
relationModels_1.push(model || dataItem);
});

@@ -131,3 +129,3 @@ return relationModels_1;

else if (data.id && data.type) {
return this.buildModel(data.type, data.id);
return this.buildModel(data.type, data.id) || data;
}

@@ -134,0 +132,0 @@ return null;

{
"name": "jsona",
"description": "Provide data formatters (data model builder & json builder) to work with JSON API specification v1.0 in your JavaScript / TypeScript code",
"version": "1.2.0",
"version": "1.2.1",
"keywords": [

@@ -6,0 +6,0 @@ "json-api",

@@ -174,5 +174,3 @@ import {

const model = this.buildModel(dataItem.type, dataItem.id);
if (model) {
relationModels.push(model);
}
relationModels.push(model || dataItem);
});

@@ -182,3 +180,3 @@

} else if (data.id && data.type) {
return this.buildModel(data.type, data.id);
return this.buildModel(data.type, data.id) || data;
}

@@ -190,2 +188,2 @@

export default ReduxObjectDenormalizer;
export default ReduxObjectDenormalizer;

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