@seam-rpc/server 1.1.0 → 1.1.2

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,2 +1 @@
1
1
  export declare function genClient(): Promise<void>;
2
- //# sourceMappingURL=gen-client.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function genConfig(): Promise<void>;
2
- //# sourceMappingURL=gen-config.d.ts.map
@@ -22,17 +22,23 @@ export async function genConfig() {
22
22
  process.exit(0);
23
23
  }
24
24
  rl.close();
25
- const config = {
26
- inputFiles,
27
- outputFolder
28
- };
29
- try {
30
- fs.writeFileSync("./seam-rpc.config.json", JSON.stringify(config, null, 4), "utf-8");
31
- }
32
- catch (e) {
33
- console.log("\x1b[31mFailed to generate config file ./seam-rpc.config.json\x1b[0m\n" + e);
34
- }
35
- console.log(`\x1b[32mSuccessfully generated config file ./seam-rpc.config.json\x1b[0m`);
25
+ generateConfig();
36
26
  });
37
27
  }
28
+ else {
29
+ generateConfig();
30
+ }
31
+ function generateConfig() {
32
+ const config = {
33
+ inputFiles,
34
+ outputFolder
35
+ };
36
+ try {
37
+ fs.writeFileSync("./seam-rpc.config.json", JSON.stringify(config, null, 4), "utf-8");
38
+ }
39
+ catch (e) {
40
+ console.log("\x1b[31mFailed to generate config file ./seam-rpc.config.json\x1b[0m\n" + e);
41
+ }
42
+ console.log(`\x1b[32mSuccessfully generated config file ./seam-rpc.config.json\x1b[0m`);
43
+ }
38
44
  }
@@ -3,4 +3,3 @@ export interface SeamConfig {
3
3
  inputFiles: string;
4
4
  outputFolder: string;
5
5
  }
6
- //# sourceMappingURL=index.d.ts.map
package/dist/index.d.ts CHANGED
@@ -12,4 +12,3 @@ export declare class SeamSpace {
12
12
  constructor(app: Express, fileHandler: RequestHandler);
13
13
  createRouter(path: string, routerDefinition: RouterDefinition): void;
14
14
  }
15
- //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seam-rpc/server",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"gen-client.d.ts","sourceRoot":"","sources":["../../src/bin/gen-client.ts"],"names":[],"mappings":"AAMA,wBAAsB,SAAS,kBAwC9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"gen-config.d.ts","sourceRoot":"","sources":["../../src/bin/gen-config.ts"],"names":[],"mappings":"AAIA,wBAAsB,SAAS,kBAsC9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bin/index.ts"],"names":[],"mappings":";AAsBA,MAAM,WAAW,UAAU;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACxB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAA6B,MAAM,gBAAgB,CAAC;AAChF,OAAgB,EAAE,OAAO,EAAyB,cAAc,EAAoB,MAAM,SAAS,CAAC;AAGpG,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;AAE/B,MAAM,WAAW,gBAAgB;IAC7B,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CACxD;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,cAAc,GAAG,SAAS,CAerF;AAED,qBAAa,SAAS;IAGN,OAAO,CAAC,GAAG;IAAW,OAAO,CAAC,WAAW;IAFrD,OAAO,CAAC,UAAU,CAAkB;gBAEhB,GAAG,EAAE,OAAO,EAAU,WAAW,EAAE,cAAc;IAE9D,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,GAAG,IAAI;CA4E9E"}