@jsenv/node-esm-resolution 0.2.0 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/node-esm-resolution",
3
- "version": "0.2.0",
3
+ "version": "1.0.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -102,7 +102,12 @@ const applyPackageSpecifierResolution = (specifier, resolutionContext) => {
102
102
  if (browserFieldResolution) {
103
103
  return browserFieldResolution
104
104
  }
105
- return applyPackageResolve(specifier, resolutionContext)
105
+ const packageResolution = applyPackageResolve(specifier, resolutionContext)
106
+ const search = new URL(specifier, "file://").search
107
+ if (search) {
108
+ packageResolution.url = `${packageResolution.url}${search}`
109
+ }
110
+ return packageResolution
106
111
  }
107
112
  }
108
113