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

restful-goose

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restful-goose - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

4

lib/helpers.js

@@ -121,5 +121,5 @@ var _ = require('lodash');

var relationship = { links: { self: '/' + serialized.type + '/' + doc.id + '/relationships/' + toResourceType(rel.ref) }};
relationship.data = _.map(doc[rel.path], function(id) {
relationship.data = _.chain(doc[rel.path]).reject(_.isNil).map(function(id) {
return { type: toResourceType(rel.ref), id: id.toString() };
});
}).value();
_.set(serialized, 'relationships.' + rel.path, relationship);

@@ -126,0 +126,0 @@ } else if (doc[rel.path] && !Array.isArray(doc[rel.path])) {

{
"name": "restful-goose",
"version": "2.0.7",
"version": "2.0.8",
"description": "A new improved version of your favorite API framework for mongoose/MongoDB",

@@ -5,0 +5,0 @@ "main": "index.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