denim-monk-db-factory
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -37,3 +37,3 @@ 'use strict' | ||
if (err) { | ||
console.log(_chalk2.default.red(JSON.stringify(err, null, 3))) | ||
console.dir(_chalk2.default.red(err)) | ||
throw err | ||
@@ -47,3 +47,2 @@ } | ||
var dbOptions = { url: dbConfig.URL, sslValidate: false } | ||
console.log('[Monk URL]', dbConfig.URL) | ||
if (dbConfig.SSL) { | ||
@@ -53,2 +52,4 @@ dbOptions.sslCA = [_fs2.default.readFileSync(dbConfig.CERT)] | ||
} | ||
console.dir('[Monk URL]', dbOptions) | ||
return dbOptions | ||
@@ -55,0 +56,0 @@ } |
@@ -15,3 +15,3 @@ import monk from 'monk' | ||
if (err) { | ||
console.log(chalk.red(JSON.stringify(err, null, 3))) | ||
console.dir(chalk.red(err)) | ||
throw err | ||
@@ -25,3 +25,2 @@ } | ||
const dbOptions = { url: dbConfig.URL, sslValidate: false } | ||
console.log('[Monk URL]', dbConfig.URL) | ||
if (dbConfig.SSL) { | ||
@@ -31,2 +30,4 @@ dbOptions.sslCA = [fs.readFileSync(dbConfig.CERT)] | ||
} | ||
console.dir('[Monk URL]', dbOptions) | ||
return dbOptions | ||
@@ -33,0 +34,0 @@ } |
{ | ||
"name": "denim-monk-db-factory", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Helps to standardize our Monk DB configuration across projects", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
8890