@jsenv/core 29.1.2 → 29.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/dist/main.js +3 -2
- package/package.json +1 -1
- package/src/dev/start_dev_server.js +2 -1
- package/src/kitchen/errors.js +1 -1
package/dist/main.js
CHANGED
|
@@ -9175,7 +9175,7 @@ const createTransformUrlContentError = ({
|
|
|
9175
9175
|
transformError.traceMessage = reference.trace.message;
|
|
9176
9176
|
|
|
9177
9177
|
if (code === "PARSE_ERROR") {
|
|
9178
|
-
transformError.reason =
|
|
9178
|
+
transformError.reason = reason;
|
|
9179
9179
|
|
|
9180
9180
|
if (urlInfo.isInline) {
|
|
9181
9181
|
transformError.traceLine = reference.trace.line + error.line - 1;
|
|
@@ -25709,6 +25709,7 @@ const startDevServer = async ({
|
|
|
25709
25709
|
signal = new AbortController().signal,
|
|
25710
25710
|
handleSIGINT = true,
|
|
25711
25711
|
logLevel = "info",
|
|
25712
|
+
serverLogLevel = "warn",
|
|
25712
25713
|
protocol = "http",
|
|
25713
25714
|
// it's better to use http1 by default because it allows to get statusText in devtools
|
|
25714
25715
|
// which gives valuable information when there is errors
|
|
@@ -25852,7 +25853,7 @@ const startDevServer = async ({
|
|
|
25852
25853
|
stopOnSIGINT: handleSIGINT,
|
|
25853
25854
|
stopOnInternalError: false,
|
|
25854
25855
|
keepProcessAlive,
|
|
25855
|
-
logLevel,
|
|
25856
|
+
logLevel: serverLogLevel,
|
|
25856
25857
|
startLog: false,
|
|
25857
25858
|
protocol,
|
|
25858
25859
|
http2,
|
package/package.json
CHANGED
|
@@ -23,6 +23,7 @@ export const startDevServer = async ({
|
|
|
23
23
|
signal = new AbortController().signal,
|
|
24
24
|
handleSIGINT = true,
|
|
25
25
|
logLevel = "info",
|
|
26
|
+
serverLogLevel = "warn",
|
|
26
27
|
protocol = "http",
|
|
27
28
|
// it's better to use http1 by default because it allows to get statusText in devtools
|
|
28
29
|
// which gives valuable information when there is errors
|
|
@@ -153,7 +154,7 @@ export const startDevServer = async ({
|
|
|
153
154
|
stopOnSIGINT: handleSIGINT,
|
|
154
155
|
stopOnInternalError: false,
|
|
155
156
|
keepProcessAlive,
|
|
156
|
-
logLevel,
|
|
157
|
+
logLevel: serverLogLevel,
|
|
157
158
|
startLog: false,
|
|
158
159
|
|
|
159
160
|
protocol,
|
package/src/kitchen/errors.js
CHANGED
|
@@ -126,7 +126,7 @@ export const createTransformUrlContentError = ({
|
|
|
126
126
|
transformError.traceColumn = reference.trace.column
|
|
127
127
|
transformError.traceMessage = reference.trace.message
|
|
128
128
|
if (code === "PARSE_ERROR") {
|
|
129
|
-
transformError.reason =
|
|
129
|
+
transformError.reason = reason
|
|
130
130
|
if (urlInfo.isInline) {
|
|
131
131
|
transformError.traceLine = reference.trace.line + error.line - 1
|
|
132
132
|
transformError.traceColumn = reference.trace.column + error.column
|