@flink-app/flink 0.12.1-alpha.9 → 0.13.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cli/build.js +2 -2
  3. package/dist/cli/clean.js +2 -2
  4. package/dist/cli/cli-utils.js +1 -2
  5. package/dist/cli/run.js +2 -2
  6. package/dist/src/FlinkApp.d.ts +6 -1
  7. package/dist/src/FlinkApp.js +28 -14
  8. package/dist/src/FlinkErrors.d.ts +69 -0
  9. package/dist/src/FlinkErrors.js +87 -8
  10. package/dist/src/FlinkHttpHandler.d.ts +14 -1
  11. package/dist/src/FlinkLog.d.ts +2 -2
  12. package/dist/src/FlinkRepo.d.ts +8 -1
  13. package/dist/src/FlinkRepo.js +9 -2
  14. package/dist/src/FlinkResponse.d.ts +0 -3
  15. package/dist/src/FsUtils.js +5 -6
  16. package/dist/src/TypeScriptCompiler.d.ts +10 -0
  17. package/dist/src/TypeScriptCompiler.js +196 -49
  18. package/dist/src/TypeScriptUtils.js +7 -8
  19. package/dist/src/index.d.ts +1 -0
  20. package/dist/src/utils.js +13 -14
  21. package/package.json +67 -69
  22. package/spec/TypeScriptCompiler.spec.ts +11 -1
  23. package/spec/mock-project/dist/src/handlers/GetCar.js +2 -2
  24. package/spec/mock-project/dist/src/handlers/GetCar2.js +2 -2
  25. package/spec/mock-project/dist/src/handlers/GetCarWithArraySchema.js +2 -2
  26. package/spec/mock-project/dist/src/handlers/GetCarWithArraySchema2.js +2 -2
  27. package/spec/mock-project/dist/src/handlers/GetCarWithArraySchema3.js +2 -2
  28. package/spec/mock-project/dist/src/handlers/GetCarWithLiteralSchema.js +2 -2
  29. package/spec/mock-project/dist/src/handlers/GetCarWithLiteralSchema2.js +2 -2
  30. package/spec/mock-project/dist/src/handlers/GetCarWithSchemaInFile.js +2 -2
  31. package/spec/mock-project/dist/src/handlers/GetCarWithSchemaInFile2.js +2 -2
  32. package/spec/mock-project/dist/src/handlers/ManuallyAddedHandler.js +3 -4
  33. package/spec/mock-project/dist/src/handlers/ManuallyAddedHandler2.js +3 -4
  34. package/spec/mock-project/dist/src/handlers/PostCar.js +2 -2
  35. package/spec/mock-project/dist/src/handlers/PostLogin.js +2 -2
  36. package/spec/mock-project/dist/src/handlers/{GetCarWithOmitSchema.js → PostLogout.js} +16 -20
  37. package/spec/mock-project/dist/src/handlers/PutCar.js +2 -2
  38. package/spec/mock-project/dist/src/index.js +2 -2
  39. package/spec/mock-project/src/handlers/PostLogout.ts +19 -0
  40. package/spec/mock-project/tsconfig.json +1 -1
  41. package/src/FlinkApp.ts +24 -5
  42. package/src/FlinkErrors.ts +86 -6
  43. package/src/FlinkHttpHandler.ts +95 -96
  44. package/src/FlinkRepo.ts +8 -1
  45. package/src/FlinkResponse.ts +36 -39
  46. package/src/TypeScriptCompiler.ts +172 -39
  47. package/src/index.ts +12 -0
  48. package/tsconfig.json +1 -1
  49. package/dist/cli/generate-schemas.d.ts +0 -2
  50. package/dist/cli/generate-schemas.js +0 -140
  51. package/spec/mock-project/dist/src/handlers/GetCarWithTypeSchema.js +0 -60
  52. package/spec/mock-project/package-lock.json +0 -108
@@ -1,108 +0,0 @@
1
- {
2
- "name": "flink-test-app",
3
- "version": "0.1.0",
4
- "lockfileVersion": 2,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "flink-test-app",
9
- "version": "0.1.0",
10
- "dependencies": {
11
- "@flink-app/flink": "../../"
12
- },
13
- "devDependencies": {}
14
- },
15
- "../..": {
16
- "name": "@flink-app/flink",
17
- "version": "0.2.0-beta.3",
18
- "hasInstallScript": true,
19
- "license": "MIT",
20
- "dependencies": {
21
- "@types/cors": "^2.8.10",
22
- "@types/express": "^4.17.11",
23
- "@types/fs-extra": "^9.0.12",
24
- "@types/mongodb": "3.6.12",
25
- "@types/uuid": "^8.3.0",
26
- "ajv": "^8.2.0",
27
- "ajv-formats": "^2.1.0",
28
- "body-parser": "^1.19.0",
29
- "cors": "^2.8.5",
30
- "express": "^4.17.1",
31
- "folder-hash": "^4.0.1",
32
- "fs-extra": "^10.0.0",
33
- "mkdirp": "^1.0.4",
34
- "mock-json-schema": "^1.0.8",
35
- "mongodb": "^3.6.6",
36
- "node-color-log": "^5.2.0",
37
- "passport": "^0.4.1",
38
- "passport-jwt": "^4.0.0",
39
- "reflect-metadata": "^0.1.13",
40
- "tiny-glob": "^0.2.9",
41
- "ts-json-schema-generator": "^0.94.1",
42
- "ts-morph": "^11.0.0",
43
- "typescript": "4.2.3",
44
- "uuid": "^8.3.2"
45
- },
46
- "bin": {
47
- "flink": "dist/bin/flink.js"
48
- },
49
- "devDependencies": {
50
- "@types/folder-hash": "^4.0.0",
51
- "@types/jasmine": "^3.7.1",
52
- "@types/json-schema": "^7.0.7",
53
- "@types/mkdirp": "^1.0.1",
54
- "@types/node": "^15.0.1",
55
- "jasmine": "^3.7.0",
56
- "jasmine-spec-reporter": "^7.0.0",
57
- "jasmine-ts": "^0.3.3",
58
- "nodemon": "^2.0.7",
59
- "ts-node": "^9.1.1"
60
- }
61
- },
62
- "node_modules/@flink-app/flink": {
63
- "resolved": "../..",
64
- "link": true
65
- }
66
- },
67
- "dependencies": {
68
- "@flink-app/flink": {
69
- "version": "file:../..",
70
- "requires": {
71
- "@types/cors": "^2.8.10",
72
- "@types/express": "^4.17.11",
73
- "@types/folder-hash": "^4.0.0",
74
- "@types/fs-extra": "^9.0.12",
75
- "@types/jasmine": "^3.7.1",
76
- "@types/json-schema": "^7.0.7",
77
- "@types/mkdirp": "^1.0.1",
78
- "@types/mongodb": "3.6.12",
79
- "@types/node": "^15.0.1",
80
- "@types/uuid": "^8.3.0",
81
- "ajv": "^8.2.0",
82
- "ajv-formats": "^2.1.0",
83
- "body-parser": "^1.19.0",
84
- "cors": "^2.8.5",
85
- "express": "^4.17.1",
86
- "folder-hash": "^4.0.1",
87
- "fs-extra": "^10.0.0",
88
- "jasmine": "^3.7.0",
89
- "jasmine-spec-reporter": "^7.0.0",
90
- "jasmine-ts": "^0.3.3",
91
- "mkdirp": "^1.0.4",
92
- "mock-json-schema": "^1.0.8",
93
- "mongodb": "^3.6.6",
94
- "node-color-log": "^5.2.0",
95
- "nodemon": "^2.0.7",
96
- "passport": "^0.4.1",
97
- "passport-jwt": "^4.0.0",
98
- "reflect-metadata": "^0.1.13",
99
- "tiny-glob": "^0.2.9",
100
- "ts-json-schema-generator": "^0.94.1",
101
- "ts-morph": "^11.0.0",
102
- "ts-node": "^9.1.1",
103
- "typescript": "4.2.3",
104
- "uuid": "^8.3.2"
105
- }
106
- }
107
- }
108
- }