@iannisz/node-cms
Advanced tools
Comparing version 0.0.39 to 0.0.40
{ | ||
"name": "@iannisz/node-cms", | ||
"version": "0.0.39", | ||
"version": "0.0.40", | ||
"description": "Node CMS", | ||
@@ -23,5 +23,5 @@ "main": "index.js", | ||
"ncp": "^2.0.0", | ||
"node-json-database": "0.0.25", | ||
"node-json-database": "0.0.26", | ||
"queued-copy-dir": "^0.0.2" | ||
} | ||
} |
@@ -24,3 +24,5 @@ "use strict"; | ||
// Authenticated, execute query | ||
const database = node_json_database_1.db(__dirname + '/../' + dbName); | ||
const database = node_json_database_1.db(__dirname + '/../' + dbName, { | ||
safeAndFriendlyErrors: true | ||
}); | ||
if (!database.exists) { | ||
@@ -49,3 +51,5 @@ reject(new QueryError(400, `Database '${dbName}' was not found`)); | ||
// Authenticated, execute query | ||
const database = node_json_database_1.db(__dirname + '/../' + dbName); | ||
const database = node_json_database_1.db(__dirname + '/../' + dbName, { | ||
safeAndFriendlyErrors: true | ||
}); | ||
if (!database.exists) { | ||
@@ -52,0 +56,0 @@ reject(new QueryError(400, `Database '${dbName}' was not found`)); |
@@ -29,3 +29,5 @@ import { req, res, log } from 'apache-js-workers' | ||
const database = db(__dirname + '/../' + dbName) | ||
const database = db(__dirname + '/../' + dbName, { | ||
safeAndFriendlyErrors: true | ||
}) | ||
@@ -66,3 +68,5 @@ if (!database.exists) { | ||
const database = db(__dirname + '/../' + dbName) | ||
const database = db(__dirname + '/../' + dbName, { | ||
safeAndFriendlyErrors: true | ||
}) | ||
@@ -69,0 +73,0 @@ if (!database.exists) { |
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
381826
9280
+ Addednode-json-database@0.0.26(transitive)
- Removednode-json-database@0.0.25(transitive)
Updatednode-json-database@0.0.26