@mongosh/service-provider-core 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/connect-info.d.ts
CHANGED
package/lib/connect-info.js
CHANGED
|
@@ -8,7 +8,7 @@ function getConnectInfo(uri, mongoshVersion, buildInfo, cmdLineOpts, atlasVersio
|
|
|
8
8
|
var _a;
|
|
9
9
|
buildInfo !== null && buildInfo !== void 0 ? buildInfo : (buildInfo = {});
|
|
10
10
|
const { isGenuine: is_genuine, serverName: non_genuine_server_name } = mongodb_build_info_1.default.getGenuineMongoDB(buildInfo, cmdLineOpts);
|
|
11
|
-
const { isDataLake:
|
|
11
|
+
const { isDataLake: is_data_federation, dlVersion: dl_version } = mongodb_build_info_1.default.getDataLake(buildInfo);
|
|
12
12
|
const auth_type = topology.s.credentials
|
|
13
13
|
? topology.s.credentials.mechanism : null;
|
|
14
14
|
const { serverOs: server_os, serverArch: server_arch } = mongodb_build_info_1.default.getBuildEnv(buildInfo);
|
|
@@ -24,7 +24,7 @@ function getConnectInfo(uri, mongoshVersion, buildInfo, cmdLineOpts, atlasVersio
|
|
|
24
24
|
server_arch,
|
|
25
25
|
is_enterprise: mongodb_build_info_1.default.isEnterprise(buildInfo),
|
|
26
26
|
auth_type,
|
|
27
|
-
|
|
27
|
+
is_data_federation,
|
|
28
28
|
dl_version,
|
|
29
29
|
atlas_version: (_a = atlasVersion === null || atlasVersion === void 0 ? void 0 : atlasVersion.atlasVersion) !== null && _a !== void 0 ? _a : null,
|
|
30
30
|
is_genuine,
|
package/lib/connect-info.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-info.js","sourceRoot":"","sources":["../src/connect-info.ts"],"names":[],"mappings":";;;;;AAGA,4EAA8C;AAqB9C,SAAwB,cAAc,CAAC,GAAW,EAAE,cAAsB,EAAE,SAAc,EAAE,WAAgB,EAAE,YAAiB,EAAE,QAAa;;IAC5I,SAA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AAc,EAAE,SAAS,CAAC,OAAO;QACjC,YAAY,EAAE,OAAO,CAAC,OAAO;QAC7B,eAAe,EAAE,cAAc;QAC/B,SAAS;QACT,GAAG;QACH,WAAW;QACX,aAAa,EAAE,4BAAY,CAAC,YAAY,CAAC,SAAS,CAAC;QACnD,SAAS;QACT,kBAAkB;QAClB,UAAU;QACV,aAAa,EAAE,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,YAAY,mCAAI,IAAI;QACjD,UAAU;QACV,uBAAuB;KACxB,CAAC;AACJ,CAAC;AAjCD,iCAiCC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongosh/service-provider-core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "MongoDB Shell Core Service Provider Package",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@mongosh/errors": "1.5.
|
|
40
|
+
"@mongosh/errors": "1.5.2",
|
|
41
41
|
"bson": "^4.6.5",
|
|
42
|
-
"mongodb": "^4.8.
|
|
42
|
+
"mongodb": "^4.8.1",
|
|
43
43
|
"mongodb-build-info": "^1.2.0",
|
|
44
|
-
"mongodb-client-encryption": "^2.2.0-alpha.
|
|
44
|
+
"mongodb-client-encryption": "^2.2.0-alpha.5"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
|
-
"mongodb-client-encryption": "^2.2.0-alpha.
|
|
47
|
+
"mongodb-client-encryption": "^2.2.0-alpha.5"
|
|
48
48
|
},
|
|
49
49
|
"dependency-check": {
|
|
50
50
|
"entries": [
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"encoding"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "b5c5a3c233495a6e70b449edc61cb8bf17c12ccc"
|
|
61
61
|
}
|
package/src/connect-info.spec.ts
CHANGED
|
@@ -87,7 +87,7 @@ describe('getConnectInfo', function() {
|
|
|
87
87
|
mongosh_version: '0.0.6',
|
|
88
88
|
is_enterprise: true,
|
|
89
89
|
auth_type: 'LDAP',
|
|
90
|
-
|
|
90
|
+
is_data_federation: false,
|
|
91
91
|
dl_version: null,
|
|
92
92
|
atlas_version: '20210330.0.0.1617063608',
|
|
93
93
|
is_genuine: true,
|
|
@@ -115,7 +115,7 @@ describe('getConnectInfo', function() {
|
|
|
115
115
|
mongosh_version: '0.0.6',
|
|
116
116
|
is_enterprise: true,
|
|
117
117
|
auth_type: null,
|
|
118
|
-
|
|
118
|
+
is_data_federation: false,
|
|
119
119
|
dl_version: null,
|
|
120
120
|
atlas_version: '20210330.0.0.1617063608',
|
|
121
121
|
is_genuine: true,
|
|
@@ -143,7 +143,7 @@ describe('getConnectInfo', function() {
|
|
|
143
143
|
mongosh_version: '0.0.6',
|
|
144
144
|
is_enterprise: true,
|
|
145
145
|
auth_type: 'LDAP',
|
|
146
|
-
|
|
146
|
+
is_data_federation: false,
|
|
147
147
|
dl_version: null,
|
|
148
148
|
atlas_version: null,
|
|
149
149
|
is_genuine: true,
|
|
@@ -171,7 +171,7 @@ describe('getConnectInfo', function() {
|
|
|
171
171
|
mongosh_version: '0.0.6',
|
|
172
172
|
is_enterprise: false,
|
|
173
173
|
auth_type: 'LDAP',
|
|
174
|
-
|
|
174
|
+
is_data_federation: false,
|
|
175
175
|
dl_version: null,
|
|
176
176
|
atlas_version: null,
|
|
177
177
|
is_genuine: true,
|
package/src/connect-info.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface ConnectInfo {
|
|
|
13
13
|
server_arch?: string;
|
|
14
14
|
is_enterprise: boolean;
|
|
15
15
|
auth_type?: string;
|
|
16
|
-
|
|
16
|
+
is_data_federation: boolean;
|
|
17
17
|
dl_version?: string;
|
|
18
18
|
atlas_version?: string;
|
|
19
19
|
is_genuine: boolean;
|
|
@@ -26,7 +26,8 @@ export default function getConnectInfo(uri: string, mongoshVersion: string, buil
|
|
|
26
26
|
buildInfo ??= {}; // We're currently not getting buildInfo with --apiStrict.
|
|
27
27
|
const { isGenuine: is_genuine, serverName: non_genuine_server_name } =
|
|
28
28
|
getBuildInfo.getGenuineMongoDB(buildInfo, cmdLineOpts);
|
|
29
|
-
|
|
29
|
+
// Atlas Data Lake has been renamed to Atlas Data Federation
|
|
30
|
+
const { isDataLake: is_data_federation, dlVersion: dl_version }
|
|
30
31
|
= getBuildInfo.getDataLake(buildInfo);
|
|
31
32
|
|
|
32
33
|
// get this information from topology rather than cmdLineOpts, since not all
|
|
@@ -48,7 +49,7 @@ export default function getConnectInfo(uri: string, mongoshVersion: string, buil
|
|
|
48
49
|
server_arch,
|
|
49
50
|
is_enterprise: getBuildInfo.isEnterprise(buildInfo),
|
|
50
51
|
auth_type,
|
|
51
|
-
|
|
52
|
+
is_data_federation,
|
|
52
53
|
dl_version,
|
|
53
54
|
atlas_version: atlasVersion?.atlasVersion ?? null,
|
|
54
55
|
is_genuine,
|