Socket
Socket
Sign inDemoInstall

mongoose

Package Overview
Dependencies
Maintainers
0
Versions
883
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose - npm Package Compare versions

Comparing version 1.1.13 to 1.1.14

5

History.md
1.1.14 / 2011-03-28
===================
* Changed; more forgiving date casting, accepting '' as null.
1.1.13 / 2011-03-26

@@ -3,0 +8,0 @@ ===================

2

lib/mongoose/index.js

@@ -284,3 +284,3 @@

exports.version = '1.1.13';
exports.version = '1.1.14';

@@ -287,0 +287,0 @@ /**

@@ -45,3 +45,5 @@

SchemaDate.prototype.cast = function (value) {
if (value === null) return value;
if (value === null || value === '')
return null;
if (value instanceof Date)

@@ -67,2 +69,8 @@ return value;

/**
* Date Query casting.
*
* @api private
*/
function handleSingle (val) {

@@ -88,2 +96,3 @@ return this.cast(val);

};
SchemaDate.prototype.castForQuery = function ($conditional, val) {

@@ -90,0 +99,0 @@ var handler;

{
"name": "mongoose"
, "description": "Mongoose MongoDB ORM"
, "version": "1.1.13"
, "version": "1.1.14"
, "author": "Guillermo Rauch <guillermo@learnboost.com>"

@@ -6,0 +6,0 @@ , "keywords": ["mongodb", "mongoose", "orm", "data", "datastore", "nosql"]

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