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

fast-csv

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-csv - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

.vscode/settings.json

4

History.md

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

# v1.2.0
* Use `safer-buffer` polyfill to support node >= 8.
# v1.1.0

@@ -2,0 +6,0 @@

3

lib/formatter/formatter_stream.js
var fs = require("fs"),
util = require("util"),
extended = require("../extended"),
Buffer = require('safer-buffer').Buffer,
escape = extended.escape,

@@ -62,3 +63,3 @@ isArray = extended.isArray,

if (checkHeaders(self, item)) {
self.push(new Buffer(transformItem(self, item), "utf8"));
self.push(Buffer.from(transformItem(self, item), "utf8"));
}

@@ -65,0 +66,0 @@ cb();

var fs = require("fs"),
extended = require("../extended"),
Buffer = require('safer-buffer').Buffer,
has = extended.has,

@@ -132,3 +133,3 @@ isBoolean = extended.isBoolean,

stream.totalCount++;
stream.push(new Buffer(stream.formatter(stream.headers, true), "utf8"));
stream.push(Buffer.from(stream.formatter(stream.headers, true), "utf8"));
stream.hasWrittenHeaders = true;

@@ -135,0 +136,0 @@ ret = isHashArray(item) || !isArray(item);

{
"name": "fast-csv",
"version": "1.1.0",
"version": "1.2.0",
"description": "CSV parser and writer",

@@ -35,7 +35,8 @@ "main": "index.js",

"dependencies": {
"extended": "0.0.6",
"is-extended": "0.0.10",
"object-extended": "0.0.7",
"extended": "0.0.6",
"safer-buffer": "^2.1.2",
"string-extended": "0.0.8"
}
}
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