gg-express 1.0.56 → 1.0.57

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/GGExpress.js CHANGED
@@ -164,7 +164,7 @@ class GGExpress {
164
164
  const postRoute = myExpressRouteList.filter((row) => row.method === "post");
165
165
  const putRoute = myExpressRouteList.filter((row) => row.method === "put");
166
166
  const deleteDelete = myExpressRouteList.filter((row) => row.method === "delete");
167
- let content = `export interface staticRouteInterface {
167
+ let content = `export interface staticRouteInterface_${this.appName} {
168
168
  get : { ${genInterfaceString(getRoute)} },
169
169
  post : { ${genInterfaceString(postRoute)} },
170
170
  put : { ${genInterfaceString(putRoute)} },
@@ -181,7 +181,7 @@ class GGExpress {
181
181
  // const code = await fs.readFileSync("./GGApi.ts")
182
182
  const code = `
183
183
  import axios from "axios"
184
- import { staticRouteInterface } from "./staticRouteInterface"
184
+ import { staticRouteInterface_${this.appName} } from "./staticRouteInterface_${this.appName}"
185
185
 
186
186
  export class GGApi {
187
187
  constructor() {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gg-express",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "",
5
5
  "main": "dist/GGExpress.js",
6
6
  "scripts": {
package/src/GGExpress.ts CHANGED
@@ -387,7 +387,7 @@ export default class GGExpress<appName extends string> {
387
387
  const deleteDelete = myExpressRouteList.filter(
388
388
  (row) => row.method === "delete"
389
389
  )
390
- let content = `export interface staticRouteInterface {
390
+ let content = `export interface staticRouteInterface_${this.appName} {
391
391
  get : { ${genInterfaceString(getRoute)} },
392
392
  post : { ${genInterfaceString(postRoute)} },
393
393
  put : { ${genInterfaceString(putRoute)} },
@@ -408,7 +408,7 @@ export default class GGExpress<appName extends string> {
408
408
  // const code = await fs.readFileSync("./GGApi.ts")
409
409
  const code = `
410
410
  import axios from "axios"
411
- import { staticRouteInterface } from "./staticRouteInterface"
411
+ import { staticRouteInterface_${this.appName} } from "./staticRouteInterface_${this.appName}"
412
412
 
413
413
  export class GGApi {
414
414
  constructor() {}