Socket
Socket
Sign inDemoInstall

hyperdrive-ui

Package Overview
Dependencies
74
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

30

index.js

@@ -10,4 +10,21 @@ var path = require('path')

var root = opts.root || ''
var entries = opts.entries || {}
var entries = {}
if (Array.isArray(opts.entries)) {
for (var i in opts.entries) {
addEntry(opts.entries[i])
}
}
function addEntry (entry) {
entries[entry.name] = entry
var dir = path.dirname(entry.name)
if (!entries[dir]) {
entries[dir] = {
type: 'directory',
name: dir,
length: 0
}
}
}
function clicky (ev, entry) {

@@ -42,11 +59,4 @@ if (entry.type === 'directory') {

stream.on('data', function (entry) {
entries[entry.name] = entry
var dir = path.dirname(entry.name)
if (!entries[dir]) {
entries[dir] = {
type: 'directory',
name: dir,
length: 0
}
}
addEntry(entry)
update()

@@ -53,0 +63,0 @@ })

{
"name": "hyperdrive-ui",
"version": "4.0.0",
"version": "4.0.1",
"description": "Render a hyperdrive in the browser.",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc