typespeed 2.4.1 → 2.4.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 (246) hide show
  1. package/dist/introduction/decorator/example-import.class.js +17 -0
  2. package/dist/introduction/decorator/main-app.js +14 -0
  3. package/dist/introduction/decorator/main-decorator.js +127 -0
  4. package/dist/introduction/decorator/main-import.js +1 -0
  5. package/dist/introduction/decorator/main-reflect.js +38 -0
  6. package/dist/introduction/web-services/db-init.js +33 -0
  7. package/dist/introduction/web-services/db-singleton.js +49 -0
  8. package/dist/introduction/web-services/http-if.js +12 -0
  9. package/dist/introduction/web-services/http-init.js +7 -0
  10. package/dist/introduction/web-services/http-router.js +23 -0
  11. package/dist/{database.decorator.js → src/database.decorator.js} +2 -4
  12. package/package.json +2 -4
  13. package/src/database.decorator.ts +2 -4
  14. package/tsconfig.json +2 -1
  15. package/app/node_modules/.package-lock.json +0 -134
  16. package/app/node_modules/@types/body-parser/LICENSE +0 -21
  17. package/app/node_modules/@types/body-parser/README.md +0 -16
  18. package/app/node_modules/@types/body-parser/index.d.ts +0 -107
  19. package/app/node_modules/@types/body-parser/package.json +0 -58
  20. package/app/node_modules/@types/connect/LICENSE +0 -21
  21. package/app/node_modules/@types/connect/README.md +0 -16
  22. package/app/node_modules/@types/connect/index.d.ts +0 -93
  23. package/app/node_modules/@types/connect/package.json +0 -32
  24. package/app/node_modules/@types/express/LICENSE +0 -21
  25. package/app/node_modules/@types/express/README.md +0 -16
  26. package/app/node_modules/@types/express/index.d.ts +0 -136
  27. package/app/node_modules/@types/express/package.json +0 -45
  28. package/app/node_modules/@types/express-serve-static-core/LICENSE +0 -21
  29. package/app/node_modules/@types/express-serve-static-core/README.md +0 -16
  30. package/app/node_modules/@types/express-serve-static-core/index.d.ts +0 -1281
  31. package/app/node_modules/@types/express-serve-static-core/package.json +0 -55
  32. package/app/node_modules/@types/mime/LICENSE +0 -21
  33. package/app/node_modules/@types/mime/Mime.d.ts +0 -10
  34. package/app/node_modules/@types/mime/README.md +0 -16
  35. package/app/node_modules/@types/mime/index.d.ts +0 -35
  36. package/app/node_modules/@types/mime/lite.d.ts +0 -7
  37. package/app/node_modules/@types/mime/package.json +0 -29
  38. package/app/node_modules/@types/node/LICENSE +0 -21
  39. package/app/node_modules/@types/node/README.md +0 -16
  40. package/app/node_modules/@types/node/assert/strict.d.ts +0 -8
  41. package/app/node_modules/@types/node/assert.d.ts +0 -961
  42. package/app/node_modules/@types/node/async_hooks.d.ts +0 -518
  43. package/app/node_modules/@types/node/buffer.d.ts +0 -2323
  44. package/app/node_modules/@types/node/child_process.d.ts +0 -1399
  45. package/app/node_modules/@types/node/cluster.d.ts +0 -410
  46. package/app/node_modules/@types/node/console.d.ts +0 -412
  47. package/app/node_modules/@types/node/constants.d.ts +0 -18
  48. package/app/node_modules/@types/node/crypto.d.ts +0 -3973
  49. package/app/node_modules/@types/node/dgram.d.ts +0 -545
  50. package/app/node_modules/@types/node/diagnostics_channel.d.ts +0 -192
  51. package/app/node_modules/@types/node/dns/promises.d.ts +0 -370
  52. package/app/node_modules/@types/node/dns.d.ts +0 -660
  53. package/app/node_modules/@types/node/dom-events.d.ts +0 -126
  54. package/app/node_modules/@types/node/domain.d.ts +0 -170
  55. package/app/node_modules/@types/node/events.d.ts +0 -682
  56. package/app/node_modules/@types/node/fs/promises.d.ts +0 -1159
  57. package/app/node_modules/@types/node/fs.d.ts +0 -3976
  58. package/app/node_modules/@types/node/globals.d.ts +0 -303
  59. package/app/node_modules/@types/node/globals.global.d.ts +0 -1
  60. package/app/node_modules/@types/node/http.d.ts +0 -1714
  61. package/app/node_modules/@types/node/http2.d.ts +0 -2133
  62. package/app/node_modules/@types/node/https.d.ts +0 -542
  63. package/app/node_modules/@types/node/index.d.ts +0 -134
  64. package/app/node_modules/@types/node/inspector.d.ts +0 -2741
  65. package/app/node_modules/@types/node/module.d.ts +0 -115
  66. package/app/node_modules/@types/node/net.d.ts +0 -883
  67. package/app/node_modules/@types/node/os.d.ts +0 -473
  68. package/app/node_modules/@types/node/package.json +0 -237
  69. package/app/node_modules/@types/node/path.d.ts +0 -191
  70. package/app/node_modules/@types/node/perf_hooks.d.ts +0 -625
  71. package/app/node_modules/@types/node/process.d.ts +0 -1488
  72. package/app/node_modules/@types/node/punycode.d.ts +0 -117
  73. package/app/node_modules/@types/node/querystring.d.ts +0 -131
  74. package/app/node_modules/@types/node/readline/promises.d.ts +0 -143
  75. package/app/node_modules/@types/node/readline.d.ts +0 -653
  76. package/app/node_modules/@types/node/repl.d.ts +0 -424
  77. package/app/node_modules/@types/node/stream/consumers.d.ts +0 -12
  78. package/app/node_modules/@types/node/stream/promises.d.ts +0 -42
  79. package/app/node_modules/@types/node/stream/web.d.ts +0 -330
  80. package/app/node_modules/@types/node/stream.d.ts +0 -1440
  81. package/app/node_modules/@types/node/string_decoder.d.ts +0 -67
  82. package/app/node_modules/@types/node/test.d.ts +0 -783
  83. package/app/node_modules/@types/node/timers/promises.d.ts +0 -93
  84. package/app/node_modules/@types/node/timers.d.ts +0 -101
  85. package/app/node_modules/@types/node/tls.d.ts +0 -1111
  86. package/app/node_modules/@types/node/trace_events.d.ts +0 -171
  87. package/app/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  88. package/app/node_modules/@types/node/ts4.8/assert.d.ts +0 -961
  89. package/app/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -518
  90. package/app/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2323
  91. package/app/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1399
  92. package/app/node_modules/@types/node/ts4.8/cluster.d.ts +0 -410
  93. package/app/node_modules/@types/node/ts4.8/console.d.ts +0 -412
  94. package/app/node_modules/@types/node/ts4.8/constants.d.ts +0 -18
  95. package/app/node_modules/@types/node/ts4.8/crypto.d.ts +0 -3972
  96. package/app/node_modules/@types/node/ts4.8/dgram.d.ts +0 -545
  97. package/app/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -192
  98. package/app/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -370
  99. package/app/node_modules/@types/node/ts4.8/dns.d.ts +0 -660
  100. package/app/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -126
  101. package/app/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  102. package/app/node_modules/@types/node/ts4.8/events.d.ts +0 -682
  103. package/app/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1138
  104. package/app/node_modules/@types/node/ts4.8/fs.d.ts +0 -3875
  105. package/app/node_modules/@types/node/ts4.8/globals.d.ts +0 -302
  106. package/app/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  107. package/app/node_modules/@types/node/ts4.8/http.d.ts +0 -1651
  108. package/app/node_modules/@types/node/ts4.8/http2.d.ts +0 -2133
  109. package/app/node_modules/@types/node/ts4.8/https.d.ts +0 -542
  110. package/app/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  111. package/app/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2741
  112. package/app/node_modules/@types/node/ts4.8/module.d.ts +0 -115
  113. package/app/node_modules/@types/node/ts4.8/net.d.ts +0 -883
  114. package/app/node_modules/@types/node/ts4.8/os.d.ts +0 -473
  115. package/app/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  116. package/app/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -625
  117. package/app/node_modules/@types/node/ts4.8/process.d.ts +0 -1488
  118. package/app/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  119. package/app/node_modules/@types/node/ts4.8/querystring.d.ts +0 -131
  120. package/app/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -143
  121. package/app/node_modules/@types/node/ts4.8/readline.d.ts +0 -653
  122. package/app/node_modules/@types/node/ts4.8/repl.d.ts +0 -424
  123. package/app/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  124. package/app/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -42
  125. package/app/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -330
  126. package/app/node_modules/@types/node/ts4.8/stream.d.ts +0 -1440
  127. package/app/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  128. package/app/node_modules/@types/node/ts4.8/test.d.ts +0 -784
  129. package/app/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  130. package/app/node_modules/@types/node/ts4.8/timers.d.ts +0 -94
  131. package/app/node_modules/@types/node/ts4.8/tls.d.ts +0 -1111
  132. package/app/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -171
  133. package/app/node_modules/@types/node/ts4.8/tty.d.ts +0 -206
  134. package/app/node_modules/@types/node/ts4.8/url.d.ts +0 -902
  135. package/app/node_modules/@types/node/ts4.8/util.d.ts +0 -2017
  136. package/app/node_modules/@types/node/ts4.8/v8.d.ts +0 -541
  137. package/app/node_modules/@types/node/ts4.8/vm.d.ts +0 -644
  138. package/app/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
  139. package/app/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -695
  140. package/app/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  141. package/app/node_modules/@types/node/tty.d.ts +0 -206
  142. package/app/node_modules/@types/node/url.d.ts +0 -902
  143. package/app/node_modules/@types/node/util.d.ts +0 -2017
  144. package/app/node_modules/@types/node/v8.d.ts +0 -541
  145. package/app/node_modules/@types/node/vm.d.ts +0 -644
  146. package/app/node_modules/@types/node/wasi.d.ts +0 -158
  147. package/app/node_modules/@types/node/worker_threads.d.ts +0 -695
  148. package/app/node_modules/@types/node/zlib.d.ts +0 -517
  149. package/app/node_modules/@types/qs/LICENSE +0 -21
  150. package/app/node_modules/@types/qs/README.md +0 -16
  151. package/app/node_modules/@types/qs/index.d.ts +0 -62
  152. package/app/node_modules/@types/qs/package.json +0 -65
  153. package/app/node_modules/@types/range-parser/LICENSE +0 -21
  154. package/app/node_modules/@types/range-parser/README.md +0 -55
  155. package/app/node_modules/@types/range-parser/index.d.ts +0 -35
  156. package/app/node_modules/@types/range-parser/package.json +0 -25
  157. package/app/node_modules/@types/send/LICENSE +0 -21
  158. package/app/node_modules/@types/send/README.md +0 -16
  159. package/app/node_modules/@types/send/index.d.ts +0 -231
  160. package/app/node_modules/@types/send/package.json +0 -33
  161. package/app/node_modules/@types/serve-static/LICENSE +0 -21
  162. package/app/node_modules/@types/serve-static/README.md +0 -16
  163. package/app/node_modules/@types/serve-static/index.d.ts +0 -113
  164. package/app/node_modules/@types/serve-static/package.json +0 -38
  165. package/app/node_modules/colors/LICENSE +0 -25
  166. package/app/node_modules/colors/README.md +0 -221
  167. package/app/node_modules/colors/examples/normal-usage.js +0 -82
  168. package/app/node_modules/colors/examples/safe-string.js +0 -79
  169. package/app/node_modules/colors/index.d.ts +0 -136
  170. package/app/node_modules/colors/lib/colors.js +0 -211
  171. package/app/node_modules/colors/lib/custom/trap.js +0 -46
  172. package/app/node_modules/colors/lib/custom/zalgo.js +0 -110
  173. package/app/node_modules/colors/lib/extendStringPrototype.js +0 -110
  174. package/app/node_modules/colors/lib/index.js +0 -13
  175. package/app/node_modules/colors/lib/maps/america.js +0 -10
  176. package/app/node_modules/colors/lib/maps/rainbow.js +0 -12
  177. package/app/node_modules/colors/lib/maps/random.js +0 -11
  178. package/app/node_modules/colors/lib/maps/zebra.js +0 -5
  179. package/app/node_modules/colors/lib/styles.js +0 -95
  180. package/app/node_modules/colors/lib/system/has-flag.js +0 -35
  181. package/app/node_modules/colors/lib/system/supports-colors.js +0 -151
  182. package/app/node_modules/colors/package.json +0 -45
  183. package/app/node_modules/colors/safe.d.ts +0 -48
  184. package/app/node_modules/colors/safe.js +0 -10
  185. package/app/node_modules/colors/themes/generic-logging.js +0 -12
  186. package/app/node_modules/dateformat/LICENSE +0 -20
  187. package/app/node_modules/dateformat/Readme.md +0 -204
  188. package/app/node_modules/dateformat/lib/dateformat.js +0 -1
  189. package/app/node_modules/dateformat/package.json +0 -38
  190. package/app/node_modules/mkdirp/CHANGELOG.md +0 -15
  191. package/app/node_modules/mkdirp/LICENSE +0 -21
  192. package/app/node_modules/mkdirp/bin/cmd.js +0 -68
  193. package/app/node_modules/mkdirp/index.js +0 -31
  194. package/app/node_modules/mkdirp/lib/find-made.js +0 -29
  195. package/app/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
  196. package/app/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
  197. package/app/node_modules/mkdirp/lib/opts-arg.js +0 -23
  198. package/app/node_modules/mkdirp/lib/path-arg.js +0 -29
  199. package/app/node_modules/mkdirp/lib/use-native.js +0 -10
  200. package/app/node_modules/mkdirp/package.json +0 -44
  201. package/app/node_modules/mkdirp/readme.markdown +0 -266
  202. package/app/node_modules/tinytim/.travis.yml +0 -5
  203. package/app/node_modules/tinytim/README.md +0 -212
  204. package/app/node_modules/tinytim/index.js +0 -1
  205. package/app/node_modules/tinytim/lib/index.js +0 -55
  206. package/app/node_modules/tinytim/lib/tinytim.js +0 -50
  207. package/app/node_modules/tinytim/package.json +0 -24
  208. package/app/node_modules/tinytim/test/files/html.tim +0 -1
  209. package/app/node_modules/tinytim/test/files/string.tim +0 -1
  210. package/app/node_modules/tinytim/test/files/string2.tim +0 -1
  211. package/app/node_modules/tinytim/test/render-file-replace.js +0 -39
  212. package/app/node_modules/tinytim/test/render-replace.js +0 -94
  213. package/app/node_modules/tinytim/test/tim-replace.js +0 -95
  214. package/app/node_modules/tracer/README.md +0 -747
  215. package/app/node_modules/tracer/lib/color_console.js +0 -15
  216. package/app/node_modules/tracer/lib/console.js +0 -165
  217. package/app/node_modules/tracer/lib/dailyfile.js +0 -92
  218. package/app/node_modules/tracer/lib/index.js +0 -10
  219. package/app/node_modules/tracer/lib/settings.js +0 -25
  220. package/app/node_modules/tracer/lib/utils.js +0 -58
  221. package/app/node_modules/tracer/package.json +0 -53
  222. package/app/node_modules/tracer/types/index.d.ts +0 -189
  223. package/dist/scaffold/templates/front-page.class.ts.tpl +0 -12
  224. package/dist/scaffold/templates/main.ts.tpl +0 -13
  225. package/dist/scaffold/templates/nodemon.json.tpl +0 -7
  226. package/dist/scaffold/templates/package.json.tpl +0 -16
  227. package/dist/scaffold/templates/tsconfig.json.tpl +0 -20
  228. /package/dist/{core.decorator.js → src/core.decorator.js} +0 -0
  229. /package/dist/{default → src/default}/default-authentication.class.js +0 -0
  230. /package/dist/{default → src/default}/express-server.class.js +0 -0
  231. /package/dist/{default → src/default}/log-default.class.js +0 -0
  232. /package/dist/{default → src/default}/node-cache.class.js +0 -0
  233. /package/dist/{default → src/default}/pages/404.html +0 -0
  234. /package/dist/{default → src/default}/pages/500.html +0 -0
  235. /package/dist/{default → src/default}/rabbitmq.class.js +0 -0
  236. /package/dist/{default → src/default}/read-write-db.class.js +0 -0
  237. /package/dist/{default → src/default}/redis.class.js +0 -0
  238. /package/dist/{default → src/default}/socket-io.class.js +0 -0
  239. /package/dist/{factory → src/factory}/authentication-factory.class.js +0 -0
  240. /package/dist/{factory → src/factory}/cache-factory.class.js +0 -0
  241. /package/dist/{factory → src/factory}/data-source-factory.class.js +0 -0
  242. /package/dist/{factory → src/factory}/log-factory.class.js +0 -0
  243. /package/dist/{factory → src/factory}/server-factory.class.js +0 -0
  244. /package/dist/{route.decorator.js → src/route.decorator.js} +0 -0
  245. /package/dist/{scaffold → src/scaffold}/command.js +0 -0
  246. /package/dist/{typespeed.js → src/typespeed.js} +0 -0
@@ -1,107 +0,0 @@
1
- // Type definitions for body-parser 1.19
2
- // Project: https://github.com/expressjs/body-parser
3
- // Definitions by: Santi Albo <https://github.com/santialbo>
4
- // Vilic Vane <https://github.com/vilic>
5
- // Jonathan Häberle <https://github.com/dreampulse>
6
- // Gevik Babakhani <https://github.com/blendsdk>
7
- // Tomasz Łaziuk <https://github.com/tlaziuk>
8
- // Jason Walton <https://github.com/jwalton>
9
- // Piotr Błażejewicz <https://github.com/peterblazejewicz>
10
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
11
-
12
- /// <reference types="node" />
13
-
14
- import { NextHandleFunction } from 'connect';
15
- import * as http from 'http';
16
-
17
- // for docs go to https://github.com/expressjs/body-parser/tree/1.19.0#body-parser
18
-
19
- declare namespace bodyParser {
20
- interface BodyParser {
21
- /**
22
- * @deprecated use individual json/urlencoded middlewares
23
- */
24
- (options?: OptionsJson & OptionsText & OptionsUrlencoded): NextHandleFunction;
25
- /**
26
- * Returns middleware that only parses json and only looks at requests
27
- * where the Content-Type header matches the type option.
28
- */
29
- json(options?: OptionsJson): NextHandleFunction;
30
- /**
31
- * Returns middleware that parses all bodies as a Buffer and only looks at requests
32
- * where the Content-Type header matches the type option.
33
- */
34
- raw(options?: Options): NextHandleFunction;
35
-
36
- /**
37
- * Returns middleware that parses all bodies as a string and only looks at requests
38
- * where the Content-Type header matches the type option.
39
- */
40
- text(options?: OptionsText): NextHandleFunction;
41
- /**
42
- * Returns middleware that only parses urlencoded bodies and only looks at requests
43
- * where the Content-Type header matches the type option
44
- */
45
- urlencoded(options?: OptionsUrlencoded): NextHandleFunction;
46
- }
47
-
48
- interface Options {
49
- /** When set to true, then deflated (compressed) bodies will be inflated; when false, deflated bodies are rejected. Defaults to true. */
50
- inflate?: boolean | undefined;
51
- /**
52
- * Controls the maximum request body size. If this is a number,
53
- * then the value specifies the number of bytes; if it is a string,
54
- * the value is passed to the bytes library for parsing. Defaults to '100kb'.
55
- */
56
- limit?: number | string | undefined;
57
- /**
58
- * The type option is used to determine what media type the middleware will parse
59
- */
60
- type?: string | string[] | ((req: http.IncomingMessage) => any) | undefined;
61
- /**
62
- * The verify option, if supplied, is called as verify(req, res, buf, encoding),
63
- * where buf is a Buffer of the raw request body and encoding is the encoding of the request.
64
- */
65
- verify?(req: http.IncomingMessage, res: http.ServerResponse, buf: Buffer, encoding: string): void;
66
- }
67
-
68
- interface OptionsJson extends Options {
69
- /**
70
- *
71
- * The reviver option is passed directly to JSON.parse as the second argument.
72
- */
73
- reviver?(key: string, value: any): any;
74
- /**
75
- * When set to `true`, will only accept arrays and objects;
76
- * when `false` will accept anything JSON.parse accepts. Defaults to `true`.
77
- */
78
- strict?: boolean | undefined;
79
- }
80
-
81
- interface OptionsText extends Options {
82
- /**
83
- * Specify the default character set for the text content if the charset
84
- * is not specified in the Content-Type header of the request.
85
- * Defaults to `utf-8`.
86
- */
87
- defaultCharset?: string | undefined;
88
- }
89
-
90
- interface OptionsUrlencoded extends Options {
91
- /**
92
- * The extended option allows to choose between parsing the URL-encoded data
93
- * with the querystring library (when `false`) or the qs library (when `true`).
94
- */
95
- extended?: boolean | undefined;
96
- /**
97
- * The parameterLimit option controls the maximum number of parameters
98
- * that are allowed in the URL-encoded data. If a request contains more parameters than this value,
99
- * a 413 will be returned to the client. Defaults to 1000.
100
- */
101
- parameterLimit?: number | undefined;
102
- }
103
- }
104
-
105
- declare const bodyParser: bodyParser.BodyParser;
106
-
107
- export = bodyParser;
@@ -1,58 +0,0 @@
1
- {
2
- "name": "@types/body-parser",
3
- "version": "1.19.2",
4
- "description": "TypeScript definitions for body-parser",
5
- "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/body-parser",
6
- "license": "MIT",
7
- "contributors": [
8
- {
9
- "name": "Santi Albo",
10
- "url": "https://github.com/santialbo",
11
- "githubUsername": "santialbo"
12
- },
13
- {
14
- "name": "Vilic Vane",
15
- "url": "https://github.com/vilic",
16
- "githubUsername": "vilic"
17
- },
18
- {
19
- "name": "Jonathan Häberle",
20
- "url": "https://github.com/dreampulse",
21
- "githubUsername": "dreampulse"
22
- },
23
- {
24
- "name": "Gevik Babakhani",
25
- "url": "https://github.com/blendsdk",
26
- "githubUsername": "blendsdk"
27
- },
28
- {
29
- "name": "Tomasz Łaziuk",
30
- "url": "https://github.com/tlaziuk",
31
- "githubUsername": "tlaziuk"
32
- },
33
- {
34
- "name": "Jason Walton",
35
- "url": "https://github.com/jwalton",
36
- "githubUsername": "jwalton"
37
- },
38
- {
39
- "name": "Piotr Błażejewicz",
40
- "url": "https://github.com/peterblazejewicz",
41
- "githubUsername": "peterblazejewicz"
42
- }
43
- ],
44
- "main": "",
45
- "types": "index.d.ts",
46
- "repository": {
47
- "type": "git",
48
- "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
49
- "directory": "types/body-parser"
50
- },
51
- "scripts": {},
52
- "dependencies": {
53
- "@types/connect": "*",
54
- "@types/node": "*"
55
- },
56
- "typesPublisherContentHash": "ad069aa8b9e8a95f66df025de11975c773540e4071000abdb7db565579b013ee",
57
- "typeScriptVersion": "3.7"
58
- }
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
@@ -1,16 +0,0 @@
1
- # Installation
2
- > `npm install --save @types/connect`
3
-
4
- # Summary
5
- This package contains type definitions for connect (https://github.com/senchalabs/connect).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect.
9
-
10
- ### Additional Details
11
- * Last updated: Tue, 06 Jul 2021 20:32:28 GMT
12
- * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
13
- * Global values: none
14
-
15
- # Credits
16
- These definitions were written by [Maxime LUCE](https://github.com/SomaticIT), and [Evan Hahn](https://github.com/EvanHahn).
@@ -1,93 +0,0 @@
1
- // Type definitions for connect v3.4.0
2
- // Project: https://github.com/senchalabs/connect
3
- // Definitions by: Maxime LUCE <https://github.com/SomaticIT>
4
- // Evan Hahn <https://github.com/EvanHahn>
5
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
-
7
- /// <reference types="node" />
8
-
9
-
10
- import * as http from "http";
11
-
12
- /**
13
- * Create a new connect server.
14
- */
15
- declare function createServer(): createServer.Server;
16
-
17
- declare namespace createServer {
18
- export type ServerHandle = HandleFunction | http.Server;
19
-
20
- export class IncomingMessage extends http.IncomingMessage {
21
- originalUrl?: http.IncomingMessage["url"] | undefined;
22
- }
23
-
24
- type NextFunction = (err?: any) => void;
25
-
26
- export type SimpleHandleFunction = (req: IncomingMessage, res: http.ServerResponse) => void;
27
- export type NextHandleFunction = (req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => void;
28
- export type ErrorHandleFunction = (err: any, req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => void;
29
- export type HandleFunction = SimpleHandleFunction | NextHandleFunction | ErrorHandleFunction;
30
-
31
- export interface ServerStackItem {
32
- route: string;
33
- handle: ServerHandle;
34
- }
35
-
36
- export interface Server extends NodeJS.EventEmitter {
37
- (req: http.IncomingMessage, res: http.ServerResponse, next?: Function): void;
38
-
39
- route: string;
40
- stack: ServerStackItem[];
41
-
42
- /**
43
- * Utilize the given middleware `handle` to the given `route`,
44
- * defaulting to _/_. This "route" is the mount-point for the
45
- * middleware, when given a value other than _/_ the middleware
46
- * is only effective when that segment is present in the request's
47
- * pathname.
48
- *
49
- * For example if we were to mount a function at _/admin_, it would
50
- * be invoked on _/admin_, and _/admin/settings_, however it would
51
- * not be invoked for _/_, or _/posts_.
52
- */
53
- use(fn: NextHandleFunction): Server;
54
- use(fn: HandleFunction): Server;
55
- use(route: string, fn: NextHandleFunction): Server;
56
- use(route: string, fn: HandleFunction): Server;
57
-
58
- /**
59
- * Handle server requests, punting them down
60
- * the middleware stack.
61
- */
62
- handle(req: http.IncomingMessage, res: http.ServerResponse, next: Function): void;
63
-
64
- /**
65
- * Listen for connections.
66
- *
67
- * This method takes the same arguments
68
- * as node's `http.Server#listen()`.
69
- *
70
- * HTTP and HTTPS:
71
- *
72
- * If you run your application both as HTTP
73
- * and HTTPS you may wrap them individually,
74
- * since your Connect "server" is really just
75
- * a JavaScript `Function`.
76
- *
77
- * var connect = require('connect')
78
- * , http = require('http')
79
- * , https = require('https');
80
- *
81
- * var app = connect();
82
- *
83
- * http.createServer(app).listen(80);
84
- * https.createServer(options, app).listen(443);
85
- */
86
- listen(port: number, hostname?: string, backlog?: number, callback?: Function): http.Server;
87
- listen(port: number, hostname?: string, callback?: Function): http.Server;
88
- listen(path: string, callback?: Function): http.Server;
89
- listen(handle: any, listeningListener?: Function): http.Server;
90
- }
91
- }
92
-
93
- export = createServer;
@@ -1,32 +0,0 @@
1
- {
2
- "name": "@types/connect",
3
- "version": "3.4.35",
4
- "description": "TypeScript definitions for connect",
5
- "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect",
6
- "license": "MIT",
7
- "contributors": [
8
- {
9
- "name": "Maxime LUCE",
10
- "url": "https://github.com/SomaticIT",
11
- "githubUsername": "SomaticIT"
12
- },
13
- {
14
- "name": "Evan Hahn",
15
- "url": "https://github.com/EvanHahn",
16
- "githubUsername": "EvanHahn"
17
- }
18
- ],
19
- "main": "",
20
- "types": "index.d.ts",
21
- "repository": {
22
- "type": "git",
23
- "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
24
- "directory": "types/connect"
25
- },
26
- "scripts": {},
27
- "dependencies": {
28
- "@types/node": "*"
29
- },
30
- "typesPublisherContentHash": "09c0dcec5f675cb2bdd7487a85447955f769ef4ab174294478c4f055b528fecc",
31
- "typeScriptVersion": "3.6"
32
- }
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
@@ -1,16 +0,0 @@
1
- # Installation
2
- > `npm install --save @types/express`
3
-
4
- # Summary
5
- This package contains type definitions for Express (http://expressjs.com).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express.
9
-
10
- ### Additional Details
11
- * Last updated: Fri, 03 Feb 2023 21:32:47 GMT
12
- * Dependencies: [@types/body-parser](https://npmjs.com/package/@types/body-parser), [@types/express-serve-static-core](https://npmjs.com/package/@types/express-serve-static-core), [@types/qs](https://npmjs.com/package/@types/qs), [@types/serve-static](https://npmjs.com/package/@types/serve-static)
13
- * Global values: none
14
-
15
- # Credits
16
- These definitions were written by [Boris Yankov](https://github.com/borisyankov), [China Medical University Hospital](https://github.com/CMUH), [Puneet Arora](https://github.com/puneetar), and [Dylan Frankland](https://github.com/dfrankland).
@@ -1,136 +0,0 @@
1
- // Type definitions for Express 4.17
2
- // Project: http://expressjs.com
3
- // Definitions by: Boris Yankov <https://github.com/borisyankov>
4
- // China Medical University Hospital <https://github.com/CMUH>
5
- // Puneet Arora <https://github.com/puneetar>
6
- // Dylan Frankland <https://github.com/dfrankland>
7
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
8
-
9
- /* =================== USAGE ===================
10
-
11
- import express = require("express");
12
- var app = express();
13
-
14
- =============================================== */
15
-
16
- /// <reference types="express-serve-static-core" />
17
- /// <reference types="serve-static" />
18
-
19
- import * as bodyParser from 'body-parser';
20
- import * as serveStatic from 'serve-static';
21
- import * as core from 'express-serve-static-core';
22
- import * as qs from 'qs';
23
-
24
- /**
25
- * Creates an Express application. The express() function is a top-level function exported by the express module.
26
- */
27
- declare function e(): core.Express;
28
-
29
- declare namespace e {
30
- /**
31
- * This is a built-in middleware function in Express. It parses incoming requests with JSON payloads and is based on body-parser.
32
- * @since 4.16.0
33
- */
34
- var json: typeof bodyParser.json;
35
-
36
- /**
37
- * This is a built-in middleware function in Express. It parses incoming requests with Buffer payloads and is based on body-parser.
38
- * @since 4.17.0
39
- */
40
- var raw: typeof bodyParser.raw;
41
-
42
- /**
43
- * This is a built-in middleware function in Express. It parses incoming requests with text payloads and is based on body-parser.
44
- * @since 4.17.0
45
- */
46
- var text: typeof bodyParser.text;
47
-
48
- /**
49
- * These are the exposed prototypes.
50
- */
51
- var application: Application;
52
- var request: Request;
53
- var response: Response;
54
-
55
- /**
56
- * This is a built-in middleware function in Express. It serves static files and is based on serve-static.
57
- */
58
- var static: serveStatic.RequestHandlerConstructor<Response>;
59
-
60
- /**
61
- * This is a built-in middleware function in Express. It parses incoming requests with urlencoded payloads and is based on body-parser.
62
- * @since 4.16.0
63
- */
64
- var urlencoded: typeof bodyParser.urlencoded;
65
-
66
- /**
67
- * This is a built-in middleware function in Express. It parses incoming request query parameters.
68
- */
69
- export function query(options: qs.IParseOptions | typeof qs.parse): Handler;
70
-
71
- export function Router(options?: RouterOptions): core.Router;
72
-
73
- interface RouterOptions {
74
- /**
75
- * Enable case sensitivity.
76
- */
77
- caseSensitive?: boolean | undefined;
78
-
79
- /**
80
- * Preserve the req.params values from the parent router.
81
- * If the parent and the child have conflicting param names, the child’s value take precedence.
82
- *
83
- * @default false
84
- * @since 4.5.0
85
- */
86
- mergeParams?: boolean | undefined;
87
-
88
- /**
89
- * Enable strict routing.
90
- */
91
- strict?: boolean | undefined;
92
- }
93
-
94
- interface Application extends core.Application {}
95
- interface CookieOptions extends core.CookieOptions {}
96
- interface Errback extends core.Errback {}
97
- interface ErrorRequestHandler<
98
- P = core.ParamsDictionary,
99
- ResBody = any,
100
- ReqBody = any,
101
- ReqQuery = core.Query,
102
- Locals extends Record<string, any> = Record<string, any>
103
- > extends core.ErrorRequestHandler<P, ResBody, ReqBody, ReqQuery, Locals> {}
104
- interface Express extends core.Express {}
105
- interface Handler extends core.Handler {}
106
- interface IRoute extends core.IRoute {}
107
- interface IRouter extends core.IRouter {}
108
- interface IRouterHandler<T> extends core.IRouterHandler<T> {}
109
- interface IRouterMatcher<T> extends core.IRouterMatcher<T> {}
110
- interface MediaType extends core.MediaType {}
111
- interface NextFunction extends core.NextFunction {}
112
- interface Locals extends core.Locals {}
113
- interface Request<
114
- P = core.ParamsDictionary,
115
- ResBody = any,
116
- ReqBody = any,
117
- ReqQuery = core.Query,
118
- Locals extends Record<string, any> = Record<string, any>
119
- > extends core.Request<P, ResBody, ReqBody, ReqQuery, Locals> {}
120
- interface RequestHandler<
121
- P = core.ParamsDictionary,
122
- ResBody = any,
123
- ReqBody = any,
124
- ReqQuery = core.Query,
125
- Locals extends Record<string, any> = Record<string, any>
126
- > extends core.RequestHandler<P, ResBody, ReqBody, ReqQuery, Locals> {}
127
- interface RequestParamHandler extends core.RequestParamHandler {}
128
- interface Response<
129
- ResBody = any,
130
- Locals extends Record<string, any> = Record<string, any>
131
- > extends core.Response<ResBody, Locals> {}
132
- interface Router extends core.Router {}
133
- interface Send extends core.Send {}
134
- }
135
-
136
- export = e;
@@ -1,45 +0,0 @@
1
- {
2
- "name": "@types/express",
3
- "version": "4.17.17",
4
- "description": "TypeScript definitions for Express",
5
- "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express",
6
- "license": "MIT",
7
- "contributors": [
8
- {
9
- "name": "Boris Yankov",
10
- "url": "https://github.com/borisyankov",
11
- "githubUsername": "borisyankov"
12
- },
13
- {
14
- "name": "China Medical University Hospital",
15
- "url": "https://github.com/CMUH",
16
- "githubUsername": "CMUH"
17
- },
18
- {
19
- "name": "Puneet Arora",
20
- "url": "https://github.com/puneetar",
21
- "githubUsername": "puneetar"
22
- },
23
- {
24
- "name": "Dylan Frankland",
25
- "url": "https://github.com/dfrankland",
26
- "githubUsername": "dfrankland"
27
- }
28
- ],
29
- "main": "",
30
- "types": "index.d.ts",
31
- "repository": {
32
- "type": "git",
33
- "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
34
- "directory": "types/express"
35
- },
36
- "scripts": {},
37
- "dependencies": {
38
- "@types/body-parser": "*",
39
- "@types/express-serve-static-core": "^4.17.33",
40
- "@types/qs": "*",
41
- "@types/serve-static": "*"
42
- },
43
- "typesPublisherContentHash": "a4c3d98898199c22408b7c0662e85011cacce7899cd22a66275337ec40edac14",
44
- "typeScriptVersion": "4.2"
45
- }
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
@@ -1,16 +0,0 @@
1
- # Installation
2
- > `npm install --save @types/express-serve-static-core`
3
-
4
- # Summary
5
- This package contains type definitions for Express (http://expressjs.com).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-serve-static-core.
9
-
10
- ### Additional Details
11
- * Last updated: Sat, 13 May 2023 03:32:51 GMT
12
- * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/qs](https://npmjs.com/package/@types/qs), [@types/range-parser](https://npmjs.com/package/@types/range-parser), [@types/send](https://npmjs.com/package/@types/send)
13
- * Global values: none
14
-
15
- # Credits
16
- These definitions were written by [Boris Yankov](https://github.com/borisyankov), [Satana Charuwichitratana](https://github.com/micksatana), [Sami Jaber](https://github.com/samijaber), [Jose Luis Leon](https://github.com/JoseLion), [David Stephens](https://github.com/dwrss), and [Shin Ando](https://github.com/andoshin11).