config2ts 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config2ts.js +2 -2
- package/package.json +2 -2
package/lib/config2ts.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.GetValidFileList = GetValidFileList;
|
|
|
7
7
|
exports.startConvert = startConvert;
|
|
8
8
|
var path = require("path");
|
|
9
9
|
var fs = require("fs");
|
|
10
|
-
var
|
|
10
|
+
var d3_dsv_1 = require("d3-dsv");
|
|
11
11
|
var json5 = require("json5");
|
|
12
12
|
var changeCase = require("change-case");
|
|
13
13
|
var toml = require("toml");
|
|
@@ -30,7 +30,7 @@ exports.Convert = {
|
|
|
30
30
|
};
|
|
31
31
|
function csv2ts(csvString, moduleName) {
|
|
32
32
|
var convert = {};
|
|
33
|
-
var result =
|
|
33
|
+
var result = (0, d3_dsv_1.csvParse)(csvString, function (d, i) {
|
|
34
34
|
if (i === 0) {
|
|
35
35
|
convert = d;
|
|
36
36
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "config2ts",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "convert config to ts file.",
|
|
5
5
|
"main": "lib/config2ts.js",
|
|
6
6
|
"types": "lib/config2ts.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"change-case": "^4.1.2",
|
|
32
32
|
"commander": "^9.5.0",
|
|
33
|
-
"d3": "^
|
|
33
|
+
"d3-dsv": "^3.0.1",
|
|
34
34
|
"ini": "^3.0.1",
|
|
35
35
|
"json5": "^2.2.3",
|
|
36
36
|
"toml": "^3.0.0"
|