@ido_kawaz/server-framework 3.0.0 → 3.0.1

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/server.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Express } from "express";
2
2
  import { ServerConfig } from "./config";
3
- export declare const createServer: <Args extends any[]>(config: ServerConfig, registerRoutes: (...args: Args) => (app: Express) => Express) => Promise<{
3
+ export declare const createServer: <Args extends any[]>(config: ServerConfig, registerRoutes: (...args: Args) => (app: Express) => Express) => {
4
4
  start: (...args: Args) => Promise<void>;
5
- }>;
5
+ };
6
6
  export type Server = ReturnType<typeof createServer>;
7
7
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAG3C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAKxC,eAAO,MAAM,YAAY,GAAS,IAAI,SAAS,GAAG,EAAE,EAChD,QAAQ,YAAY,EACpB,gBAAgB,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO;qBAGjC,IAAI;EAgBlC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAG3C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAKxC,eAAO,MAAM,YAAY,GAAI,IAAI,SAAS,GAAG,EAAE,EAC3C,QAAQ,YAAY,EACpB,gBAAgB,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO;qBAGjC,IAAI;CAgBlC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC"}
package/dist/server.js CHANGED
@@ -9,7 +9,7 @@ const http_1 = __importDefault(require("http"));
9
9
  const https_1 = __importDefault(require("https"));
10
10
  const utils_1 = require("./utils");
11
11
  const ramda_1 = require("ramda");
12
- const createServer = async (config, registerRoutes) => {
12
+ const createServer = (config, registerRoutes) => {
13
13
  return {
14
14
  start: async (...args) => {
15
15
  const expressApp = (0, express_1.default)();
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA2C;AAC3C,gDAAwB;AACxB,kDAA0B;AAE1B,mCAAqE;AACrE,iCAA6B;AAGtB,MAAM,YAAY,GAAG,KAAK,EAC7B,MAAoB,EACpB,cAA4D,EAC9D,EAAE;IACA,OAAO;QACH,KAAK,EAAE,KAAK,EAAE,GAAG,IAAU,EAAE,EAAE;YAC3B,MAAM,UAAU,GAAG,IAAA,iBAAO,GAAE,CAAC;YAC7B,MAAM,UAAU,GAAG,IAAA,YAAI,EAAC,2BAAmB,EAAE,cAAc,CAAC,GAAG,IAAI,CAAC,EAAE,6BAAqB,CAAC,CAAC,UAAU,CAAC,CAAC;YACzG,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;YACjC,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,eAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,cAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;YACxF,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACzC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;oBACrB,OAAO,CAAC,GAAG,CAAC,6BAA6B,IAAI,EAAE,CAAC,CAAC;oBACjD,OAAO,EAAE,CAAC;gBACd,CAAC,CAAC,CAAC,EAAE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C,4BAA4B,EAAE,KAAK,CAAC,CAAC;oBACnD,MAAM,CAAC,KAAK,CAAC,CAAC;gBAClB,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AArBW,QAAA,YAAY,gBAqBvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ido_kawaz/server-framework",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Server framework library for Kawaz Plus services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",