@cloudant/couchbackup
Advanced tools
Comparing version 2.3.2-SNAPSHOT.3 to 2.3.2-SNAPSHOT.4
@@ -98,3 +98,3 @@ // Copyright © 2017, 2018 IBM Corp. All rights reserved. | ||
try { | ||
const urlObject = legacyUrl.parse(url); | ||
const urlObject = new legacyUrl.URL(url); | ||
// We require a protocol, host and path (for db), fail if any is missing. | ||
@@ -109,3 +109,3 @@ if (urlObject.protocol !== 'https:' && urlObject.protocol !== 'http:') { | ||
} | ||
if (!urlObject.path) { | ||
if (!urlObject.pathname) { | ||
cb(new error.BackupError('InvalidOption', 'Invalid URL, missing path element (no database).')); | ||
@@ -112,0 +112,0 @@ return; |
@@ -5,3 +5,5 @@ # 2.4.0 | ||
as CLI option `--request-timeout`, or programmatically via | ||
`options.requestTimeout` | ||
`options.requestTimeout`. | ||
- [IMPROVED] Replaced usages of Node.js legacy URL API. Note this changes some | ||
URL validation error messages. | ||
@@ -8,0 +10,0 @@ # 2.3.1 (2018-06-15) |
@@ -40,3 +40,3 @@ // Copyright © 2017 IBM Corp. All rights reserved. | ||
} | ||
return url.resolve(root, encodeURIComponent(databaseName)); | ||
return new url.URL(encodeURIComponent(databaseName), root).toString(); | ||
}, | ||
@@ -43,0 +43,0 @@ |
{ | ||
"name": "@cloudant/couchbackup", | ||
"version": "2.3.2-SNAPSHOT.3", | ||
"version": "2.3.2-SNAPSHOT.4", | ||
"description": "CouchBackup - command-line backup utility for Cloudant/CouchDB", | ||
@@ -37,3 +37,3 @@ "homepage": "https://github.com/cloudant/couchbackup", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-node": "^7.0.1", | ||
"eslint-plugin-node": "^8.0.0", | ||
"eslint-plugin-promise": "^4.0.0", | ||
@@ -40,0 +40,0 @@ "eslint-plugin-standard": "^4.0.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
95806