Comparing version 1.0.3 to 1.0.4
12
index.js
var relative = require('relative-date') | ||
var data = require('render-data') | ||
var pretty = require('pretty-bytes') | ||
@@ -60,12 +59,3 @@ var path = require('path') | ||
onclick(e, entry) | ||
if (entry.type === 'directory') { | ||
render(widget, entry.name, entries, onclick) | ||
} else if (entry.type === 'file') { | ||
var el = yo`<div id="data-viewport"></div>` | ||
data.render(entry, el, function (err, elem) { | ||
if (err) throw err | ||
console.log('done') | ||
yo.update(widget, elem) | ||
}) | ||
} | ||
if (entry.type === 'directory') render(widget, entry.name, entries, onclick) | ||
} | ||
@@ -72,0 +62,0 @@ return yo`<li class='entry ${entry.type}' onclick=${click}> |
{ | ||
"name": "yo-fs", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A client-side modular stream-friendly ui browser widget for navigating directories.", | ||
@@ -33,5 +33,4 @@ "main": "index.js", | ||
"relative-date": "^1.1.3", | ||
"render-data": "^1.0.0", | ||
"yo-yo": "^1.2.1" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # yo-fs | ||
#### `yofs(widget, root, entries, onclick)` | ||
#### `yofs(widget, path, entries, onclick)` | ||
@@ -12,0 +12,0 @@ * `widget`: if we already have a widget, update it, otherwise make a new one. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
3827
72
- Removedrender-data@^1.0.0
- Removedbinary-search@1.3.6(transitive)
- Removedbuffer-alloc@1.2.0(transitive)
- Removedbuffer-alloc-unsafe@1.1.0(transitive)
- Removedbuffer-fill@1.0.0(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcsv-parser@1.12.1(transitive)
- Removeddebug@3.2.7(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedgenerate-function@1.1.0(transitive)
- Removedgenerate-object-property@1.2.0(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-ascii@1.0.0(transitive)
- Removedis-property@1.0.2(transitive)
- Removedisarray@1.0.0(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedmediasource@2.4.0(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmp4-box-encoding@1.4.1(transitive)
- Removedmp4-stream@2.0.3(transitive)
- Removedms@2.1.3(transitive)
- Removedmultistream@2.1.1(transitive)
- Removedndjson@1.5.0(transitive)
- Removednext-event@1.0.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedpump@3.0.2(transitive)
- Removedrange-slice-stream@2.0.0(transitive)
- Removedreadable-stream@2.3.83.6.2(transitive)
- Removedrender-data@1.1.2(transitive)
- Removedrender-media@2.12.0(transitive)
- Removedsafe-buffer@5.1.25.2.1(transitive)
- Removedsplit2@2.2.0(transitive)
- Removedstream-to-blob@1.0.2(transitive)
- Removedstream-to-blob-url@2.1.2(transitive)
- Removedstring_decoder@1.1.11.3.0(transitive)
- Removedthrough2@2.0.5(transitive)
- Removedto-arraybuffer@1.0.1(transitive)
- Removeduint64be@2.0.2(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedvideostream@2.6.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)