@mongosh/cli-repl 2.6.0 → 2.8.1
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/AUTHORS +1 -0
- package/lib/async-repl.js +11 -9
- package/lib/async-repl.js.map +1 -1
- package/lib/build-info.js +4 -6
- package/lib/build-info.js.map +1 -1
- package/lib/build-info.json +1 -1
- package/lib/cli-repl.d.ts +1 -0
- package/lib/cli-repl.js +64 -72
- package/lib/cli-repl.js.map +1 -1
- package/lib/config-directory.js +7 -9
- package/lib/config-directory.js.map +1 -1
- package/lib/crypt-library-paths.js +8 -10
- package/lib/crypt-library-paths.js.map +1 -1
- package/lib/format-output.js +5 -8
- package/lib/format-output.js.map +1 -1
- package/lib/get-os-info.js +3 -4
- package/lib/get-os-info.js.map +1 -1
- package/lib/line-by-line-input.js +1 -1
- package/lib/line-by-line-input.js.map +1 -1
- package/lib/mongosh-repl.js +80 -69
- package/lib/mongosh-repl.js.map +1 -1
- package/lib/node-repl-fix-completer-side-effects.js +1 -1
- package/lib/node-repl-fix-completer-side-effects.js.map +1 -1
- package/lib/node-repl-fix-history-rewrite-on-error.d.ts +2 -0
- package/lib/node-repl-fix-history-rewrite-on-error.js +79 -0
- package/lib/node-repl-fix-history-rewrite-on-error.js.map +1 -0
- package/lib/repl-paste-support.js +3 -4
- package/lib/repl-paste-support.js.map +1 -1
- package/lib/run.js +14 -13
- package/lib/run.js.map +1 -1
- package/lib/smoke-tests.js +8 -6
- package/lib/smoke-tests.js.map +1 -1
- package/lib/startup-timing.d.ts +1 -0
- package/lib/startup-timing.js +11 -7
- package/lib/startup-timing.js.map +1 -1
- package/lib/tls-certificate-selector.js +4 -5
- package/lib/tls-certificate-selector.js.map +1 -1
- package/lib/update-notification-manager.js +23 -19
- package/lib/update-notification-manager.js.map +1 -1
- package/lib/webpack-self-inspection.js +2 -4
- package/lib/webpack-self-inspection.js.map +1 -1
- package/package.json +29 -29
- package/webpack.config.js +11 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongosh/cli-repl",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"description": "MongoDB Shell CLI REPL Package",
|
|
5
5
|
"homepage": "https://github.com/mongodb-js/mongosh",
|
|
6
6
|
"author": "Compass Team <compass@mongodb.com>",
|
|
@@ -61,33 +61,33 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@mongodb-js/devtools-proxy-support": "^0.5
|
|
65
|
-
"@mongosh/arg-parser": "^
|
|
66
|
-
"@mongosh/autocomplete": "^
|
|
67
|
-
"@mongosh/editor": "^
|
|
68
|
-
"@mongosh/errors": "2.4.6",
|
|
69
|
-
"@mongosh/history": "2.4.13",
|
|
70
|
-
"@mongosh/i18n": "^2.20.
|
|
71
|
-
"@mongosh/js-multiline-to-singleline": "2.4.
|
|
72
|
-
"@mongosh/logging": "^
|
|
73
|
-
"@mongosh/service-provider-core": "
|
|
74
|
-
"@mongosh/service-provider-node-driver": "^
|
|
75
|
-
"@mongosh/shell-api": "^
|
|
76
|
-
"@mongosh/shell-evaluator": "^
|
|
77
|
-
"@mongosh/snippet-manager": "^
|
|
78
|
-
"@mongosh/types": "^
|
|
64
|
+
"@mongodb-js/devtools-proxy-support": "^0.7.5",
|
|
65
|
+
"@mongosh/arg-parser": "^5.0.2",
|
|
66
|
+
"@mongosh/autocomplete": "^5.1.4",
|
|
67
|
+
"@mongosh/editor": "^5.1.4",
|
|
68
|
+
"@mongosh/errors": "^2.4.6",
|
|
69
|
+
"@mongosh/history": "^2.4.13",
|
|
70
|
+
"@mongosh/i18n": "^2.20.2",
|
|
71
|
+
"@mongosh/js-multiline-to-singleline": "^2.4.13",
|
|
72
|
+
"@mongosh/logging": "^5.0.3",
|
|
73
|
+
"@mongosh/service-provider-core": "^5.0.3",
|
|
74
|
+
"@mongosh/service-provider-node-driver": "^5.0.6",
|
|
75
|
+
"@mongosh/shell-api": "^5.1.4",
|
|
76
|
+
"@mongosh/shell-evaluator": "^5.1.4",
|
|
77
|
+
"@mongosh/snippet-manager": "^5.1.4",
|
|
78
|
+
"@mongosh/types": "^5.0.3",
|
|
79
79
|
"@segment/analytics-node": "^1.3.0",
|
|
80
80
|
"ansi-escape-sequences": "^5.1.2",
|
|
81
81
|
"askcharacter": "^2.0.4",
|
|
82
82
|
"askpassword": "^2.0.2",
|
|
83
|
-
"bson": "^
|
|
83
|
+
"bson": "^7.2.0",
|
|
84
84
|
"escape-string-regexp": "^4.0.0",
|
|
85
|
-
"glibc-version": "^1.0.
|
|
85
|
+
"glibc-version": "^1.0.1",
|
|
86
86
|
"is-recoverable-error": "^1.0.3",
|
|
87
87
|
"js-yaml": "^4.1.1",
|
|
88
|
-
"mongodb-connection-string-url": "^
|
|
89
|
-
"mongodb-log-writer": "^2.
|
|
90
|
-
"mongodb-redact": "^1.
|
|
88
|
+
"mongodb-connection-string-url": "^7.0.1",
|
|
89
|
+
"mongodb-log-writer": "^2.5.6",
|
|
90
|
+
"mongodb-redact": "^1.4.6",
|
|
91
91
|
"numeral": "^2.0.6",
|
|
92
92
|
"pretty-repl": "^4.0.1",
|
|
93
93
|
"semver": "^7.5.4",
|
|
@@ -97,9 +97,9 @@
|
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@mongodb-js/eslint-config-mongosh": "^1.0.0",
|
|
99
99
|
"@mongodb-js/prettier-config-devtools": "^1.0.1",
|
|
100
|
-
"@mongodb-js/sbom-tools": "^0.
|
|
100
|
+
"@mongodb-js/sbom-tools": "^0.10.4",
|
|
101
101
|
"@mongodb-js/tsconfig-mongosh": "^1.0.0",
|
|
102
|
-
"@mongosh/testing": "
|
|
102
|
+
"@mongosh/testing": "2.0.5",
|
|
103
103
|
"@types/ansi-escape-sequences": "^4.0.0",
|
|
104
104
|
"@types/chai-as-promised": "^8.0.2",
|
|
105
105
|
"@types/js-yaml": "^4.0.5",
|
|
@@ -108,17 +108,17 @@
|
|
|
108
108
|
"@types/text-table": "^0.2.1",
|
|
109
109
|
"chai-as-promised": "^8.0.2",
|
|
110
110
|
"eslint": "^7.25.0",
|
|
111
|
-
"mongodb": "^
|
|
111
|
+
"mongodb": "^7.1.0",
|
|
112
112
|
"mongodb-crypt-library-dummy": "^1.0.2",
|
|
113
113
|
"prettier": "^2.8.8",
|
|
114
114
|
"webpack-merge": "^5.8.0"
|
|
115
115
|
},
|
|
116
116
|
"optionalDependencies": {
|
|
117
117
|
"get-console-process-list": "^1.0.5",
|
|
118
|
-
"glibc-version": "^1.0.
|
|
119
|
-
"macos-export-certificate-and-key": "^
|
|
120
|
-
"mongodb-crypt-library-version": "^
|
|
121
|
-
"win-export-certificate-and-key": "^
|
|
118
|
+
"glibc-version": "^1.0.1",
|
|
119
|
+
"macos-export-certificate-and-key": "^2.0.1",
|
|
120
|
+
"mongodb-crypt-library-version": "^2.0.1",
|
|
121
|
+
"win-export-certificate-and-key": "^3.0.2"
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "8046da7b463930861417f6b414580823af71889f"
|
|
124
124
|
}
|
package/webpack.config.js
CHANGED
|
@@ -12,11 +12,13 @@ const {
|
|
|
12
12
|
const baseWebpackConfig = require('../../config/webpack.base.config');
|
|
13
13
|
|
|
14
14
|
// Builtins that the driver and/or devtools-connect refer to but which
|
|
15
|
-
// cannot be snapshotted yet
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
|
|
15
|
+
// cannot be snapshotted yet.
|
|
16
|
+
// The supported modules are documented in the Node.js tests
|
|
17
|
+
// here:
|
|
18
|
+
// https://github.com/nodejs/node/blob/main/test/parallel/test-bootstrap-modules.js#L24
|
|
19
|
+
// according to the Node.js official documentation in:
|
|
20
|
+
// https://nodejs.org/api/cli.html#--build-snapshot
|
|
21
|
+
const lazyNodeBuiltins = ['http', 'https', 'tls'];
|
|
20
22
|
const eagerNodeBuiltins = Module.builtinModules.filter(
|
|
21
23
|
(m) => !lazyNodeBuiltins.includes(m)
|
|
22
24
|
);
|
|
@@ -90,6 +92,10 @@ const config = {
|
|
|
90
92
|
'../build/Release/kerberos.node':
|
|
91
93
|
'commonjs2 ../build/Release/kerberos.node',
|
|
92
94
|
'../build/Debug/kerberos.node': 'commonjs2 ../build/Debug/kerberos.node',
|
|
95
|
+
'../build/Release/native_machine_id.node':
|
|
96
|
+
'commonjs2 ../build/Release/native_machine_id.node',
|
|
97
|
+
'../build/Debug/native_machine_id.node':
|
|
98
|
+
'commonjs2 ../build/Debug/native_machine_id.node',
|
|
93
99
|
},
|
|
94
100
|
|
|
95
101
|
externalsPresets: {
|