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

process-custodian

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

process-custodian - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

11

dist/lib/ProcessCustodian.js

@@ -131,3 +131,3 @@ 'use strict';

result = _context3.sent;
return _context3.abrupt('return', result.upsertedCount || result.modifiedCount);
return _context3.abrupt('return', result.modifiedCount);

@@ -169,3 +169,6 @@ case 9:

}, {
$setOnInsert: { _id: _constants.MASTER_KEY }
$setOnInsert: {
_id: _constants.MASTER_KEY,
lastActivity: new Date()
}
}, {

@@ -194,3 +197,3 @@ upsert: true

_id: _constants.MASTER_KEY,
lastActivity: { $lte: deathDate }
lastActivity: { $lt: deathDate }
}, {

@@ -205,3 +208,3 @@ $set: {

result = _context4.sent;
return _context4.abrupt('return', result.upsertedCount || result.modifiedCount);
return _context4.abrupt('return', result.modifiedCount);

@@ -208,0 +211,0 @@ case 14:

{
"name": "process-custodian",
"version": "0.2.0",
"version": "0.2.1",
"description": "This package helps with organizing of tasks between few instances of same app, It can identify processes and track them activity.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -106,3 +106,3 @@ import {MASTER_KEY, EVENTS} from './constants';

});
return result.upsertedCount || result.modifiedCount;
return result.modifiedCount;
} catch (err) {

@@ -121,3 +121,6 @@ console.error('ActivityQueue[renewingMasterReservation]:', err);

}, {
$setOnInsert: {_id: MASTER_KEY}
$setOnInsert: {
_id: MASTER_KEY,
lastActivity: new Date()
}
}, {

@@ -135,3 +138,3 @@ upsert: true

_id: MASTER_KEY,
lastActivity: {$lte: deathDate}
lastActivity: {$lt: deathDate}
}, {

@@ -143,3 +146,3 @@ $set: {

});
return result.upsertedCount || result.modifiedCount;
return result.modifiedCount;
} catch (err) {

@@ -146,0 +149,0 @@ console.error('ActivityQueue[tryBeMaster]:', err);

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