@jsenv/core 40.7.1 → 40.7.2
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/build/build.js
CHANGED
|
@@ -203,6 +203,7 @@ const createFetchUrlContentError = ({
|
|
|
203
203
|
const createFailedToFetchUrlContentError = ({
|
|
204
204
|
code = error.code || "FETCH_URL_CONTENT_ERROR",
|
|
205
205
|
reason,
|
|
206
|
+
parseErrorSourceType,
|
|
206
207
|
...details
|
|
207
208
|
}) => {
|
|
208
209
|
const reference = urlInfo.firstReference;
|
|
@@ -223,6 +224,7 @@ ${reason}`,
|
|
|
223
224
|
name: "FETCH_URL_CONTENT_ERROR",
|
|
224
225
|
code,
|
|
225
226
|
reason,
|
|
227
|
+
parseErrorSourceType,
|
|
226
228
|
url: urlInfo.url,
|
|
227
229
|
trace: code === "PARSE_ERROR" ? error.trace : reference.trace,
|
|
228
230
|
asResponse: error.asResponse,
|
|
@@ -257,6 +259,7 @@ ${reason}`,
|
|
|
257
259
|
return createFailedToFetchUrlContentError({
|
|
258
260
|
"code": "PARSE_ERROR",
|
|
259
261
|
"reason": error.reasonCode,
|
|
262
|
+
"parseErrorSourceType": error.parseErrorSourceType,
|
|
260
263
|
...(error.cause ? { "parse error message": error.cause.message } : {}),
|
|
261
264
|
"parse error trace": error.trace?.message,
|
|
262
265
|
});
|
|
@@ -306,6 +309,8 @@ ${error.message}`,
|
|
|
306
309
|
name: "TRANSFORM_URL_CONTENT_ERROR",
|
|
307
310
|
code: "PARSE_ERROR",
|
|
308
311
|
reason: error.message,
|
|
312
|
+
reasonCode: error.reasonCode,
|
|
313
|
+
parseErrorSourceType: error.parseErrorSourceType,
|
|
309
314
|
stack: transformError.stack,
|
|
310
315
|
trace,
|
|
311
316
|
asResponse: error.asResponse,
|
|
@@ -262,6 +262,7 @@ const createFetchUrlContentError = ({
|
|
|
262
262
|
const createFailedToFetchUrlContentError = ({
|
|
263
263
|
code = error.code || "FETCH_URL_CONTENT_ERROR",
|
|
264
264
|
reason,
|
|
265
|
+
parseErrorSourceType,
|
|
265
266
|
...details
|
|
266
267
|
}) => {
|
|
267
268
|
const reference = urlInfo.firstReference;
|
|
@@ -282,6 +283,7 @@ ${reason}`,
|
|
|
282
283
|
name: "FETCH_URL_CONTENT_ERROR",
|
|
283
284
|
code,
|
|
284
285
|
reason,
|
|
286
|
+
parseErrorSourceType,
|
|
285
287
|
url: urlInfo.url,
|
|
286
288
|
trace: code === "PARSE_ERROR" ? error.trace : reference.trace,
|
|
287
289
|
asResponse: error.asResponse,
|
|
@@ -316,6 +318,7 @@ ${reason}`,
|
|
|
316
318
|
return createFailedToFetchUrlContentError({
|
|
317
319
|
"code": "PARSE_ERROR",
|
|
318
320
|
"reason": error.reasonCode,
|
|
321
|
+
"parseErrorSourceType": error.parseErrorSourceType,
|
|
319
322
|
...(error.cause ? { "parse error message": error.cause.message } : {}),
|
|
320
323
|
"parse error trace": error.trace?.message,
|
|
321
324
|
});
|
|
@@ -365,6 +368,8 @@ ${error.message}`,
|
|
|
365
368
|
name: "TRANSFORM_URL_CONTENT_ERROR",
|
|
366
369
|
code: "PARSE_ERROR",
|
|
367
370
|
reason: error.message,
|
|
371
|
+
reasonCode: error.reasonCode,
|
|
372
|
+
parseErrorSourceType: error.parseErrorSourceType,
|
|
368
373
|
stack: transformError.stack,
|
|
369
374
|
trace,
|
|
370
375
|
asResponse: error.asResponse,
|
package/package.json
CHANGED
package/src/kitchen/errors.js
CHANGED
|
@@ -73,6 +73,7 @@ export const createFetchUrlContentError = ({
|
|
|
73
73
|
const createFailedToFetchUrlContentError = ({
|
|
74
74
|
code = error.code || "FETCH_URL_CONTENT_ERROR",
|
|
75
75
|
reason,
|
|
76
|
+
parseErrorSourceType,
|
|
76
77
|
...details
|
|
77
78
|
}) => {
|
|
78
79
|
const reference = urlInfo.firstReference;
|
|
@@ -93,6 +94,7 @@ ${reason}`,
|
|
|
93
94
|
name: "FETCH_URL_CONTENT_ERROR",
|
|
94
95
|
code,
|
|
95
96
|
reason,
|
|
97
|
+
parseErrorSourceType,
|
|
96
98
|
url: urlInfo.url,
|
|
97
99
|
trace: code === "PARSE_ERROR" ? error.trace : reference.trace,
|
|
98
100
|
asResponse: error.asResponse,
|
|
@@ -127,6 +129,7 @@ ${reason}`,
|
|
|
127
129
|
return createFailedToFetchUrlContentError({
|
|
128
130
|
"code": "PARSE_ERROR",
|
|
129
131
|
"reason": error.reasonCode,
|
|
132
|
+
"parseErrorSourceType": error.parseErrorSourceType,
|
|
130
133
|
...(error.cause ? { "parse error message": error.cause.message } : {}),
|
|
131
134
|
"parse error trace": error.trace?.message,
|
|
132
135
|
});
|
|
@@ -176,6 +179,8 @@ ${error.message}`,
|
|
|
176
179
|
name: "TRANSFORM_URL_CONTENT_ERROR",
|
|
177
180
|
code: "PARSE_ERROR",
|
|
178
181
|
reason: error.message,
|
|
182
|
+
reasonCode: error.reasonCode,
|
|
183
|
+
parseErrorSourceType: error.parseErrorSourceType,
|
|
179
184
|
stack: transformError.stack,
|
|
180
185
|
trace,
|
|
181
186
|
asResponse: error.asResponse,
|