csv-generate
Advanced tools
Comparing version 4.2.6 to 4.2.7
@@ -14,5 +14,5 @@ | ||
chunk = Buffer.from(chunk); | ||
controller.enqueue(chunk) | ||
controller.enqueue(chunk); | ||
}, function(){ | ||
controller.close() | ||
controller.close(); | ||
}); | ||
@@ -22,4 +22,4 @@ } | ||
// return new Generator(options || {}) | ||
} | ||
}; | ||
export {generate}; |
{ | ||
"version": "4.2.6", | ||
"version": "4.2.7", | ||
"name": "csv-generate", | ||
@@ -14,12 +14,12 @@ "description": "CSV and object generation implementing the Node.js `stream.Readable` API", | ||
"devDependencies": { | ||
"@rollup/plugin-eslint": "^9.0.3", | ||
"@rollup/plugin-node-resolve": "^15.0.1", | ||
"@rollup/plugin-eslint": "^9.0.4", | ||
"@rollup/plugin-node-resolve": "^15.1.0", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^18.15.3", | ||
"@types/node": "^20.5.0", | ||
"@types/should": "^13.0.0", | ||
"coffeescript": "~2.7.0", | ||
"each": "^2.3.0", | ||
"eslint": "^8.36.0", | ||
"each": "^2.4.0", | ||
"eslint": "^8.47.0", | ||
"mocha": "~10.2.0", | ||
"rollup": "^3.19.1", | ||
"rollup": "^3.28.0", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
@@ -29,3 +29,3 @@ "rollup-plugin-node-globals": "^1.4.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.0.2" | ||
"typescript": "^5.1.6" | ||
}, | ||
@@ -99,3 +99,5 @@ "exports": { | ||
"build:ts": "cp lib/index.d.ts dist/cjs/index.d.cts && cp lib/stream.d.ts dist/cjs/stream.d.cts && cp lib/sync.d.ts dist/cjs/sync.d.cts && cp lib/*.ts dist/esm", | ||
"postbuild:ts": "find dist/cjs -name '*.d.cts' -exec sh -c \"sed -i \"s/\\.js'/\\.cjs'/g\" {} || sed -i '' \"s/\\.js'/\\.cjs'/g\" {}\" \\;", | ||
"lint": "npm run lint:lib && npm run lint:samples && npm run lint:test", | ||
"postlint": "tsc --noEmit true", | ||
"lint:lib": "eslint --fix lib/*.js", | ||
@@ -127,3 +129,3 @@ "lint:samples": "eslint --fix samples/*.js", | ||
}, | ||
"gitHead": "fbff146dc9a9b943586e110ecb143aeb056e3400" | ||
"gitHead": "1eac79beca3cdfdcd118662aedddd400cb5a26ac" | ||
} |
# CSV generator for Node.js and the web | ||
[![Build Status](https://img.shields.io/github/workflow/status/adaltas/node-csv/Node.js)](https://github.com/adaltas/node-csv/actions) | ||
[![Build Status](https://img.shields.io/github/actions/workflow/status/adaltas/node-csv/nodejs.yml?branch=master)](https://github.com/adaltas/node-csv/actions) | ||
[![NPM](https://img.shields.io/npm/dm/csv-generate)](https://www.npmjs.com/package/csv-generate) | ||
@@ -48,3 +48,3 @@ [![NPM](https://img.shields.io/npm/v/csv-generate)](https://www.npmjs.com/package/csv-generate) | ||
}) | ||
// Use the readable stream api to consume generated records | ||
// Use the readable stream api to consume generated records | ||
.on('readable', function(){ | ||
@@ -55,7 +55,7 @@ let record; while((record = this.read()) !== null){ | ||
}) | ||
// Catch any error | ||
// Catch any error | ||
.on('error', function(err){ | ||
console.error(err); | ||
}) | ||
// Test that the generated records matched the expected records | ||
// Test that the generated records matched the expected records | ||
.on('end', function(){ | ||
@@ -62,0 +62,0 @@ assert.deepEqual(records, [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1195431
29317