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.1.14 to 1.2.0

3

lib/builders/ModelsSerializer.js

@@ -35,3 +35,2 @@ "use strict";

var body = {};
var included = [];
var uniqueIncluded = {};

@@ -56,3 +55,3 @@ if (stuff && Array.isArray(stuff)) {

body['included'] = [];
var includeUniqueKeys = Object.keys(uniqueIncluded).sort();
var includeUniqueKeys = Object.keys(uniqueIncluded);
includeUniqueKeys.forEach(function (k) {

@@ -59,0 +58,0 @@ body['included'].push(uniqueIncluded[k]);

{
"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.1.14",
"version": "1.2.0",
"keywords": [

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

@@ -53,3 +53,2 @@ import {

const body: TJsonApiBody = {};
const included: Array<TJsonApiData> = [];
const uniqueIncluded: TJsonaUniqueIncluded = {};

@@ -89,3 +88,3 @@

body['included'] = [];
const includeUniqueKeys = Object.keys(uniqueIncluded).sort();
const includeUniqueKeys = Object.keys(uniqueIncluded);
includeUniqueKeys.forEach((k) => {

@@ -92,0 +91,0 @@ body['included'].push(uniqueIncluded[k]);

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