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 1.2.2 to 1.2.3

2

lib/router.js

@@ -91,3 +91,3 @@ var express = require('express');

// We don't want to assign the relationship to the object if it's an empty array
if (Array.isArray(rel[resourceName].data) && rel[resourceName].data.length === 0) {
if ((Array.isArray(rel[resourceName].data) === false && !rel[resourceName].data.id) || (Array.isArray(rel[resourceName].data) && rel[resourceName].data.length === 0)) {
return;

@@ -94,0 +94,0 @@ }

{
"name": "restful-goose",
"version": "1.2.2",
"version": "1.2.3",
"description": "Yet another RESTful microservice generator for Mongoose with an emphasis on flexibility",

@@ -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