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

mongo-dot-notation

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongo-dot-notation - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

index.js

@@ -62,3 +62,3 @@ 'use strict'

function operatorName(operator) {
return operator.constructor.name
return operator.constructor && operator.constructor.name
}
{
"name": "mongo-dot-notation",
"version": "1.0.7",
"version": "1.0.8",
"description": "Convert simple objects to mongo update operators",

@@ -5,0 +5,0 @@ "author": {

@@ -8,3 +8,3 @@ 'use strict'

var ObjectID = require('mongodb').ObjectID
describe('#primitive types scenarios', function () {

@@ -66,2 +66,9 @@ it('when is an empty object returns empty', function () {

})
it('when constructor is undefined sets object', function () {
var obj = { value: 'test' }
obj.constructor = undefined;
expect(dot.flatten(obj)).to.have.property('$set')
.that.deep.equals(obj)
})
})

@@ -68,0 +75,0 @@

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