Skip to content

Commit

Permalink
chore: remove unnecessary 'use strict'
Browse files Browse the repository at this point in the history
  • Loading branch information
ricellis committed Nov 28, 2024
1 parent 6345832 commit 90eb0d6
Show file tree
Hide file tree
Showing 52 changed files with 16 additions and 69 deletions.
32 changes: 16 additions & 16 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand All @@ -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
}
Expand All @@ -138,15 +138,15 @@
"hashed_secret": "6367c48dd193d56ea7b0baad25b19455e529f5ee",
"is_secret": false,
"is_verified": false,
"line_number": 166,
"line_number": 165,
"type": "Secret Keyword",
"verified_result": null
},
{
"hashed_secret": "e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98",
"is_secret": false,
"is_verified": false,
"line_number": 166,
"line_number": 165,
"type": "Basic Auth Credentials",
"verified_result": null
}
Expand All @@ -156,15 +156,15 @@
"hashed_secret": "3614298f2f841910a7ef47c6ea2af096bf838c08",
"is_secret": false,
"is_verified": false,
"line_number": 35,
"line_number": 34,
"type": "Hex High Entropy String",
"verified_result": null
},
{
"hashed_secret": "de8ebe0b7ec918c8c29004d53b809dc31f7e5ff9",
"is_secret": false,
"is_verified": false,
"line_number": 35,
"line_number": 34,
"type": "Hex High Entropy String",
"verified_result": null
}
Expand All @@ -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
}
Expand All @@ -184,31 +184,31 @@
"hashed_secret": "3614298f2f841910a7ef47c6ea2af096bf838c08",
"is_secret": false,
"is_verified": false,
"line_number": 35,
"line_number": 34,
"type": "Hex High Entropy String",
"verified_result": null
},
{
"hashed_secret": "aeca874db253d47d14de64ffbbf8f27bf3a65edb",
"is_secret": false,
"is_verified": false,
"line_number": 35,
"line_number": 34,
"type": "Hex High Entropy String",
"verified_result": null
},
{
"hashed_secret": "e58f351f409b818d64f94d90b3db70224b0a624a",
"is_secret": false,
"is_verified": false,
"line_number": 35,
"line_number": 34,
"type": "Hex High Entropy String",
"verified_result": null
},
{
"hashed_secret": "ec4e1dbc7f64a0e052e855036f9470e7881f06fd",
"is_secret": false,
"is_verified": false,
"line_number": 207,
"line_number": 206,
"type": "Base64 High Entropy String",
"verified_result": null
}
Expand All @@ -218,23 +218,23 @@
"hashed_secret": "b4bfddf3c247a5d30734dcf84b3c8d3c6aa1f36e",
"is_secret": false,
"is_verified": false,
"line_number": 40,
"line_number": 39,
"type": "Secret Keyword",
"verified_result": null
},
{
"hashed_secret": "9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684",
"is_secret": false,
"is_verified": false,
"line_number": 140,
"line_number": 139,
"type": "Basic Auth Credentials",
"verified_result": null
},
{
"hashed_secret": "e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98",
"is_secret": false,
"is_verified": false,
"line_number": 297,
"line_number": 296,
"type": "Basic Auth Credentials",
"verified_result": null
}
Expand All @@ -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
}
Expand Down
1 change: 0 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion bin/couchbackup.bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion bin/couchrestore.bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 0 additions & 2 deletions examples/s3-backup-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion examples/s3-backup-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
1 change: 0 additions & 1 deletion includes/allDocsGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion includes/attachmentMappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion includes/backup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion includes/backupMappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
1 change: 0 additions & 1 deletion includes/cliutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion includes/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion includes/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
1 change: 0 additions & 1 deletion includes/liner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion includes/logfilegetbatches.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion includes/logfilesummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion includes/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion includes/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion includes/restore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion includes/restoreMappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion includes/spoolchanges.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion includes/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion test-network/conditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion test/allDocsGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

/* global describe it beforeEach */
'use strict';

const asyncGenerator = require('../includes/allDocsGenerator.js');
const assert = require('assert');
Expand Down
1 change: 0 additions & 1 deletion test/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

/* global describe it */
'use strict';

const assert = require('assert');
const backup = require('../app.js').backup;
Expand Down
1 change: 0 additions & 1 deletion test/attachmentMappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

/* global describe it */
'use strict';

const assert = require('node:assert');
const { Attachments } = require('../includes/attachmentMappings.js');
Expand Down
1 change: 0 additions & 1 deletion test/backupMappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion test/ci_basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

/* global describe it */
'use strict';

const fs = require('fs');
const { once } = require('node:events');
Expand Down
1 change: 0 additions & 1 deletion test/ci_compression.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

/* global describe it */
'use strict';

const fs = require('fs');
const { once } = require('node:events');
Expand Down
1 change: 0 additions & 1 deletion test/ci_concurrent_backups.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

/* global describe it */
'use strict';

const fs = require('fs');
const { once } = require('node:events');
Expand Down
1 change: 0 additions & 1 deletion test/ci_e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion test/ci_encryption.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

/* global describe it */
'use strict';

const u = require('./citestutils.js');

Expand Down
Loading

0 comments on commit 90eb0d6

Please sign in to comment.