export-table-pulgin-csharp 1.1.132 → 1.1.133
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/dist/ExportLiteDBUnityCSJsonPlugin.d.ts.map +1 -1
- package/dist/ExportLiteDBUnityCSJsonPlugin.js +12 -3
- package/dist/ExportUnityCSJsonPlugin.d.ts.map +1 -1
- package/dist/ExportUnityCSJsonPlugin.js +10 -1
- package/package.json +1 -1
- package/src/ExportLiteDBUnityCSJsonPlugin.ts +11 -3
- package/src/ExportUnityCSJsonPlugin.ts +9 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportLiteDBUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportLiteDBUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAqC,MAAM,kBAAkB,CAAA;AAUxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"ExportLiteDBUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportLiteDBUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAqC,MAAM,kBAAkB,CAAA;AAUxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA+FnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAsDzE;AAED,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,iBAczD;AACD,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,iBAmB5E;AAED,qBAAa,uBAAwB,SAAQ,UAAU;IACtD,IAAI,SAAgB;IACpB,IAAI,EAAE,MAAM,EAAE,CAAkB;IAEhC,WAAW,CAAC,KAAK,EAAE,iBAAiB;IAoB9B,WAAW,CAAC,KAAK,EAAE,iBAAiB;CAqD1C"}
|
|
@@ -53,10 +53,19 @@ function exportUJson(paras) {
|
|
|
53
53
|
let objs = [];
|
|
54
54
|
while (0 <= index && index < content.length) {
|
|
55
55
|
index2 = content.indexOf("|", index);
|
|
56
|
+
if (index2 == -1) {
|
|
57
|
+
if (content.length > 0) {
|
|
58
|
+
console.error(`表格格式错误,缺少部分数据,将用默认值填充: ${content}`);
|
|
59
|
+
}
|
|
60
|
+
index2 = content.indexOf(";;", index);
|
|
61
|
+
index = index2;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
index = content.indexOf(";;", index2);
|
|
65
|
+
}
|
|
56
66
|
let numStr = content.substring(index, index2);
|
|
57
67
|
let t1 = m[1];
|
|
58
68
|
let v1 = (0, CSParseTool_1.TryConvValue)(numStr, t1, f);
|
|
59
|
-
index = content.indexOf(";;", index2);
|
|
60
69
|
let posEnd = index;
|
|
61
70
|
if (index == -1) {
|
|
62
71
|
posEnd = content.length;
|
|
@@ -67,8 +76,8 @@ function exportUJson(paras) {
|
|
|
67
76
|
let ssStr = content.substring(index2 + 1, posEnd);
|
|
68
77
|
let t2 = m[2];
|
|
69
78
|
let v2 = (0, CSParseTool_1.TryConvValue)(ssStr, t2, f);
|
|
70
|
-
console.log(`parseinfo1: ${content}, ${index2}, ${index}, ${numStr}, ${t1}, ${v1}`)
|
|
71
|
-
console.log(`parseinfo2: ${content}, ${index2}, ${index}, ${ssStr}, ${t2}, ${v2}`)
|
|
79
|
+
// console.log(`parseinfo1: ${content}, ${index2}, ${index}, ${numStr}, ${t1}, ${v1}`)
|
|
80
|
+
// console.log(`parseinfo2: ${content}, ${index2}, ${index}, ${ssStr}, ${t2}, ${v2}`)
|
|
72
81
|
objs.push({
|
|
73
82
|
Item1: v1,
|
|
74
83
|
Item2: v2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAqC,MAAM,kBAAkB,CAAA;AAOxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"ExportUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAqC,MAAM,kBAAkB,CAAA;AAOxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA8FnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAuGzE;AAED,qBAAa,iBAAkB,SAAQ,UAAU;IAChD,IAAI,SAAU;IACd,IAAI,EAAE,MAAM,EAAE,CAAY;IAE1B,WAAW,CAAC,KAAK,EAAE,iBAAiB;IAmBpC,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAmC3C"}
|
|
@@ -47,10 +47,19 @@ function exportUJson(paras) {
|
|
|
47
47
|
let objs = [];
|
|
48
48
|
while (0 <= index && index < content.length) {
|
|
49
49
|
index2 = content.indexOf("|", index);
|
|
50
|
+
if (index2 == -1) {
|
|
51
|
+
if (content.length > 0) {
|
|
52
|
+
console.error(`表格格式错误,缺少部分数据,将用默认值填充: ${content}`);
|
|
53
|
+
}
|
|
54
|
+
index2 = content.indexOf(";;", index);
|
|
55
|
+
index = index2;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
index = content.indexOf(";;", index2);
|
|
59
|
+
}
|
|
50
60
|
let numStr = content.substring(index, index2);
|
|
51
61
|
let t1 = m[1];
|
|
52
62
|
let v1 = (0, CSParseTool_1.TryConvValue)(numStr, t1, f);
|
|
53
|
-
index = content.indexOf(";;", index2);
|
|
54
63
|
let posEnd = index;
|
|
55
64
|
if (index == -1) {
|
|
56
65
|
posEnd = content.length;
|
package/package.json
CHANGED
|
@@ -36,10 +36,18 @@ export function exportUJson(paras: HandleSheetParams): string | null {
|
|
|
36
36
|
let objs: object[] = []
|
|
37
37
|
while (0 <= index && index < content.length) {
|
|
38
38
|
index2 = content.indexOf("|", index)
|
|
39
|
+
if (index2 == -1) {
|
|
40
|
+
if (content.length > 0) {
|
|
41
|
+
console.error(`表格格式错误,缺少部分数据,将用默认值填充: ${content}`)
|
|
42
|
+
}
|
|
43
|
+
index2 = content.indexOf(";;", index)
|
|
44
|
+
index = index2
|
|
45
|
+
} else {
|
|
46
|
+
index = content.indexOf(";;", index2)
|
|
47
|
+
}
|
|
39
48
|
let numStr = content.substring(index, index2)
|
|
40
49
|
let t1 = m[1]
|
|
41
50
|
let v1 = TryConvValue(numStr, t1 as any, f);
|
|
42
|
-
index = content.indexOf(";;", index2)
|
|
43
51
|
let posEnd = index
|
|
44
52
|
if (index == -1) {
|
|
45
53
|
posEnd = content.length
|
|
@@ -49,8 +57,8 @@ export function exportUJson(paras: HandleSheetParams): string | null {
|
|
|
49
57
|
let ssStr = content.substring(index2 + 1, posEnd)
|
|
50
58
|
let t2 = m[2]
|
|
51
59
|
let v2 = TryConvValue(ssStr, t2 as any, f);
|
|
52
|
-
console.log(`parseinfo1: ${content}, ${index2}, ${index}, ${numStr}, ${t1}, ${v1}`)
|
|
53
|
-
console.log(`parseinfo2: ${content}, ${index2}, ${index}, ${ssStr}, ${t2}, ${v2}`)
|
|
60
|
+
// console.log(`parseinfo1: ${content}, ${index2}, ${index}, ${numStr}, ${t1}, ${v1}`)
|
|
61
|
+
// console.log(`parseinfo2: ${content}, ${index2}, ${index}, ${ssStr}, ${t2}, ${v2}`)
|
|
54
62
|
objs.push({
|
|
55
63
|
Item1: v1,
|
|
56
64
|
Item2: v2,
|
|
@@ -32,10 +32,18 @@ export function exportUJson(paras: HandleSheetParams): string | null {
|
|
|
32
32
|
let objs: object[] = []
|
|
33
33
|
while (0 <= index && index < content.length) {
|
|
34
34
|
index2 = content.indexOf("|", index)
|
|
35
|
+
if (index2 == -1) {
|
|
36
|
+
if (content.length > 0) {
|
|
37
|
+
console.error(`表格格式错误,缺少部分数据,将用默认值填充: ${content}`)
|
|
38
|
+
}
|
|
39
|
+
index2 = content.indexOf(";;", index)
|
|
40
|
+
index = index2
|
|
41
|
+
} else {
|
|
42
|
+
index = content.indexOf(";;", index2)
|
|
43
|
+
}
|
|
35
44
|
let numStr = content.substring(index, index2)
|
|
36
45
|
let t1 = m[1]
|
|
37
46
|
let v1 = TryConvValue(numStr, t1 as any, f);
|
|
38
|
-
index = content.indexOf(";;", index2)
|
|
39
47
|
let posEnd = index
|
|
40
48
|
if (index == -1) {
|
|
41
49
|
posEnd = content.length
|