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

render-data

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

render-data - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

3

index.js

@@ -42,5 +42,2 @@ var path = require('path')

}
if (typeof file.createReadStream !== 'function') {
throw new Error('missing or invalid file.createReadStream property')
}
}

@@ -47,0 +44,0 @@

15

lib/append-csv.js

@@ -1,5 +0,5 @@

// TODO: don't forget callback!
var csv = require('csv-parser')
module.exports = function (file, el, cb) {
if (!el) return callbackOnce(new Error ('el is undefined'))

@@ -38,2 +38,3 @@ var t = document.createElement('table')

parser.pause()
callbackOnce(null, t)
}

@@ -43,5 +44,15 @@ })

parser.on('end', function () {
if (inc >= incrBy) el.removeChild(more)
if (inc >= incrBy) {
el.removeChild(more)
}
else {
callbackOnce(null, t)
}
})
function callbackOnce (err, elem) {
cb(err, elem)
cb = function () {}
}
}
{
"name": "render-data",
"version": "1.1.0",
"version": "1.1.1",
"description": "Automagically render data files in the browser, like render-media",

@@ -22,4 +22,4 @@ "main": "index.js",

"render-media": "^2.0.2",
"stream-to-blob-url": "^1.0.0"
"stream-to-blob-url": "^2.0.0"
}
}

@@ -18,3 +18,5 @@ # render-data

name: 'stuff.R',
createReadStream: fs.createReadStream('/path/to/my/data/and/stuff')
createReadStream: function () {
return fs.createReadStream('/path/to/my/data/and/stuff')
}
}

@@ -21,0 +23,0 @@ data.render(file, elem, function (err) {

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