jsonfile-obj-db
Advanced tools
Comparing version 1.0.6 to 1.0.7
10
main.js
@@ -7,6 +7,8 @@ const jsonfile = require( "jsonfile" ); | ||
open: function( wConfig ) { | ||
if ( !wConfig ) { | ||
var xP = process.argv[ 1 ].split( "/" ); | ||
xP.pop(); | ||
WC._DB_NAME = "_id_" + Math.random().toString( 36 ).substr( 2 , 7 ); | ||
WC._DB_PATH = process.argv[ 1 ].split( "/" ); xP.pop(); xP = xP.join("/") + "/" + WC._DB_NAME + ".json"; | ||
WC._DB_PATH | ||
WC._DB_PATH = xP.join("/") + "/" + WC._DB_NAME + ".json"; | ||
WC.save(); | ||
@@ -53,5 +55,7 @@ return; | ||
if ( i.length == 0 ) { | ||
if ( !o[ ii ] ) { o[ ii ] = {}; } | ||
o[ ii ] = wNV; | ||
} | ||
else { | ||
else { | ||
if ( !o[ ii ] ) { o[ ii ] = {}; } | ||
o[ ii ] = recReplace( o[ ii ] , i ); | ||
@@ -58,0 +62,0 @@ } |
{ | ||
"name": "jsonfile-obj-db", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2460
61