@flink-app/flink 0.6.0 → 0.7.0-alpha.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.
@@ -228,7 +228,7 @@ var TypeScriptCompiler = /** @class */ (function () {
228
228
  console.log("Detected handler " + sf.getBaseName() + " " + (!isAutoRegister ? "(requires manual registration)" : ""));
229
229
  namespaceImport = sf.getBaseNameWithoutExtension().replace(/\./g, "_") + "_" + i;
230
230
  imports.push({
231
- namespaceImport: namespaceImport,
231
+ defaultImport: "* as " + namespaceImport,
232
232
  moduleSpecifier: generatedFile.getRelativePathAsModuleSpecifierTo(sf),
233
233
  });
234
234
  assumedHttpMethod = utils_1.getHttpMethodFromHandlerName(sf.getBaseName());
@@ -656,7 +656,7 @@ var TypeScriptCompiler = /** @class */ (function () {
656
656
  console.log("Detected job " + sf.getBaseName());
657
657
  namespaceImport = sf.getBaseNameWithoutExtension().replace(/\./g, "_") + "_" + i;
658
658
  imports.push({
659
- namespaceImport: namespaceImport,
659
+ defaultImport: "* as " + namespaceImport,
660
660
  moduleSpecifier: generatedFile.getRelativePathAsModuleSpecifierTo(sf),
661
661
  });
662
662
  // Append metadata to source file that will be part of emitted dist bundle (javascript)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/flink",
3
- "version": "0.6.0",
3
+ "version": "0.7.0-alpha.1",
4
4
  "description": "Typescript only framework for creating REST-like APIs on top of Express and mongodb",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "main": "dist/src/index.js",
@@ -67,5 +67,5 @@
67
67
  "rimraf": "^3.0.2",
68
68
  "ts-node": "^9.1.1"
69
69
  },
70
- "gitHead": "42ab7a99632d1fba08096d51800dfc0deb4b0222"
70
+ "gitHead": "2ae3b415967bb4e4b41550ac1978e4c9fed47327"
71
71
  }
@@ -172,7 +172,7 @@ autoRegisteredHandlers.push(...handlers);
172
172
  const namespaceImport = sf.getBaseNameWithoutExtension().replace(/\./g, "_") + "_" + i;
173
173
 
174
174
  imports.push({
175
- namespaceImport,
175
+ defaultImport: "* as " + namespaceImport,
176
176
  moduleSpecifier: generatedFile.getRelativePathAsModuleSpecifierTo(sf),
177
177
  });
178
178
 
@@ -648,7 +648,7 @@ autoRegisteredJobs.push(...jobs);
648
648
  const namespaceImport = sf.getBaseNameWithoutExtension().replace(/\./g, "_") + "_" + i;
649
649
 
650
650
  imports.push({
651
- namespaceImport,
651
+ defaultImport: "* as " + namespaceImport,
652
652
  moduleSpecifier: generatedFile.getRelativePathAsModuleSpecifierTo(sf),
653
653
  });
654
654
 
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
@@ -1,33 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var __importDefault = (this && this.__importDefault) || function (mod) {
4
- return (mod && mod.__esModule) ? mod : { "default": mod };
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var TypeScriptCompiler_1 = __importDefault(require("../src/TypeScriptCompiler"));
8
- var startTime = Date.now();
9
- var args = process.argv.slice(2);
10
- var dir = args[0];
11
- var actions = args[1];
12
- console.log("Parallel compilation enabled, will fork 3 processes");
13
- var compiler = new TypeScriptCompiler_1.default(dir);
14
- if (actions.includes("preEmit")) {
15
- // Only emit diagnostics for the first compiler
16
- if (!compiler.getPreEmitDiagnostics()) {
17
- process.exit(1);
18
- }
19
- }
20
- if (actions.includes("parseRepos")) {
21
- compiler.parseRepos();
22
- }
23
- if (actions.includes("parseHandlers")) {
24
- compiler.parseHandlers();
25
- }
26
- if (actions.includes("parseJobs")) {
27
- compiler.parseJobs();
28
- }
29
- if (actions.includes("generateStartScript")) {
30
- compiler.generateStartScript();
31
- }
32
- console.log("Forked compiler done with ".concat(actions.replaceAll(",", ", "), ", took ").concat(Date.now() - startTime, "ms"));
33
- compiler.emit();