gg-express 1.0.5 → 1.0.7

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.
@@ -1,5 +1,6 @@
1
1
  import { NextFunction, Request, Response } from "express";
2
2
  import Express from "express-serve-static-core";
3
+ export { GGApi } from "./GGApi";
3
4
  type Unarray<T> = T extends (infer U)[] ? U : T;
4
5
  type AsConstArray<T extends readonly any[]> = [...T];
5
6
  type paramType = "number" | "string" | AsConstArray<Array<string>> | AsConstArray<Array<number>>;
@@ -58,4 +59,3 @@ export default class GGExpress {
58
59
  }, ...middlewares: Array<(req: MyRequest<M["dataType"], T, K>, res: MyResponse<R["dataType"], RS, KR>, next: NextFunction) => any>): Express.Express;
59
60
  generateStaticRouteFile(): void;
60
61
  }
61
- export {};
package/dist/GGExpress.js CHANGED
@@ -3,7 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.GGApi = void 0;
6
7
  const fs_1 = __importDefault(require("fs"));
8
+ var GGApi_1 = require("./GGApi");
9
+ Object.defineProperty(exports, "GGApi", { enumerable: true, get: function () { return GGApi_1.GGApi; } });
7
10
  const myExpressRouteList = [];
8
11
  class GGExpress {
9
12
  constructor(app, outputPath) {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "gg-express",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
- "main": "GGExpress.js",
5
+ "main": "dist/GGExpress.js",
6
6
  "scripts": {
7
7
  "build": "npm version patch && tsc",
8
8
  "test": "echo \"Error: no test specified\" && exit 1"
package/src/GGApi.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { staticRouteInterface } from "./staticRouteInterface"
2
2
  import axios from "axios"
3
+
3
4
  export class GGApi {
4
5
  constructor() {}
5
6
 
package/src/GGExpress.ts CHANGED
@@ -3,6 +3,7 @@ import { NextFunction, Request, Response } from "express"
3
3
  import Express from "express-serve-static-core"
4
4
  import fs from "fs"
5
5
  import path from "path"
6
+ export { GGApi } from "./GGApi"
6
7
  type Unarray<T> = T extends (infer U)[] ? U : T;
7
8
  type AsConstArray<T extends readonly any[]> = [...T]
8
9
  type paramType =