couch-init2
Advanced tools
Comparing version 6.0.2 to 6.0.3
@@ -15,3 +15,4 @@ import path from 'node:path' | ||
const res = await fetch(dbBaseUrl, { timeout: 5000 }) | ||
if (res.status !== 200) throw new Error(`${res.status}: ${res.statusText}`) | ||
if (res.status === 401) throw new Error('CouchDB name or password is incorrect') | ||
if (res.status !== 200) throw new Error(`Connexion to CouchDB failed: ${res.status}: ${res.statusText}`) | ||
} catch (err) { | ||
@@ -18,0 +19,0 @@ if (err.name === 'TimeoutError' || err.code === 'ECONNREFUSED' || err.code === 'ECONNRESET') { |
{ | ||
"name": "couch-init2", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Opiniated CouchDB databases initializer", |
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
17443
348