gg-mysql-connector 1.0.35 → 1.0.36
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/ModelGenerator.js +1 -9
- package/package.json +1 -1
- package/src/ModelGenerator.ts +3 -11
package/dist/ModelGenerator.js
CHANGED
|
@@ -253,15 +253,7 @@ class ModelGenerator {
|
|
|
253
253
|
}
|
|
254
254
|
const fileName = `${params.appName}_model_const.ts`;
|
|
255
255
|
const code = `
|
|
256
|
-
|
|
257
|
-
interface constInterface {
|
|
258
|
-
[keytable: string]: {
|
|
259
|
-
[key: string]: paramType
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
export const ${params.appName}_model_const : constInterface = { ${array.join(",")} } as const`;
|
|
256
|
+
export const ${params.appName}_model_const = { ${array.join(",")} } as const`;
|
|
265
257
|
for (let row of params.outputDirectory) {
|
|
266
258
|
const serverFilePath = path_1.default.join(row, fileName);
|
|
267
259
|
await fs_1.default.writeFileSync(serverFilePath, code);
|
package/package.json
CHANGED
package/src/ModelGenerator.ts
CHANGED
|
@@ -319,17 +319,9 @@ export default class ModelGenerator {
|
|
|
319
319
|
}
|
|
320
320
|
const fileName = `${params.appName}_model_const.ts`
|
|
321
321
|
const code = `
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
[key: string]: paramType
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
export const ${
|
|
331
|
-
params.appName
|
|
332
|
-
}_model_const : constInterface = { ${array.join(",")} } as const`
|
|
322
|
+
export const ${params.appName}_model_const = { ${array.join(
|
|
323
|
+
","
|
|
324
|
+
)} } as const`
|
|
333
325
|
|
|
334
326
|
for (let row of params.outputDirectory) {
|
|
335
327
|
const serverFilePath = path.join(row, fileName)
|