New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1.16 to 3.1.17

27

lib/index.js

@@ -284,28 +284,3 @@ 'use strict';

return collection.findAndModify(query, sort, document, options, function (err, cursor) {
if (err) {
return callback(err);
}
if (wantCursor) {
if (cursor.state !== Cursor.CLOSED) {
return callback(null, cursor);
}
return callback('Cursor is closed');
}
return cursor.toArray(function (err, array) {
if (err) {
return callback(err);
}
// clean resources
if (!cursor.isClosed()) {
cursor.close();
}
return callback(null, array);
});
});
return collection.findAndModify(query, sort, document, options, callback);
});

@@ -312,0 +287,0 @@ },

2

package.json

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

],
"version": "3.1.16",
"version": "3.1.17",
"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