diff --git a/.secrets.baseline b/.secrets.baseline index 62d2e958..e58a2112 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "package-lock.json|test/fixtures|^.secrets.baseline$", "lines": null }, - "generated_at": "2024-08-27T11:12:19Z", + "generated_at": "2024-11-27T17:31:46Z", "plugins_used": [ { "name": "AWSKeyDetector" @@ -118,7 +118,7 @@ "hashed_secret": "9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684", "is_secret": false, "is_verified": false, - "line_number": 41, + "line_number": 39, "type": "Basic Auth Credentials", "verified_result": null } @@ -128,7 +128,7 @@ "hashed_secret": "9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684", "is_secret": false, "is_verified": false, - "line_number": 38, + "line_number": 37, "type": "Basic Auth Credentials", "verified_result": null } @@ -138,7 +138,7 @@ "hashed_secret": "6367c48dd193d56ea7b0baad25b19455e529f5ee", "is_secret": false, "is_verified": false, - "line_number": 166, + "line_number": 165, "type": "Secret Keyword", "verified_result": null }, @@ -146,7 +146,7 @@ "hashed_secret": "e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98", "is_secret": false, "is_verified": false, - "line_number": 166, + "line_number": 165, "type": "Basic Auth Credentials", "verified_result": null } @@ -156,7 +156,7 @@ "hashed_secret": "3614298f2f841910a7ef47c6ea2af096bf838c08", "is_secret": false, "is_verified": false, - "line_number": 35, + "line_number": 34, "type": "Hex High Entropy String", "verified_result": null }, @@ -164,7 +164,7 @@ "hashed_secret": "de8ebe0b7ec918c8c29004d53b809dc31f7e5ff9", "is_secret": false, "is_verified": false, - "line_number": 35, + "line_number": 34, "type": "Hex High Entropy String", "verified_result": null } @@ -174,7 +174,7 @@ "hashed_secret": "9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684", "is_secret": false, "is_verified": false, - "line_number": 34, + "line_number": 33, "type": "Basic Auth Credentials", "verified_result": null } @@ -184,7 +184,7 @@ "hashed_secret": "3614298f2f841910a7ef47c6ea2af096bf838c08", "is_secret": false, "is_verified": false, - "line_number": 35, + "line_number": 34, "type": "Hex High Entropy String", "verified_result": null }, @@ -192,7 +192,7 @@ "hashed_secret": "aeca874db253d47d14de64ffbbf8f27bf3a65edb", "is_secret": false, "is_verified": false, - "line_number": 35, + "line_number": 34, "type": "Hex High Entropy String", "verified_result": null }, @@ -200,7 +200,7 @@ "hashed_secret": "e58f351f409b818d64f94d90b3db70224b0a624a", "is_secret": false, "is_verified": false, - "line_number": 35, + "line_number": 34, "type": "Hex High Entropy String", "verified_result": null }, @@ -208,7 +208,7 @@ "hashed_secret": "ec4e1dbc7f64a0e052e855036f9470e7881f06fd", "is_secret": false, "is_verified": false, - "line_number": 207, + "line_number": 206, "type": "Base64 High Entropy String", "verified_result": null } @@ -218,7 +218,7 @@ "hashed_secret": "b4bfddf3c247a5d30734dcf84b3c8d3c6aa1f36e", "is_secret": false, "is_verified": false, - "line_number": 40, + "line_number": 39, "type": "Secret Keyword", "verified_result": null }, @@ -226,7 +226,7 @@ "hashed_secret": "9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684", "is_secret": false, "is_verified": false, - "line_number": 140, + "line_number": 139, "type": "Basic Auth Credentials", "verified_result": null }, @@ -234,7 +234,7 @@ "hashed_secret": "e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98", "is_secret": false, "is_verified": false, - "line_number": 297, + "line_number": 296, "type": "Basic Auth Credentials", "verified_result": null } @@ -244,7 +244,7 @@ "hashed_secret": "41a269ae4f24dab3ddf96b401f1ada5dfdfc5f08", "is_secret": false, "is_verified": false, - "line_number": 198, + "line_number": 197, "type": "Secret Keyword", "verified_result": null } diff --git a/app.js b/app.js index c606c5be..4d3d19d1 100644 --- a/app.js +++ b/app.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; /** * CouchBackup module. diff --git a/bin/couchbackup.bin.js b/bin/couchbackup.bin.js index 04e77211..289b3436 100755 --- a/bin/couchbackup.bin.js +++ b/bin/couchbackup.bin.js @@ -12,7 +12,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const error = require('../includes/error.js'); const fs = require('fs'); diff --git a/bin/couchrestore.bin.js b/bin/couchrestore.bin.js index 977028c6..627b8104 100755 --- a/bin/couchrestore.bin.js +++ b/bin/couchrestore.bin.js @@ -12,7 +12,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const error = require('../includes/error.js'); const cliutils = require('../includes/cliutils.js'); diff --git a/examples/s3-backup-file.js b/examples/s3-backup-file.js index 66e42efa..6bf3fb45 100644 --- a/examples/s3-backup-file.js +++ b/examples/s3-backup-file.js @@ -18,8 +18,6 @@ // The script generates the backup object name by combining together the path // part of the database URL and the current time. -'use strict'; - const { createReadStream, createWriteStream, mkdtempSync } = require('node:fs'); const { tmpdir } = require('node:os'); const { join } = require('node:path'); diff --git a/examples/s3-backup-stream.js b/examples/s3-backup-stream.js index 7eb620fd..33129de4 100644 --- a/examples/s3-backup-stream.js +++ b/examples/s3-backup-stream.js @@ -18,7 +18,6 @@ // The script generates the backup object name by combining together the path // part of the database URL and the current time. -'use strict'; const { PassThrough } = require('node:stream'); const url = require('node:url'); diff --git a/includes/allDocsGenerator.js b/includes/allDocsGenerator.js index b2015b16..ec4b1b0b 100644 --- a/includes/allDocsGenerator.js +++ b/includes/allDocsGenerator.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const debug = require('debug')('couchbackup:alldocsgenerator'); const { BackupError } = require('./error.js'); diff --git a/includes/attachmentMappings.js b/includes/attachmentMappings.js index 97351f37..d90ce457 100644 --- a/includes/attachmentMappings.js +++ b/includes/attachmentMappings.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const debug = require('debug'); const mappingDebug = debug('couchbackup:mappings'); diff --git a/includes/backup.js b/includes/backup.js index e2ebccf3..11c729b8 100644 --- a/includes/backup.js +++ b/includes/backup.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const { createWriteStream } = require('node:fs'); const { pipeline } = require('node:stream/promises'); diff --git a/includes/backupMappings.js b/includes/backupMappings.js index 85dd2e0b..25f6161d 100644 --- a/includes/backupMappings.js +++ b/includes/backupMappings.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const debug = require('debug'); diff --git a/includes/cliutils.js b/includes/cliutils.js index 608b83d2..79fdfac8 100644 --- a/includes/cliutils.js +++ b/includes/cliutils.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; /** * Utility methods for the command line interface. diff --git a/includes/config.js b/includes/config.js index b7503368..f896b246 100644 --- a/includes/config.js +++ b/includes/config.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const { mkdtempSync } = require('node:fs'); const { tmpdir } = require('node:os'); diff --git a/includes/error.js b/includes/error.js index f1b57eac..1ff0f994 100644 --- a/includes/error.js +++ b/includes/error.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; // fatal errors const codes = { diff --git a/includes/liner.js b/includes/liner.js index b5aab388..43703a64 100644 --- a/includes/liner.js +++ b/includes/liner.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const { createInterface } = require('node:readline'); const { PassThrough, Duplex } = require('node:stream'); diff --git a/includes/logfilegetbatches.js b/includes/logfilegetbatches.js index 30614045..ae67a7a4 100644 --- a/includes/logfilegetbatches.js +++ b/includes/logfilegetbatches.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const fs = require('node:fs'); const { LogMapper } = require('./backupMappings.js'); diff --git a/includes/logfilesummary.js b/includes/logfilesummary.js index c7c9248c..e9da92ab 100644 --- a/includes/logfilesummary.js +++ b/includes/logfilesummary.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const { createReadStream } = require('node:fs'); const { Writable } = require('node:stream'); diff --git a/includes/parser.js b/includes/parser.js index 9d522587..1e9fd64c 100644 --- a/includes/parser.js +++ b/includes/parser.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const cliutils = require('./cliutils.js'); const config = require('./config.js'); diff --git a/includes/request.js b/includes/request.js index d6d650f1..d8c2569f 100644 --- a/includes/request.js +++ b/includes/request.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const pkg = require('../package.json'); const { CloudantV1, CouchdbSessionAuthenticator } = require('@ibm-cloud/cloudant'); diff --git a/includes/restore.js b/includes/restore.js index b8957421..a163611c 100644 --- a/includes/restore.js +++ b/includes/restore.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const debug = require('debug')('couchbackup:restore'); const { Attachments } = require('./attachmentMappings.js'); diff --git a/includes/restoreMappings.js b/includes/restoreMappings.js index 9281dcc8..2eeafd4f 100644 --- a/includes/restoreMappings.js +++ b/includes/restoreMappings.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const { BackupError } = require('./error.js'); const debug = require('debug'); diff --git a/includes/spoolchanges.js b/includes/spoolchanges.js index 8a201d61..878658c2 100644 --- a/includes/spoolchanges.js +++ b/includes/spoolchanges.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const { createWriteStream } = require('node:fs'); const { pipeline } = require('node:stream/promises'); diff --git a/includes/transforms.js b/includes/transforms.js index d2c534b1..6ae2f046 100644 --- a/includes/transforms.js +++ b/includes/transforms.js @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; const { Duplex, PassThrough, Writable, getDefaultHighWaterMark, setDefaultHighWaterMark } = require('node:stream'); const debug = require('debug'); diff --git a/test-network/conditions.js b/test-network/conditions.js index 91033dc3..ac3e15c4 100644 --- a/test-network/conditions.js +++ b/test-network/conditions.js @@ -14,7 +14,6 @@ /* eslint space-before-function-paren: ["error", { "anonymous": "ignore" }] */ /* global after before describe */ -'use strict'; const assert = require('assert'); const axios = require('axios'); diff --git a/test/allDocsGenerator.js b/test/allDocsGenerator.js index 032ff255..2b654ff2 100644 --- a/test/allDocsGenerator.js +++ b/test/allDocsGenerator.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it beforeEach */ -'use strict'; const asyncGenerator = require('../includes/allDocsGenerator.js'); const assert = require('assert'); diff --git a/test/app.js b/test/app.js index 3da8b90a..f6e7ac51 100644 --- a/test/app.js +++ b/test/app.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it */ -'use strict'; const assert = require('assert'); const backup = require('../app.js').backup; diff --git a/test/attachmentMappings.js b/test/attachmentMappings.js index 368795b1..be8dc605 100644 --- a/test/attachmentMappings.js +++ b/test/attachmentMappings.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it */ -'use strict'; const assert = require('node:assert'); const { Attachments } = require('../includes/attachmentMappings.js'); diff --git a/test/backupMappings.js b/test/backupMappings.js index 4c845636..10bb9ff6 100644 --- a/test/backupMappings.js +++ b/test/backupMappings.js @@ -13,7 +13,6 @@ // limitations under the License. /* global afterEach beforeEach describe it */ -'use strict'; const assert = require('node:assert'); const fs = require('node:fs'); diff --git a/test/ci_basic.js b/test/ci_basic.js index c1dce61b..fac13a61 100644 --- a/test/ci_basic.js +++ b/test/ci_basic.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it */ -'use strict'; const fs = require('fs'); const { once } = require('node:events'); diff --git a/test/ci_compression.js b/test/ci_compression.js index b588ac82..2c0031b0 100644 --- a/test/ci_compression.js +++ b/test/ci_compression.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it */ -'use strict'; const fs = require('fs'); const { once } = require('node:events'); diff --git a/test/ci_concurrent_backups.js b/test/ci_concurrent_backups.js index 832a9aa9..a52d72ac 100644 --- a/test/ci_concurrent_backups.js +++ b/test/ci_concurrent_backups.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it */ -'use strict'; const fs = require('fs'); const { once } = require('node:events'); diff --git a/test/ci_e2e.js b/test/ci_e2e.js index 15c4461d..80568852 100644 --- a/test/ci_e2e.js +++ b/test/ci_e2e.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it */ -'use strict'; delete require.cache[require.resolve('./citestutils.js')]; const u = require('./citestutils.js'); diff --git a/test/ci_encryption.js b/test/ci_encryption.js index ba9f107b..288e52d3 100644 --- a/test/ci_encryption.js +++ b/test/ci_encryption.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it */ -'use strict'; const u = require('./citestutils.js'); diff --git a/test/ci_error.js b/test/ci_error.js index d737e2d4..4d1bd788 100644 --- a/test/ci_error.js +++ b/test/ci_error.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it */ -'use strict'; const assert = require('assert'); const { mkdtemp, open, rm } = require('fs/promises'); diff --git a/test/ci_event.js b/test/ci_event.js index 6adb85c0..1c3b79ee 100644 --- a/test/ci_event.js +++ b/test/ci_event.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it */ -'use strict'; const u = require('./citestutils.js'); diff --git a/test/ci_largee2e.js b/test/ci_largee2e.js index 22e3217a..13857577 100644 --- a/test/ci_largee2e.js +++ b/test/ci_largee2e.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it */ -'use strict'; const u = require('./citestutils.js'); diff --git a/test/ci_resume.js b/test/ci_resume.js index 4a344eae..550e6786 100644 --- a/test/ci_resume.js +++ b/test/ci_resume.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it */ -'use strict'; const assert = require('assert'); const fs = require('fs'); diff --git a/test/citestutils.js b/test/citestutils.js index 5bc26e1f..262ac741 100644 --- a/test/citestutils.js +++ b/test/citestutils.js @@ -13,7 +13,6 @@ // limitations under the License. /* global */ -'use strict'; const assert = require('node:assert'); const { once } = require('node:events'); diff --git a/test/compare.js b/test/compare.js index f76510ba..15965eec 100644 --- a/test/compare.js +++ b/test/compare.js @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -'use strict'; - const assert = require('node:assert'); const client = require('./hooks.js').sharedClient; diff --git a/test/config.js b/test/config.js index 87472e37..06415e55 100644 --- a/test/config.js +++ b/test/config.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it before after */ -'use strict'; const assert = require('assert'); const applyEnvVars = require('../includes/config.js').applyEnvironmentVariables; diff --git a/test/fatalerrors.js b/test/fatalerrors.js index 1e1332ba..967413c7 100644 --- a/test/fatalerrors.js +++ b/test/fatalerrors.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it before after beforeEach */ -'use strict'; const assert = require('assert'); const fs = require('fs'); diff --git a/test/hooks.js b/test/hooks.js index f1a7195d..b05d74de 100644 --- a/test/hooks.js +++ b/test/hooks.js @@ -13,7 +13,6 @@ // limitations under the License. /* global beforeEach afterEach */ -'use strict'; const uuid = require('uuid').v4; const fs = require('fs'); diff --git a/test/liner.js b/test/liner.js index 92f9066b..387d49c3 100644 --- a/test/liner.js +++ b/test/liner.js @@ -13,7 +13,6 @@ // limitations under the License. /* global beforeEach describe it */ -'use strict'; const assert = require('node:assert'); const fs = require('node:fs'); diff --git a/test/logfilegetbatches.js b/test/logfilegetbatches.js index 87f749a3..bf868575 100644 --- a/test/logfilegetbatches.js +++ b/test/logfilegetbatches.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it */ -'use strict'; const assert = require('assert'); const { Writable } = require('node:stream'); diff --git a/test/logfilesummary.js b/test/logfilesummary.js index d38828fd..31d5ada2 100644 --- a/test/logfilesummary.js +++ b/test/logfilesummary.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it */ -'use strict'; const assert = require('assert'); const logFileSummary = require('../includes/logfilesummary.js'); diff --git a/test/parser.js b/test/parser.js index ff8c0b60..71dbe16d 100644 --- a/test/parser.js +++ b/test/parser.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe afterEach before after it */ -'use strict'; const assert = require('assert'); const parser = require('../includes/parser.js'); diff --git a/test/request.js b/test/request.js index c3b2657f..321508e0 100644 --- a/test/request.js +++ b/test/request.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it beforeEach */ -'use strict'; const assert = require('assert'); const nock = require('nock'); diff --git a/test/restore.js b/test/restore.js index 31315b29..04dac3f0 100644 --- a/test/restore.js +++ b/test/restore.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it beforeEach */ -'use strict'; const assert = require('assert'); const { EventEmitter } = require('events'); diff --git a/test/restoreMappings.js b/test/restoreMappings.js index ae805e68..74e541f6 100644 --- a/test/restoreMappings.js +++ b/test/restoreMappings.js @@ -13,7 +13,6 @@ // limitations under the License. /* global afterEach beforeEach describe it */ -'use strict'; const assert = require('node:assert'); const { Writable } = require('node:stream'); diff --git a/test/shallowbackup.js b/test/shallowbackup.js index 7f453c40..b2f05e12 100644 --- a/test/shallowbackup.js +++ b/test/shallowbackup.js @@ -13,7 +13,6 @@ // limitations under the License. /* global describe it beforeEach */ -'use strict'; const assert = require('assert'); const backup = require('../includes/backup.js'); diff --git a/test/spoolchanges.js b/test/spoolchanges.js index 0b1fc574..e9c66ee0 100644 --- a/test/spoolchanges.js +++ b/test/spoolchanges.js @@ -13,7 +13,6 @@ // limitations under the License. /* global afterEach beforeEach describe it */ -'use strict'; const assert = require('assert'); const nock = require('nock'); diff --git a/test/test_process.js b/test/test_process.js index f071a9c7..65d7f30e 100644 --- a/test/test_process.js +++ b/test/test_process.js @@ -13,7 +13,6 @@ // limitations under the License. /* global */ -'use strict'; const { fork, spawn } = require('node:child_process'); const { once } = require('node:events'); diff --git a/test/transforms.js b/test/transforms.js index 473fc9a3..dba4c959 100644 --- a/test/transforms.js +++ b/test/transforms.js @@ -13,7 +13,6 @@ // limitations under the License. /* global beforeEach describe it */ -'use strict'; const assert = require('node:assert'); const tp = require('node:timers/promises');