Skip to content

Commit 2471baa

Browse files
authored
Merge pull request #39 from onebeyond/dependencies-update
chore(deps)!: bump mongodb from 3.5.7 to 6.17.0
2 parents 4381f51 + 7ef4a03 commit 2471baa

File tree

4 files changed

+2895
-3839
lines changed

4 files changed

+2895
-3839
lines changed

.github/workflows/publish_in_npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
node-version: [14.x]
11+
node-version: [20.x]
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Build on Node.js ${{ matrix.node-version }}

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ module.exports = (options) => {
2424

2525
const mongoOptions = { ...config.options };
2626

27-
if( config.showConnectionString ){
27+
if (config.showConnectionString) {
2828
logger.info(`Connecting to ${config.url}`);
29-
}else{
30-
logger.info(`Connecting to server <hidden connection url>`);
29+
} else {
30+
logger.info('Connecting to server <hidden connection url>');
3131
}
3232

3333
try {
34-
client = await MongoClientInstance.connect(config.url, mongoOptions );
34+
client = await MongoClientInstance.connect(config.url, mongoOptions);
3535

3636
return client;
3737
} catch (error) {
@@ -48,7 +48,7 @@ module.exports = (options) => {
4848
if (config.showConnectionString) {
4949
logger.info(`Disconnecting from ${config.url}`);
5050
} else {
51-
logger.info(`Disconnecting from server <hidden connection url>`);
51+
logger.info('Disconnecting from server <hidden connection url>');
5252
}
5353
await client.close();
5454
};

0 commit comments

Comments
 (0)