@mongodb-js/compass-shell 3.3.0 → 3.4.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 +621 -621
- package/lib/2.js +12 -7
- package/lib/index.js +16 -10
- package/package.json +10 -8
package/lib/2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(window["webpackJsonpCompassShellPlugin"] = window["webpackJsonpCompassShellPlugin"] || []).push([[2],{
|
|
2
2
|
|
|
3
|
-
/***/
|
|
3
|
+
/***/ 474:
|
|
4
4
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -15,14 +15,17 @@ var external_react_ = __webpack_require__(2);
|
|
|
15
15
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
16
16
|
|
|
17
17
|
// EXTERNAL MODULE: /home/runner/work/compass/compass/node_modules/prop-types/index.js
|
|
18
|
-
var prop_types = __webpack_require__(
|
|
18
|
+
var prop_types = __webpack_require__(245);
|
|
19
19
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
20
20
|
|
|
21
21
|
// EXTERNAL MODULE: /home/runner/work/compass/compass/node_modules/react-redux/es/index.js + 26 modules
|
|
22
22
|
var es = __webpack_require__(128);
|
|
23
23
|
|
|
24
|
+
// EXTERNAL MODULE: external "compass-preferences-model"
|
|
25
|
+
var external_compass_preferences_model_ = __webpack_require__(243);
|
|
26
|
+
|
|
24
27
|
// EXTERNAL MODULE: /home/runner/work/compass/compass/node_modules/@mongosh/browser-repl/lib/mongosh-browser-repl.js
|
|
25
|
-
var mongosh_browser_repl = __webpack_require__(
|
|
28
|
+
var mongosh_browser_repl = __webpack_require__(282);
|
|
26
29
|
|
|
27
30
|
// EXTERNAL MODULE: external "@mongodb-js/compass-components"
|
|
28
31
|
var compass_components_ = __webpack_require__(242);
|
|
@@ -100,7 +103,7 @@ function KeyboardShortcutsTable() {
|
|
|
100
103
|
|
|
101
104
|
|
|
102
105
|
|
|
103
|
-
const mongoshVersion = `v${__webpack_require__(
|
|
106
|
+
const mongoshVersion = `v${__webpack_require__(470).version}`;
|
|
104
107
|
const shortcutsTableContainerStyles = Object(compass_components_["css"])({
|
|
105
108
|
marginTop: compass_components_["spacing"][2],
|
|
106
109
|
maxHeight: '50vh',
|
|
@@ -292,6 +295,7 @@ function compass_shell_defineProperty(obj, key, value) { if (key in obj) { Objec
|
|
|
292
295
|
|
|
293
296
|
|
|
294
297
|
|
|
298
|
+
|
|
295
299
|
const compassShellStyles = Object(compass_components_["css"])({
|
|
296
300
|
backgroundColor: compass_components_["palette"].gray.dark3,
|
|
297
301
|
display: 'flex',
|
|
@@ -432,7 +436,7 @@ class compass_shell_CompassShell extends external_react_["Component"] {
|
|
|
432
436
|
isOperationInProgress,
|
|
433
437
|
showInfoModal
|
|
434
438
|
} = this.state;
|
|
435
|
-
if (!this.props.runtime || !this.state.initialHistory) {
|
|
439
|
+
if (!this.props.enableShell || !this.props.runtime || !this.state.initialHistory) {
|
|
436
440
|
return /*#__PURE__*/external_react_default.a.createElement("div", null);
|
|
437
441
|
}
|
|
438
442
|
const isExpanded = height > shellMinHeightOpened;
|
|
@@ -483,7 +487,8 @@ compass_shell_defineProperty(compass_shell_CompassShell, "propTypes", {
|
|
|
483
487
|
emitShellPluginOpened: prop_types_default.a.func,
|
|
484
488
|
runtime: prop_types_default.a.object,
|
|
485
489
|
shellOutput: prop_types_default.a.array,
|
|
486
|
-
historyStorage: prop_types_default.a.object
|
|
490
|
+
historyStorage: prop_types_default.a.object,
|
|
491
|
+
enableShell: prop_types_default.a.bool
|
|
487
492
|
});
|
|
488
493
|
compass_shell_defineProperty(compass_shell_CompassShell, "defaultProps", {
|
|
489
494
|
emitShellPluginOpened: () => {},
|
|
@@ -496,7 +501,7 @@ compass_shell_defineProperty(compass_shell_CompassShell, "defaultProps", {
|
|
|
496
501
|
}
|
|
497
502
|
},
|
|
498
503
|
runtime: state.runtime ? state.runtime.runtime : null
|
|
499
|
-
}))(compass_shell_CompassShell));
|
|
504
|
+
}))(Object(external_compass_preferences_model_["withPreferences"])(compass_shell_CompassShell, ['enableShell'], external_react_default.a)));
|
|
500
505
|
// CONCATENATED MODULE: ./src/components/compass-shell/index.js
|
|
501
506
|
|
|
502
507
|
/* harmony default export */ var components_compass_shell = __webpack_exports__["default"] = (compass_shell);
|
package/lib/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("react"), require("@mongodb-js/compass-logging"), require("@mongodb-js/compass-utils"), require("@mongodb-js/compass-components"));
|
|
3
|
+
module.exports = factory(require("react"), require("@mongodb-js/compass-logging"), require("@mongodb-js/compass-utils"), require("@mongodb-js/compass-components"), require("compass-preferences-model"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["react", "@mongodb-js/compass-logging", "@mongodb-js/compass-utils", "@mongodb-js/compass-components"], factory);
|
|
5
|
+
define(["react", "@mongodb-js/compass-logging", "@mongodb-js/compass-utils", "@mongodb-js/compass-components", "compass-preferences-model"], factory);
|
|
6
6
|
else if(typeof exports === 'object')
|
|
7
|
-
exports["CompassShellPlugin"] = factory(require("react"), require("@mongodb-js/compass-logging"), require("@mongodb-js/compass-utils"), require("@mongodb-js/compass-components"));
|
|
7
|
+
exports["CompassShellPlugin"] = factory(require("react"), require("@mongodb-js/compass-logging"), require("@mongodb-js/compass-utils"), require("@mongodb-js/compass-components"), require("compass-preferences-model"));
|
|
8
8
|
else
|
|
9
|
-
root["CompassShellPlugin"] = factory(root["react"], root["@mongodb-js/compass-logging"], root["@mongodb-js/compass-utils"], root["@mongodb-js/compass-components"]);
|
|
10
|
-
})(window, function(__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__132__, __WEBPACK_EXTERNAL_MODULE__240__, __WEBPACK_EXTERNAL_MODULE__242__) {
|
|
9
|
+
root["CompassShellPlugin"] = factory(root["react"], root["@mongodb-js/compass-logging"], root["@mongodb-js/compass-utils"], root["@mongodb-js/compass-components"], root["compass-preferences-model"]);
|
|
10
|
+
})(window, function(__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__132__, __WEBPACK_EXTERNAL_MODULE__240__, __WEBPACK_EXTERNAL_MODULE__242__, __WEBPACK_EXTERNAL_MODULE__243__) {
|
|
11
11
|
return /******/ (function(modules) { // webpackBootstrap
|
|
12
12
|
/******/ // install a JSONP callback for chunk loading
|
|
13
13
|
/******/ function webpackJsonpCallback(data) {
|
|
@@ -8839,10 +8839,10 @@ const INITIAL_STATE = {
|
|
|
8839
8839
|
/**
|
|
8840
8840
|
* Reducer function for handle state changes to the app registry.
|
|
8841
8841
|
*
|
|
8842
|
-
* @param {
|
|
8842
|
+
* @param {Object} state - The app registry state.
|
|
8843
8843
|
* @param {Object} action - The action.
|
|
8844
8844
|
*
|
|
8845
|
-
* @returns {
|
|
8845
|
+
* @returns {Object} The new state.
|
|
8846
8846
|
*/
|
|
8847
8847
|
const reducer = (state = INITIAL_STATE, action) => {
|
|
8848
8848
|
if (action.type === LOCAL_APP_REGISTRY_ACTIVATED) {
|
|
@@ -21103,7 +21103,7 @@ module.exports = require("net");
|
|
|
21103
21103
|
/* 66 */
|
|
21104
21104
|
/***/ (function(module) {
|
|
21105
21105
|
|
|
21106
|
-
module.exports = JSON.parse("{\"name\":\"@mongodb-js/compass-shell\",\"productName\":\"Compass Shell plugin\",\"version\":\"3.
|
|
21106
|
+
module.exports = JSON.parse("{\"name\":\"@mongodb-js/compass-shell\",\"productName\":\"Compass Shell plugin\",\"version\":\"3.4.0\",\"apiVersion\":\"3.0.0\",\"description\":\"Compass Shell Plugin\",\"main\":\"lib/index.js\",\"compass:main\":\"src/index.js\",\"compass:exports\":{\".\":\"./src/index.js\"},\"scripts\":{\"prepublishOnly\":\"npm run compile && compass-scripts check-exports-exist\",\"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\",\"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\\\" \\\"./config/**/*.{js,jsx}\\\"\",\"depcheck\":\"compass-scripts check-peer-deps && depcheck\",\"bootstrap\":\"npm run compile\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/mongodb-js/compass.git\"},\"config\":{\"unsafe-perm\":true},\"license\":\"SSPL\",\"publishConfig\":{\"access\":\"public\"},\"dependencies\":{\"@mongodb-js/compass-components\":\"^1.4.0\",\"@mongodb-js/compass-logging\":\"^1.1.1\",\"@mongodb-js/compass-utils\":\"^0.1.2\",\"@mongodb-js/mongodb-redux-common\":\"^2.0.3\",\"@mongosh/node-runtime-worker-thread\":\"^1.6.0\",\"compass-preferences-model\":\"^2.4.0\",\"react\":\"^16.14.0\"},\"peerDependencies\":{\"@mongodb-js/compass-components\":\"^1.4.0\",\"@mongodb-js/compass-logging\":\"^1.1.1\",\"@mongodb-js/compass-utils\":\"^0.1.2\",\"@mongodb-js/mongodb-redux-common\":\"^2.0.3\",\"@mongosh/node-runtime-worker-thread\":\"^1.6.0\",\"compass-preferences-model\":\"^2.4.0\",\"react\":\"^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\",\"@leafygreen-ui/code\":\"^12.1.1\",\"@mongosh/browser-repl\":\"^1.6.0\",\"@mongosh/logging\":\"^1.6.0\",\"@mongosh/service-provider-core\":\"^1.6.0\",\"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\",\"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-ipc\":\"^3.1.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-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-ace\":\"^9.5.0\",\"react-dom\":\"^16.14.0\",\"react-hot-loader\":\"^4.13.0\",\"react-redux\":\"^8.0.2\",\"react-tooltip\":\"^3.11.1\",\"redux\":\"^4.2.0\",\"resolve\":\"^1.15.1\",\"rimraf\":\"^2.6.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-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\":\"7f786ed13b999a5c0831af6fde545154890df956\"}");
|
|
21107
21107
|
|
|
21108
21108
|
/***/ }),
|
|
21109
21109
|
/* 67 */
|
|
@@ -52323,7 +52323,7 @@ function redactConnectionString(uri, options) {
|
|
|
52323
52323
|
}
|
|
52324
52324
|
const R = replacementString;
|
|
52325
52325
|
const replacements = [
|
|
52326
|
-
uri => uri.replace(redactUsernames ? /(\/\/)(.*)(@)/g : /(\/\/[^@]
|
|
52326
|
+
uri => uri.replace(redactUsernames ? /(\/\/)(.*)(@)/g : /(\/\/[^@]*:)(.*)(@)/g, `$1${R}$3`),
|
|
52327
52327
|
uri => uri.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi, `$1${R}`),
|
|
52328
52328
|
uri => uri.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi, `$1${R}`),
|
|
52329
52329
|
uri => redactUsernames ? uri.replace(/(proxyUsername=)([^&]+)/gi, `$1${R}`) : uri,
|
|
@@ -65989,7 +65989,7 @@ function createPlugin() {
|
|
|
65989
65989
|
}
|
|
65990
65990
|
Object(external_react_["useEffect"])(() => {
|
|
65991
65991
|
let mounted = true;
|
|
65992
|
-
Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(2)]).then(__webpack_require__.bind(null,
|
|
65992
|
+
Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(2)]).then(__webpack_require__.bind(null, 474)).then(({
|
|
65993
65993
|
default: Component
|
|
65994
65994
|
}) => {
|
|
65995
65995
|
if (mounted) {
|
|
@@ -66057,6 +66057,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__242__;
|
|
|
66057
66057
|
/* 243 */
|
|
66058
66058
|
/***/ (function(module, exports) {
|
|
66059
66059
|
|
|
66060
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__243__;
|
|
66061
|
+
|
|
66062
|
+
/***/ }),
|
|
66063
|
+
/* 244 */
|
|
66064
|
+
/***/ (function(module, exports) {
|
|
66065
|
+
|
|
66060
66066
|
module.exports = require("clipboard");
|
|
66061
66067
|
|
|
66062
66068
|
/***/ })
|
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": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"apiVersion": "3.0.0",
|
|
6
6
|
"description": "Compass Shell Plugin",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -38,19 +38,21 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@mongodb-js/compass-components": "^1.
|
|
41
|
+
"@mongodb-js/compass-components": "^1.4.0",
|
|
42
42
|
"@mongodb-js/compass-logging": "^1.1.1",
|
|
43
|
-
"@mongodb-js/compass-utils": "^0.1.
|
|
44
|
-
"@mongodb-js/mongodb-redux-common": "^2.0.
|
|
43
|
+
"@mongodb-js/compass-utils": "^0.1.2",
|
|
44
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.3",
|
|
45
45
|
"@mongosh/node-runtime-worker-thread": "^1.6.0",
|
|
46
|
+
"compass-preferences-model": "^2.4.0",
|
|
46
47
|
"react": "^16.14.0"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
|
-
"@mongodb-js/compass-components": "^1.
|
|
50
|
+
"@mongodb-js/compass-components": "^1.4.0",
|
|
50
51
|
"@mongodb-js/compass-logging": "^1.1.1",
|
|
51
|
-
"@mongodb-js/compass-utils": "^0.1.
|
|
52
|
-
"@mongodb-js/mongodb-redux-common": "^2.0.
|
|
52
|
+
"@mongodb-js/compass-utils": "^0.1.2",
|
|
53
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.3",
|
|
53
54
|
"@mongosh/node-runtime-worker-thread": "^1.6.0",
|
|
55
|
+
"compass-preferences-model": "^2.4.0",
|
|
54
56
|
"react": "^16.14.0"
|
|
55
57
|
},
|
|
56
58
|
"devDependencies": {
|
|
@@ -125,5 +127,5 @@
|
|
|
125
127
|
"url": "https://jira.mongodb.org/projects/COMPASS/issues",
|
|
126
128
|
"email": "compass@mongodb.com"
|
|
127
129
|
},
|
|
128
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "7f786ed13b999a5c0831af6fde545154890df956"
|
|
129
131
|
}
|