@mongodb-js/mongodb-constants
Advanced tools
Comparing version 0.6.9 to 0.6.10
@@ -44,4 +44,4 @@ "use strict"; | ||
function createConstantFilter({ meta: filterMeta, serverVersion = DEFAULT_SERVER_VERSION, stage: filterStage = {}, } = {}) { | ||
var _a, _b, _c; | ||
const currentServerVersion = (_c = (_b = (_a = /^(?<version>\d+?\.\d+?\.\d+?)/.exec(serverVersion)) === null || _a === void 0 ? void 0 : _a.groups) === null || _b === void 0 ? void 0 : _b.version) !== null && _c !== void 0 ? _c : DEFAULT_SERVER_VERSION; | ||
const currentServerVersion = /^(?<version>\d+?\.\d+?\.\d+?)/.exec(serverVersion)?.groups?.version ?? | ||
DEFAULT_SERVER_VERSION; | ||
return ({ version: minServerVersion, meta, env, namespace, apiVersions }) => { | ||
@@ -64,3 +64,3 @@ return ((0, semver_1.gte)(currentServerVersion, minServerVersion) && | ||
} | ||
catch (_a) { | ||
catch { | ||
return false; | ||
@@ -67,0 +67,0 @@ } |
@@ -16,3 +16,3 @@ { | ||
"homepage": "https://github.com/mongodb-js/devtools-shared", | ||
"version": "0.6.9", | ||
"version": "0.6.10", | ||
"repository": { | ||
@@ -50,6 +50,6 @@ "type": "git", | ||
"devDependencies": { | ||
"@mongodb-js/eslint-config-devtools": "0.9.9", | ||
"@mongodb-js/mocha-config-compass": "^0.10.0", | ||
"@mongodb-js/eslint-config-devtools": "0.9.10", | ||
"@mongodb-js/mocha-config-devtools": "^1.0.1", | ||
"@mongodb-js/prettier-config-devtools": "^1.0.1", | ||
"@mongodb-js/tsconfig-compass": "^0.6.0", | ||
"@mongodb-js/tsconfig-devtools": "^1.0.1", | ||
"@types/chai": "^4.2.21", | ||
@@ -73,3 +73,3 @@ "@types/mocha": "^9.0.0", | ||
}, | ||
"gitHead": "f68234866e6fb0851dbc52bcb93dc5433ae3faf6" | ||
"gitHead": "9c41f233d529e7b5cac1849a0a07ca2076fcdbb0" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
339087