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.4 to 2.0.41

2

lib/helpers.js

@@ -61,3 +61,3 @@ var _ = require('lodash');

}).mapValues(function(v) {
if (typeof v === 'object' && !Array.isArray(v)) {
if (typeof v === 'object' && v instanceof Date === false && _.isNull(v) === false && !Array.isArray(v)) {
return keysToCamel(v);

@@ -64,0 +64,0 @@ } else {

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

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -115,6 +115,7 @@ var helpers = require('../lib/helpers');

connection.model('SubTest').findOne({}, {}, {}, function(err, doc) {
doc.parent = null;
doc.set('parent', null);
var s = helpers.serialize(doc);
var d = helpers.deserialize(s);
expect(s.parent).to.be.undefined;
expect(d).to.be.a('object');

@@ -121,0 +122,0 @@ expect(d).not.have.property('parent');

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