@cloudant/couchbackup 2.9.17-SNAPSHOT.2 → 2.9.17

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/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@cloudant/couchbackup",
3
- "version": "2.9.17-SNAPSHOT.2",
3
+ "version": "2.9.17",
4
4
  "description": "CouchBackup - command-line backup utility for Cloudant/CouchDB",
5
5
  "homepage": "https://github.com/IBM/couchbackup",
6
- "repository": "https://github.com/IBM/couchbackup.git",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/IBM/couchbackup.git"
9
+ },
7
10
  "keywords": [
8
11
  "CouchDB",
9
12
  "Cloudant",
@@ -20,7 +23,7 @@
20
23
  "node": "^18 || ^20"
21
24
  },
22
25
  "dependencies": {
23
- "@ibm-cloud/cloudant": "0.8.2",
26
+ "@ibm-cloud/cloudant": "0.8.3",
24
27
  "async": "3.2.5",
25
28
  "commander": "12.0.0",
26
29
  "debug": "4.3.4",
@@ -56,5 +59,10 @@
56
59
  "lint": "eslint --ignore-path .gitignore .",
57
60
  "unit": "mocha --grep \"#unit\"",
58
61
  "test": "npm run lint && npm run unit"
59
- }
62
+ },
63
+ "files": [
64
+ "/app.js",
65
+ "/bin",
66
+ "/includes"
67
+ ]
60
68
  }
package/.npmrc-jenkins DELETED
@@ -1,4 +0,0 @@
1
- ; NB registry scopes are assumed to have scheme stripped and have a trailing slash
2
- ${NPMRC_REGISTRY}:username=${NPMRC_USER}
3
- ${NPMRC_REGISTRY}:email=${NPMRC_EMAIL}
4
- ${NPMRC_REGISTRY}:_authToken=${NPMRC_TOKEN}
File without changes
@@ -1,7 +0,0 @@
1
- projectKey=couchbackup
2
- serverUrl=https://sonar.cloudantnosqldb.test.cloud.ibm.com
3
- serverVersion=9.9.3.79811
4
- branch=i303-releases
5
- dashboardUrl=https://sonar.cloudantnosqldb.test.cloud.ibm.com/dashboard?id=couchbackup&branch=i303-releases
6
- ceTaskId=AY2eJyiCU20m2KTWhU-Y
7
- ceTaskUrl=https://sonar.cloudantnosqldb.test.cloud.ibm.com/api/ce/task?id=AY2eJyiCU20m2KTWhU-Y
package/.secrets.baseline DELETED
@@ -1,240 +0,0 @@
1
- {
2
- "exclude": {
3
- "files": "package-lock.json|test/fixtures|^.secrets.baseline$",
4
- "lines": null
5
- },
6
- "generated_at": "2024-01-25T12:14:13Z",
7
- "plugins_used": [
8
- {
9
- "name": "AWSKeyDetector"
10
- },
11
- {
12
- "name": "ArtifactoryDetector"
13
- },
14
- {
15
- "name": "AzureStorageKeyDetector"
16
- },
17
- {
18
- "base64_limit": 4.5,
19
- "name": "Base64HighEntropyString"
20
- },
21
- {
22
- "name": "BasicAuthDetector"
23
- },
24
- {
25
- "name": "BoxDetector"
26
- },
27
- {
28
- "name": "CloudantDetector"
29
- },
30
- {
31
- "ghe_instance": "github.ibm.com",
32
- "name": "GheDetector"
33
- },
34
- {
35
- "name": "GitHubTokenDetector"
36
- },
37
- {
38
- "hex_limit": 3,
39
- "name": "HexHighEntropyString"
40
- },
41
- {
42
- "name": "IbmCloudIamDetector"
43
- },
44
- {
45
- "name": "IbmCosHmacDetector"
46
- },
47
- {
48
- "name": "JwtTokenDetector"
49
- },
50
- {
51
- "keyword_exclude": null,
52
- "name": "KeywordDetector"
53
- },
54
- {
55
- "name": "MailchimpDetector"
56
- },
57
- {
58
- "name": "NpmDetector"
59
- },
60
- {
61
- "name": "PrivateKeyDetector"
62
- },
63
- {
64
- "name": "SlackDetector"
65
- },
66
- {
67
- "name": "SoftlayerDetector"
68
- },
69
- {
70
- "name": "SquareOAuthDetector"
71
- },
72
- {
73
- "name": "StripeDetector"
74
- },
75
- {
76
- "name": "TwilioKeyDetector"
77
- }
78
- ],
79
- "results": {
80
- "README.md": [
81
- {
82
- "hashed_secret": "91dfd9ddb4198affc5c194cd8ce6d338fde470e2",
83
- "is_secret": false,
84
- "is_verified": false,
85
- "line_number": 57,
86
- "type": "Basic Auth Credentials",
87
- "verified_result": null
88
- },
89
- {
90
- "hashed_secret": "644384d5a639cb5cacbf39f25dd4c7f77fc1b24d",
91
- "is_secret": false,
92
- "is_verified": false,
93
- "line_number": 69,
94
- "type": "Basic Auth Credentials",
95
- "verified_result": null
96
- }
97
- ],
98
- "examples/README.md": [
99
- {
100
- "hashed_secret": "43bce7a87dd0e4b8c09b44173613bc95ba77d714",
101
- "is_secret": false,
102
- "is_verified": false,
103
- "line_number": 41,
104
- "type": "Secret Keyword",
105
- "verified_result": null
106
- },
107
- {
108
- "hashed_secret": "745d0b2380e21353d526db47a87158f2065563ee",
109
- "is_secret": false,
110
- "is_verified": false,
111
- "line_number": 72,
112
- "type": "Basic Auth Credentials",
113
- "verified_result": null
114
- }
115
- ],
116
- "examples/s3-backup-file.js": [
117
- {
118
- "hashed_secret": "9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684",
119
- "is_secret": false,
120
- "is_verified": false,
121
- "line_number": 41,
122
- "type": "Basic Auth Credentials",
123
- "verified_result": null
124
- }
125
- ],
126
- "examples/s3-backup-stream.js": [
127
- {
128
- "hashed_secret": "9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684",
129
- "is_secret": false,
130
- "is_verified": false,
131
- "line_number": 38,
132
- "type": "Basic Auth Credentials",
133
- "verified_result": null
134
- }
135
- ],
136
- "test/app.js": [
137
- {
138
- "hashed_secret": "6367c48dd193d56ea7b0baad25b19455e529f5ee",
139
- "is_secret": false,
140
- "is_verified": false,
141
- "line_number": 161,
142
- "type": "Secret Keyword",
143
- "verified_result": null
144
- },
145
- {
146
- "hashed_secret": "e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98",
147
- "is_secret": false,
148
- "is_verified": false,
149
- "line_number": 161,
150
- "type": "Basic Auth Credentials",
151
- "verified_result": null
152
- }
153
- ],
154
- "test/config.js": [
155
- {
156
- "hashed_secret": "9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684",
157
- "is_secret": false,
158
- "is_verified": false,
159
- "line_number": 34,
160
- "type": "Basic Auth Credentials",
161
- "verified_result": null
162
- }
163
- ],
164
- "test/fatalerrors.js": [
165
- {
166
- "hashed_secret": "3614298f2f841910a7ef47c6ea2af096bf838c08",
167
- "is_secret": false,
168
- "is_verified": false,
169
- "line_number": 35,
170
- "type": "Hex High Entropy String",
171
- "verified_result": null
172
- },
173
- {
174
- "hashed_secret": "aeca874db253d47d14de64ffbbf8f27bf3a65edb",
175
- "is_secret": false,
176
- "is_verified": false,
177
- "line_number": 35,
178
- "type": "Hex High Entropy String",
179
- "verified_result": null
180
- },
181
- {
182
- "hashed_secret": "e58f351f409b818d64f94d90b3db70224b0a624a",
183
- "is_secret": false,
184
- "is_verified": false,
185
- "line_number": 35,
186
- "type": "Hex High Entropy String",
187
- "verified_result": null
188
- },
189
- {
190
- "hashed_secret": "ec4e1dbc7f64a0e052e855036f9470e7881f06fd",
191
- "is_secret": false,
192
- "is_verified": false,
193
- "line_number": 205,
194
- "type": "Base64 High Entropy String",
195
- "verified_result": null
196
- }
197
- ],
198
- "test/parser.js": [
199
- {
200
- "hashed_secret": "b4bfddf3c247a5d30734dcf84b3c8d3c6aa1f36e",
201
- "is_secret": false,
202
- "is_verified": false,
203
- "line_number": 40,
204
- "type": "Secret Keyword",
205
- "verified_result": null
206
- },
207
- {
208
- "hashed_secret": "9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684",
209
- "is_secret": false,
210
- "is_verified": false,
211
- "line_number": 132,
212
- "type": "Basic Auth Credentials",
213
- "verified_result": null
214
- },
215
- {
216
- "hashed_secret": "e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98",
217
- "is_secret": false,
218
- "is_verified": false,
219
- "line_number": 275,
220
- "type": "Basic Auth Credentials",
221
- "verified_result": null
222
- }
223
- ],
224
- "test/request.js": [
225
- {
226
- "hashed_secret": "41a269ae4f24dab3ddf96b401f1ada5dfdfc5f08",
227
- "is_secret": false,
228
- "is_verified": false,
229
- "line_number": 198,
230
- "type": "Secret Keyword",
231
- "verified_result": null
232
- }
233
- ]
234
- },
235
- "version": "0.13.1+ibm.62.dss",
236
- "word_list": {
237
- "file": null,
238
- "hash": null
239
- }
240
- }
package/.whitesource DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "settingsInheritedFrom": "whitesource-config/whitesource-config@master",
3
- "issueSettings": {
4
- "issueRepoName": "sdks"
5
- }
6
- }
package/CHANGES.md DELETED
@@ -1,224 +0,0 @@
1
- # 2.9.16 (2024-01-10)
2
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.8.2`.
3
-
4
- # 2.9.15 (2023-12-04)
5
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.8.0`.
6
- - [NOTE] Updated Node.js version requirement statement for LTS 18 and 20.
7
-
8
- # 2.9.14 (2023-11-02)
9
- - [FIXED] Corrected error handling for invalid URLs.
10
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.7.2`.
11
- - [UPGRADED] `ibm-cloud-sdk-core` peerDependency to minimum version `4.1.4` to match version provided from `@ibm-cloud/cloudant`.
12
- - [UPGRADED] `axios` peerDependency to minimum version `1.6.0` to match version provided from `ibm-cloud-sdk-core`.
13
-
14
- # 2.9.13 (2023-09-28)
15
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.7.1`.
16
- - [UPGRADED] `ibm-cloud-sdk-core` peerDependency to minimum version `4.1.2` to match version provided from `@ibm-cloud/cloudant`.
17
- - [NOTE] Updated minimum supported engine to Node.js 18 `hydrogen` LTS.
18
-
19
- # 2.9.12 (2023-09-04)
20
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.6.0`.
21
-
22
- # 2.9.11 (2023-06-29)
23
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.5.4`.
24
- - [UPGRADED] `ibm-cloud-sdk-core` peerDependency to minimum version `4.0.9` to match version provided from `@ibm-cloud/cloudant`.
25
-
26
- # 2.9.10 (2023-06-09)
27
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.5.2`.
28
- - [UPGRADED] `ibm-cloud-sdk-core` peerDependency to minimum version `4.0.8` to match version provided from `@ibm-cloud/cloudant`.
29
- - [UPGRADED] `axios` peerDependency to minimum version `1.4.0` to match version provided from `ibm-cloud-sdk-core`.
30
- - [NOTE] Repository moved from https://github.com/cloudant/couchbackup to https://github.com/IBM/couchbackup.
31
- - [NOTE] Updated Node.js version requirement statement for LTS 16 and 18.
32
-
33
- # 2.9.9 (2023-05-03)
34
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.5.1`.
35
- - [NOTE] Updated minimum supported engine to Node.js 16 `gallium` LTS.
36
-
37
- # 2.9.8 (2023-04-04)
38
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.5.0`.
39
-
40
- # 2.9.7 (2023-02-27)
41
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.4.1`.
42
- - [UPGRADED] `ibm-cloud-sdk-core` peerDependency to version `4.0.3`.
43
-
44
- # 2.9.6 (2023-01-06)
45
- - [FIXED] HTTP client dependency issue that masked backup errors when server connection was dropped.
46
- - [FIXED] Discard temporary file descriptor for backup.
47
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.4.0`.
48
- - [UPGRADED] `ibm-cloud-sdk-core` peerDependency to minimum version `4.0.2` to match version provided from `@ibm-cloud/cloudant`.
49
- - [UPGRADED] `axios` peerDependency to minimum version `1.2.1` to match version provided from `ibm-cloud-sdk-core`.
50
-
51
- # 2.9.5 (2022-11-01)
52
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.3.0`.
53
-
54
- # 2.9.4 (2022-10-05)
55
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.2.1`.
56
- - [NOTE] Add `axios` to peerDependencies.
57
-
58
- # 2.9.3 (2022-09-08)
59
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.2.0`.
60
-
61
- # 2.9.2 (2022-08-02)
62
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.1.5`.
63
- - [UPGRADED] `ibm-cloud-sdk-core` peerDependency to version `3.1.0`.
64
-
65
- # 2.9.1 (2022-07-19)
66
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.1.4`.
67
-
68
- # 2.9.0 (2022-05-09)
69
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.1.2`.
70
- - [NOTE] Updated minimum supported engine to Node.js 14 `fermium` LTS.
71
-
72
- # 2.8.3 (2022-04-05)
73
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.1.1`.
74
- - [NOTE] Move `retry-axios` and `ibm-cloud-sdk-core` to peerDependencies.
75
-
76
- # 2.8.2 (2022-02-10)
77
- - [UPGRADED] `@ibm-cloud/cloudant` dependency to version `0.0.24`.
78
-
79
- # 2.8.1 (2021-12-02)
80
- - [FIXED] Regression from version 2.7 resulting in incorrect handling of percent-encoded credentials in the URL user-info.
81
-
82
- # 2.8.0 (2021-11-25)
83
- - [FIXED] Corrected `user-agent` header on requests.
84
- - [FIXED] Restore of shallow backups created with versions <=2.4.2.
85
- - [IMPROVED] Added quiet option to backup and restore to suppress batch messages.
86
- - [IMPROVED] Added a preflight check for restore function to make sure that a target database is new and empty.
87
- - [IMPROVED] Added handling for errors reading log file.
88
- - [IMPROVED] Split changes spooling to improve reliability on databases with
89
- millions of documents.
90
- - [UPGRADED] `@ibm-cloud/cloudant`, `commander` and `debug` dependencies.
91
-
92
- # 2.7.0 (2021-09-14)
93
- - [UPGRADED] Cloudant client dependency from `@cloudant/cloudant` to `@ibm-cloud/cloudant`.
94
-
95
- # 2.6.2 (2021-08-27)
96
- - [FIXED] `Invalid document ID: _bulk_get` error when using `@cloudant/cloudant`
97
- version `4.5.0`.
98
- - [UPGRADED] Upgraded `@cloudant/cloudant` dependency to version `4.5.0`.
99
- - [NOTE] Updated minimum supported engine to Node.js 12 `erbium` LTS.
100
-
101
- # 2.6.1 (2021-06-23)
102
- - [FIXED] Async queue pause/resume behaviour to avoid exhausting listener handles.
103
- - [UPGRADED] Upgraded `@cloudant/cloudant` dependency to version `4.4.0`.
104
-
105
- # 2.6.0 (2020-09-22)
106
- - [FIXED] Invalid parameters error when using shallow mode.
107
- - [UPGRADED] Upgraded `@cloudant/cloudant` dependency to version `4.3.0`.
108
- - [NOTE] Updated minimum supported engine to Node.js 10 `dubnium` LTS.
109
-
110
- # 2.5.2 (2020-03-02)
111
- - [FIXED] Issue with compatibility with Nano 8.2.0.
112
-
113
- # 2.5.1 (2019-12-06)
114
- - [FIXED] Issue with incorrect handling of percent-encoded user info characters
115
- via @cloudant/cloudant dependency.
116
- - [UPGRADED] Upgraded @cloudant/cloudant dependency to minimum version 4.2.3
117
- - [IMPROVED] Added documentation around encoding of characters in the user info
118
- subcomponent of the URL.
119
-
120
- # 2.5.0 (2019-10-24)
121
- - [UPGRADED] Upgraded @cloudant/cloudant dependency to version 4.2.2.
122
- - [NOTE] Updated minimum supported engine to Node.js 8 “Carbon” LTS.
123
-
124
- # 2.4.2 (2019-08-20)
125
-
126
- - [FIXED] Preserve document revisions in shallow backup.
127
- - [UPGRADED] Upgraded commander dependency to version 3.0.0.
128
-
129
- # 2.4.1 (2019-06-18)
130
-
131
- - [FIXED] Removed inadvertent npm-cli-login dependency.
132
- - [UPGRADED] Upgraded @cloudant/cloudant dependency to version 4.1.1.
133
- - [UPGRADED] Upgraded async dependency to version 3.0.1.
134
-
135
- # 2.4.0 (2019-03-15)
136
-
137
- - [NEW] Added request timeout option. Set via env var `COUCH_REQUEST_TIMEOUT`,
138
- as CLI option `--request-timeout`, or programmatically via
139
- `options.requestTimeout`.
140
- - [IMPROVED] Replaced usages of Node.js legacy URL API. Note this changes some
141
- URL validation error messages.
142
- - [IMPROVED] Documentation, help text and log warnings for invalid options in
143
- "shallow" mode.
144
- - [UPGRADED] Moved nodejs-cloudant dependency to 4.x.x.
145
-
146
- # 2.3.1 (2018-06-15)
147
-
148
- - [FIXED] Concurrent database backups use the same default log file.
149
- - [FIXED] IAM token URL override option.
150
-
151
- # 2.3.0 (2018-05-22)
152
-
153
- - [NEW] Check for database existence before starting backup. This provides for
154
- better error messages for existence, authentication, and `_bulk_get` problems.
155
- - [FIXED] Intermittent issues with multiple callbacks, particularly noticeable
156
- when using Node.js 10.
157
- - [FIXED] Issue where a success message could confusingly be output after a
158
- fatal error.
159
- - [UPGRADED] Increased nodejs-cloudant dependency minimum to 2.2.x.
160
-
161
- # 2.2.0 (2018-03-06)
162
-
163
- - [FIXED] An issue where the `_changes` response stream doesn't get correctly
164
- decompressed.
165
- - [FIXED] Prevent duplicate execution of backup error callbacks.
166
- - [NOTE] Update engines in preparation for Node.js 4 “Argon” end-of-life.
167
-
168
- # 2.1.0 (2018-02-20)
169
-
170
- - [NEW] Added API for upcoming IBM Cloud Identity and Access Management support
171
- for Cloudant on IBM Cloud. Note: IAM API key support is not yet enabled in the
172
- service.
173
- - [IMPROVED] Enhanced resilience of backup and restore processes by enabling the
174
- nodejs-cloudant retry plugin.
175
- - [IMPROVED] Added URL validation for presence of host and database elements.
176
- - [UPGRADED] Increased nodejs-cloudant dependency to 2.x.
177
-
178
- # 2.0.1 (2018-01-11)
179
-
180
- - [NEW] Changed to use nodejs-cloudant for database requests.
181
- - [IMPROVED] Added compression to restore process requests.
182
- - [FIXED] An unhandled `readstream.destroy is not a function` error when trying
183
- to terminate a restore process that encountered an error.
184
- - [UPGRADED] Increased debug dependency to 3.0.x.
185
-
186
- # 2.0.0 (2017-07-04)
187
-
188
- - [NEW] Moved to https://github.com/cloudant/couchbackup repository.
189
- - [NEW] Validate backup/restore options.
190
- - [NEW] Add User-Agent header to all requests.
191
- - [NEW] Added unique CLI exit codes for known error conditions.
192
- - [NEW] API for using as library that is more Node.js-like.
193
- - [NEW] Added `changes` event for each batch spooled from the changes feed.
194
- - [BREAKING CHANGE] The --buffer option is now --buffer-size.
195
- - [BREAKING CHANGE] The `writeerror` event is now just `error`.
196
- - [BREAKING CHANGE] The `writecomplete` event is now `finished`.
197
- - [BREAKING CHANGE] For restoring, the `written` event is now `restored`.
198
- - [REMOVED] Removed legacy 1.x API.
199
- - [IMPROVED] Verify database supports `/_bulk_get` endpoint prior to running backup.
200
- - [IMPROVED] Existence of the restore destination database is checked before
201
- starting the restore process.
202
- - [IMPROVED] Added compression for backup HTTP responses, where supported by the
203
- server.
204
- - [IMPROVED] Added HTTP persistent connection pools corresponding to the backup
205
- parallelism.
206
- - [IMPROVED] Better error handling in couchrestore when remote database
207
- cannot be written to.
208
- - [IMPROVED] Validate HTTP responses when restoring a database.
209
- - [IMPROVED] Aborts backup and restore processes for known irrecoverable errors.
210
- - [IMPROVED] Retry restore batches on transient errors.
211
- - [FIXED] An issue where the process could exit before the backup content was
212
- completely flushed to the destination stream.
213
- - [FIXED] An issue where back pressure on the output stream was ignored
214
- potentially resulting in the backup process running out of memory.
215
- - [FIXED] An issue where the log entry could be written for a batch before the
216
- batch was written to the backup file.
217
- - [FIXED] An issue where a restore of a resumed backup might not complete due to
218
- incomplete JSON entries in the backup file.
219
- - [FIXED] An issue where an empty batch could be written to the backup file.
220
- - [FIXED] An issue where the restore-time buffer size was ignored.
221
- - [FIXED] Ensure body 'rows' key exists before performing shallow backup.
222
- - [FIXED] An issue where write errors were not correctly reported.
223
- - [FIXED] An issue where couchbackup would attempt to write to an
224
- invalid output file.
package/SECURITY.md DELETED
@@ -1,16 +0,0 @@
1
- # Security Policy
2
-
3
- ## Supported Versions
4
-
5
- | Version | Supported |
6
- | ------- | ------------------ |
7
- | latest | :white_check_mark: |
8
-
9
- ## Reporting a Vulnerability
10
-
11
- If you believe you have found a vulnerability please report it responsibly. IBM has documented the process for reporting vulnerabilities at https://www.ibm.com/trust/security-psirt.
12
-
13
- ## Vulnerabilities in dependencies
14
-
15
- This repo is regularly scanned for known CVEs in dependencies and updates to versions with remediations are applied and released as soon as possible.
16
- Reporting known CVEs in dependencies in this repository is not necessary and will not lead to a faster resolution.