@jsenv/core 39.5.17 → 39.5.18

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.
@@ -11591,6 +11591,7 @@ const createResolveUrlError = ({
11591
11591
  error,
11592
11592
  }) => {
11593
11593
  const createFailedToResolveUrlError = ({
11594
+ name = "RESOLVE_URL_ERROR",
11594
11595
  code = error.code || "RESOLVE_URL_ERROR",
11595
11596
  reason,
11596
11597
  ...details
@@ -11609,10 +11610,11 @@ ${reason}`,
11609
11610
  );
11610
11611
  defineNonEnumerableProperties(resolveError, {
11611
11612
  isJsenvCookingError: true,
11612
- name: "RESOLVE_URL_ERROR",
11613
+ name,
11613
11614
  code,
11614
11615
  reason,
11615
11616
  asResponse: error.asResponse,
11617
+ trace: error.trace || reference.trace,
11616
11618
  });
11617
11619
  return resolveError;
11618
11620
  };
@@ -11621,6 +11623,12 @@ ${reason}`,
11621
11623
  reason: `no plugin has handled the specifier during "resolveUrl" hook`,
11622
11624
  });
11623
11625
  }
11626
+ if (error.code === "MODULE_NOT_FOUND") {
11627
+ const bareSpecifierError = createFailedToResolveUrlError({
11628
+ reason: `"${reference.specifier}" is a bare specifier but cannot be remapped to a package`,
11629
+ });
11630
+ return bareSpecifierError;
11631
+ }
11624
11632
  if (error.code === "DIRECTORY_REFERENCE_NOT_ALLOWED") {
11625
11633
  error.message = createDetailedMessage$1(error.message, {
11626
11634
  "reference trace": reference.trace.message,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "39.5.17",
3
+ "version": "39.5.18",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -78,7 +78,7 @@
78
78
  "@jsenv/node-esm-resolution": "1.0.6",
79
79
  "@jsenv/plugin-bundling": "2.7.16",
80
80
  "@jsenv/plugin-minification": "1.5.10",
81
- "@jsenv/plugin-supervisor": "1.5.23",
81
+ "@jsenv/plugin-supervisor": "1.5.24",
82
82
  "@jsenv/plugin-transpilation": "1.4.83",
83
83
  "@jsenv/runtime-compat": "1.3.1",
84
84
  "@jsenv/server": "15.3.1",
@@ -102,14 +102,13 @@
102
102
  "@jsenv/performance-impact": "workspace:*",
103
103
  "@jsenv/plugin-as-js-classic": "workspace:*",
104
104
  "@jsenv/snapshot": "workspace:*",
105
+ "@jsenv/md-up": "workspace:*",
105
106
  "@jsenv/test": "workspace:*",
106
107
  "@playwright/browser-chromium": "1.48.2",
107
108
  "@playwright/browser-firefox": "1.48.2",
108
109
  "@playwright/browser-webkit": "1.48.2",
109
- "anchor-markdown-header": "0.7.0",
110
110
  "babel-plugin-transform-async-to-promises": "0.8.18",
111
111
  "eslint": "9.14.0",
112
- "marked": "14.1.3",
113
112
  "open": "10.1.0",
114
113
  "playwright": "1.48.2",
115
114
  "prettier": "3.3.3",
@@ -8,6 +8,7 @@ export const createResolveUrlError = ({
8
8
  error,
9
9
  }) => {
10
10
  const createFailedToResolveUrlError = ({
11
+ name = "RESOLVE_URL_ERROR",
11
12
  code = error.code || "RESOLVE_URL_ERROR",
12
13
  reason,
13
14
  ...details
@@ -26,10 +27,11 @@ ${reason}`,
26
27
  );
27
28
  defineNonEnumerableProperties(resolveError, {
28
29
  isJsenvCookingError: true,
29
- name: "RESOLVE_URL_ERROR",
30
+ name,
30
31
  code,
31
32
  reason,
32
33
  asResponse: error.asResponse,
34
+ trace: error.trace || reference.trace,
33
35
  });
34
36
  return resolveError;
35
37
  };
@@ -38,6 +40,12 @@ ${reason}`,
38
40
  reason: `no plugin has handled the specifier during "resolveUrl" hook`,
39
41
  });
40
42
  }
43
+ if (error.code === "MODULE_NOT_FOUND") {
44
+ const bareSpecifierError = createFailedToResolveUrlError({
45
+ reason: `"${reference.specifier}" is a bare specifier but cannot be remapped to a package`,
46
+ });
47
+ return bareSpecifierError;
48
+ }
41
49
  if (error.code === "DIRECTORY_REFERENCE_NOT_ALLOWED") {
42
50
  error.message = createDetailedMessage(error.message, {
43
51
  "reference trace": reference.trace.message,