@mongodb-js/compass-shell 2.21.0 → 2.22.0
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/1.js +1901 -2647
- package/lib/2.js +22 -12
- package/lib/index.js +38 -22
- package/package.json +13 -13
package/lib/2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(window["webpackJsonpCompassShellPlugin"] = window["webpackJsonpCompassShellPlugin"] || []).push([[2],{
|
|
2
2
|
|
|
3
|
-
/***/
|
|
3
|
+
/***/ 466:
|
|
4
4
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -21,8 +21,8 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
21
21
|
// EXTERNAL MODULE: ./node_modules/react-redux/es/index.js + 23 modules
|
|
22
22
|
var es = __webpack_require__(159);
|
|
23
23
|
|
|
24
|
-
// EXTERNAL MODULE: /Users/
|
|
25
|
-
var mongosh_browser_repl = __webpack_require__(
|
|
24
|
+
// EXTERNAL MODULE: /Users/rhys/Documents/mongodb/compass/node_modules/@mongosh/browser-repl/lib/mongosh-browser-repl.js
|
|
25
|
+
var mongosh_browser_repl = __webpack_require__(392);
|
|
26
26
|
|
|
27
27
|
// EXTERNAL MODULE: external "@mongodb-js/compass-components"
|
|
28
28
|
var compass_components_ = __webpack_require__(374);
|
|
@@ -110,9 +110,6 @@ const mongoshVersion = `v${package_0.dependencies['@mongosh/browser-repl'].repla
|
|
|
110
110
|
const modalContentWrapperStyles = Object(compass_components_["css"])({
|
|
111
111
|
padding: 'initial'
|
|
112
112
|
});
|
|
113
|
-
const bannerStyles = Object(compass_components_["css"])({
|
|
114
|
-
marginTop: compass_components_["spacing"][4]
|
|
115
|
-
});
|
|
116
113
|
const shortcutsTableContainerStyles = Object(compass_components_["css"])({
|
|
117
114
|
marginTop: compass_components_["spacing"][2],
|
|
118
115
|
maxHeight: '50vh',
|
|
@@ -144,18 +141,15 @@ function InfoModal({
|
|
|
144
141
|
contentClassName: modalContentWrapperStyles
|
|
145
142
|
}, /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
146
143
|
className: modalContentStyles
|
|
147
|
-
}, /*#__PURE__*/external_react_default.a.createElement(compass_components_["
|
|
148
|
-
className: bannerStyles
|
|
149
|
-
}, "For more information please visit the\xA0", /*#__PURE__*/external_react_default.a.createElement(compass_components_["Link"], {
|
|
144
|
+
}, /*#__PURE__*/external_react_default.a.createElement(compass_components_["ModalTitle"], null, "mongosh ", mongoshVersion), /*#__PURE__*/external_react_default.a.createElement(compass_components_["Banner"], null, "For more information please visit the\xA0", /*#__PURE__*/external_react_default.a.createElement(compass_components_["Link"], {
|
|
150
145
|
id: "mongosh-info-link",
|
|
151
|
-
rel: "noreopener",
|
|
152
146
|
href: "https://docs.mongodb.com/compass/beta/embedded-shell/",
|
|
153
147
|
target: "_blank"
|
|
154
148
|
}, "MongoDB Shell Documentation"), "."), /*#__PURE__*/external_react_default.a.createElement(compass_components_["Subtitle"], {
|
|
155
149
|
className: shortcutsTitleStyles
|
|
156
150
|
}, "Keyboard Shortcuts"), /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
157
151
|
className: shortcutsTableContainerStyles
|
|
158
|
-
}, /*#__PURE__*/external_react_default.a.createElement(KeyboardShortcutsTable, null))), /*#__PURE__*/external_react_default.a.createElement(compass_components_["
|
|
152
|
+
}, /*#__PURE__*/external_react_default.a.createElement(KeyboardShortcutsTable, null))), /*#__PURE__*/external_react_default.a.createElement(compass_components_["ModalFooter"], null, /*#__PURE__*/external_react_default.a.createElement(compass_components_["Button"], {
|
|
159
153
|
onClick: hideInfoModal
|
|
160
154
|
}, "Close")));
|
|
161
155
|
}
|
|
@@ -185,11 +179,26 @@ const shellHeaderLeftStyles = Object(compass_components_["css"])({
|
|
|
185
179
|
display: 'flex',
|
|
186
180
|
alignItems: 'center'
|
|
187
181
|
});
|
|
182
|
+
const shellHeaderDefaultColor = compass_components_["uiColors"].gray.light1;
|
|
183
|
+
const shellHeaderFlashColorDark = compass_components_["uiColors"].gray.base;
|
|
184
|
+
const shellHeaderFlashColorLight = compass_components_["uiColors"].gray.light2;
|
|
185
|
+
const shellLoaderFlash = compass_components_["keyframes"]`
|
|
186
|
+
0% { color: ${shellHeaderDefaultColor}; }
|
|
187
|
+
10% { color: ${shellHeaderFlashColorDark}; }
|
|
188
|
+
20% { color: ${shellHeaderFlashColorLight}; }
|
|
189
|
+
30% { color: ${shellHeaderFlashColorDark}; }
|
|
190
|
+
40% { color: ${shellHeaderFlashColorLight}; }
|
|
191
|
+
50% { color: ${shellHeaderFlashColorDark}; }
|
|
192
|
+
60% { color: ${shellHeaderFlashColorLight}; }
|
|
193
|
+
70% { color: ${shellHeaderFlashColorDark}; }
|
|
194
|
+
80% { color: ${shellHeaderFlashColorLight}; }
|
|
195
|
+
100% { color: ${shellHeaderDefaultColor}; }
|
|
196
|
+
`;
|
|
188
197
|
const shellHeaderToggleStyles = Object(compass_components_["css"])({
|
|
189
198
|
background: 'none',
|
|
190
199
|
border: 'none',
|
|
191
200
|
cursor: 'pointer',
|
|
192
|
-
color:
|
|
201
|
+
color: shellHeaderDefaultColor,
|
|
193
202
|
padding: `0px ${compass_components_["spacing"][2]}px`,
|
|
194
203
|
height: '100%',
|
|
195
204
|
display: 'flex',
|
|
@@ -203,6 +212,7 @@ const shellHeaderToggleStyles = Object(compass_components_["css"])({
|
|
|
203
212
|
transition: 'all 200ms',
|
|
204
213
|
userSelect: 'none',
|
|
205
214
|
textTransform: 'uppercase',
|
|
215
|
+
animation: `${shellLoaderFlash} 2s linear`,
|
|
206
216
|
'&:hover': {
|
|
207
217
|
color: compass_components_["uiColors"].gray.light3
|
|
208
218
|
}
|
package/lib/index.js
CHANGED
|
@@ -752,6 +752,7 @@ exports.MongoMissingDependencyError = MongoMissingDependencyError;
|
|
|
752
752
|
*/
|
|
753
753
|
class MongoSystemError extends MongoError {
|
|
754
754
|
constructor(message, reason) {
|
|
755
|
+
var _a;
|
|
755
756
|
if (reason && reason.error) {
|
|
756
757
|
super(reason.error.message || reason.error);
|
|
757
758
|
}
|
|
@@ -761,6 +762,7 @@ class MongoSystemError extends MongoError {
|
|
|
761
762
|
if (reason) {
|
|
762
763
|
this.reason = reason;
|
|
763
764
|
}
|
|
765
|
+
this.code = (_a = reason.error) === null || _a === void 0 ? void 0 : _a.code;
|
|
764
766
|
}
|
|
765
767
|
get name() {
|
|
766
768
|
return 'MongoSystemError';
|
|
@@ -3754,8 +3756,17 @@ function next(cursor, blocking, callback) {
|
|
|
3754
3756
|
}
|
|
3755
3757
|
if (cursorId == null) {
|
|
3756
3758
|
// All cursors must operate within a session, one must be made implicitly if not explicitly provided
|
|
3757
|
-
if (cursor[kSession] == null
|
|
3758
|
-
|
|
3759
|
+
if (cursor[kSession] == null) {
|
|
3760
|
+
if (cursor[kTopology].shouldCheckForSessionSupport()) {
|
|
3761
|
+
return cursor[kTopology].selectServer(read_preference_1.ReadPreference.primaryPreferred, err => {
|
|
3762
|
+
if (err)
|
|
3763
|
+
return callback(err);
|
|
3764
|
+
return next(cursor, blocking, callback);
|
|
3765
|
+
});
|
|
3766
|
+
}
|
|
3767
|
+
else if (cursor[kTopology].hasSessionSupport()) {
|
|
3768
|
+
cursor[kSession] = cursor[kTopology].startSession({ owner: cursor, explicit: false });
|
|
3769
|
+
}
|
|
3759
3770
|
}
|
|
3760
3771
|
cursor._initialize(cursor[kSession], (err, state) => {
|
|
3761
3772
|
if (state) {
|
|
@@ -8070,7 +8081,7 @@ module.exports.globalAppRegistryEmit = globalAppRegistryEmit;
|
|
|
8070
8081
|
/* 55 */
|
|
8071
8082
|
/***/ (function(module) {
|
|
8072
8083
|
|
|
8073
|
-
module.exports = JSON.parse("{\"name\":\"@mongodb-js/compass-shell\",\"productName\":\"Compass Shell plugin\",\"version\":\"2.
|
|
8084
|
+
module.exports = JSON.parse("{\"name\":\"@mongodb-js/compass-shell\",\"productName\":\"Compass Shell plugin\",\"version\":\"2.22.0\",\"apiVersion\":\"3.0.0\",\"description\":\"Compass Shell Plugin\",\"main\":\"lib/index.js\",\"exports\":{\"webpack\":\"./src/index.js\",\"require\":\"./lib/index.js\"},\"scripts\":{\"prepublishOnly\":\"npm run compile\",\"clean\":\"rimraf lib\",\"precompile\":\"npm run clean\",\"compile\":\"cross-env NODE_ENV=production webpack --config ./config/webpack.prod.config.js\",\"compile:watch\":\"cross-env NODE_ENV=production webpack --config ./config/webpack.prod.config.js --watch\",\"start\":\"cross-env NODE_ENV=development webpack-dev-server --config ./config/webpack.dev.config.js\",\"start:watch\":\"npm run clean && webpack --config ./config/webpack.watch.config.js\",\"test\":\"cross-env NODE_ENV=test mocha-webpack \\\"./src/**/*.spec.js\\\"\",\"test-ci\":\"npm run test\",\"test-ci-electron\":\"echo \\\"TODO(COMPASS-5555): These tests are broken and disabled for now\\\"\",\"test-watch\":\"cross-env NODE_ENV=test mocha-webpack \\\"./src/**/*.spec.js\\\" --watch\",\"test-electron\":\"xvfb-maybe cross-env NODE_ENV=test karma start\",\"test-cov\":\"echo\",\"check\":\"npm run lint && npm run depcheck\",\"lint\":\"eslint \\\"./src/**/*.{js,jsx}\\\" \\\"./test/**/*.js\\\" \\\"./electron/**/*.js\\\" \\\"./config/**/*.{js,jsx}\\\"\",\"depcheck\":\"depcheck\",\"bootstrap\":\"npm run compile\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/mongodb-js/compass.git\"},\"config\":{\"unsafe-perm\":true},\"engines\":{\"node\":\">=14.17.5\"},\"license\":\"SSPL\",\"publishConfig\":{\"access\":\"public\"},\"dependencies\":{\"@leafygreen-ui/code\":\"^9.4.0\",\"@mongodb-js/compass-logging\":\"^0.10.0\",\"@mongodb-js/mongodb-redux-common\":\"^1.10.0\",\"@mongosh/browser-repl\":\"^1.2.3\",\"@mongosh/logging\":\"^1.2.3\",\"@mongosh/node-runtime-worker-thread\":\"^1.2.3\",\"@mongosh/service-provider-core\":\"^1.2.3\"},\"peerDependencies\":{\"@mongodb-js/compass-components\":\"^0.13.0\",\"ace-builds\":\"^1.4.3\",\"hadron-ipc\":\"^2.9.0\",\"hadron-react-components\":\"^5.13.0\",\"prop-types\":\"^15.7.2\",\"react\":\"^16.14.0\",\"react-ace\":\"^9.5.0\",\"react-dom\":\"^16.14.0\"},\"devDependencies\":{\"@babel/cli\":\"^7.14.3\",\"@babel/core\":\"^7.14.3\",\"@babel/plugin-proposal-decorators\":\"^7.14.2\",\"@babel/plugin-syntax-dynamic-import\":\"^7.8.3\",\"@babel/preset-env\":\"^7.14.2\",\"@babel/preset-react\":\"^7.13.13\",\"@babel/register\":\"^7.13.16\",\"@hot-loader/react-dom\":\"^16.9.0\",\"@mongodb-js/compass-components\":\"^0.13.0\",\"ace-builds\":\"^1.4.3\",\"autoprefixer\":\"^9.4.6\",\"babel-loader\":\"^8.2.2\",\"chai\":\"^4.2.0\",\"chai-enzyme\":\"1.0.0-beta.0\",\"core-js\":\"^3.12.1\",\"cross-env\":\"^5.0.1\",\"depcheck\":\"^1.4.1\",\"electron\":\"^13.5.1\",\"electron-devtools-installer\":\"^3.2.0\",\"enzyme\":\"^3.11.0\",\"enzyme-adapter-react-16\":\"^1.15.2\",\"eslint\":\"^7.25.0\",\"eslint-config-mongodb-js\":\"^5.0.3\",\"eslint-plugin-react\":\"^7.24.0\",\"file-loader\":\"^5.1.0\",\"font-awesome\":\"^4.7.0\",\"hadron-app\":\"^4.21.0\",\"hadron-app-registry\":\"^8.10.0\",\"html-webpack-plugin\":\"^3.2.0\",\"ignore-loader\":\"^0.1.2\",\"istanbul-instrumenter-loader\":\"^3.0.1\",\"jsdom\":\"^16.7.0\",\"jsdom-global\":\"^3.0.2\",\"karma\":\"^6.3.4\",\"karma-chai\":\"^0.1.0\",\"karma-chai-sinon\":\"^0.1.5\",\"karma-electron\":\"^7.0.0\",\"karma-mocha\":\"^1.3.0\",\"karma-mocha-reporter\":\"^2.2.5\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"mocha\":\"^5.2.0\",\"mocha-webpack\":\"^2.0.0-beta.0\",\"mongodb\":\"^4.4.0\",\"mongodb-reflux-store\":\"^0.0.1\",\"node-loader\":\"^0.6.0\",\"nyc\":\"^13.1.0\",\"peer-deps-externals-webpack-plugin\":\"^1.0.4\",\"prop-types\":\"^15.7.2\",\"react\":\"^16.14.0\",\"react-ace\":\"^9.5.0\",\"react-dom\":\"^16.14.0\",\"react-hot-loader\":\"^4.13.0\",\"react-redux\":\"^7.1.1\",\"react-tooltip\":\"^3.11.1\",\"redux\":\"^4.1.2\",\"reflux\":\"^0.4.1\",\"reflux-state-mixin\":\"github:mongodb-js/reflux-state-mixin\",\"resolve\":\"^1.15.1\",\"rimraf\":\"^2.6.1\",\"semver\":\"^5.4.1\",\"shebang-loader\":\"^0.0.1\",\"sinon\":\"^7.2.5\",\"sinon-chai\":\"^3.3.0\",\"url-loader\":\"^3.0.0\",\"webpack\":\"^4.46.0\",\"webpack-bundle-analyzer\":\"^3.0.3\",\"webpack-cli\":\"^3.3.12\",\"webpack-dev-server\":\"^3.11.2\",\"webpack-merge\":\"^4.2.2\",\"webpack-node-externals\":\"^3.0.0\"},\"homepage\":\"https://github.com/mongodb-js/compass\",\"bugs\":{\"url\":\"https://jira.mongodb.org/projects/COMPASS/issues\",\"email\":\"compass@mongodb.com\"},\"gitHead\":\"a1283df32eb52881cc00eb73f8d435f772cdbfde\"}");
|
|
8074
8085
|
|
|
8075
8086
|
/***/ }),
|
|
8076
8087
|
/* 56 */
|
|
@@ -44845,8 +44856,9 @@ module.exports = {
|
|
|
44845
44856
|
"use strict";
|
|
44846
44857
|
|
|
44847
44858
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44848
|
-
exports.
|
|
44849
|
-
exports.
|
|
44859
|
+
exports.Collection = exports.CancellationToken = exports.AggregationCursor = exports.Admin = exports.AbstractCursor = exports.MongoWriteConcernError = exports.MongoTransactionError = exports.MongoTopologyClosedError = exports.MongoTailableCursorError = exports.MongoSystemError = exports.MongoServerSelectionError = exports.MongoServerError = exports.MongoServerClosedError = exports.MongoRuntimeError = exports.MongoParseError = exports.MongoNotConnectedError = exports.MongoNetworkTimeoutError = exports.MongoNetworkError = exports.MongoMissingDependencyError = exports.MongoMissingCredentialsError = exports.MongoKerberosError = exports.MongoInvalidArgumentError = exports.MongoGridFSStreamError = exports.MongoGridFSChunkError = exports.MongoExpiredSessionError = exports.MongoError = exports.MongoDriverError = exports.MongoDecompressionError = exports.MongoCursorInUseError = exports.MongoCursorExhaustedError = exports.MongoCompatibilityError = exports.MongoChangeStreamError = exports.MongoBatchReExecutionError = exports.MongoAPIError = exports.MongoBulkWriteError = exports.ObjectID = exports.Timestamp = exports.ObjectId = exports.MinKey = exports.MaxKey = exports.Map = exports.Long = exports.Int32 = exports.Double = exports.Decimal128 = exports.DBRef = exports.Code = exports.BSONSymbol = exports.BSONRegExp = exports.Binary = void 0;
|
|
44860
|
+
exports.TopologyOpeningEvent = exports.TopologyDescriptionChangedEvent = exports.TopologyClosedEvent = exports.ServerOpeningEvent = exports.ServerHeartbeatSucceededEvent = exports.ServerHeartbeatStartedEvent = exports.ServerHeartbeatFailedEvent = exports.ServerDescriptionChangedEvent = exports.ServerClosedEvent = exports.ConnectionReadyEvent = exports.ConnectionPoolMonitoringEvent = exports.ConnectionPoolCreatedEvent = exports.ConnectionPoolClosedEvent = exports.ConnectionPoolClearedEvent = exports.ConnectionCreatedEvent = exports.ConnectionClosedEvent = exports.ConnectionCheckOutStartedEvent = exports.ConnectionCheckOutFailedEvent = exports.ConnectionCheckedOutEvent = exports.ConnectionCheckedInEvent = exports.CommandSucceededEvent = exports.CommandStartedEvent = exports.CommandFailedEvent = exports.WriteConcern = exports.ReadPreference = exports.ReadConcern = exports.TopologyType = exports.ServerType = exports.ReadPreferenceMode = exports.ReadConcernLevel = exports.ProfilingLevel = exports.ReturnDocument = exports.BSONType = exports.ServerApiVersion = exports.LoggerLevel = exports.ExplainVerbosity = exports.AutoEncryptionLoggerLevel = exports.CURSOR_FLAGS = exports.Compressor = exports.AuthMechanism = exports.GSSAPICanonicalizationValue = exports.BatchType = exports.Promise = exports.MongoClient = exports.Logger = exports.ListIndexesCursor = exports.ListCollectionsCursor = exports.GridFSBucket = exports.FindCursor = exports.Db = void 0;
|
|
44861
|
+
exports.SrvPollingEvent = void 0;
|
|
44850
44862
|
const admin_1 = __webpack_require__(126);
|
|
44851
44863
|
Object.defineProperty(exports, "Admin", { enumerable: true, get: function () { return admin_1.Admin; } });
|
|
44852
44864
|
const bson_1 = __webpack_require__(4);
|
|
@@ -44922,6 +44934,7 @@ Object.defineProperty(exports, "MongoServerClosedError", { enumerable: true, get
|
|
|
44922
44934
|
Object.defineProperty(exports, "MongoServerError", { enumerable: true, get: function () { return error_1.MongoServerError; } });
|
|
44923
44935
|
Object.defineProperty(exports, "MongoServerSelectionError", { enumerable: true, get: function () { return error_1.MongoServerSelectionError; } });
|
|
44924
44936
|
Object.defineProperty(exports, "MongoSystemError", { enumerable: true, get: function () { return error_1.MongoSystemError; } });
|
|
44937
|
+
Object.defineProperty(exports, "MongoTailableCursorError", { enumerable: true, get: function () { return error_1.MongoTailableCursorError; } });
|
|
44925
44938
|
Object.defineProperty(exports, "MongoTopologyClosedError", { enumerable: true, get: function () { return error_1.MongoTopologyClosedError; } });
|
|
44926
44939
|
Object.defineProperty(exports, "MongoTransactionError", { enumerable: true, get: function () { return error_1.MongoTransactionError; } });
|
|
44927
44940
|
Object.defineProperty(exports, "MongoWriteConcernError", { enumerable: true, get: function () { return error_1.MongoWriteConcernError; } });
|
|
@@ -49505,13 +49518,13 @@ function Provider(_ref) {
|
|
|
49505
49518
|
if (false) {}
|
|
49506
49519
|
|
|
49507
49520
|
/* harmony default export */ var components_Provider = (Provider);
|
|
49508
|
-
// EXTERNAL MODULE: /Users/
|
|
49521
|
+
// EXTERNAL MODULE: /Users/rhys/Documents/mongodb/compass/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
49509
49522
|
var esm_extends = __webpack_require__(17);
|
|
49510
49523
|
|
|
49511
|
-
// EXTERNAL MODULE: /Users/
|
|
49524
|
+
// EXTERNAL MODULE: /Users/rhys/Documents/mongodb/compass/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
49512
49525
|
var objectWithoutPropertiesLoose = __webpack_require__(24);
|
|
49513
49526
|
|
|
49514
|
-
// EXTERNAL MODULE: /Users/
|
|
49527
|
+
// EXTERNAL MODULE: /Users/rhys/Documents/mongodb/compass/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
49515
49528
|
var hoist_non_react_statics_cjs = __webpack_require__(56);
|
|
49516
49529
|
var hoist_non_react_statics_cjs_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics_cjs);
|
|
49517
49530
|
|
|
@@ -58868,7 +58881,7 @@ module.exports = __webpack_require__(65).gunzipSync(
|
|
|
58868
58881
|
/* 314 */
|
|
58869
58882
|
/***/ (function(module) {
|
|
58870
58883
|
|
|
58871
|
-
module.exports = JSON.parse("{\"name\":\"mongodb\",\"version\":\"4.4.
|
|
58884
|
+
module.exports = JSON.parse("{\"name\":\"mongodb\",\"version\":\"4.4.1\",\"description\":\"The official MongoDB driver for Node.js\",\"main\":\"lib/index.js\",\"files\":[\"lib\",\"src\",\"etc/prepare.js\",\"mongodb.d.ts\",\"mongodb.ts34.d.ts\"],\"types\":\"mongodb.d.ts\",\"typesVersions\":{\"<=4.0.2\":{\"mongodb.d.ts\":[\"mongodb.ts34.d.ts\"]}},\"repository\":{\"type\":\"git\",\"url\":\"git@github.com:mongodb/node-mongodb-native.git\"},\"keywords\":[\"mongodb\",\"driver\",\"official\"],\"author\":{\"name\":\"The MongoDB NodeJS Team\",\"email\":\"dbx-node@mongodb.com\"},\"dependencies\":{\"bson\":\"^4.6.1\",\"denque\":\"^2.0.1\",\"mongodb-connection-string-url\":\"^2.5.2\",\"socks\":\"^2.6.2\"},\"devDependencies\":{\"@iarna/toml\":\"^2.2.5\",\"@istanbuljs/nyc-config-typescript\":\"^1.0.2\",\"@microsoft/api-extractor\":\"^7.19.4\",\"@microsoft/tsdoc-config\":\"^0.15.2\",\"@types/chai\":\"^4.3.0\",\"@types/chai-subset\":\"^1.3.3\",\"@types/kerberos\":\"^1.1.1\",\"@types/mocha\":\"^9.1.0\",\"@types/node\":\"^17.0.21\",\"@types/saslprep\":\"^1.0.1\",\"@types/semver\":\"^7.3.9\",\"@types/sinon\":\"^10.0.11\",\"@types/whatwg-url\":\"^8.2.1\",\"@typescript-eslint/eslint-plugin\":\"^5.13.0\",\"@typescript-eslint/parser\":\"^5.13.0\",\"bluebird\":\"^3.7.2\",\"chai\":\"^4.3.6\",\"chai-subset\":\"^1.6.0\",\"chalk\":\"^4.1.2\",\"downlevel-dts\":\"^0.9.0\",\"eslint\":\"^8.10.0\",\"eslint-config-prettier\":\"^8.4.0\",\"eslint-plugin-import\":\"^2.25.4\",\"eslint-plugin-prettier\":\"^4.0.0\",\"eslint-plugin-simple-import-sort\":\"^7.0.0\",\"eslint-plugin-tsdoc\":\"^0.2.14\",\"js-yaml\":\"^4.1.0\",\"lodash.camelcase\":\"^4.3.0\",\"mocha\":\"^9.2.1\",\"mocha-sinon\":\"^2.1.2\",\"nyc\":\"^15.1.0\",\"prettier\":\"^2.5.1\",\"rimraf\":\"^3.0.2\",\"semver\":\"^7.3.5\",\"sinon\":\"^13.0.1\",\"sinon-chai\":\"^3.7.0\",\"source-map-support\":\"^0.5.21\",\"standard-version\":\"^9.3.2\",\"ts-node\":\"^10.6.0\",\"tsd\":\"^0.19.1\",\"typescript\":\"^4.6.2\",\"typescript-cached-transpile\":\"^0.0.6\",\"xml2js\":\"^0.4.23\",\"yargs\":\"^17.3.1\"},\"license\":\"Apache-2.0\",\"engines\":{\"node\":\">=12.9.0\"},\"bugs\":{\"url\":\"https://jira.mongodb.org/projects/NODE/issues/\"},\"homepage\":\"https://github.com/mongodb/node-mongodb-native\",\"optionalDependencies\":{\"saslprep\":\"^1.0.3\"},\"scripts\":{\"build:evergreen\":\"node .evergreen/generate_evergreen_tasks.js\",\"build:ts\":\"rimraf lib && node ./node_modules/typescript/bin/tsc\",\"build:dts\":\"npm run build:ts && api-extractor run && rimraf 'lib/**/*.d.ts*' && downlevel-dts mongodb.d.ts mongodb.ts34.d.ts\",\"build:docs\":\"./etc/docs/generate-docs.ts\",\"build:typedoc\":\"typedoc\",\"check:bench\":\"node test/benchmarks/driverBench\",\"check:coverage\":\"nyc npm run test:all\",\"check:integration-coverage\":\"nyc npm run check:test\",\"check:lint\":\"npm run build:dts && npm run check:dts && npm run check:eslint && npm run check:tsd\",\"check:eslint\":\"eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test\",\"check:tsd\":\"tsd --version && tsd\",\"check:dts\":\"node ./node_modules/typescript/bin/tsc --noEmit mongodb.d.ts && tsd\",\"check:test\":\"mocha --config test/mocha_mongodb.json test/integration\",\"check:unit\":\"mocha test/unit\",\"check:ts\":\"node ./node_modules/typescript/bin/tsc -v && node ./node_modules/typescript/bin/tsc --noEmit\",\"check:atlas\":\"mocha --config test/manual/mocharc.json test/manual/atlas_connectivity.test.js\",\"check:adl\":\"mocha --config test/mocha_mongodb.json test/manual/atlas-data-lake-testing\",\"check:aws\":\"mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_aws.test.js\",\"check:ocsp\":\"mocha --config test/manual/mocharc.json test/manual/ocsp_support.test.js\",\"check:kerberos\":\"mocha --config test/manual/mocharc.json test/manual/kerberos.test.js\",\"check:tls\":\"mocha --config test/manual/mocharc.json test/manual/tls_support.test.js\",\"check:ldap\":\"mocha --config test/manual/mocharc.json test/manual/ldap.test.js\",\"check:socks5\":\"mocha --config test/manual/mocharc.json test/manual/socks5.test.ts\",\"check:csfle\":\"mocha --config test/mocha_mongodb.json test/integration/client-side-encryption\",\"check:snappy\":\"mocha test/unit/assorted/snappy.test.js\",\"prepare\":\"node etc/prepare.js\",\"preview:docs\":\"python -m http.server --directory etc/docs/build\",\"release\":\"standard-version -i HISTORY.md\",\"test\":\"npm run check:lint && npm run test:all\",\"test:all\":\"npm run check:unit && npm run check:test\"},\"tsd\":{\"directory\":\"test/types\",\"compilerOptions\":{\"strict\":true,\"target\":\"esnext\",\"module\":\"commonjs\",\"moduleResolution\":\"node\"}}}");
|
|
58872
58885
|
|
|
58873
58886
|
/***/ }),
|
|
58874
58887
|
/* 315 */
|
|
@@ -61665,7 +61678,7 @@ class SocksClient extends events_1.EventEmitter {
|
|
|
61665
61678
|
super();
|
|
61666
61679
|
this.options = Object.assign({}, options);
|
|
61667
61680
|
// Validate SocksClientOptions
|
|
61668
|
-
helpers_1.validateSocksClientOptions(options);
|
|
61681
|
+
(0, helpers_1.validateSocksClientOptions)(options);
|
|
61669
61682
|
// Default state
|
|
61670
61683
|
this.setState(constants_1.SocksClientState.Created);
|
|
61671
61684
|
}
|
|
@@ -61681,7 +61694,7 @@ class SocksClient extends events_1.EventEmitter {
|
|
|
61681
61694
|
return new Promise((resolve, reject) => {
|
|
61682
61695
|
// Validate SocksClientOptions
|
|
61683
61696
|
try {
|
|
61684
|
-
helpers_1.validateSocksClientOptions(options, ['connect']);
|
|
61697
|
+
(0, helpers_1.validateSocksClientOptions)(options, ['connect']);
|
|
61685
61698
|
}
|
|
61686
61699
|
catch (err) {
|
|
61687
61700
|
if (typeof callback === 'function') {
|
|
@@ -61730,7 +61743,7 @@ class SocksClient extends events_1.EventEmitter {
|
|
|
61730
61743
|
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
61731
61744
|
// Validate SocksClientChainOptions
|
|
61732
61745
|
try {
|
|
61733
|
-
helpers_1.validateSocksClientChainOptions(options);
|
|
61746
|
+
(0, helpers_1.validateSocksClientChainOptions)(options);
|
|
61734
61747
|
}
|
|
61735
61748
|
catch (err) {
|
|
61736
61749
|
if (typeof callback === 'function') {
|
|
@@ -61744,7 +61757,7 @@ class SocksClient extends events_1.EventEmitter {
|
|
|
61744
61757
|
let sock;
|
|
61745
61758
|
// Shuffle proxies
|
|
61746
61759
|
if (options.randomizeChain) {
|
|
61747
|
-
util_1.shuffleArray(options.proxies);
|
|
61760
|
+
(0, util_1.shuffleArray)(options.proxies);
|
|
61748
61761
|
}
|
|
61749
61762
|
try {
|
|
61750
61763
|
// tslint:disable-next-line:no-increment-decrement
|
|
@@ -61754,7 +61767,8 @@ class SocksClient extends events_1.EventEmitter {
|
|
|
61754
61767
|
const nextDestination = i === options.proxies.length - 1
|
|
61755
61768
|
? options.destination
|
|
61756
61769
|
: {
|
|
61757
|
-
host: options.proxies[i + 1].
|
|
61770
|
+
host: options.proxies[i + 1].host ||
|
|
61771
|
+
options.proxies[i + 1].ipaddress,
|
|
61758
61772
|
port: options.proxies[i + 1].port,
|
|
61759
61773
|
};
|
|
61760
61774
|
// Creates the next connection in the chain.
|
|
@@ -62190,7 +62204,8 @@ class SocksClient extends events_1.EventEmitter {
|
|
|
62190
62204
|
}
|
|
62191
62205
|
sendSocks5CustomAuthentication() {
|
|
62192
62206
|
return __awaiter(this, void 0, void 0, function* () {
|
|
62193
|
-
this.nextRequiredPacketBufferSize =
|
|
62207
|
+
this.nextRequiredPacketBufferSize =
|
|
62208
|
+
this.options.proxy.custom_auth_response_size;
|
|
62194
62209
|
this.socket.write(yield this.options.proxy.custom_auth_request_handler());
|
|
62195
62210
|
this.setState(constants_1.SocksClientState.SentAuthentication);
|
|
62196
62211
|
});
|
|
@@ -62222,7 +62237,8 @@ class SocksClient extends events_1.EventEmitter {
|
|
|
62222
62237
|
authResult = yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2));
|
|
62223
62238
|
}
|
|
62224
62239
|
else if (this.socks5ChosenAuthType === constants_1.Socks5Auth.UserPass) {
|
|
62225
|
-
authResult =
|
|
62240
|
+
authResult =
|
|
62241
|
+
yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2));
|
|
62226
62242
|
}
|
|
62227
62243
|
else if (this.socks5ChosenAuthType === this.options.proxy.custom_auth_method) {
|
|
62228
62244
|
authResult = yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size));
|
|
@@ -62891,7 +62907,7 @@ class SmartBuffer {
|
|
|
62891
62907
|
// Check for initial Buffer
|
|
62892
62908
|
}
|
|
62893
62909
|
else if (options.buff) {
|
|
62894
|
-
if (options.buff
|
|
62910
|
+
if (Buffer.isBuffer(options.buff)) {
|
|
62895
62911
|
this._buff = options.buff;
|
|
62896
62912
|
this.length = options.buff.length;
|
|
62897
62913
|
}
|
|
@@ -69088,7 +69104,7 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
69088
69104
|
// EXTERNAL MODULE: ./node_modules/react-redux/es/index.js + 23 modules
|
|
69089
69105
|
var es = __webpack_require__(159);
|
|
69090
69106
|
|
|
69091
|
-
// CONCATENATED MODULE: /Users/
|
|
69107
|
+
// CONCATENATED MODULE: /Users/rhys/Documents/mongodb/compass/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
69092
69108
|
function _defineProperty(obj, key, value) {
|
|
69093
69109
|
if (key in obj) {
|
|
69094
69110
|
Object.defineProperty(obj, key, {
|
|
@@ -69103,7 +69119,7 @@ function _defineProperty(obj, key, value) {
|
|
|
69103
69119
|
|
|
69104
69120
|
return obj;
|
|
69105
69121
|
}
|
|
69106
|
-
// CONCATENATED MODULE: /Users/
|
|
69122
|
+
// CONCATENATED MODULE: /Users/rhys/Documents/mongodb/compass/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
69107
69123
|
|
|
69108
69124
|
|
|
69109
69125
|
function ownKeys(object, enumerableOnly) {
|
|
@@ -69131,7 +69147,7 @@ function _objectSpread2(target) {
|
|
|
69131
69147
|
|
|
69132
69148
|
return target;
|
|
69133
69149
|
}
|
|
69134
|
-
// CONCATENATED MODULE: /Users/
|
|
69150
|
+
// CONCATENATED MODULE: /Users/rhys/Documents/mongodb/compass/node_modules/redux/es/redux.js
|
|
69135
69151
|
|
|
69136
69152
|
|
|
69137
69153
|
/**
|
|
@@ -69932,7 +69948,7 @@ const modules_reducer = combineReducers({
|
|
|
69932
69948
|
runtime: reducer
|
|
69933
69949
|
});
|
|
69934
69950
|
/* harmony default export */ var modules = (modules_reducer);
|
|
69935
|
-
// EXTERNAL MODULE: /Users/
|
|
69951
|
+
// EXTERNAL MODULE: /Users/rhys/Documents/mongodb/compass/node_modules/@mongosh/logging/lib/index.js
|
|
69936
69952
|
var lib = __webpack_require__(161);
|
|
69937
69953
|
|
|
69938
69954
|
// EXTERNAL MODULE: ../compass-logging/dist/index.js
|
|
@@ -70123,7 +70139,7 @@ function createPlugin() {
|
|
|
70123
70139
|
|
|
70124
70140
|
Object(external_react_["useEffect"])(() => {
|
|
70125
70141
|
let mounted = true;
|
|
70126
|
-
Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(2)]).then(__webpack_require__.bind(null,
|
|
70142
|
+
Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(2)]).then(__webpack_require__.bind(null, 466)).then(({
|
|
70127
70143
|
default: Component
|
|
70128
70144
|
}) => {
|
|
70129
70145
|
if (mounted) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongodb-js/compass-shell",
|
|
3
3
|
"productName": "Compass Shell plugin",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.22.0",
|
|
5
5
|
"apiVersion": "3.0.0",
|
|
6
6
|
"description": "Compass Shell Plugin",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -44,18 +44,18 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@leafygreen-ui/code": "^9.4.0",
|
|
47
|
-
"@mongodb-js/compass-logging": "^0.
|
|
48
|
-
"@mongodb-js/mongodb-redux-common": "^1.
|
|
49
|
-
"@mongosh/browser-repl": "^1.2.
|
|
50
|
-
"@mongosh/logging": "^1.2.
|
|
51
|
-
"@mongosh/node-runtime-worker-thread": "^1.2.
|
|
52
|
-
"@mongosh/service-provider-core": "^1.2.
|
|
47
|
+
"@mongodb-js/compass-logging": "^0.10.0",
|
|
48
|
+
"@mongodb-js/mongodb-redux-common": "^1.10.0",
|
|
49
|
+
"@mongosh/browser-repl": "^1.2.3",
|
|
50
|
+
"@mongosh/logging": "^1.2.3",
|
|
51
|
+
"@mongosh/node-runtime-worker-thread": "^1.2.3",
|
|
52
|
+
"@mongosh/service-provider-core": "^1.2.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@mongodb-js/compass-components": "^0.
|
|
55
|
+
"@mongodb-js/compass-components": "^0.13.0",
|
|
56
56
|
"ace-builds": "^1.4.3",
|
|
57
57
|
"hadron-ipc": "^2.9.0",
|
|
58
|
-
"hadron-react-components": "^5.
|
|
58
|
+
"hadron-react-components": "^5.13.0",
|
|
59
59
|
"prop-types": "^15.7.2",
|
|
60
60
|
"react": "^16.14.0",
|
|
61
61
|
"react-ace": "^9.5.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@babel/preset-react": "^7.13.13",
|
|
71
71
|
"@babel/register": "^7.13.16",
|
|
72
72
|
"@hot-loader/react-dom": "^16.9.0",
|
|
73
|
-
"@mongodb-js/compass-components": "^0.
|
|
73
|
+
"@mongodb-js/compass-components": "^0.13.0",
|
|
74
74
|
"ace-builds": "^1.4.3",
|
|
75
75
|
"autoprefixer": "^9.4.6",
|
|
76
76
|
"babel-loader": "^8.2.2",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"eslint-plugin-react": "^7.24.0",
|
|
89
89
|
"file-loader": "^5.1.0",
|
|
90
90
|
"font-awesome": "^4.7.0",
|
|
91
|
-
"hadron-app": "^4.
|
|
92
|
-
"hadron-app-registry": "^8.
|
|
91
|
+
"hadron-app": "^4.21.0",
|
|
92
|
+
"hadron-app-registry": "^8.10.0",
|
|
93
93
|
"html-webpack-plugin": "^3.2.0",
|
|
94
94
|
"ignore-loader": "^0.1.2",
|
|
95
95
|
"istanbul-instrumenter-loader": "^3.0.1",
|
|
@@ -140,5 +140,5 @@
|
|
|
140
140
|
"url": "https://jira.mongodb.org/projects/COMPASS/issues",
|
|
141
141
|
"email": "compass@mongodb.com"
|
|
142
142
|
},
|
|
143
|
-
"gitHead": "
|
|
143
|
+
"gitHead": "a1283df32eb52881cc00eb73f8d435f772cdbfde"
|
|
144
144
|
}
|