-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix json packages and ensure consistent order of its fields
- Loading branch information
1 parent
1b27389
commit 0b0ce1e
Showing
9 changed files
with
175 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"name": "json2csv", | ||
"version": "6.0.0", | ||
"private": true, | ||
"description": "Fast and highly configurable JSON to CSV converter", | ||
"keywords": [ | ||
"json", | ||
|
@@ -10,17 +11,29 @@ | |
"convert", | ||
"parse" | ||
], | ||
"author": { | ||
"name": "Juanjo Díaz", | ||
"email": "juanjo.diazmo@gmail.com" | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"bugs": { | ||
"url": "https://github.com/juanjoDiaz/json2csv/issues" | ||
}, | ||
"license": "MIT", | ||
"private": true, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/juanjodiaz/json2csv" | ||
}, | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"license": "MIT", | ||
"author": { | ||
"name": "Juanjo Díaz", | ||
"email": "[email protected]" | ||
}, | ||
"workspaces": [ | ||
"packages/cli", | ||
"packages/formatters", | ||
"packages/node", | ||
"packages/parsers", | ||
"packages/test-helpers", | ||
"packages/transforms", | ||
"packages/whatwg", | ||
"packages/test-performance" | ||
], | ||
"scripts": { | ||
"docs:prebuild": "esbuild docs/docs-export.js --bundle --outfile=docs/json2csv.js", | ||
"docs:preview": "docsify serve docs", | ||
|
@@ -50,15 +63,5 @@ | |
}, | ||
"volta": { | ||
"node": "14.17.0" | ||
}, | ||
"workspaces": [ | ||
"packages/cli", | ||
"packages/formatters", | ||
"packages/node", | ||
"packages/parsers", | ||
"packages/test-helpers", | ||
"packages/transforms", | ||
"packages/whatwg", | ||
"packages/test-performance" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,30 +2,37 @@ | |
"name": "@json2csv/cli", | ||
"version": "6.0.0", | ||
"description": "Command Line Interface to convert JSON to CSV.", | ||
"keywords": [ "json", "to", "csv", "export", "convert", "parse"], | ||
"type": "module", | ||
"bin": { | ||
"json2csv": "./bin/json2csv.js" | ||
}, | ||
"scripts": { | ||
"lint": "eslint bin test", | ||
"test:raw": "node test", | ||
"test": "npm run test:raw | tap-spec", | ||
"test-with-coverage": "c8 --reporter=text npm test" | ||
"keywords": [ | ||
"json", | ||
"to", | ||
"csv", | ||
"export", | ||
"convert", | ||
"parse" | ||
], | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"bugs": { | ||
"url": "https://github.com/juanjoDiaz/json2csv/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/juanjoDiaz/json2csv.git" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Juanjo Díaz", | ||
"email": "[email protected]" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/juanjoDiaz/json2csv/issues" | ||
"type": "module", | ||
"bin": { | ||
"json2csv": "./bin/json2csv.js" | ||
}, | ||
"scripts": { | ||
"lint": "eslint bin test", | ||
"test": "npm run test:raw | tap-spec", | ||
"test-with-coverage": "c8 --reporter=text npm test", | ||
"test:raw": "node test" | ||
}, | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"dependencies": { | ||
"commander": "^9.3.0" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,28 +2,35 @@ | |
"name": "@json2csv/formatters", | ||
"version": "6.0.0", | ||
"description": "json2csv built-in formatters. A formatter is a function that receives the raw js value of a given type and formats it as a valid CSV cell.", | ||
"keywords": [ "json", "to", "csv", "export", "convert", "parse"], | ||
"type": "module", | ||
"main": "src/index.js", | ||
"exports": { | ||
"./*": "./src/*.js", | ||
".": "./src/index.js" | ||
}, | ||
"scripts": { | ||
"lint": "eslint src", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"keywords": [ | ||
"json", | ||
"to", | ||
"csv", | ||
"export", | ||
"convert", | ||
"parse" | ||
], | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"bugs": { | ||
"url": "https://github.com/juanjoDiaz/json2csv/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/juanjoDiaz/json2csv.git" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Juanjo Díaz", | ||
"email": "[email protected]" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/juanjoDiaz/json2csv/issues" | ||
"type": "module", | ||
"exports": { | ||
"./*": "./src/*.js", | ||
".": "./src/index.js" | ||
}, | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"lint": "eslint src", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,30 +2,37 @@ | |
"name": "@json2csv/node", | ||
"version": "6.0.0", | ||
"description": "Node.js Transform and Async interface to convert JSON into CSV.", | ||
"keywords": [ "json", "to", "csv", "export", "convert", "parse"], | ||
"type": "module", | ||
"main": "src/index.js", | ||
"exports": { | ||
"./*": "./src/*.js", | ||
".": "./src/index.js" | ||
}, | ||
"scripts": { | ||
"lint": "eslint src test", | ||
"test:raw": "node test", | ||
"test": "npm run test:raw | tap-spec", | ||
"test-with-coverage": "c8 --reporter=text npm test" | ||
"keywords": [ | ||
"json", | ||
"to", | ||
"csv", | ||
"export", | ||
"convert", | ||
"parse" | ||
], | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"bugs": { | ||
"url": "https://github.com/juanjoDiaz/json2csv/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/juanjoDiaz/json2csv.git" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Juanjo Díaz", | ||
"email": "[email protected]" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/juanjoDiaz/json2csv/issues" | ||
"type": "module", | ||
"exports": { | ||
"./*": "./src/*.js", | ||
".": "./src/index.js" | ||
}, | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"lint": "eslint src test", | ||
"test": "npm run test:raw | tap-spec", | ||
"test-with-coverage": "c8 --reporter=text npm test", | ||
"test:raw": "node test" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,32 +2,39 @@ | |
"name": "@json2csv/parsers", | ||
"version": "6.0.0", | ||
"description": "Pure Javascript JSON to CSV converter.", | ||
"keywords": [ "json", "to", "csv", "export", "convert", "parse"], | ||
"type": "module", | ||
"main": "src/index.js", | ||
"exports": { | ||
"./*": "./src/*.js", | ||
".": "./src/index.js" | ||
}, | ||
"scripts": { | ||
"lint": "eslint src test", | ||
"test:raw": "node test", | ||
"test": "npm run test:raw | tap-spec", | ||
"test-with-coverage": "c8 --reporter=text npm test" | ||
"keywords": [ | ||
"json", | ||
"to", | ||
"csv", | ||
"export", | ||
"convert", | ||
"parse" | ||
], | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"bugs": { | ||
"url": "https://github.com/juanjoDiaz/json2csv/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/juanjoDiaz/json2csv.git" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Juanjo Díaz", | ||
"email": "[email protected]" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/juanjoDiaz/json2csv/issues" | ||
"type": "module", | ||
"exports": { | ||
"./*": "./src/*.js", | ||
".": "./src/index.js" | ||
}, | ||
"main": "src/index.js", | ||
"scripts": { | ||
"lint": "eslint src test", | ||
"test": "npm run test:raw | tap-spec", | ||
"test-with-coverage": "c8 --reporter=text npm test", | ||
"test:raw": "node test" | ||
}, | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"dependencies": { | ||
"@streamparser/json": "^0.0.7", | ||
"lodash.get": "^4.4.2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,22 @@ | |
"name": "@json2csv/test-helpers", | ||
"version": "6.0.0", | ||
"description": "Test helper to test the json2csv libraries", | ||
"devDependencies": {}, | ||
"scripts": { | ||
"lint": "eslint **/*.js", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"bugs": { | ||
"url": "https://github.com/juanjoDiaz/json2csv/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/juanjoDiaz/json2csv.git" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Juanjo Díaz", | ||
"email": "[email protected]" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/juanjoDiaz/json2csv/issues" | ||
"scripts": { | ||
"lint": "eslint **/*.js", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"devDependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,30 +2,37 @@ | |
"name": "@json2csv/transforms", | ||
"version": "6.0.0", | ||
"description": "json2csv built-in transforms. A transform is a function that receives a data recod and returns a transformed record. Transforms are executed in order before converting the data record into a CSV row.", | ||
"keywords": [ "json", "to", "csv", "export", "convert", "parse"], | ||
"type": "module", | ||
"main": "src/index.js", | ||
"exports": { | ||
"./*": "./src/*.js", | ||
".": "./src/index.js" | ||
}, | ||
"scripts": { | ||
"lint": "eslint src", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"keywords": [ | ||
"json", | ||
"to", | ||
"csv", | ||
"export", | ||
"convert", | ||
"parse" | ||
], | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"bugs": { | ||
"url": "https://github.com/juanjoDiaz/json2csv/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/juanjoDiaz/json2csv.git" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Juanjo Díaz", | ||
"email": "[email protected]" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/juanjoDiaz/json2csv/issues" | ||
"type": "module", | ||
"exports": { | ||
"./*": "./src/*.js", | ||
".": "./src/index.js" | ||
}, | ||
"main": "src/index.js", | ||
"scripts": { | ||
"lint": "eslint src", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"homepage": "http://juanjodiaz.github.io/json2csv", | ||
"dependencies": { | ||
"lodash.get": "^4.4.2" | ||
} | ||
|
Oops, something went wrong.