Socket
Socket
Sign inDemoInstall

hyperdrive-ui

Package Overview
Dependencies
74
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

npm-debug.log.3040676461

24

index.js

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

var root = opts.root || '/'
var dirs = {}
var entries = []
var entries = {}

@@ -21,6 +20,14 @@ function clicky (ev, entry) {

var tree = yofs(root, entries, clicky)
var tree = yofs(root, [], clicky)
function update () {
var fresh = tree.render(root, entries, clicky)
// super inefficient. yo-fs should probably have a .add(entry)
// function instead of recomputing the entry list every time
var vals = []
for (var key in entries) {
if (entries.hasOwnProperty(key)) {
vals.push(entries[key])
}
}
var fresh = tree.render(root, vals, clicky)
yo.update(tree.widget, fresh)

@@ -34,11 +41,10 @@ }

}
entries.push(entry)
entries[entry.name] = entry
var dir = path.dirname(entry.name)
if (!dirs[dir]) {
entries.push({
if (!entries[dir]) {
entries[dir] = {
type: 'directory',
name: dir,
length: 0
})
dirs[dir] = true
}
}

@@ -45,0 +51,0 @@ update()

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

@@ -22,3 +22,6 @@ "main": "index.js",

"url": "https://github.com/karissa/hyperdrive-ui/issues"
},
"devDependencies": {
"standard": "^7.1.2"
}
}

Sorry, the diff of this file is not supported yet

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