bare-addon-resolve
Advanced tools
Comparing version 1.1.0 to 1.2.0
16
index.js
@@ -96,2 +96,10 @@ const resolve = require('bare-module-resolve') | ||
if (version !== null) { | ||
if (builtins.includes(name + '@' + version)) { | ||
yield { resolution: new URL(builtinProtocol + name + '@' + version) } | ||
return true | ||
} | ||
} | ||
if (builtins.includes(name)) { | ||
@@ -106,6 +114,2 @@ yield { resolution: new URL(builtinProtocol + name) } | ||
for (const prebuildsURL of exports.lookupPrebuildsScope(directoryURL, opts)) { | ||
if (yield * exports.file(name, prebuildsURL, opts)) { | ||
yielded = true | ||
} | ||
if (version !== null) { | ||
@@ -116,2 +120,6 @@ if (yield * exports.file(name + '@' + version, prebuildsURL, opts)) { | ||
} | ||
if (yield * exports.file(name, prebuildsURL, opts)) { | ||
yielded = true | ||
} | ||
} | ||
@@ -118,0 +126,0 @@ |
{ | ||
"name": "bare-addon-resolve", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Low-level addon resolution algorithm for Bare", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20524
141