Comparing version 1.0.1 to 1.0.2
@@ -41,3 +41,2 @@ const ComfyDB = require( "./index" ); | ||
ComfyDB.Close(); | ||
// process.kill( process.pid, "SIGTERM" ); | ||
} | ||
@@ -44,0 +43,0 @@ } |
@@ -76,2 +76,3 @@ const MongoClient = require('mongodb').MongoClient; | ||
console.log( "Exit:", code ); | ||
comfyDB.Close(); | ||
}); | ||
@@ -84,3 +85,3 @@ } | ||
}, | ||
Close: function() { | ||
Close: function( shouldExit = true ) { | ||
if( comfyDB._client ) { | ||
@@ -94,2 +95,5 @@ comfyDB._client.close(); | ||
} | ||
if( shouldExit ) { | ||
process.exit(); | ||
} | ||
}, | ||
@@ -96,0 +100,0 @@ Backup: function() { |
{ | ||
"name": "comfydb", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Comfiest Way To Use A Database!", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
18064
6
367
1