@jsenv/core 39.5.2 → 39.5.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/dist/jsenv_core.js
CHANGED
|
@@ -3973,6 +3973,12 @@ const registerDirectoryLifecycle = (
|
|
|
3973
3973
|
stat: null,
|
|
3974
3974
|
};
|
|
3975
3975
|
}
|
|
3976
|
+
if (e.code === "EACCES") {
|
|
3977
|
+
return {
|
|
3978
|
+
type: null,
|
|
3979
|
+
stat: null,
|
|
3980
|
+
};
|
|
3981
|
+
}
|
|
3976
3982
|
throw e;
|
|
3977
3983
|
}
|
|
3978
3984
|
};
|
|
@@ -23035,6 +23041,8 @@ const parseUserAgentHeader = memoizeByFirstArgument((userAgent) => {
|
|
|
23035
23041
|
};
|
|
23036
23042
|
});
|
|
23037
23043
|
|
|
23044
|
+
const EXECUTED_BY_TEST_PLAN = process.argv.includes("--jsenv-test");
|
|
23045
|
+
|
|
23038
23046
|
/**
|
|
23039
23047
|
* Start a server for source files:
|
|
23040
23048
|
* - cook source files according to jsenv plugins
|
|
@@ -23054,7 +23062,7 @@ const startDevServer = async ({
|
|
|
23054
23062
|
// it's better to use http1 by default because it allows to get statusText in devtools
|
|
23055
23063
|
// which gives valuable information when there is errors
|
|
23056
23064
|
http2 = false,
|
|
23057
|
-
logLevel =
|
|
23065
|
+
logLevel = EXECUTED_BY_TEST_PLAN ? "warn" : "info",
|
|
23058
23066
|
serverLogLevel = "warn",
|
|
23059
23067
|
services = [],
|
|
23060
23068
|
|
|
@@ -23633,9 +23641,7 @@ ${error.trace?.message}`);
|
|
|
23633
23641
|
stopOnExit: false,
|
|
23634
23642
|
stopOnSIGINT: handleSIGINT,
|
|
23635
23643
|
stopOnInternalError: false,
|
|
23636
|
-
keepProcessAlive
|
|
23637
|
-
? false
|
|
23638
|
-
: keepProcessAlive,
|
|
23644
|
+
keepProcessAlive,
|
|
23639
23645
|
logLevel: serverLogLevel,
|
|
23640
23646
|
startLog: false,
|
|
23641
23647
|
|
|
@@ -23773,9 +23779,7 @@ const startBuildServer = async ({
|
|
|
23773
23779
|
stopOnExit: false,
|
|
23774
23780
|
stopOnSIGINT: false,
|
|
23775
23781
|
stopOnInternalError: false,
|
|
23776
|
-
keepProcessAlive
|
|
23777
|
-
? false
|
|
23778
|
-
: keepProcessAlive,
|
|
23782
|
+
keepProcessAlive,
|
|
23779
23783
|
logLevel: serverLogLevel,
|
|
23780
23784
|
startLog: false,
|
|
23781
23785
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "39.5.
|
|
3
|
+
"version": "39.5.4",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@financial-times/polyfill-useragent-normaliser": "1.10.2",
|
|
71
71
|
"@jsenv/abort": "4.3.0",
|
|
72
72
|
"@jsenv/ast": "6.2.17",
|
|
73
|
-
"@jsenv/filesystem": "4.10.
|
|
73
|
+
"@jsenv/filesystem": "4.10.4",
|
|
74
74
|
"@jsenv/humanize": "1.2.8",
|
|
75
75
|
"@jsenv/importmap": "1.2.1",
|
|
76
76
|
"@jsenv/integrity": "0.0.2",
|
|
@@ -108,9 +108,7 @@ export const startBuildServer = async ({
|
|
|
108
108
|
stopOnExit: false,
|
|
109
109
|
stopOnSIGINT: false,
|
|
110
110
|
stopOnInternalError: false,
|
|
111
|
-
keepProcessAlive
|
|
112
|
-
? false
|
|
113
|
-
: keepProcessAlive,
|
|
111
|
+
keepProcessAlive,
|
|
114
112
|
logLevel: serverLogLevel,
|
|
115
113
|
startLog: false,
|
|
116
114
|
|
|
@@ -28,6 +28,8 @@ import { jsenvPluginServerEventsClientInjection } from "../plugins/server_events
|
|
|
28
28
|
import { createServerEventsDispatcher } from "../plugins/server_events/server_events_dispatcher.js";
|
|
29
29
|
import { parseUserAgentHeader } from "./user_agent.js";
|
|
30
30
|
|
|
31
|
+
const EXECUTED_BY_TEST_PLAN = process.argv.includes("--jsenv-test");
|
|
32
|
+
|
|
31
33
|
/**
|
|
32
34
|
* Start a server for source files:
|
|
33
35
|
* - cook source files according to jsenv plugins
|
|
@@ -47,7 +49,7 @@ export const startDevServer = async ({
|
|
|
47
49
|
// it's better to use http1 by default because it allows to get statusText in devtools
|
|
48
50
|
// which gives valuable information when there is errors
|
|
49
51
|
http2 = false,
|
|
50
|
-
logLevel =
|
|
52
|
+
logLevel = EXECUTED_BY_TEST_PLAN ? "warn" : "info",
|
|
51
53
|
serverLogLevel = "warn",
|
|
52
54
|
services = [],
|
|
53
55
|
|
|
@@ -626,9 +628,7 @@ ${error.trace?.message}`);
|
|
|
626
628
|
stopOnExit: false,
|
|
627
629
|
stopOnSIGINT: handleSIGINT,
|
|
628
630
|
stopOnInternalError: false,
|
|
629
|
-
keepProcessAlive
|
|
630
|
-
? false
|
|
631
|
-
: keepProcessAlive,
|
|
631
|
+
keepProcessAlive,
|
|
632
632
|
logLevel: serverLogLevel,
|
|
633
633
|
startLog: false,
|
|
634
634
|
|