@jsenv/core 40.10.0 → 40.11.0

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.
@@ -95,6 +95,10 @@ export const jsenvPluginProtocolFile = ({
95
95
  return null;
96
96
  }
97
97
  const { firstReference } = urlInfo;
98
+ if (!firstReference) {
99
+ console.warn("No firstReference for", urlInfo.url);
100
+ return null;
101
+ }
98
102
  let { fsStat } = firstReference;
99
103
  if (!fsStat) {
100
104
  fsStat = readEntryStatSync(urlInfo.url, { nullIfNotFound: true });
@@ -123,6 +127,9 @@ export const jsenvPluginProtocolFile = ({
123
127
  return null;
124
128
  }
125
129
  const { firstReference } = urlInfo;
130
+ if (!firstReference) {
131
+ return null;
132
+ }
126
133
  let { fsStat } = firstReference;
127
134
  if (!fsStat) {
128
135
  fsStat = readEntryStatSync(urlInfo.url, { nullIfNotFound: true });