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.3.8-b to 1.3.8-c

5

lib/on-error.js

@@ -55,3 +55,3 @@ var crypto = require('crypto');

obj.title = 'Invalid Attribute';
obj.source = '/data/attributes/' + _.kebabCase(error.path).toLowerCase();
obj.source = { pointer: '/data/attributes/' + _.kebabCase(error.path).toLowerCase() };
} else if (error.name === 'MongoError' && error.code === 11000) {

@@ -63,3 +63,3 @@ var errorPath = extractPathFromErrorMessage(error.message);

obj.detail = 'That value ' + errorValue + ' is already in use. Please use another.';
obj.source = '/data/attributes/' + _.kebabCase(errorPath).toLowerCase();
obj.source = { pointer: '/data/attributes/' + _.kebabCase(errorPath).toLowerCase() };
} else {

@@ -69,3 +69,2 @@ obj.status = res.status;

obj.detail = error.name;
obj.source = error.detail;
}

@@ -72,0 +71,0 @@

2

package.json
{
"name": "restful-goose",
"version": "1.3.8b",
"version": "1.3.8c",
"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