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

castor-load

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

castor-load - npm Package Compare versions

Comparing version 4.4.2 to 4.4.3

25

lib/sync.js

@@ -147,3 +147,3 @@ /*jshint node:true,laxcomma:true*/

collection.update(selector, { $set: { state: 'deleted' } }, { multi: true }, function (err) {
collection.updateMany(selector, { $set: { state: 'deleted' } }, function (err) {
if (err) { return next(err); }

@@ -182,3 +182,3 @@ if (doc) { debug('delete', doc.filename); }

collection.update(selector, { $set: { state: 'deleted', dateSynchronised : new Date() } }, { multi: true }, function (err, nbModified) {
collection.updateMany(selector, { $set: { state: 'deleted', dateSynchronised : new Date() } }, function (err, nbModified) {
if (err) { return next(err); }

@@ -198,3 +198,3 @@ debug('cleaned', nbModified);

collection.update(selector, { $set: { state: state } }, { multi: true }, function (err, nbModified) {
collection.updateMany(selector, { $set: { state: state } }, function (err, nbModified) {
if (err) { return next(err); }

@@ -216,3 +216,3 @@ debug(state, nbModified);

if (!doc.hasOwnProperty('number')) { doc.number = 1; }
collection.update(
collection.updateOne(
{ fid: doc.fid, number: doc.number }, doc,

@@ -269,6 +269,5 @@ { w: self.options.writeConcern, upsert: true },

return collection.update(
return collection.updateMany(
selector,
{ $set: { state: state, dateSynchronised: new Date() } },
{ multi: true },
next

@@ -301,8 +300,3 @@ );

collection.update(
selector,
{ $set: change },
{ multi: true },
next
);
collection.updateMany(selector, { $set: change }, next);
});

@@ -341,9 +335,8 @@ });

collection.update(
collection.updateMany(
{ fid: sameFile._id },
{ $set: file.doc },
{ multi: true },
function (err, nbModified) {
function (err, result) {
if (err) { return next(err); }
if (nbModified > 0) { return next(); }
if (result.result.nModified > 0) { return next(); }
self.mount(file, 'insert', next);

@@ -350,0 +343,0 @@ }

{
"name": "castor-load",
"version": "4.4.2",
"version": "4.4.3",
"author": "Nicolas Thouvenin <nthouvenin@gmail.com>",

@@ -27,19 +27,19 @@ "contributors": [

"dependencies": {
"async": "^0.9.0",
"bytes": "^1.0.0",
"chokidar": "^0.12.0",
"clone": "^0.2.0",
"async": "^1.5.2",
"bytes": "^2.2.0",
"chokidar": "^1.4.2",
"clone": "^1.0.2",
"debug": "^2.1.1",
"extend": "^2.0.0",
"findit": "~1.1.0",
"minimatch": "~0.2.14",
"mkdirp": "~0.3.5",
"mongodb": "^1.4.10",
"extend": "^3.0.0",
"findit": "~2.0.0",
"minimatch": "~3.0.0",
"mkdirp": "~0.5.1",
"mongodb": "^2.1.5",
"once": "~1.3.0",
"request": "^2.60.0",
"tingodb": "~0.2.1"
"tingodb": "~0.4.2"
},
"devDependencies": {
"mocha": ">=1.8.1",
"istanbul": "^0.2.14"
"istanbul": "^0.4.2"
},

@@ -46,0 +46,0 @@ "license": "MIT",

@@ -16,3 +16,3 @@ /* global describe, it, before */

// "connexionURI": "tingodb://localhost/.tingodb",
"connexionURI" : "mongodb://localhost:27017/test/",
"connexionURI" : "mongodb://localhost:27017/test",
"ignore" : [ "**/.*", "*~", "*.sw+(o|p)", "*.old", "*.bak", "**/node_modules"]

@@ -19,0 +19,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