typespeed 2.3.6 → 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 (258) hide show
  1. package/app/src/config-development.json +3 -2
  2. package/app/src/test-socket.class.ts +56 -0
  3. package/app/src/views/socket.html +23 -0
  4. package/dist/introduction/decorator/example-import.class.js +17 -0
  5. package/dist/introduction/decorator/main-app.js +14 -0
  6. package/dist/introduction/decorator/main-decorator.js +127 -0
  7. package/dist/introduction/decorator/main-import.js +1 -0
  8. package/dist/introduction/decorator/main-reflect.js +38 -0
  9. package/dist/introduction/web-services/db-init.js +33 -0
  10. package/dist/introduction/web-services/db-singleton.js +49 -0
  11. package/dist/introduction/web-services/http-if.js +12 -0
  12. package/dist/introduction/web-services/http-init.js +7 -0
  13. package/dist/introduction/web-services/http-router.js +23 -0
  14. package/dist/{database.decorator.js → src/database.decorator.js} +2 -4
  15. package/dist/{default → src/default}/express-server.class.js +20 -5
  16. package/dist/{default → src/default}/rabbitmq.class.js +3 -3
  17. package/dist/{default → src/default}/redis.class.js +1 -1
  18. package/dist/src/default/socket-io.class.js +64 -0
  19. package/dist/{typespeed.js → src/typespeed.js} +6 -3
  20. package/dist/typespeed.d.ts +19 -1
  21. package/package.json +8 -8
  22. package/src/database.decorator.ts +2 -4
  23. package/src/default/express-server.class.ts +18 -7
  24. package/src/default/rabbitmq.class.ts +3 -3
  25. package/src/default/redis.class.ts +1 -1
  26. package/src/default/socket-io.class.ts +68 -0
  27. package/src/factory/server-factory.class.ts +1 -1
  28. package/src/typespeed.d.ts +19 -1
  29. package/src/typespeed.ts +7 -4
  30. package/test/socket.test.ts +60 -0
  31. package/tsconfig.json +2 -1
  32. package/app/node_modules/.package-lock.json +0 -134
  33. package/app/node_modules/@types/body-parser/LICENSE +0 -21
  34. package/app/node_modules/@types/body-parser/README.md +0 -16
  35. package/app/node_modules/@types/body-parser/index.d.ts +0 -107
  36. package/app/node_modules/@types/body-parser/package.json +0 -58
  37. package/app/node_modules/@types/connect/LICENSE +0 -21
  38. package/app/node_modules/@types/connect/README.md +0 -16
  39. package/app/node_modules/@types/connect/index.d.ts +0 -93
  40. package/app/node_modules/@types/connect/package.json +0 -32
  41. package/app/node_modules/@types/express/LICENSE +0 -21
  42. package/app/node_modules/@types/express/README.md +0 -16
  43. package/app/node_modules/@types/express/index.d.ts +0 -136
  44. package/app/node_modules/@types/express/package.json +0 -45
  45. package/app/node_modules/@types/express-serve-static-core/LICENSE +0 -21
  46. package/app/node_modules/@types/express-serve-static-core/README.md +0 -16
  47. package/app/node_modules/@types/express-serve-static-core/index.d.ts +0 -1281
  48. package/app/node_modules/@types/express-serve-static-core/package.json +0 -55
  49. package/app/node_modules/@types/mime/LICENSE +0 -21
  50. package/app/node_modules/@types/mime/Mime.d.ts +0 -10
  51. package/app/node_modules/@types/mime/README.md +0 -16
  52. package/app/node_modules/@types/mime/index.d.ts +0 -35
  53. package/app/node_modules/@types/mime/lite.d.ts +0 -7
  54. package/app/node_modules/@types/mime/package.json +0 -29
  55. package/app/node_modules/@types/node/LICENSE +0 -21
  56. package/app/node_modules/@types/node/README.md +0 -16
  57. package/app/node_modules/@types/node/assert/strict.d.ts +0 -8
  58. package/app/node_modules/@types/node/assert.d.ts +0 -961
  59. package/app/node_modules/@types/node/async_hooks.d.ts +0 -518
  60. package/app/node_modules/@types/node/buffer.d.ts +0 -2323
  61. package/app/node_modules/@types/node/child_process.d.ts +0 -1399
  62. package/app/node_modules/@types/node/cluster.d.ts +0 -410
  63. package/app/node_modules/@types/node/console.d.ts +0 -412
  64. package/app/node_modules/@types/node/constants.d.ts +0 -18
  65. package/app/node_modules/@types/node/crypto.d.ts +0 -3973
  66. package/app/node_modules/@types/node/dgram.d.ts +0 -545
  67. package/app/node_modules/@types/node/diagnostics_channel.d.ts +0 -192
  68. package/app/node_modules/@types/node/dns/promises.d.ts +0 -370
  69. package/app/node_modules/@types/node/dns.d.ts +0 -660
  70. package/app/node_modules/@types/node/dom-events.d.ts +0 -126
  71. package/app/node_modules/@types/node/domain.d.ts +0 -170
  72. package/app/node_modules/@types/node/events.d.ts +0 -682
  73. package/app/node_modules/@types/node/fs/promises.d.ts +0 -1159
  74. package/app/node_modules/@types/node/fs.d.ts +0 -3976
  75. package/app/node_modules/@types/node/globals.d.ts +0 -303
  76. package/app/node_modules/@types/node/globals.global.d.ts +0 -1
  77. package/app/node_modules/@types/node/http.d.ts +0 -1714
  78. package/app/node_modules/@types/node/http2.d.ts +0 -2133
  79. package/app/node_modules/@types/node/https.d.ts +0 -542
  80. package/app/node_modules/@types/node/index.d.ts +0 -134
  81. package/app/node_modules/@types/node/inspector.d.ts +0 -2741
  82. package/app/node_modules/@types/node/module.d.ts +0 -115
  83. package/app/node_modules/@types/node/net.d.ts +0 -883
  84. package/app/node_modules/@types/node/os.d.ts +0 -473
  85. package/app/node_modules/@types/node/package.json +0 -237
  86. package/app/node_modules/@types/node/path.d.ts +0 -191
  87. package/app/node_modules/@types/node/perf_hooks.d.ts +0 -625
  88. package/app/node_modules/@types/node/process.d.ts +0 -1488
  89. package/app/node_modules/@types/node/punycode.d.ts +0 -117
  90. package/app/node_modules/@types/node/querystring.d.ts +0 -131
  91. package/app/node_modules/@types/node/readline/promises.d.ts +0 -143
  92. package/app/node_modules/@types/node/readline.d.ts +0 -653
  93. package/app/node_modules/@types/node/repl.d.ts +0 -424
  94. package/app/node_modules/@types/node/stream/consumers.d.ts +0 -12
  95. package/app/node_modules/@types/node/stream/promises.d.ts +0 -42
  96. package/app/node_modules/@types/node/stream/web.d.ts +0 -330
  97. package/app/node_modules/@types/node/stream.d.ts +0 -1440
  98. package/app/node_modules/@types/node/string_decoder.d.ts +0 -67
  99. package/app/node_modules/@types/node/test.d.ts +0 -783
  100. package/app/node_modules/@types/node/timers/promises.d.ts +0 -93
  101. package/app/node_modules/@types/node/timers.d.ts +0 -101
  102. package/app/node_modules/@types/node/tls.d.ts +0 -1111
  103. package/app/node_modules/@types/node/trace_events.d.ts +0 -171
  104. package/app/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  105. package/app/node_modules/@types/node/ts4.8/assert.d.ts +0 -961
  106. package/app/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -518
  107. package/app/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2323
  108. package/app/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1399
  109. package/app/node_modules/@types/node/ts4.8/cluster.d.ts +0 -410
  110. package/app/node_modules/@types/node/ts4.8/console.d.ts +0 -412
  111. package/app/node_modules/@types/node/ts4.8/constants.d.ts +0 -18
  112. package/app/node_modules/@types/node/ts4.8/crypto.d.ts +0 -3972
  113. package/app/node_modules/@types/node/ts4.8/dgram.d.ts +0 -545
  114. package/app/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -192
  115. package/app/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -370
  116. package/app/node_modules/@types/node/ts4.8/dns.d.ts +0 -660
  117. package/app/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -126
  118. package/app/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  119. package/app/node_modules/@types/node/ts4.8/events.d.ts +0 -682
  120. package/app/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1138
  121. package/app/node_modules/@types/node/ts4.8/fs.d.ts +0 -3875
  122. package/app/node_modules/@types/node/ts4.8/globals.d.ts +0 -302
  123. package/app/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  124. package/app/node_modules/@types/node/ts4.8/http.d.ts +0 -1651
  125. package/app/node_modules/@types/node/ts4.8/http2.d.ts +0 -2133
  126. package/app/node_modules/@types/node/ts4.8/https.d.ts +0 -542
  127. package/app/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  128. package/app/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2741
  129. package/app/node_modules/@types/node/ts4.8/module.d.ts +0 -115
  130. package/app/node_modules/@types/node/ts4.8/net.d.ts +0 -883
  131. package/app/node_modules/@types/node/ts4.8/os.d.ts +0 -473
  132. package/app/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  133. package/app/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -625
  134. package/app/node_modules/@types/node/ts4.8/process.d.ts +0 -1488
  135. package/app/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  136. package/app/node_modules/@types/node/ts4.8/querystring.d.ts +0 -131
  137. package/app/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -143
  138. package/app/node_modules/@types/node/ts4.8/readline.d.ts +0 -653
  139. package/app/node_modules/@types/node/ts4.8/repl.d.ts +0 -424
  140. package/app/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  141. package/app/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -42
  142. package/app/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -330
  143. package/app/node_modules/@types/node/ts4.8/stream.d.ts +0 -1440
  144. package/app/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  145. package/app/node_modules/@types/node/ts4.8/test.d.ts +0 -784
  146. package/app/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  147. package/app/node_modules/@types/node/ts4.8/timers.d.ts +0 -94
  148. package/app/node_modules/@types/node/ts4.8/tls.d.ts +0 -1111
  149. package/app/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -171
  150. package/app/node_modules/@types/node/ts4.8/tty.d.ts +0 -206
  151. package/app/node_modules/@types/node/ts4.8/url.d.ts +0 -902
  152. package/app/node_modules/@types/node/ts4.8/util.d.ts +0 -2017
  153. package/app/node_modules/@types/node/ts4.8/v8.d.ts +0 -541
  154. package/app/node_modules/@types/node/ts4.8/vm.d.ts +0 -644
  155. package/app/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
  156. package/app/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -695
  157. package/app/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  158. package/app/node_modules/@types/node/tty.d.ts +0 -206
  159. package/app/node_modules/@types/node/url.d.ts +0 -902
  160. package/app/node_modules/@types/node/util.d.ts +0 -2017
  161. package/app/node_modules/@types/node/v8.d.ts +0 -541
  162. package/app/node_modules/@types/node/vm.d.ts +0 -644
  163. package/app/node_modules/@types/node/wasi.d.ts +0 -158
  164. package/app/node_modules/@types/node/worker_threads.d.ts +0 -695
  165. package/app/node_modules/@types/node/zlib.d.ts +0 -517
  166. package/app/node_modules/@types/qs/LICENSE +0 -21
  167. package/app/node_modules/@types/qs/README.md +0 -16
  168. package/app/node_modules/@types/qs/index.d.ts +0 -62
  169. package/app/node_modules/@types/qs/package.json +0 -65
  170. package/app/node_modules/@types/range-parser/LICENSE +0 -21
  171. package/app/node_modules/@types/range-parser/README.md +0 -55
  172. package/app/node_modules/@types/range-parser/index.d.ts +0 -35
  173. package/app/node_modules/@types/range-parser/package.json +0 -25
  174. package/app/node_modules/@types/send/LICENSE +0 -21
  175. package/app/node_modules/@types/send/README.md +0 -16
  176. package/app/node_modules/@types/send/index.d.ts +0 -231
  177. package/app/node_modules/@types/send/package.json +0 -33
  178. package/app/node_modules/@types/serve-static/LICENSE +0 -21
  179. package/app/node_modules/@types/serve-static/README.md +0 -16
  180. package/app/node_modules/@types/serve-static/index.d.ts +0 -113
  181. package/app/node_modules/@types/serve-static/package.json +0 -38
  182. package/app/node_modules/colors/LICENSE +0 -25
  183. package/app/node_modules/colors/README.md +0 -221
  184. package/app/node_modules/colors/examples/normal-usage.js +0 -82
  185. package/app/node_modules/colors/examples/safe-string.js +0 -79
  186. package/app/node_modules/colors/index.d.ts +0 -136
  187. package/app/node_modules/colors/lib/colors.js +0 -211
  188. package/app/node_modules/colors/lib/custom/trap.js +0 -46
  189. package/app/node_modules/colors/lib/custom/zalgo.js +0 -110
  190. package/app/node_modules/colors/lib/extendStringPrototype.js +0 -110
  191. package/app/node_modules/colors/lib/index.js +0 -13
  192. package/app/node_modules/colors/lib/maps/america.js +0 -10
  193. package/app/node_modules/colors/lib/maps/rainbow.js +0 -12
  194. package/app/node_modules/colors/lib/maps/random.js +0 -11
  195. package/app/node_modules/colors/lib/maps/zebra.js +0 -5
  196. package/app/node_modules/colors/lib/styles.js +0 -95
  197. package/app/node_modules/colors/lib/system/has-flag.js +0 -35
  198. package/app/node_modules/colors/lib/system/supports-colors.js +0 -151
  199. package/app/node_modules/colors/package.json +0 -45
  200. package/app/node_modules/colors/safe.d.ts +0 -48
  201. package/app/node_modules/colors/safe.js +0 -10
  202. package/app/node_modules/colors/themes/generic-logging.js +0 -12
  203. package/app/node_modules/dateformat/LICENSE +0 -20
  204. package/app/node_modules/dateformat/Readme.md +0 -204
  205. package/app/node_modules/dateformat/lib/dateformat.js +0 -1
  206. package/app/node_modules/dateformat/package.json +0 -38
  207. package/app/node_modules/mkdirp/CHANGELOG.md +0 -15
  208. package/app/node_modules/mkdirp/LICENSE +0 -21
  209. package/app/node_modules/mkdirp/bin/cmd.js +0 -68
  210. package/app/node_modules/mkdirp/index.js +0 -31
  211. package/app/node_modules/mkdirp/lib/find-made.js +0 -29
  212. package/app/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
  213. package/app/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
  214. package/app/node_modules/mkdirp/lib/opts-arg.js +0 -23
  215. package/app/node_modules/mkdirp/lib/path-arg.js +0 -29
  216. package/app/node_modules/mkdirp/lib/use-native.js +0 -10
  217. package/app/node_modules/mkdirp/package.json +0 -44
  218. package/app/node_modules/mkdirp/readme.markdown +0 -266
  219. package/app/node_modules/tinytim/.travis.yml +0 -5
  220. package/app/node_modules/tinytim/README.md +0 -212
  221. package/app/node_modules/tinytim/index.js +0 -1
  222. package/app/node_modules/tinytim/lib/index.js +0 -55
  223. package/app/node_modules/tinytim/lib/tinytim.js +0 -50
  224. package/app/node_modules/tinytim/package.json +0 -24
  225. package/app/node_modules/tinytim/test/files/html.tim +0 -1
  226. package/app/node_modules/tinytim/test/files/string.tim +0 -1
  227. package/app/node_modules/tinytim/test/files/string2.tim +0 -1
  228. package/app/node_modules/tinytim/test/render-file-replace.js +0 -39
  229. package/app/node_modules/tinytim/test/render-replace.js +0 -94
  230. package/app/node_modules/tinytim/test/tim-replace.js +0 -95
  231. package/app/node_modules/tracer/README.md +0 -747
  232. package/app/node_modules/tracer/lib/color_console.js +0 -15
  233. package/app/node_modules/tracer/lib/console.js +0 -165
  234. package/app/node_modules/tracer/lib/dailyfile.js +0 -92
  235. package/app/node_modules/tracer/lib/index.js +0 -10
  236. package/app/node_modules/tracer/lib/settings.js +0 -25
  237. package/app/node_modules/tracer/lib/utils.js +0 -58
  238. package/app/node_modules/tracer/package.json +0 -53
  239. package/app/node_modules/tracer/types/index.d.ts +0 -189
  240. package/dist/scaffold/templates/front-page.class.ts.tpl +0 -12
  241. package/dist/scaffold/templates/main.ts.tpl +0 -13
  242. package/dist/scaffold/templates/nodemon.json.tpl +0 -7
  243. package/dist/scaffold/templates/package.json.tpl +0 -16
  244. package/dist/scaffold/templates/tsconfig.json.tpl +0 -20
  245. /package/dist/{core.decorator.js → src/core.decorator.js} +0 -0
  246. /package/dist/{default → src/default}/default-authentication.class.js +0 -0
  247. /package/dist/{default → src/default}/log-default.class.js +0 -0
  248. /package/dist/{default → src/default}/node-cache.class.js +0 -0
  249. /package/dist/{default → src/default}/pages/404.html +0 -0
  250. /package/dist/{default → src/default}/pages/500.html +0 -0
  251. /package/dist/{default → src/default}/read-write-db.class.js +0 -0
  252. /package/dist/{factory → src/factory}/authentication-factory.class.js +0 -0
  253. /package/dist/{factory → src/factory}/cache-factory.class.js +0 -0
  254. /package/dist/{factory → src/factory}/data-source-factory.class.js +0 -0
  255. /package/dist/{factory → src/factory}/log-factory.class.js +0 -0
  256. /package/dist/{factory → src/factory}/server-factory.class.js +0 -0
  257. /package/dist/{route.decorator.js → src/route.decorator.js} +0 -0
  258. /package/dist/{scaffold → src/scaffold}/command.js +0 -0
@@ -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,55 +0,0 @@
1
- # Installation
2
- > `npm install --save @types/range-parser`
3
-
4
- # Summary
5
- This package contains type definitions for range-parser (https://github.com/jshttp/range-parser).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/range-parser.
9
- ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/range-parser/index.d.ts)
10
- ````ts
11
- // Type definitions for range-parser 1.2
12
- // Project: https://github.com/jshttp/range-parser
13
- // Definitions by: Tomek Łaziuk <https://github.com/tlaziuk>
14
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
15
-
16
- /**
17
- * When ranges are returned, the array has a "type" property which is the type of
18
- * range that is required (most commonly, "bytes"). Each array element is an object
19
- * with a "start" and "end" property for the portion of the range.
20
- *
21
- * @returns `-1` when unsatisfiable and `-2` when syntactically invalid, ranges otherwise.
22
- */
23
- declare function RangeParser(size: number, str: string, options?: RangeParser.Options): RangeParser.Result | RangeParser.Ranges;
24
-
25
- declare namespace RangeParser {
26
- interface Ranges extends Array<Range> {
27
- type: string;
28
- }
29
- interface Range {
30
- start: number;
31
- end: number;
32
- }
33
- interface Options {
34
- /**
35
- * The "combine" option can be set to `true` and overlapping & adjacent ranges
36
- * will be combined into a single range.
37
- */
38
- combine?: boolean | undefined;
39
- }
40
- type ResultUnsatisfiable = -1;
41
- type ResultInvalid = -2;
42
- type Result = ResultUnsatisfiable | ResultInvalid;
43
- }
44
-
45
- export = RangeParser;
46
-
47
- ````
48
-
49
- ### Additional Details
50
- * Last updated: Wed, 07 Jul 2021 17:02:53 GMT
51
- * Dependencies: none
52
- * Global values: none
53
-
54
- # Credits
55
- These definitions were written by [Tomek Łaziuk](https://github.com/tlaziuk).
@@ -1,35 +0,0 @@
1
- // Type definitions for range-parser 1.2
2
- // Project: https://github.com/jshttp/range-parser
3
- // Definitions by: Tomek Łaziuk <https://github.com/tlaziuk>
4
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
-
6
- /**
7
- * When ranges are returned, the array has a "type" property which is the type of
8
- * range that is required (most commonly, "bytes"). Each array element is an object
9
- * with a "start" and "end" property for the portion of the range.
10
- *
11
- * @returns `-1` when unsatisfiable and `-2` when syntactically invalid, ranges otherwise.
12
- */
13
- declare function RangeParser(size: number, str: string, options?: RangeParser.Options): RangeParser.Result | RangeParser.Ranges;
14
-
15
- declare namespace RangeParser {
16
- interface Ranges extends Array<Range> {
17
- type: string;
18
- }
19
- interface Range {
20
- start: number;
21
- end: number;
22
- }
23
- interface Options {
24
- /**
25
- * The "combine" option can be set to `true` and overlapping & adjacent ranges
26
- * will be combined into a single range.
27
- */
28
- combine?: boolean | undefined;
29
- }
30
- type ResultUnsatisfiable = -1;
31
- type ResultInvalid = -2;
32
- type Result = ResultUnsatisfiable | ResultInvalid;
33
- }
34
-
35
- export = RangeParser;
@@ -1,25 +0,0 @@
1
- {
2
- "name": "@types/range-parser",
3
- "version": "1.2.4",
4
- "description": "TypeScript definitions for range-parser",
5
- "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/range-parser",
6
- "license": "MIT",
7
- "contributors": [
8
- {
9
- "name": "Tomek Łaziuk",
10
- "url": "https://github.com/tlaziuk",
11
- "githubUsername": "tlaziuk"
12
- }
13
- ],
14
- "main": "",
15
- "types": "index.d.ts",
16
- "repository": {
17
- "type": "git",
18
- "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
19
- "directory": "types/range-parser"
20
- },
21
- "scripts": {},
22
- "dependencies": {},
23
- "typesPublisherContentHash": "60a027a88ae9d7c5ae30935c98266f5033af3c38944121c975bf5e136b9053f3",
24
- "typeScriptVersion": "3.6"
25
- }
@@ -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/send`
3
-
4
- # Summary
5
- This package contains type definitions for send (https://github.com/pillarjs/send).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/send.
9
-
10
- ### Additional Details
11
- * Last updated: Tue, 06 Jul 2021 16:34:33 GMT
12
- * Dependencies: [@types/mime](https://npmjs.com/package/@types/mime), [@types/node](https://npmjs.com/package/@types/node)
13
- * Global values: none
14
-
15
- # Credits
16
- These definitions were written by [Mike Jerred](https://github.com/MikeJerred), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).
@@ -1,231 +0,0 @@
1
- // Type definitions for send 0.17
2
- // Project: https://github.com/pillarjs/send
3
- // Definitions by: Mike Jerred <https://github.com/MikeJerred>
4
- // Piotr Błażejewicz <https://github.com/peterblazejewicz>
5
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
-
7
- /// <reference types="node" />
8
-
9
- import * as stream from "stream";
10
- import * as fs from "fs";
11
- import * as m from "mime";
12
-
13
- /**
14
- * Create a new SendStream for the given path to send to a res.
15
- * The req is the Node.js HTTP request and the path is a urlencoded path to send (urlencoded, not the actual file-system path).
16
- */
17
- declare function send(req: stream.Readable, path: string, options?: send.SendOptions): send.SendStream;
18
-
19
- declare namespace send {
20
- const mime: typeof m;
21
- interface SendOptions {
22
- /**
23
- * Enable or disable accepting ranged requests, defaults to true.
24
- * Disabling this will not send Accept-Ranges and ignore the contents of the Range request header.
25
- */
26
- acceptRanges?: boolean | undefined;
27
-
28
- /**
29
- * Enable or disable setting Cache-Control response header, defaults to true.
30
- * Disabling this will ignore the maxAge option.
31
- */
32
- cacheControl?: boolean | undefined;
33
-
34
- /**
35
- * Set how "dotfiles" are treated when encountered.
36
- * A dotfile is a file or directory that begins with a dot (".").
37
- * Note this check is done on the path itself without checking if the path actually exists on the disk.
38
- * If root is specified, only the dotfiles above the root are checked (i.e. the root itself can be within a dotfile when when set to "deny").
39
- * 'allow' No special treatment for dotfiles.
40
- * 'deny' Send a 403 for any request for a dotfile.
41
- * 'ignore' Pretend like the dotfile does not exist and 404.
42
- * The default value is similar to 'ignore', with the exception that this default will not ignore the files within a directory that begins with a dot, for backward-compatibility.
43
- */
44
- dotfiles?: "allow" | "deny" | "ignore" | undefined;
45
-
46
- /**
47
- * Byte offset at which the stream ends, defaults to the length of the file minus 1.
48
- * The end is inclusive in the stream, meaning end: 3 will include the 4th byte in the stream.
49
- */
50
- end?: number | undefined;
51
-
52
- /**
53
- * Enable or disable etag generation, defaults to true.
54
- */
55
- etag?: boolean | undefined;
56
-
57
- /**
58
- * If a given file doesn't exist, try appending one of the given extensions, in the given order.
59
- * By default, this is disabled (set to false).
60
- * An example value that will serve extension-less HTML files: ['html', 'htm'].
61
- * This is skipped if the requested file already has an extension.
62
- */
63
- extensions?: string[] | string | boolean | undefined;
64
-
65
- /**
66
- * Enable or disable the immutable directive in the Cache-Control response header, defaults to false.
67
- * If set to true, the maxAge option should also be specified to enable caching.
68
- * The immutable directive will prevent supported clients from making conditional requests during the life of the maxAge option to check if the file has changed.
69
- * @default false
70
- */
71
- immutable?: boolean | undefined;
72
-
73
- /**
74
- * By default send supports "index.html" files, to disable this set false or to supply a new index pass a string or an array in preferred order.
75
- */
76
- index?: string[] | string | boolean | undefined;
77
-
78
- /**
79
- * Enable or disable Last-Modified header, defaults to true.
80
- * Uses the file system's last modified value.
81
- */
82
- lastModified?: boolean | undefined;
83
-
84
- /**
85
- * Provide a max-age in milliseconds for http caching, defaults to 0.
86
- * This can also be a string accepted by the ms module.
87
- */
88
- maxAge?: string | number | undefined;
89
-
90
- /**
91
- * Serve files relative to path.
92
- */
93
- root?: string | undefined;
94
-
95
- /**
96
- * Byte offset at which the stream starts, defaults to 0.
97
- * The start is inclusive, meaning start: 2 will include the 3rd byte in the stream.
98
- */
99
- start?: number | undefined;
100
- }
101
-
102
- interface SendStream extends stream.Stream {
103
- /**
104
- * @deprecated pass etag as option
105
- * Enable or disable etag generation.
106
- */
107
- etag(val: boolean): SendStream;
108
-
109
- /**
110
- * @deprecated use dotfiles option
111
- * Enable or disable "hidden" (dot) files.
112
- */
113
- hidden(val: boolean): SendStream;
114
-
115
- /**
116
- * @deprecated pass index as option
117
- * Set index `paths`, set to a falsy value to disable index support.
118
- */
119
- index(paths: string[] | string): SendStream;
120
-
121
- /**
122
- * @deprecated pass root as option
123
- * Set root `path`.
124
- */
125
- root(paths: string): SendStream;
126
-
127
- /**
128
- * @deprecated pass root as option
129
- * Set root `path`.
130
- */
131
- from(paths: string): SendStream;
132
-
133
- /**
134
- * @deprecated pass maxAge as option
135
- * Set max-age to `maxAge`.
136
- */
137
- maxage(maxAge: string | number): SendStream;
138
-
139
- /**
140
- * Emit error with `status`.
141
- */
142
- error(status: number, error?: Error): void;
143
-
144
- /**
145
- * Check if the pathname ends with "/".
146
- */
147
- hasTrailingSlash(): boolean;
148
-
149
- /**
150
- * Check if this is a conditional GET request.
151
- */
152
- isConditionalGET(): boolean;
153
-
154
- /**
155
- * Strip content-* header fields.
156
- */
157
- removeContentHeaderFields(): void;
158
-
159
- /**
160
- * Respond with 304 not modified.
161
- */
162
- notModified(): void;
163
-
164
- /**
165
- * Raise error that headers already sent.
166
- */
167
- headersAlreadySent(): void;
168
-
169
- /**
170
- * Check if the request is cacheable, aka responded with 2xx or 304 (see RFC 2616 section 14.2{5,6}).
171
- */
172
- isCachable(): boolean;
173
-
174
- /**
175
- * Handle stat() error.
176
- */
177
- onStatError(error: Error): void;
178
-
179
- /**
180
- * Check if the cache is fresh.
181
- */
182
- isFresh(): boolean;
183
-
184
- /**
185
- * Check if the range is fresh.
186
- */
187
- isRangeFresh(): boolean;
188
-
189
- /**
190
- * Redirect to path.
191
- */
192
- redirect(path: string): void;
193
-
194
- /**
195
- * Pipe to `res`.
196
- */
197
- pipe<T extends NodeJS.WritableStream>(res: T): T;
198
-
199
- /**
200
- * Transfer `path`.
201
- */
202
- send(path: string, stat?: fs.Stats): void;
203
-
204
- /**
205
- * Transfer file for `path`.
206
- */
207
- sendFile(path: string): void;
208
-
209
- /**
210
- * Transfer index for `path`.
211
- */
212
- sendIndex(path: string): void;
213
-
214
- /**
215
- * Transfer index for `path`.
216
- */
217
- stream(path: string, options?: {}): void;
218
-
219
- /**
220
- * Set content-type based on `path` if it hasn't been explicitly set.
221
- */
222
- type(path: string): void;
223
-
224
- /**
225
- * Set response header fields, most fields may be pre-defined.
226
- */
227
- setHeader(path: string, stat: fs.Stats): void;
228
- }
229
- }
230
-
231
- export = send;
@@ -1,33 +0,0 @@
1
- {
2
- "name": "@types/send",
3
- "version": "0.17.1",
4
- "description": "TypeScript definitions for send",
5
- "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/send",
6
- "license": "MIT",
7
- "contributors": [
8
- {
9
- "name": "Mike Jerred",
10
- "url": "https://github.com/MikeJerred",
11
- "githubUsername": "MikeJerred"
12
- },
13
- {
14
- "name": "Piotr Błażejewicz",
15
- "url": "https://github.com/peterblazejewicz",
16
- "githubUsername": "peterblazejewicz"
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/send"
25
- },
26
- "scripts": {},
27
- "dependencies": {
28
- "@types/mime": "^1",
29
- "@types/node": "*"
30
- },
31
- "typesPublisherContentHash": "11d86e6b6fa2c78b8659b4ad9d2f295175d5f4bd5fa11649b26a8c945ee3ffb3",
32
- "typeScriptVersion": "3.6"
33
- }
@@ -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/serve-static`
3
-
4
- # Summary
5
- This package contains type definitions for serve-static (https://github.com/expressjs/serve-static).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serve-static.
9
-
10
- ### Additional Details
11
- * Last updated: Thu, 23 Feb 2023 19:02:39 GMT
12
- * Dependencies: [@types/mime](https://npmjs.com/package/@types/mime), [@types/node](https://npmjs.com/package/@types/node)
13
- * Global values: none
14
-
15
- # Credits
16
- These definitions were written by [Uros Smolnik](https://github.com/urossmolnik), [Linus Unnebäck](https://github.com/LinusU), and [Devansh Jethmalani](https://github.com/devanshj).
@@ -1,113 +0,0 @@
1
- // Type definitions for serve-static 1.15
2
- // Project: https://github.com/expressjs/serve-static
3
- // Definitions by: Uros Smolnik <https://github.com/urossmolnik>
4
- // Linus Unnebäck <https://github.com/LinusU>
5
- // Devansh Jethmalani <https://github.com/devanshj>
6
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
-
8
- /// <reference types="node" />
9
- import * as m from "mime";
10
- import * as http from "http";
11
-
12
- /**
13
- * Create a new middleware function to serve files from within a given root directory.
14
- * The file to serve will be determined by combining req.url with the provided root directory.
15
- * When a file is not found, instead of sending a 404 response, this module will instead call next() to move on to the next middleware, allowing for stacking and fall-backs.
16
- */
17
- declare function serveStatic<R extends http.ServerResponse>(
18
- root: string,
19
- options?: serveStatic.ServeStaticOptions<R>
20
- ): serveStatic.RequestHandler<R>;
21
-
22
- declare namespace serveStatic {
23
- var mime: typeof m;
24
- interface ServeStaticOptions<R extends http.ServerResponse = http.ServerResponse> {
25
- /**
26
- * Enable or disable accepting ranged requests, defaults to true.
27
- * Disabling this will not send Accept-Ranges and ignore the contents of the Range request header.
28
- */
29
- acceptRanges?: boolean | undefined;
30
-
31
- /**
32
- * Enable or disable setting Cache-Control response header, defaults to true.
33
- * Disabling this will ignore the immutable and maxAge options.
34
- */
35
- cacheControl?: boolean | undefined;
36
-
37
- /**
38
- * Set how "dotfiles" are treated when encountered. A dotfile is a file or directory that begins with a dot (".").
39
- * Note this check is done on the path itself without checking if the path actually exists on the disk.
40
- * If root is specified, only the dotfiles above the root are checked (i.e. the root itself can be within a dotfile when when set to "deny").
41
- * The default value is 'ignore'.
42
- * 'allow' No special treatment for dotfiles
43
- * 'deny' Send a 403 for any request for a dotfile
44
- * 'ignore' Pretend like the dotfile does not exist and call next()
45
- */
46
- dotfiles?: string | undefined;
47
-
48
- /**
49
- * Enable or disable etag generation, defaults to true.
50
- */
51
- etag?: boolean | undefined;
52
-
53
- /**
54
- * Set file extension fallbacks. When set, if a file is not found, the given extensions will be added to the file name and search for.
55
- * The first that exists will be served. Example: ['html', 'htm'].
56
- * The default value is false.
57
- */
58
- extensions?: string[] | false | undefined;
59
-
60
- /**
61
- * Let client errors fall-through as unhandled requests, otherwise forward a client error.
62
- * The default value is true.
63
- */
64
- fallthrough?: boolean | undefined;
65
-
66
- /**
67
- * Enable or disable the immutable directive in the Cache-Control response header.
68
- * If enabled, the maxAge option should also be specified to enable caching. The immutable directive will prevent supported clients from making conditional requests during the life of the maxAge option to check if the file has changed.
69
- */
70
- immutable?: boolean | undefined;
71
-
72
- /**
73
- * By default this module will send "index.html" files in response to a request on a directory.
74
- * To disable this set false or to supply a new index pass a string or an array in preferred order.
75
- */
76
- index?: boolean | string | string[] | undefined;
77
-
78
- /**
79
- * Enable or disable Last-Modified header, defaults to true. Uses the file system's last modified value.
80
- */
81
- lastModified?: boolean | undefined;
82
-
83
- /**
84
- * Provide a max-age in milliseconds for http caching, defaults to 0. This can also be a string accepted by the ms module.
85
- */
86
- maxAge?: number | string | undefined;
87
-
88
- /**
89
- * Redirect to trailing "/" when the pathname is a dir. Defaults to true.
90
- */
91
- redirect?: boolean | undefined;
92
-
93
- /**
94
- * Function to set custom headers on response. Alterations to the headers need to occur synchronously.
95
- * The function is called as fn(res, path, stat), where the arguments are:
96
- * res the response object
97
- * path the file path that is being sent
98
- * stat the stat object of the file that is being sent
99
- */
100
- setHeaders?: ((res: R, path: string, stat: any) => any) | undefined;
101
- }
102
-
103
- interface RequestHandler<R extends http.ServerResponse> {
104
- (request: http.IncomingMessage, response: R, next: () => void): any;
105
- }
106
-
107
- interface RequestHandlerConstructor<R extends http.ServerResponse> {
108
- (root: string, options?: ServeStaticOptions<R>): RequestHandler<R>;
109
- mime: typeof m;
110
- }
111
- }
112
-
113
- export = serveStatic;
@@ -1,38 +0,0 @@
1
- {
2
- "name": "@types/serve-static",
3
- "version": "1.15.1",
4
- "description": "TypeScript definitions for serve-static",
5
- "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serve-static",
6
- "license": "MIT",
7
- "contributors": [
8
- {
9
- "name": "Uros Smolnik",
10
- "url": "https://github.com/urossmolnik",
11
- "githubUsername": "urossmolnik"
12
- },
13
- {
14
- "name": "Linus Unnebäck",
15
- "url": "https://github.com/LinusU",
16
- "githubUsername": "LinusU"
17
- },
18
- {
19
- "name": "Devansh Jethmalani",
20
- "url": "https://github.com/devanshj",
21
- "githubUsername": "devanshj"
22
- }
23
- ],
24
- "main": "",
25
- "types": "index.d.ts",
26
- "repository": {
27
- "type": "git",
28
- "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
29
- "directory": "types/serve-static"
30
- },
31
- "scripts": {},
32
- "dependencies": {
33
- "@types/mime": "*",
34
- "@types/node": "*"
35
- },
36
- "typesPublisherContentHash": "a5245bfbae31bb734209d348df3855b5fae08859f07b3de412d264f25a0b0232",
37
- "typeScriptVersion": "4.2"
38
- }
@@ -1,25 +0,0 @@
1
- MIT License
2
-
3
- Original Library
4
- - Copyright (c) Marak Squires
5
-
6
- Additional Functionality
7
- - Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy
10
- of this software and associated documentation files (the "Software"), to deal
11
- in the Software without restriction, including without limitation the rights
12
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- copies of the Software, and to permit persons to whom the Software is
14
- furnished to do so, subject to the following conditions:
15
-
16
- The above copyright notice and this permission notice shall be included in
17
- all copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
- THE SOFTWARE.