bare-addon-resolve
Advanced tools
Comparing version 1.5.2 to 1.6.0
14
index.js
@@ -174,3 +174,3 @@ const resolve = require('bare-module-resolve') | ||
exports.directory = function * (dirname, parentURL, opts = {}) { | ||
const { resolutions = null, builtins = [], builtinProtocol = 'builtin:' } = opts | ||
const { resolutions = null, builtins = [] } = opts | ||
@@ -212,13 +212,3 @@ let directoryURL | ||
if (version !== null) { | ||
if (builtins.includes(name + '@' + version)) { | ||
yield { resolution: new URL(builtinProtocol + name + '@' + version) } | ||
return true | ||
} | ||
} | ||
if (builtins.includes(name)) { | ||
yield { resolution: new URL(builtinProtocol + name) } | ||
if (yield * resolve.builtinTarget(name, version, builtins, opts)) { | ||
return true | ||
@@ -225,0 +215,0 @@ } |
{ | ||
"name": "bare-addon-resolve", | ||
"version": "1.5.2", | ||
"version": "1.6.0", | ||
"description": "Low-level addon resolution algorithm for Bare", | ||
@@ -28,3 +28,3 @@ "exports": { | ||
"dependencies": { | ||
"bare-module-resolve": "^1.5.0" | ||
"bare-module-resolve": "^1.8.0" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
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
24911
227
Updatedbare-module-resolve@^1.8.0