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

yo-fs

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yo-fs - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

15

index.js

@@ -11,3 +11,2 @@ var relative = require('relative-date')

var fresh = Tree(widget, root, entries, onclick)
console.log(widget, fresh)
if (widget) yo.update(widget, fresh)

@@ -41,5 +40,9 @@ return fresh

function backButton () {
console.log('clicked')
render(widget, path.dirname(root), entries, onclick)
function backButton (ev) {
var entry = {
name: path.dirname(root),
type: 'directory'
}
onclick(ev, entry)
render(widget, entry.name, entries, onclick)
}

@@ -58,2 +61,3 @@ function backRow () {

function click (e) {
onclick(e, entry)
if (entry.type === 'directory') {

@@ -68,5 +72,4 @@ render(widget, entry.name, entries, onclick)

}
onclick(e, entry)
}
return yo`<li class='entry-${entry.type}' onclick=${click}>
return yo`<li class='entry ${entry.type}' onclick=${click}>
<a href="javascript:void(0)">

@@ -73,0 +76,0 @@ <span class="name">${path.basename(entry.name)}</span>

2

package.json
{
"name": "yo-fs",
"version": "1.0.1",
"version": "1.0.2",
"description": "a filesystem browser built with yo",

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

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