export-table-pulgin-csharp 1.1.128 → 1.1.130
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.
|
@@ -180,7 +180,7 @@ async function ConvJson2LiteDB(litedbpath, savePaths) {
|
|
|
180
180
|
let modulePath = require.resolve(".");
|
|
181
181
|
let binPath = path_1.default.resolve(modulePath, "../../bin/Json2LiteDB.exe");
|
|
182
182
|
// let dbPath = path.resolve("../../../GameClient/Assets/Bundles/GameConfigs/Auto/MainConfig.db.bytes");
|
|
183
|
-
let dbPath =
|
|
183
|
+
// let dbPath = path.resolve(litedbpath)
|
|
184
184
|
let savePaths2 = savePaths.map(savePath => path_1.default.resolve(savePath));
|
|
185
185
|
let cmdParas = savePaths2.concat();
|
|
186
186
|
cmdParas.unshift(litedbpath);
|
|
@@ -219,7 +219,7 @@ class ExportLiteDBUJsonPlugin extends export_table_lib_1.PluginBase {
|
|
|
219
219
|
}
|
|
220
220
|
async handleBatch(paras) {
|
|
221
221
|
let { moreOptions, tables, exportNamespace, } = paras;
|
|
222
|
-
let isSkipIndexLoader =
|
|
222
|
+
let isSkipIndexLoader = moreOptions?.SkipIndexLoader ?? false;
|
|
223
223
|
if (isSkipIndexLoader0) {
|
|
224
224
|
isSkipIndexLoader = true;
|
|
225
225
|
}
|
|
@@ -61,8 +61,8 @@ function exportUJson(paras) {
|
|
|
61
61
|
let ssStr = content.substring(index2 + 1, posEnd);
|
|
62
62
|
let t2 = m[2];
|
|
63
63
|
let v2 = (0, CSParseTool_1.TryConvValue)(ssStr, t2, f);
|
|
64
|
-
console.log(`parseinfo1: ${content}, ${index2}, ${index}, ${numStr}, ${t1}, ${v1}`)
|
|
65
|
-
console.log(`parseinfo2: ${content}, ${index2}, ${index}, ${ssStr}, ${t2}, ${v2}`)
|
|
64
|
+
// console.log(`parseinfo1: ${content}, ${index2}, ${index}, ${numStr}, ${t1}, ${v1}`)
|
|
65
|
+
// console.log(`parseinfo2: ${content}, ${index2}, ${index}, ${ssStr}, ${t2}, ${v2}`)
|
|
66
66
|
objs.push({
|
|
67
67
|
Item1: v1,
|
|
68
68
|
Item2: v2,
|
|
@@ -225,7 +225,7 @@ class ExportUJsonPlugin extends export_table_lib_1.PluginBase {
|
|
|
225
225
|
}
|
|
226
226
|
handleBatch(paras) {
|
|
227
227
|
let { moreOptions, tables, exportNamespace, } = paras;
|
|
228
|
-
let isSkipIndexLoader =
|
|
228
|
+
let isSkipIndexLoader = moreOptions?.SkipIndexLoader ?? false;
|
|
229
229
|
if (isSkipIndexLoader0) {
|
|
230
230
|
isSkipIndexLoader = true;
|
|
231
231
|
}
|
package/package.json
CHANGED
|
@@ -174,7 +174,7 @@ export async function ConvJson2LiteDB(litedbpath: string, savePaths: string[]) {
|
|
|
174
174
|
let modulePath = require.resolve(".")
|
|
175
175
|
let binPath = path.resolve(modulePath, "../../bin/Json2LiteDB.exe")
|
|
176
176
|
// let dbPath = path.resolve("../../../GameClient/Assets/Bundles/GameConfigs/Auto/MainConfig.db.bytes");
|
|
177
|
-
let dbPath = path.resolve(litedbpath)
|
|
177
|
+
// let dbPath = path.resolve(litedbpath)
|
|
178
178
|
let savePaths2 = savePaths.map(savePath => path.resolve(savePath))
|
|
179
179
|
let cmdParas = savePaths2.concat();
|
|
180
180
|
cmdParas.unshift(litedbpath);
|
|
@@ -221,7 +221,7 @@ export class ExportLiteDBUJsonPlugin extends PluginBase {
|
|
|
221
221
|
tables,
|
|
222
222
|
exportNamespace,
|
|
223
223
|
} = paras
|
|
224
|
-
let isSkipIndexLoader =
|
|
224
|
+
let isSkipIndexLoader = moreOptions?.SkipIndexLoader ?? false
|
|
225
225
|
if (isSkipIndexLoader0) {
|
|
226
226
|
isSkipIndexLoader = true
|
|
227
227
|
}
|
|
@@ -45,8 +45,8 @@ export function exportUJson(paras: HandleSheetParams): string | null {
|
|
|
45
45
|
let ssStr = content.substring(index2 + 1, posEnd)
|
|
46
46
|
let t2 = m[2]
|
|
47
47
|
let v2 = TryConvValue(ssStr, t2 as any, f);
|
|
48
|
-
console.log(`parseinfo1: ${content}, ${index2}, ${index}, ${numStr}, ${t1}, ${v1}`)
|
|
49
|
-
console.log(`parseinfo2: ${content}, ${index2}, ${index}, ${ssStr}, ${t2}, ${v2}`)
|
|
48
|
+
// console.log(`parseinfo1: ${content}, ${index2}, ${index}, ${numStr}, ${t1}, ${v1}`)
|
|
49
|
+
// console.log(`parseinfo2: ${content}, ${index2}, ${index}, ${ssStr}, ${t2}, ${v2}`)
|
|
50
50
|
objs.push({
|
|
51
51
|
Item1: v1,
|
|
52
52
|
Item2: v2,
|
|
@@ -229,7 +229,7 @@ export class ExportUJsonPlugin extends PluginBase {
|
|
|
229
229
|
tables,
|
|
230
230
|
exportNamespace,
|
|
231
231
|
} = paras
|
|
232
|
-
let isSkipIndexLoader =
|
|
232
|
+
let isSkipIndexLoader = moreOptions?.SkipIndexLoader ?? false
|
|
233
233
|
if (isSkipIndexLoader0) {
|
|
234
234
|
isSkipIndexLoader = true
|
|
235
235
|
}
|