@jsenv/core 29.1.3 → 29.1.5

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 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 = error.message;
9178
+ transformError.reason = reason;
9179
9179
 
9180
9180
  if (urlInfo.isInline) {
9181
9181
  transformError.traceLine = reference.trace.line + error.line - 1;
@@ -19843,7 +19843,7 @@ const jsenvPluginUrlResolution = ({
19843
19843
 
19844
19844
  let urlType;
19845
19845
 
19846
- if (reference.expectedType) {
19846
+ if (reference.injected) {
19847
19847
  urlType = reference.expectedType;
19848
19848
  } else {
19849
19849
  const parentUrlInfo = context.urlGraph.getUrlInfo(reference.parentUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "29.1.3",
3
+ "version": "29.1.5",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -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 = error.message
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
@@ -102,7 +102,7 @@ export const jsenvPluginUrlResolution = ({
102
102
  return resolveUrlUsingWebResolution(reference, context)
103
103
  }
104
104
  let urlType
105
- if (reference.expectedType) {
105
+ if (reference.injected) {
106
106
  urlType = reference.expectedType
107
107
  } else {
108
108
  const parentUrlInfo = context.urlGraph.getUrlInfo(reference.parentUrl)