typespeed 2.2.1 → 2.3.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.
Files changed (262) hide show
  1. package/app/nodemon.json +5 -0
  2. package/{test → app}/package.json +0 -1
  3. package/{test → app}/src/config-development.json +8 -1
  4. package/{test → app}/src/config.json +3 -4
  5. package/{test → app}/src/custom-log.class.ts +1 -1
  6. package/{test → app}/src/jwt-authentication.class.ts +3 -2
  7. package/{test → app}/src/main.ts +9 -2
  8. package/{test → app}/src/test-database.class.ts +1 -1
  9. package/app/src/test-log.class.ts +11 -0
  10. package/{test → app}/src/test-mq.class.ts +2 -6
  11. package/{test → app}/src/test-orm.class.ts +8 -8
  12. package/{test → app}/src/test-request.class.ts +4 -4
  13. package/{test → app}/src/user-model.class.ts +12 -11
  14. package/dist/core.decorator.js +1 -84
  15. package/dist/database.decorator.js +1 -1
  16. package/dist/default/express-server.class.js +10 -11
  17. package/dist/default/node-cache.class.js +2 -1
  18. package/dist/default/rabbitmq.class.js +3 -2
  19. package/dist/default/read-write-db.class.js +8 -7
  20. package/dist/default/redis.class.js +3 -2
  21. package/dist/factory/log-factory.class.js +0 -3
  22. package/dist/typespeed.js +85 -1
  23. package/package.json +15 -3
  24. package/src/core.decorator.ts +1 -85
  25. package/src/database.decorator.ts +1 -1
  26. package/src/default/express-server.class.ts +4 -5
  27. package/src/default/node-cache.class.ts +2 -1
  28. package/src/default/rabbitmq.class.ts +2 -1
  29. package/src/default/read-write-db.class.ts +2 -2
  30. package/src/default/redis.class.ts +2 -2
  31. package/src/factory/log-factory.class.ts +0 -3
  32. package/src/factory/server-factory.class.ts +1 -1
  33. package/src/typespeed.ts +86 -1
  34. package/test/database.test.ts +61 -0
  35. package/test/first-page.test.ts +41 -0
  36. package/test/hooks.ts +10 -0
  37. package/test/mq.test.ts +34 -0
  38. package/test/orm.test.ts +65 -0
  39. package/test/request.test.ts +50 -0
  40. package/test/second-page.test.ts +51 -0
  41. package/tsconfig.json +2 -3
  42. package/test/nodemon.json +0 -6
  43. package/test/src/test-log.class.ts +0 -9
  44. /package/{test → app}/node_modules/.package-lock.json +0 -0
  45. /package/{test → app}/node_modules/@types/body-parser/LICENSE +0 -0
  46. /package/{test → app}/node_modules/@types/body-parser/README.md +0 -0
  47. /package/{test → app}/node_modules/@types/body-parser/index.d.ts +0 -0
  48. /package/{test → app}/node_modules/@types/body-parser/package.json +0 -0
  49. /package/{test → app}/node_modules/@types/connect/LICENSE +0 -0
  50. /package/{test → app}/node_modules/@types/connect/README.md +0 -0
  51. /package/{test → app}/node_modules/@types/connect/index.d.ts +0 -0
  52. /package/{test → app}/node_modules/@types/connect/package.json +0 -0
  53. /package/{test → app}/node_modules/@types/express/LICENSE +0 -0
  54. /package/{test → app}/node_modules/@types/express/README.md +0 -0
  55. /package/{test → app}/node_modules/@types/express/index.d.ts +0 -0
  56. /package/{test → app}/node_modules/@types/express/package.json +0 -0
  57. /package/{test → app}/node_modules/@types/express-serve-static-core/LICENSE +0 -0
  58. /package/{test → app}/node_modules/@types/express-serve-static-core/README.md +0 -0
  59. /package/{test → app}/node_modules/@types/express-serve-static-core/index.d.ts +0 -0
  60. /package/{test → app}/node_modules/@types/express-serve-static-core/package.json +0 -0
  61. /package/{test → app}/node_modules/@types/mime/LICENSE +0 -0
  62. /package/{test → app}/node_modules/@types/mime/Mime.d.ts +0 -0
  63. /package/{test → app}/node_modules/@types/mime/README.md +0 -0
  64. /package/{test → app}/node_modules/@types/mime/index.d.ts +0 -0
  65. /package/{test → app}/node_modules/@types/mime/lite.d.ts +0 -0
  66. /package/{test → app}/node_modules/@types/mime/package.json +0 -0
  67. /package/{test → app}/node_modules/@types/node/LICENSE +0 -0
  68. /package/{test → app}/node_modules/@types/node/README.md +0 -0
  69. /package/{test → app}/node_modules/@types/node/assert/strict.d.ts +0 -0
  70. /package/{test → app}/node_modules/@types/node/assert.d.ts +0 -0
  71. /package/{test → app}/node_modules/@types/node/async_hooks.d.ts +0 -0
  72. /package/{test → app}/node_modules/@types/node/buffer.d.ts +0 -0
  73. /package/{test → app}/node_modules/@types/node/child_process.d.ts +0 -0
  74. /package/{test → app}/node_modules/@types/node/cluster.d.ts +0 -0
  75. /package/{test → app}/node_modules/@types/node/console.d.ts +0 -0
  76. /package/{test → app}/node_modules/@types/node/constants.d.ts +0 -0
  77. /package/{test → app}/node_modules/@types/node/crypto.d.ts +0 -0
  78. /package/{test → app}/node_modules/@types/node/dgram.d.ts +0 -0
  79. /package/{test → app}/node_modules/@types/node/diagnostics_channel.d.ts +0 -0
  80. /package/{test → app}/node_modules/@types/node/dns/promises.d.ts +0 -0
  81. /package/{test → app}/node_modules/@types/node/dns.d.ts +0 -0
  82. /package/{test → app}/node_modules/@types/node/dom-events.d.ts +0 -0
  83. /package/{test → app}/node_modules/@types/node/domain.d.ts +0 -0
  84. /package/{test → app}/node_modules/@types/node/events.d.ts +0 -0
  85. /package/{test → app}/node_modules/@types/node/fs/promises.d.ts +0 -0
  86. /package/{test → app}/node_modules/@types/node/fs.d.ts +0 -0
  87. /package/{test → app}/node_modules/@types/node/globals.d.ts +0 -0
  88. /package/{test → app}/node_modules/@types/node/globals.global.d.ts +0 -0
  89. /package/{test → app}/node_modules/@types/node/http.d.ts +0 -0
  90. /package/{test → app}/node_modules/@types/node/http2.d.ts +0 -0
  91. /package/{test → app}/node_modules/@types/node/https.d.ts +0 -0
  92. /package/{test → app}/node_modules/@types/node/index.d.ts +0 -0
  93. /package/{test → app}/node_modules/@types/node/inspector.d.ts +0 -0
  94. /package/{test → app}/node_modules/@types/node/module.d.ts +0 -0
  95. /package/{test → app}/node_modules/@types/node/net.d.ts +0 -0
  96. /package/{test → app}/node_modules/@types/node/os.d.ts +0 -0
  97. /package/{test → app}/node_modules/@types/node/package.json +0 -0
  98. /package/{test → app}/node_modules/@types/node/path.d.ts +0 -0
  99. /package/{test → app}/node_modules/@types/node/perf_hooks.d.ts +0 -0
  100. /package/{test → app}/node_modules/@types/node/process.d.ts +0 -0
  101. /package/{test → app}/node_modules/@types/node/punycode.d.ts +0 -0
  102. /package/{test → app}/node_modules/@types/node/querystring.d.ts +0 -0
  103. /package/{test → app}/node_modules/@types/node/readline/promises.d.ts +0 -0
  104. /package/{test → app}/node_modules/@types/node/readline.d.ts +0 -0
  105. /package/{test → app}/node_modules/@types/node/repl.d.ts +0 -0
  106. /package/{test → app}/node_modules/@types/node/stream/consumers.d.ts +0 -0
  107. /package/{test → app}/node_modules/@types/node/stream/promises.d.ts +0 -0
  108. /package/{test → app}/node_modules/@types/node/stream/web.d.ts +0 -0
  109. /package/{test → app}/node_modules/@types/node/stream.d.ts +0 -0
  110. /package/{test → app}/node_modules/@types/node/string_decoder.d.ts +0 -0
  111. /package/{test → app}/node_modules/@types/node/test.d.ts +0 -0
  112. /package/{test → app}/node_modules/@types/node/timers/promises.d.ts +0 -0
  113. /package/{test → app}/node_modules/@types/node/timers.d.ts +0 -0
  114. /package/{test → app}/node_modules/@types/node/tls.d.ts +0 -0
  115. /package/{test → app}/node_modules/@types/node/trace_events.d.ts +0 -0
  116. /package/{test → app}/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -0
  117. /package/{test → app}/node_modules/@types/node/ts4.8/assert.d.ts +0 -0
  118. /package/{test → app}/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -0
  119. /package/{test → app}/node_modules/@types/node/ts4.8/buffer.d.ts +0 -0
  120. /package/{test → app}/node_modules/@types/node/ts4.8/child_process.d.ts +0 -0
  121. /package/{test → app}/node_modules/@types/node/ts4.8/cluster.d.ts +0 -0
  122. /package/{test → app}/node_modules/@types/node/ts4.8/console.d.ts +0 -0
  123. /package/{test → app}/node_modules/@types/node/ts4.8/constants.d.ts +0 -0
  124. /package/{test → app}/node_modules/@types/node/ts4.8/crypto.d.ts +0 -0
  125. /package/{test → app}/node_modules/@types/node/ts4.8/dgram.d.ts +0 -0
  126. /package/{test → app}/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -0
  127. /package/{test → app}/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -0
  128. /package/{test → app}/node_modules/@types/node/ts4.8/dns.d.ts +0 -0
  129. /package/{test → app}/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -0
  130. /package/{test → app}/node_modules/@types/node/ts4.8/domain.d.ts +0 -0
  131. /package/{test → app}/node_modules/@types/node/ts4.8/events.d.ts +0 -0
  132. /package/{test → app}/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -0
  133. /package/{test → app}/node_modules/@types/node/ts4.8/fs.d.ts +0 -0
  134. /package/{test → app}/node_modules/@types/node/ts4.8/globals.d.ts +0 -0
  135. /package/{test → app}/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
  136. /package/{test → app}/node_modules/@types/node/ts4.8/http.d.ts +0 -0
  137. /package/{test → app}/node_modules/@types/node/ts4.8/http2.d.ts +0 -0
  138. /package/{test → app}/node_modules/@types/node/ts4.8/https.d.ts +0 -0
  139. /package/{test → app}/node_modules/@types/node/ts4.8/index.d.ts +0 -0
  140. /package/{test → app}/node_modules/@types/node/ts4.8/inspector.d.ts +0 -0
  141. /package/{test → app}/node_modules/@types/node/ts4.8/module.d.ts +0 -0
  142. /package/{test → app}/node_modules/@types/node/ts4.8/net.d.ts +0 -0
  143. /package/{test → app}/node_modules/@types/node/ts4.8/os.d.ts +0 -0
  144. /package/{test → app}/node_modules/@types/node/ts4.8/path.d.ts +0 -0
  145. /package/{test → app}/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -0
  146. /package/{test → app}/node_modules/@types/node/ts4.8/process.d.ts +0 -0
  147. /package/{test → app}/node_modules/@types/node/ts4.8/punycode.d.ts +0 -0
  148. /package/{test → app}/node_modules/@types/node/ts4.8/querystring.d.ts +0 -0
  149. /package/{test → app}/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -0
  150. /package/{test → app}/node_modules/@types/node/ts4.8/readline.d.ts +0 -0
  151. /package/{test → app}/node_modules/@types/node/ts4.8/repl.d.ts +0 -0
  152. /package/{test → app}/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -0
  153. /package/{test → app}/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -0
  154. /package/{test → app}/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -0
  155. /package/{test → app}/node_modules/@types/node/ts4.8/stream.d.ts +0 -0
  156. /package/{test → app}/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -0
  157. /package/{test → app}/node_modules/@types/node/ts4.8/test.d.ts +0 -0
  158. /package/{test → app}/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -0
  159. /package/{test → app}/node_modules/@types/node/ts4.8/timers.d.ts +0 -0
  160. /package/{test → app}/node_modules/@types/node/ts4.8/tls.d.ts +0 -0
  161. /package/{test → app}/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -0
  162. /package/{test → app}/node_modules/@types/node/ts4.8/tty.d.ts +0 -0
  163. /package/{test → app}/node_modules/@types/node/ts4.8/url.d.ts +0 -0
  164. /package/{test → app}/node_modules/@types/node/ts4.8/util.d.ts +0 -0
  165. /package/{test → app}/node_modules/@types/node/ts4.8/v8.d.ts +0 -0
  166. /package/{test → app}/node_modules/@types/node/ts4.8/vm.d.ts +0 -0
  167. /package/{test → app}/node_modules/@types/node/ts4.8/wasi.d.ts +0 -0
  168. /package/{test → app}/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -0
  169. /package/{test → app}/node_modules/@types/node/ts4.8/zlib.d.ts +0 -0
  170. /package/{test → app}/node_modules/@types/node/tty.d.ts +0 -0
  171. /package/{test → app}/node_modules/@types/node/url.d.ts +0 -0
  172. /package/{test → app}/node_modules/@types/node/util.d.ts +0 -0
  173. /package/{test → app}/node_modules/@types/node/v8.d.ts +0 -0
  174. /package/{test → app}/node_modules/@types/node/vm.d.ts +0 -0
  175. /package/{test → app}/node_modules/@types/node/wasi.d.ts +0 -0
  176. /package/{test → app}/node_modules/@types/node/worker_threads.d.ts +0 -0
  177. /package/{test → app}/node_modules/@types/node/zlib.d.ts +0 -0
  178. /package/{test → app}/node_modules/@types/qs/LICENSE +0 -0
  179. /package/{test → app}/node_modules/@types/qs/README.md +0 -0
  180. /package/{test → app}/node_modules/@types/qs/index.d.ts +0 -0
  181. /package/{test → app}/node_modules/@types/qs/package.json +0 -0
  182. /package/{test → app}/node_modules/@types/range-parser/LICENSE +0 -0
  183. /package/{test → app}/node_modules/@types/range-parser/README.md +0 -0
  184. /package/{test → app}/node_modules/@types/range-parser/index.d.ts +0 -0
  185. /package/{test → app}/node_modules/@types/range-parser/package.json +0 -0
  186. /package/{test → app}/node_modules/@types/send/LICENSE +0 -0
  187. /package/{test → app}/node_modules/@types/send/README.md +0 -0
  188. /package/{test → app}/node_modules/@types/send/index.d.ts +0 -0
  189. /package/{test → app}/node_modules/@types/send/package.json +0 -0
  190. /package/{test → app}/node_modules/@types/serve-static/LICENSE +0 -0
  191. /package/{test → app}/node_modules/@types/serve-static/README.md +0 -0
  192. /package/{test → app}/node_modules/@types/serve-static/index.d.ts +0 -0
  193. /package/{test → app}/node_modules/@types/serve-static/package.json +0 -0
  194. /package/{test → app}/node_modules/colors/LICENSE +0 -0
  195. /package/{test → app}/node_modules/colors/README.md +0 -0
  196. /package/{test → app}/node_modules/colors/examples/normal-usage.js +0 -0
  197. /package/{test → app}/node_modules/colors/examples/safe-string.js +0 -0
  198. /package/{test → app}/node_modules/colors/index.d.ts +0 -0
  199. /package/{test → app}/node_modules/colors/lib/colors.js +0 -0
  200. /package/{test → app}/node_modules/colors/lib/custom/trap.js +0 -0
  201. /package/{test → app}/node_modules/colors/lib/custom/zalgo.js +0 -0
  202. /package/{test → app}/node_modules/colors/lib/extendStringPrototype.js +0 -0
  203. /package/{test → app}/node_modules/colors/lib/index.js +0 -0
  204. /package/{test → app}/node_modules/colors/lib/maps/america.js +0 -0
  205. /package/{test → app}/node_modules/colors/lib/maps/rainbow.js +0 -0
  206. /package/{test → app}/node_modules/colors/lib/maps/random.js +0 -0
  207. /package/{test → app}/node_modules/colors/lib/maps/zebra.js +0 -0
  208. /package/{test → app}/node_modules/colors/lib/styles.js +0 -0
  209. /package/{test → app}/node_modules/colors/lib/system/has-flag.js +0 -0
  210. /package/{test → app}/node_modules/colors/lib/system/supports-colors.js +0 -0
  211. /package/{test → app}/node_modules/colors/package.json +0 -0
  212. /package/{test → app}/node_modules/colors/safe.d.ts +0 -0
  213. /package/{test → app}/node_modules/colors/safe.js +0 -0
  214. /package/{test → app}/node_modules/colors/themes/generic-logging.js +0 -0
  215. /package/{test → app}/node_modules/dateformat/LICENSE +0 -0
  216. /package/{test → app}/node_modules/dateformat/Readme.md +0 -0
  217. /package/{test → app}/node_modules/dateformat/lib/dateformat.js +0 -0
  218. /package/{test → app}/node_modules/dateformat/package.json +0 -0
  219. /package/{test → app}/node_modules/mkdirp/CHANGELOG.md +0 -0
  220. /package/{test → app}/node_modules/mkdirp/LICENSE +0 -0
  221. /package/{test → app}/node_modules/mkdirp/bin/cmd.js +0 -0
  222. /package/{test → app}/node_modules/mkdirp/index.js +0 -0
  223. /package/{test → app}/node_modules/mkdirp/lib/find-made.js +0 -0
  224. /package/{test → app}/node_modules/mkdirp/lib/mkdirp-manual.js +0 -0
  225. /package/{test → app}/node_modules/mkdirp/lib/mkdirp-native.js +0 -0
  226. /package/{test → app}/node_modules/mkdirp/lib/opts-arg.js +0 -0
  227. /package/{test → app}/node_modules/mkdirp/lib/path-arg.js +0 -0
  228. /package/{test → app}/node_modules/mkdirp/lib/use-native.js +0 -0
  229. /package/{test → app}/node_modules/mkdirp/package.json +0 -0
  230. /package/{test → app}/node_modules/mkdirp/readme.markdown +0 -0
  231. /package/{test → app}/node_modules/tinytim/.travis.yml +0 -0
  232. /package/{test → app}/node_modules/tinytim/README.md +0 -0
  233. /package/{test → app}/node_modules/tinytim/index.js +0 -0
  234. /package/{test → app}/node_modules/tinytim/lib/index.js +0 -0
  235. /package/{test → app}/node_modules/tinytim/lib/tinytim.js +0 -0
  236. /package/{test → app}/node_modules/tinytim/package.json +0 -0
  237. /package/{test → app}/node_modules/tinytim/test/files/html.tim +0 -0
  238. /package/{test → app}/node_modules/tinytim/test/files/string.tim +0 -0
  239. /package/{test → app}/node_modules/tinytim/test/files/string2.tim +0 -0
  240. /package/{test → app}/node_modules/tinytim/test/render-file-replace.js +0 -0
  241. /package/{test → app}/node_modules/tinytim/test/render-replace.js +0 -0
  242. /package/{test → app}/node_modules/tinytim/test/tim-replace.js +0 -0
  243. /package/{test → app}/node_modules/tracer/README.md +0 -0
  244. /package/{test → app}/node_modules/tracer/lib/color_console.js +0 -0
  245. /package/{test → app}/node_modules/tracer/lib/console.js +0 -0
  246. /package/{test → app}/node_modules/tracer/lib/dailyfile.js +0 -0
  247. /package/{test → app}/node_modules/tracer/lib/index.js +0 -0
  248. /package/{test → app}/node_modules/tracer/lib/settings.js +0 -0
  249. /package/{test → app}/node_modules/tracer/lib/utils.js +0 -0
  250. /package/{test → app}/node_modules/tracer/package.json +0 -0
  251. /package/{test → app}/node_modules/tracer/types/index.d.ts +0 -0
  252. /package/{test → app}/src/aop-test.class.ts +0 -0
  253. /package/{test → app}/src/config-production.json +0 -0
  254. /package/{test → app}/src/entities/mutil-users.class.ts +0 -0
  255. /package/{test → app}/src/entities/user-dto.class.ts +0 -0
  256. /package/{test → app}/src/first-page.class.ts +0 -0
  257. /package/{test → app}/src/second-page.class.ts +0 -0
  258. /package/{test → app}/src/views/index.html +0 -0
  259. /package/{test → app}/src/views/upload.html +0 -0
  260. /package/{test → app}/static/favicon.ico +0 -0
  261. /package/{test → app}/static/k.jpg +0 -0
  262. /package/{test → app}/tsconfig.json +0 -0
package/tsconfig.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "module": "CommonJS",
4
- //"declaration": true,
5
4
  "emitDecoratorMetadata": true,
6
5
  "experimentalDecorators": true,
7
6
  "allowSyntheticDefaultImports": true,
8
7
  "forceConsistentCasingInFileNames": true,
9
8
  "target": "ES2017",
10
- //"sourceMap": true,
11
9
  "outDir": "./dist",
12
10
  "baseUrl": "./",
13
11
  "typeRoots": [
@@ -21,6 +19,7 @@
21
19
  "exclude": [
22
20
  "node_modules",
23
21
  "dist",
24
- "test"
22
+ "test",
23
+ "app"
25
24
  ]
26
25
  }
package/test/nodemon.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "watch": ["src", "test"],
3
- "ext": "ts,json",
4
- "ignore": ["src/**/*.spec.ts"],
5
- "exec": "npm run test"
6
- }
@@ -1,9 +0,0 @@
1
- import { component } from "../../";
2
-
3
- @component
4
- export default class TestLog {
5
-
6
- constructor() {
7
- //log("TestLog constructor");
8
- }
9
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes