bare-addon-resolve
Advanced tools
Comparing version 1.5.0 to 1.5.1
10
index.js
@@ -174,3 +174,3 @@ const resolve = require('bare-module-resolve') | ||
exports.directory = function * (dirname, parentURL, opts = {}) { | ||
const { builtins = [], builtinProtocol = 'builtin:' } = opts | ||
const { resolutions = null, builtins = [], builtinProtocol = 'builtin:' } = opts | ||
@@ -185,2 +185,10 @@ let directoryURL | ||
// Internal preresolution path, do not depend on this! It will be removed without | ||
// warning. | ||
if (resolutions) { | ||
if (yield * resolve.preresolved('bare:addon', resolutions, directoryURL, opts)) { | ||
return true | ||
} | ||
} | ||
let name = null | ||
@@ -187,0 +195,0 @@ let version = null |
{ | ||
"name": "bare-addon-resolve", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Low-level addon resolution algorithm for Bare", | ||
@@ -5,0 +5,0 @@ "exports": { |
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
24893
234