Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

p-odm

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p-odm - npm Package Compare versions

Comparing version 3.0.6 to 3.0.7

19

lib/protos/freemodel.js

@@ -31,2 +31,16 @@ 'use strict';

/**
* Gets one option from the object and returns it.
* @private
*/
function getOption(name, options, defaultValue) {
var option = defaultValue;
if (options) {
if (options.hasOwnProperty(name)) {
option = options[name];
}
}
return option;
}
/**
* Creates a new Document Model class

@@ -209,2 +223,3 @@ *

var pluck = extractOption('pluck', options);
var wantCursor = getOption('cursor', options);

@@ -222,2 +237,6 @@ if (pluck !== undefined) {

if (wantCursor) {
return callback(null, documentsLoaded);
}
var i, len;

@@ -224,0 +243,0 @@ if (hasFields) {

@@ -33,2 +33,16 @@ 'use strict';

/**
* Gets one option from the object and returns it.
* @private
*/
function getOption(name, options, defaultValue) {
var option = defaultValue;
if (options) {
if (options.hasOwnProperty(name)) {
option = options[name];
}
}
return option;
}
/**
* Creates a new Document Model class

@@ -292,2 +306,3 @@ *

var pluck = extractOption('pluck', options);
var wantCursor = getOption('cursor', options);

@@ -305,2 +320,6 @@ if (pluck !== undefined) {

if (wantCursor) {
return callback(null, documentsLoaded);
}
var i, len;

@@ -307,0 +326,0 @@ if (hasFields) {

2

package.json

@@ -8,3 +8,3 @@ {

],
"version": "3.0.6",
"version": "3.0.7",
"engines": {

@@ -11,0 +11,0 @@ "node": ">=0.4.12"

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