Skip to content

Commit

Permalink
update dependencies and reformat codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Apr 18, 2024
1 parent cb8eb2a commit cb3be40
Show file tree
Hide file tree
Showing 10 changed files with 958 additions and 1,098 deletions.
1,762 changes: 811 additions & 951 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@microsoft/api-extractor-model": "^7.28.2",
"@octokit/core": "^4.2.4",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"chai": "^4.3.10",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^4.2.1",
"mocha": "^10.2.0",
"@microsoft/api-extractor-model": "^7.28.14",
"@octokit/core": "^6.1.2",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"chai": "^4.4.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"mocha": "^10.4.0",
"nyc": "^15.1.0",
"prettier": "^2.8.8",
"sinon": "^15.2.0",
"prettier": "^3.2.5",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
"source-map-support": "^0.5.21",
"standard-version": "^9.5.0",
"ts-node": "^10.9.1",
"ts-node": "^10.9.2",
"typescript": "^5.0.4"
}
}
36 changes: 18 additions & 18 deletions src/legacy_wrappers/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module.exports.makeLegacyAdmin = function (baseClass) {
typeof callback === 'function'
? callback
: typeof options === 'function'
? options
: undefined;
? options
: undefined;
options = typeof options !== 'function' ? options : undefined;
return maybeCallback(super.buildInfo(options), callback);
}
Expand All @@ -23,8 +23,8 @@ module.exports.makeLegacyAdmin = function (baseClass) {
typeof callback === 'function'
? callback
: typeof options === 'function'
? options
: undefined;
? options
: undefined;
options = typeof options !== 'function' ? options : undefined;
return maybeCallback(super.command(command, options), callback);
}
Expand All @@ -34,8 +34,8 @@ module.exports.makeLegacyAdmin = function (baseClass) {
typeof callback === 'function'
? callback
: typeof options === 'function'
? options
: undefined;
? options
: undefined;
options = typeof options !== 'function' ? options : undefined;
return maybeCallback(super.listDatabases(options), callback);
}
Expand All @@ -45,8 +45,8 @@ module.exports.makeLegacyAdmin = function (baseClass) {
typeof callback === 'function'
? callback
: typeof options === 'function'
? options
: undefined;
? options
: undefined;
options = typeof options !== 'function' ? options : undefined;
return maybeCallback(super.ping(options), callback);
}
Expand All @@ -56,8 +56,8 @@ module.exports.makeLegacyAdmin = function (baseClass) {
typeof callback === 'function'
? callback
: typeof options === 'function'
? options
: undefined;
? options
: undefined;
options = typeof options !== 'function' ? options : undefined;
return maybeCallback(super.removeUser(username, options), callback);
}
Expand All @@ -67,8 +67,8 @@ module.exports.makeLegacyAdmin = function (baseClass) {
typeof callback === 'function'
? callback
: typeof options === 'function'
? options
: undefined;
? options
: undefined;
options = typeof options !== 'function' ? options : undefined;
return maybeCallback(super.replSetGetStatus(options), callback);
}
Expand All @@ -78,8 +78,8 @@ module.exports.makeLegacyAdmin = function (baseClass) {
typeof callback === 'function'
? callback
: typeof options === 'function'
? options
: undefined;
? options
: undefined;
options = typeof options !== 'function' ? options : undefined;
return maybeCallback(super.serverInfo(options), callback);
}
Expand All @@ -89,8 +89,8 @@ module.exports.makeLegacyAdmin = function (baseClass) {
typeof callback === 'function'
? callback
: typeof options === 'function'
? options
: undefined;
? options
: undefined;
options = typeof options !== 'function' ? options : undefined;
return maybeCallback(super.serverStatus(options), callback);
}
Expand All @@ -100,8 +100,8 @@ module.exports.makeLegacyAdmin = function (baseClass) {
typeof callback === 'function'
? callback
: typeof options === 'function'
? options
: undefined;
? options
: undefined;
options = typeof options !== 'function' ? options : undefined;
return maybeCallback(super.validateCollection(name, options), callback);
}
Expand Down
8 changes: 4 additions & 4 deletions src/legacy_wrappers/bulk.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module.exports.makeLegacyOrderedBulkOperation = function (baseClass) {
typeof callback === 'function'
? callback
: typeof options === 'function'
? options
: undefined;
? options
: undefined;
options = typeof options !== 'function' ? options : undefined;
return maybeCallback(super.execute(options), callback);
}
Expand All @@ -36,8 +36,8 @@ module.exports.makeLegacyUnorderedBulkOperation = function (baseClass) {
typeof callback === 'function'
? callback
: typeof options === 'function'
? options
: undefined;
? options
: undefined;
options = typeof options !== 'function' ? options : undefined;
return maybeCallback(super.execute(options), callback);
}
Expand Down
Loading

0 comments on commit cb3be40

Please sign in to comment.