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

yayson

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yayson - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

7

lib/yayson/adapter.js

@@ -14,3 +14,8 @@ var Adapter;

Adapter.id = function(model) {
return "" + (this.get(model, 'id'));
var id;
id = this.get(model, 'id');
if (id === void 0) {
return id;
}
return "" + id;
};

@@ -17,0 +22,0 @@

@@ -156,2 +156,5 @@ module.exports = function(utils, adapter) {

};
if (model.id === void 0) {
delete model.id;
}
relationships = this.buildRelationships(instance);

@@ -158,0 +161,0 @@ if (relationships != null) {

2

package.json
{
"name": "yayson",
"version": "2.0.2",
"version": "2.0.3",
"description": "A library for serializing and reading JSON API standardized data in JavaScript.",

@@ -5,0 +5,0 @@ "main": "lib/yayson.js",

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