Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bare-addon-resolve

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-addon-resolve - npm Package Compare versions

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 @@ }

4

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc