@cloudant/couchbackup 2.5.2-SNAPSHOT.32 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +3 -0
- package/app.js +2 -2
- package/package.json +4 -4
package/CHANGES.md
CHANGED
package/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright © 2017,
|
|
1
|
+
// Copyright © 2017, 2020 IBM Corp. All rights reserved.
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -160,7 +160,7 @@ function addEventListener(indicator, emitter, event, f) {
|
|
|
160
160
|
@param {function(err)} callback - error is undefined if DB exists
|
|
161
161
|
*/
|
|
162
162
|
function proceedIfDbValid(db, callback) {
|
|
163
|
-
db.
|
|
163
|
+
db.server.request({ db: db.config.db, method: 'HEAD' }, function(err) {
|
|
164
164
|
err = error.convertResponseError(err, function(err) {
|
|
165
165
|
if (err && err.statusCode === 404) {
|
|
166
166
|
// Override the error type and mesasge for the DB not found case
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudant/couchbackup",
|
|
3
|
-
"version": "2.5.2
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "CouchBackup - command-line backup utility for Cloudant/CouchDB",
|
|
5
5
|
"homepage": "https://github.com/cloudant/couchbackup",
|
|
6
6
|
"repository": "https://github.com/cloudant/couchbackup.git",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"eslint-plugin-standard": "^4.0.0",
|
|
44
44
|
"http-proxy": "^1.16.2",
|
|
45
45
|
"jsdoc": "^3.6.3",
|
|
46
|
-
"mocha": "^
|
|
47
|
-
"nock": "^
|
|
46
|
+
"mocha": "^7.0.1",
|
|
47
|
+
"nock": "^12.0.0",
|
|
48
48
|
"rewire": "^4.0.0",
|
|
49
49
|
"tail": "^2.0.0",
|
|
50
50
|
"toxy": "^0.3.16",
|
|
51
|
-
"uuid": "^
|
|
51
|
+
"uuid": "^7.0.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"test": "eslint --ignore-path .gitignore . && mocha --grep \"#unit\""
|