@jsenv/core 38.3.5 → 38.3.6
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/dist/jsenv_core.js +5 -0
- package/package.json +4 -4
package/dist/jsenv_core.js
CHANGED
|
@@ -3761,6 +3761,7 @@ const createLog = ({
|
|
|
3761
3761
|
const { columns = 80, rows = 24 } = stream;
|
|
3762
3762
|
|
|
3763
3763
|
const log = {
|
|
3764
|
+
destroyed: false,
|
|
3764
3765
|
onVerticalOverflow: () => {},
|
|
3765
3766
|
};
|
|
3766
3767
|
|
|
@@ -3825,6 +3826,9 @@ const createLog = ({
|
|
|
3825
3826
|
};
|
|
3826
3827
|
|
|
3827
3828
|
const write = (string, outputFromOutside = streamOutputSpy()) => {
|
|
3829
|
+
if (log.destroyed) {
|
|
3830
|
+
throw new Error("Cannot write log after destroy");
|
|
3831
|
+
}
|
|
3828
3832
|
if (!lastOutput) {
|
|
3829
3833
|
doWrite(string);
|
|
3830
3834
|
return;
|
|
@@ -3845,6 +3849,7 @@ const createLog = ({
|
|
|
3845
3849
|
};
|
|
3846
3850
|
|
|
3847
3851
|
const destroy = () => {
|
|
3852
|
+
log.destroyed = true;
|
|
3848
3853
|
if (streamOutputSpy) {
|
|
3849
3854
|
streamOutputSpy(); // this uninstalls the spy
|
|
3850
3855
|
streamOutputSpy = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "38.3.
|
|
3
|
+
"version": "38.3.6",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
"@jsenv/importmap": "1.2.1",
|
|
69
69
|
"@jsenv/integrity": "0.0.1",
|
|
70
70
|
"@jsenv/js-module-fallback": "1.3.9",
|
|
71
|
-
"@jsenv/log": "3.4.
|
|
71
|
+
"@jsenv/log": "3.4.3",
|
|
72
72
|
"@jsenv/node-esm-resolution": "1.0.1",
|
|
73
|
-
"@jsenv/plugin-bundling": "2.5.
|
|
73
|
+
"@jsenv/plugin-bundling": "2.5.9",
|
|
74
74
|
"@jsenv/plugin-minification": "1.5.4",
|
|
75
75
|
"@jsenv/plugin-supervisor": "1.3.9",
|
|
76
76
|
"@jsenv/plugin-transpilation": "1.3.8",
|
|
77
77
|
"@jsenv/runtime-compat": "1.2.0",
|
|
78
|
-
"@jsenv/server": "15.1.
|
|
78
|
+
"@jsenv/server": "15.1.6",
|
|
79
79
|
"@jsenv/sourcemap": "1.2.4",
|
|
80
80
|
"@jsenv/url-meta": "8.1.0",
|
|
81
81
|
"@jsenv/urls": "2.2.1",
|