You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

bare-union-bundle

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-union-bundle - npm Package Compare versions

Comparing version
1.0.2
to
1.0.3
+19
-3
index.js

@@ -99,6 +99,6 @@ const traverse = require('bare-module-traverse')

for (const [k, v] of Object.entries(map)) {
const nm = new URL('.' + v, root).href
if (skipModules && v.startsWith('/node_modules/') && cache[nm]) {
const nm = (v.startsWith('/node_modules') && skipModules) ? findModule(cache, v, root) : null
if (nm) {
m[k] = 'bundle://host' + v
bundleCache[m[k]] = cache[nm]
bundleCache[m[k]] = nm
} else {

@@ -171,1 +171,17 @@ m[k] = 'bundle://layer' + v

}
function findModule (cache, v, root) {
let s = '.'
let prev = null
while (true) {
const cand = new URL(s + v, root).href
s += '/..'
if (prev === cand) break
prev = cand
const nm = cache[cand]
if (nm) return nm
}
return null
}
+1
-1
{
"name": "bare-union-bundle",
"version": "1.0.2",
"version": "1.0.3",
"description": "Union bundle",

@@ -5,0 +5,0 @@ "main": "index.js",