@mxpicture/gcp-functions-generator 0.2.2 → 0.2.4

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.
@@ -57,7 +57,7 @@ export class GeneratorFrontend extends Generator {
57
57
  const superClassName = hasCrudRoute(Object.keys(routes))
58
58
  ? `FrontendApi<${names.doc}, ${names.func}>`
59
59
  : `IFrontendApi<${names.func}>`;
60
- code.push(`export class ${names.api} extends ${superClassName}`, `implements ApiFromRoutes<${names.routes}>`, "{", `public constructor(func?: ${names.func}) { super("${names.functionName}"); if (func) this.useFunc(func); }`, "");
60
+ code.push(`export class ${names.api} extends ${superClassName}`, `implements ApiFromRoutes<${names.routes}>`, "{", `public constructor(func?: ${names.func}) { super("${lowerFirstLetter(names.basename)}"); if (func) this.useFunc(func); }`, "");
61
61
  for (const [routeName, params] of Object.entries(routes)) {
62
62
  if (isCrudRoute(routeName))
63
63
  continue; // ignore crud --> provided by super class
@@ -75,7 +75,7 @@ export class GeneratorFrontend extends Generator {
75
75
  buildFunction(names) {
76
76
  return [
77
77
  `export class ${names.func} extends IFrontendFunction {`,
78
- ` public constructor() { super("${lowerFirstLetter(names.basename)}"); this.useRoutes(${names.routes}Name); }`,
78
+ ` public constructor() { super("${names.functionName}"); this.useRoutes(${names.routes}Name); }`,
79
79
  "}",
80
80
  ];
81
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mxpicture/gcp-functions-generator",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Tools for google cloud functions",
5
5
  "type": "module",
6
6
  "author": "MXPicture",
@@ -32,10 +32,10 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
- "@mxpicture/gcp-functions-common": "^0.2.2",
36
- "@mxpicture/gcp-functions-code": "^0.2.2",
37
- "@mxpicture/gcp-functions-backend": "^0.2.2",
38
- "@mxpicture/gcp-functions-frontend": "^0.2.2"
35
+ "@mxpicture/gcp-functions-common": "^0.2.4",
36
+ "@mxpicture/gcp-functions-code": "^0.2.4",
37
+ "@mxpicture/gcp-functions-backend": "^0.2.4",
38
+ "@mxpicture/gcp-functions-frontend": "^0.2.4"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^25.2.3",
@@ -1,2 +0,0 @@
1
- export * from "./template.medication.js";
2
- export * from "./template.settings.js";
@@ -1,3 +0,0 @@
1
- // This file is auto-generated. Do not edit manually.
2
- export * from "./template.medication.js";
3
- export * from "./template.settings.js";