@jsenv/core 29.4.1 → 29.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "29.4.1",
3
+ "version": "29.4.3",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -43,6 +43,7 @@
43
43
  "eslint": "npx eslint . --ext=.js,.mjs,.cjs,.html",
44
44
  "dev": "node --conditions=development ./scripts/dev/dev.mjs",
45
45
  "test": "node --conditions=development ./scripts/test/test.mjs",
46
+ "test:resource_hints": "npm run test -- --only-resource-hints",
46
47
  "test:workspace": "npm run test --workspaces --if-present -- --workspace",
47
48
  "build": "node --conditions=development ./scripts/build/build.mjs",
48
49
  "workspace:versions": "node ./scripts/publish/workspace_versions.mjs",
@@ -72,7 +73,7 @@
72
73
  "@jsenv/importmap": "1.2.1",
73
74
  "@jsenv/integrity": "0.0.1",
74
75
  "@jsenv/log": "3.3.1",
75
- "@jsenv/node-esm-resolution": "0.1.1",
76
+ "@jsenv/node-esm-resolution": "0.2.0",
76
77
  "@jsenv/server": "14.1.8",
77
78
  "@jsenv/sourcemap": "1.0.6",
78
79
  "@jsenv/uneval": "1.6.0",
@@ -1212,7 +1212,6 @@ ${ANSI.color(buildUrl, ANSI.MAGENTA)}
1212
1212
  mutations.push(() => {
1213
1213
  setHtmlNodeAttributes(node, {
1214
1214
  href: buildSpecifierBeforeRedirect,
1215
- crossorigin: undefined,
1216
1215
  })
1217
1216
  })
1218
1217
  }
@@ -33,7 +33,7 @@ export const createNodeEsmResolver = ({ runtimeCompat, packageConditions }) => {
33
33
  if (!parentUrl.startsWith("file:")) {
34
34
  return new URL(reference.specifier, parentUrl).href
35
35
  }
36
- const { url, type, packageUrl } = applyNodeEsmResolution({
36
+ const { url, type, packageDirectoryUrl } = applyNodeEsmResolution({
37
37
  conditions: packageConditions,
38
38
  parentUrl,
39
39
  specifier: reference.specifier,
@@ -50,7 +50,7 @@ export const createNodeEsmResolver = ({ runtimeCompat, packageConditions }) => {
50
50
  addRelationshipWithPackageJson({
51
51
  reference,
52
52
  context,
53
- packageJsonUrl: `${packageUrl}package.json`,
53
+ packageJsonUrl: `${packageDirectoryUrl}package.json`,
54
54
  field: type.startsWith("field:")
55
55
  ? `#${type.slice("field:".length)}`
56
56
  : "",