Comparing version 4.0.0-alpha.2 to 4.0.0
@@ -5,2 +5,17 @@ # Change Log | ||
<a name="4.0.0"></a> | ||
# [4.0.0](https://github.com/zemirco/json2csv/compare/v4.0.0-alpha.2...v4.0.0) (2018-02-27) | ||
### Bug Fixes | ||
* Replace webpack with rollup packaging ([#266](https://github.com/zemirco/json2csv/issues/266)) ([a9f8020](https://github.com/zemirco/json2csv/commit/a9f8020)) | ||
### Features | ||
* Pass transform options through ([#262](https://github.com/zemirco/json2csv/issues/262)) ([650913f](https://github.com/zemirco/json2csv/commit/650913f)) | ||
<a name="4.0.0-alpha.2"></a> | ||
@@ -7,0 +22,0 @@ # [4.0.0-alpha.2](https://github.com/zemirco/json2csv/compare/v4.0.0-alpha.1...v4.0.0-alpha.2) (2018-02-25) |
@@ -8,4 +8,4 @@ 'use strict'; | ||
class JSON2CSVTransform extends Transform { | ||
constructor(opts) { | ||
super(opts); | ||
constructor(opts, transformOpts) { | ||
super(transformOpts); | ||
@@ -12,0 +12,0 @@ // Inherit methods from JSON2CSVBase since extends doesn't |
{ | ||
"name": "json2csv", | ||
"preferGlobal": "true", | ||
"version": "4.0.0-alpha.2", | ||
"version": "4.0.0", | ||
"description": "Convert JSON to CSV", | ||
@@ -23,3 +23,5 @@ "keywords": [ | ||
}, | ||
"main": "./lib/json2csv.js", | ||
"main": "dist/json2csv.cjs.js", | ||
"module": "dist/json2csv.esm.js", | ||
"browser": "dist/json2csv.umd.js", | ||
"repository": { | ||
@@ -30,3 +32,4 @@ "type": "git", | ||
"scripts": { | ||
"build": "webpack", | ||
"build": "rollup -c", | ||
"dev": "rollup -c -w", | ||
"test": "node test | tap-spec", | ||
@@ -50,2 +53,4 @@ "lint": "eslint bin lib test", | ||
"devDependencies": { | ||
"babel-core": "^6.26.0", | ||
"babel-preset-es2015-rollup": "^3.0.0", | ||
"coveralls": "^3.0.0", | ||
@@ -57,7 +62,12 @@ "docpress": "^0.7.0", | ||
"nyc": "^11.4.1", | ||
"rollup": "^0.56.3", | ||
"rollup-plugin-babel": "^3.0.3", | ||
"rollup-plugin-commonjs": "^8.3.0", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"rollup-plugin-node-globals": "^1.1.0", | ||
"rollup-plugin-node-resolve": "^3.0.3", | ||
"standard-version": "^4.0.0", | ||
"tap-spec": "^4.1.1", | ||
"tape": "^4.8.0", | ||
"webpack": "^1.13.1" | ||
"tape": "^4.8.0" | ||
} | ||
} |
@@ -215,6 +215,7 @@ # json2csv | ||
const opts = { fields }; | ||
const transformOpts = { highWaterMark: 16384, encoding: 'utf-8' }; | ||
const input = fs.createReadStream(inputPath, { encoding: 'utf8' }); | ||
const output = fs.createWriteStream(outputPath, { encoding: 'utf8' }); | ||
const json2csv = new Json2csvTransform(opts); | ||
const json2csv = new Json2csvTransform(opts, transformOpts); | ||
@@ -221,0 +222,0 @@ const processor = input.pipe(json2csv).pipe(output); |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
892428
18
27100
1
619
17
6