@mongosh/browser-repl 2.1.3 → 2.1.4
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
CHANGED
|
@@ -34,16 +34,18 @@ const simple_type_output_1 = require("./simple-type-output");
|
|
|
34
34
|
const expandable_1 = require("../utils/expandable");
|
|
35
35
|
class ErrorOutput extends react_1.Component {
|
|
36
36
|
renderCollapsed(toggle) {
|
|
37
|
+
const { name, message, codeName } = this.props.value;
|
|
38
|
+
const formattedName = name + (codeName ? `[${codeName}]` : '');
|
|
37
39
|
return (react_1.default.createElement("div", null,
|
|
38
40
|
react_1.default.createElement("pre", null,
|
|
39
41
|
react_1.default.createElement("a", { href: "#", onClick: (e) => {
|
|
40
42
|
e.preventDefault();
|
|
41
43
|
toggle();
|
|
42
44
|
} },
|
|
43
|
-
|
|
45
|
+
formattedName || 'Error',
|
|
44
46
|
":"),
|
|
45
47
|
' ',
|
|
46
|
-
|
|
48
|
+
message)));
|
|
47
49
|
}
|
|
48
50
|
formatStack() {
|
|
49
51
|
return this.props.value.stack.split('\n').slice(1).join('\n');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-output.js","sourceRoot":"","sources":["../../../src/components/types/error-output.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AACzC,4DAAmC;AACnC,4CAA2D;AAE3D,6DAAwD;AACxD,oDAAiD;
|
|
1
|
+
{"version":3,"file":"error-output.js","sourceRoot":"","sources":["../../../src/components/types/error-output.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AACzC,4DAAmC;AACnC,4CAA2D;AAE3D,6DAAwD;AACxD,oDAAiD;AAOjD,MAAa,WAAY,SAAQ,iBAA2B;IAK1D,eAAe,CAAC,MAAkB;QAChC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,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AAgB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAI,CAChD,CACP,CAAC;QACJ,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,cAAc,CAAC,MAAkB;QAC/B,OAAO,CACL;YACG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC;YAC7B;gBACG,IAAI,CAAC,wBAAwB,EAAE;gBAC/B,IAAI,CAAC,eAAe,EAAE;gBACtB,IAAI,CAAC,iBAAiB,EAAE;gBACzB,2CAAM,IAAI,CAAC,WAAW,EAAE,CAAO,CAC3B,CACF,CACP,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,CACL,8BAAC,uBAAU,QACR,CAAC,QAAiB,EAAE,MAAkB,EAAe,EAAE,CACtD,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAE5D,CACd,CAAC;IACJ,CAAC;;AA/FH,kCAgGC;AA/FQ,qBAAS,GAAG;IACjB,KAAK,EAAE,oBAAS,CAAC,GAAG;CACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongosh/browser-repl",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "Browser presentation component for Mongo Shell",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=14.15.1"
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@mongosh/browser-runtime-core": "2.1.
|
|
59
|
-
"@mongosh/errors": "2.1.
|
|
60
|
-
"@mongosh/history": "2.1.
|
|
61
|
-
"@mongosh/i18n": "2.1.
|
|
62
|
-
"@mongosh/node-runtime-worker-thread": "2.1.
|
|
63
|
-
"@mongosh/service-provider-core": "2.1.
|
|
58
|
+
"@mongosh/browser-runtime-core": "2.1.4",
|
|
59
|
+
"@mongosh/errors": "2.1.4",
|
|
60
|
+
"@mongosh/history": "2.1.4",
|
|
61
|
+
"@mongosh/i18n": "2.1.4",
|
|
62
|
+
"@mongosh/node-runtime-worker-thread": "2.1.4",
|
|
63
|
+
"@mongosh/service-provider-core": "2.1.4",
|
|
64
64
|
"numeral": "^2.0.6",
|
|
65
65
|
"text-table": "^0.2.0"
|
|
66
66
|
},
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"@babel/preset-typescript": "^7.18.6",
|
|
72
72
|
"@mongodb-js/compass-components": "*",
|
|
73
73
|
"@mongodb-js/compass-editor": "*",
|
|
74
|
-
"@mongodb-js/eslint-config-mongosh": "
|
|
74
|
+
"@mongodb-js/eslint-config-mongosh": "2.1.4",
|
|
75
75
|
"@mongodb-js/prettier-config-devtools": "^1.0.1",
|
|
76
|
-
"@mongodb-js/tsconfig-mongosh": "
|
|
76
|
+
"@mongodb-js/tsconfig-mongosh": "2.1.4",
|
|
77
77
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.8",
|
|
78
78
|
"@types/numeral": "^2.0.2",
|
|
79
79
|
"@types/react": "^16.9.17",
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
"karma-mocha-reporter": "^2.2.5",
|
|
96
96
|
"karma-typescript": "^5.5.4",
|
|
97
97
|
"karma-webpack": "^5.0.0",
|
|
98
|
+
"mongodb": "^6.3.0",
|
|
98
99
|
"path-browserify": "^1.0.1",
|
|
99
100
|
"prettier": "^2.8.8",
|
|
100
101
|
"prop-types": "^15.7.2",
|
|
@@ -116,5 +117,5 @@
|
|
|
116
117
|
"react": "^17.0.2",
|
|
117
118
|
"react-dom": "^17.0.2"
|
|
118
119
|
},
|
|
119
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "aa68f995797d6ca42337c932408d1923924ca714"
|
|
120
121
|
}
|