Comparing version 1.0.5 to 1.0.6
@@ -27,3 +27,3 @@ // json module | ||
if(callback) callback(data); | ||
if(callback) callback(JSON.parse(data)); | ||
@@ -30,0 +30,0 @@ |
{ | ||
"name": "ldbjs", | ||
"version": "1.0.5", | ||
"author": { | ||
"name": "raisess-Danilo_Santana" | ||
}, | ||
"dependencies": { | ||
"base-64": "^0.1.0", | ||
"utf8": "^3.0.0" | ||
}, | ||
"description": "Create and manage local db files and data", | ||
"main": "./index.js", | ||
"homepage": "https://github.com/Raisess/ldbjs", | ||
"keywords": [ | ||
@@ -20,10 +25,7 @@ "backend", | ||
], | ||
"author": "raisess-Danilo_Santana", | ||
"homepage": "https://github.com/Raisess/ldbjs", | ||
"license": "MIT", | ||
"main": "./index.js", | ||
"name": "ldbjs", | ||
"preferGlobal": "true", | ||
"dependencies": { | ||
"base-64": "^0.1.0", | ||
"utf8": "^3.0.0" | ||
}, | ||
"license": "MIT" | ||
} | ||
"version": "1.0.6" | ||
} |
@@ -182,6 +182,4 @@ # ldbjs | ||
ldb.json.getData('.', 'myJSONDBName', 'myJSONFileName', (data)=>{ | ||
document.getElementById('demo').innerHTML = JSON.parse(data); | ||
document.getElementById('demo').innerHTML = data; | ||
}); | ||
// or to auto parse | ||
document.getElementById('demo').innerHTML = ldb.json.getData('.', 'myJSONDBName', 'myJSONFileName'); | ||
``` | ||
@@ -188,0 +186,0 @@ |
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
10076
204