couch-init2
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -91,4 +91,4 @@ const { readFile, writeFile } = require('fs').promises | ||
const getJsonDesignDoc = async (designDocFolder, designDocName) => { | ||
const designDocPath = `${designDocFolder}/${designDocName}.json` | ||
try { | ||
const designDocPath = `${designDocFolder}/${designDocName}.json` | ||
return await readFile(designDocPath, { encoding: 'utf-8' }) | ||
@@ -118,2 +118,3 @@ } catch (err) { | ||
const currentDesignDocStr = JSON.stringify(currentDesignDoc) | ||
if (typeof designDocFile !== 'string') designDocFile = JSON.stringify(designDocFile) | ||
@@ -120,0 +121,0 @@ // Comparison is made without spaces to avoid false negative |
{ | ||
"name": "couch-init2", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Opiniated CouchDB databases initializer", | ||
@@ -5,0 +5,0 @@ "main": "index.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
15038
305