typespeed 2.0.20 → 2.0.22

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 (222) hide show
  1. package/README.md +18 -13
  2. package/dist/core.decorator.js +1 -30
  3. package/dist/default/default-authentication.class.js +25 -0
  4. package/dist/default/express-server.class.js +11 -4
  5. package/dist/default/log-default.class.js +0 -6
  6. package/dist/factory/authentication-factory.class.js +11 -0
  7. package/dist/factory/log-factory.class.js +9 -0
  8. package/dist/route.decorator.js +92 -2
  9. package/dist/scaffold/command.js +1 -1
  10. package/dist/typespeed.d.ts +25 -3
  11. package/dist/typespeed.js +3 -1
  12. package/package.json +10 -1
  13. package/src/core.decorator.ts +1 -29
  14. package/src/default/default-authentication.class.ts +10 -0
  15. package/src/default/express-server.class.ts +12 -5
  16. package/src/default/log-default.class.ts +0 -10
  17. package/src/factory/authentication-factory.class.ts +9 -0
  18. package/src/factory/log-factory.class.ts +9 -2
  19. package/src/route.decorator.ts +91 -3
  20. package/src/scaffold/command.ts +1 -1
  21. package/src/typespeed.d.ts +25 -3
  22. package/src/typespeed.ts +1 -0
  23. package/test/node_modules/.package-lock.json +65 -101
  24. package/test/node_modules/@types/body-parser/LICENSE +21 -0
  25. package/test/node_modules/@types/body-parser/README.md +16 -0
  26. package/test/node_modules/@types/body-parser/index.d.ts +107 -0
  27. package/test/node_modules/@types/body-parser/package.json +58 -0
  28. package/test/node_modules/@types/connect/LICENSE +21 -0
  29. package/test/node_modules/@types/connect/README.md +16 -0
  30. package/test/node_modules/@types/connect/index.d.ts +93 -0
  31. package/test/node_modules/@types/connect/package.json +32 -0
  32. package/test/node_modules/@types/express/LICENSE +21 -0
  33. package/test/node_modules/@types/express/README.md +16 -0
  34. package/test/node_modules/@types/express/index.d.ts +136 -0
  35. package/test/node_modules/@types/express/package.json +45 -0
  36. package/test/node_modules/@types/express-serve-static-core/LICENSE +21 -0
  37. package/test/node_modules/@types/express-serve-static-core/README.md +16 -0
  38. package/test/node_modules/@types/express-serve-static-core/index.d.ts +1281 -0
  39. package/test/node_modules/@types/express-serve-static-core/package.json +55 -0
  40. package/test/node_modules/@types/mime/LICENSE +21 -0
  41. package/test/node_modules/@types/mime/Mime.d.ts +10 -0
  42. package/test/node_modules/@types/mime/README.md +16 -0
  43. package/test/node_modules/@types/mime/index.d.ts +35 -0
  44. package/test/node_modules/@types/mime/lite.d.ts +7 -0
  45. package/test/node_modules/@types/mime/package.json +29 -0
  46. package/test/node_modules/@types/qs/LICENSE +21 -0
  47. package/test/node_modules/@types/qs/README.md +16 -0
  48. package/test/node_modules/@types/qs/index.d.ts +62 -0
  49. package/test/node_modules/@types/qs/package.json +65 -0
  50. package/test/node_modules/@types/range-parser/LICENSE +21 -0
  51. package/test/node_modules/@types/range-parser/README.md +55 -0
  52. package/test/node_modules/@types/range-parser/index.d.ts +35 -0
  53. package/test/node_modules/@types/range-parser/package.json +25 -0
  54. package/test/node_modules/@types/send/LICENSE +21 -0
  55. package/test/node_modules/@types/send/README.md +16 -0
  56. package/test/node_modules/@types/send/index.d.ts +231 -0
  57. package/test/node_modules/@types/send/package.json +33 -0
  58. package/test/node_modules/@types/serve-static/LICENSE +21 -0
  59. package/test/node_modules/@types/serve-static/README.md +16 -0
  60. package/test/node_modules/@types/serve-static/index.d.ts +113 -0
  61. package/test/node_modules/@types/serve-static/package.json +38 -0
  62. package/test/src/config.json +5 -0
  63. package/test/src/custom-log.class.ts +6 -0
  64. package/test/src/jwt-authentication.class.ts +29 -0
  65. package/test/src/test-request.class.ts +36 -0
  66. package/test/node_modules/@acuminous/bitsyntax/.github/workflows/node-js-ci.yml +0 -17
  67. package/test/node_modules/@acuminous/bitsyntax/.github/workflows/node-js-publish.yml +0 -30
  68. package/test/node_modules/@acuminous/bitsyntax/LICENSE +0 -6
  69. package/test/node_modules/@acuminous/bitsyntax/LICENSE-MIT +0 -21
  70. package/test/node_modules/@acuminous/bitsyntax/Makefile +0 -15
  71. package/test/node_modules/@acuminous/bitsyntax/README.md +0 -308
  72. package/test/node_modules/@acuminous/bitsyntax/index.js +0 -10
  73. package/test/node_modules/@acuminous/bitsyntax/lib/compile.js +0 -303
  74. package/test/node_modules/@acuminous/bitsyntax/lib/constructor.js +0 -142
  75. package/test/node_modules/@acuminous/bitsyntax/lib/grammar.pegjs +0 -67
  76. package/test/node_modules/@acuminous/bitsyntax/lib/interp.js +0 -232
  77. package/test/node_modules/@acuminous/bitsyntax/lib/parse.js +0 -32
  78. package/test/node_modules/@acuminous/bitsyntax/lib/parser.js +0 -1173
  79. package/test/node_modules/@acuminous/bitsyntax/lib/pattern.js +0 -119
  80. package/test/node_modules/@acuminous/bitsyntax/package.json +0 -36
  81. package/test/node_modules/@acuminous/bitsyntax/test/consing.test.js +0 -50
  82. package/test/node_modules/@acuminous/bitsyntax/test/matching.test.js +0 -193
  83. package/test/node_modules/amqplib/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
  84. package/test/node_modules/amqplib/.github/workflows/test.yml +0 -38
  85. package/test/node_modules/amqplib/CHANGELOG.md +0 -430
  86. package/test/node_modules/amqplib/LICENSE +0 -6
  87. package/test/node_modules/amqplib/LICENSE-MIT +0 -21
  88. package/test/node_modules/amqplib/Makefile +0 -47
  89. package/test/node_modules/amqplib/README.md +0 -157
  90. package/test/node_modules/amqplib/bin/generate-defs.js +0 -722
  91. package/test/node_modules/amqplib/callback_api.js +0 -22
  92. package/test/node_modules/amqplib/channel_api.js +0 -16
  93. package/test/node_modules/amqplib/examples/headers.js +0 -42
  94. package/test/node_modules/amqplib/examples/receive_generator.js +0 -39
  95. package/test/node_modules/amqplib/examples/send_generators.js +0 -42
  96. package/test/node_modules/amqplib/examples/ssl.js +0 -64
  97. package/test/node_modules/amqplib/examples/tutorials/README.md +0 -93
  98. package/test/node_modules/amqplib/examples/tutorials/callback_api/emit_log.js +0 -28
  99. package/test/node_modules/amqplib/examples/tutorials/callback_api/emit_log_direct.js +0 -30
  100. package/test/node_modules/amqplib/examples/tutorials/callback_api/emit_log_topic.js +0 -27
  101. package/test/node_modules/amqplib/examples/tutorials/callback_api/new_task.js +0 -27
  102. package/test/node_modules/amqplib/examples/tutorials/callback_api/receive.js +0 -30
  103. package/test/node_modules/amqplib/examples/tutorials/callback_api/receive_logs.js +0 -36
  104. package/test/node_modules/amqplib/examples/tutorials/callback_api/receive_logs_direct.js +0 -56
  105. package/test/node_modules/amqplib/examples/tutorials/callback_api/receive_logs_topic.js +0 -55
  106. package/test/node_modules/amqplib/examples/tutorials/callback_api/rpc_client.js +0 -49
  107. package/test/node_modules/amqplib/examples/tutorials/callback_api/rpc_server.js +0 -45
  108. package/test/node_modules/amqplib/examples/tutorials/callback_api/send.js +0 -29
  109. package/test/node_modules/amqplib/examples/tutorials/callback_api/worker.js +0 -35
  110. package/test/node_modules/amqplib/examples/tutorials/emit_log.js +0 -19
  111. package/test/node_modules/amqplib/examples/tutorials/emit_log_direct.js +0 -20
  112. package/test/node_modules/amqplib/examples/tutorials/emit_log_topic.js +0 -19
  113. package/test/node_modules/amqplib/examples/tutorials/new_task.js +0 -18
  114. package/test/node_modules/amqplib/examples/tutorials/package.json +0 -16
  115. package/test/node_modules/amqplib/examples/tutorials/receive.js +0 -21
  116. package/test/node_modules/amqplib/examples/tutorials/receive_logs.js +0 -28
  117. package/test/node_modules/amqplib/examples/tutorials/receive_logs_direct.js +0 -44
  118. package/test/node_modules/amqplib/examples/tutorials/receive_logs_topic.js +0 -43
  119. package/test/node_modules/amqplib/examples/tutorials/rpc_client.js +0 -52
  120. package/test/node_modules/amqplib/examples/tutorials/rpc_server.js +0 -39
  121. package/test/node_modules/amqplib/examples/tutorials/send.js +0 -23
  122. package/test/node_modules/amqplib/examples/tutorials/worker.js +0 -28
  123. package/test/node_modules/amqplib/examples/waitForConfirms.js +0 -22
  124. package/test/node_modules/amqplib/lib/api_args.js +0 -314
  125. package/test/node_modules/amqplib/lib/bitset.js +0 -130
  126. package/test/node_modules/amqplib/lib/callback_model.js +0 -327
  127. package/test/node_modules/amqplib/lib/channel.js +0 -499
  128. package/test/node_modules/amqplib/lib/channel_model.js +0 -302
  129. package/test/node_modules/amqplib/lib/codec.js +0 -321
  130. package/test/node_modules/amqplib/lib/connect.js +0 -189
  131. package/test/node_modules/amqplib/lib/connection.js +0 -663
  132. package/test/node_modules/amqplib/lib/credentials.js +0 -42
  133. package/test/node_modules/amqplib/lib/defs.js +0 -4966
  134. package/test/node_modules/amqplib/lib/error.js +0 -24
  135. package/test/node_modules/amqplib/lib/format.js +0 -40
  136. package/test/node_modules/amqplib/lib/frame.js +0 -113
  137. package/test/node_modules/amqplib/lib/heartbeat.js +0 -89
  138. package/test/node_modules/amqplib/lib/mux.js +0 -129
  139. package/test/node_modules/amqplib/package.json +0 -37
  140. package/test/node_modules/amqplib/test/bitset.js +0 -69
  141. package/test/node_modules/amqplib/test/callback_api.js +0 -312
  142. package/test/node_modules/amqplib/test/channel.js +0 -621
  143. package/test/node_modules/amqplib/test/channel_api.js +0 -596
  144. package/test/node_modules/amqplib/test/codec.js +0 -237
  145. package/test/node_modules/amqplib/test/connect.js +0 -197
  146. package/test/node_modules/amqplib/test/connection.js +0 -390
  147. package/test/node_modules/amqplib/test/data.js +0 -254
  148. package/test/node_modules/amqplib/test/frame.js +0 -198
  149. package/test/node_modules/amqplib/test/mux.js +0 -204
  150. package/test/node_modules/amqplib/test/util.js +0 -219
  151. package/test/node_modules/buffer-more-ints/.travis.yml +0 -6
  152. package/test/node_modules/buffer-more-ints/LICENSE +0 -19
  153. package/test/node_modules/buffer-more-ints/README.md +0 -69
  154. package/test/node_modules/buffer-more-ints/buffer-more-ints-tests.js +0 -183
  155. package/test/node_modules/buffer-more-ints/buffer-more-ints.js +0 -432
  156. package/test/node_modules/buffer-more-ints/package.json +0 -19
  157. package/test/node_modules/buffer-more-ints/polyfill.js +0 -71
  158. package/test/node_modules/core-util-is/LICENSE +0 -19
  159. package/test/node_modules/core-util-is/README.md +0 -3
  160. package/test/node_modules/core-util-is/lib/util.js +0 -107
  161. package/test/node_modules/core-util-is/package.json +0 -38
  162. package/test/node_modules/debug/LICENSE +0 -20
  163. package/test/node_modules/debug/README.md +0 -481
  164. package/test/node_modules/debug/package.json +0 -59
  165. package/test/node_modules/debug/src/browser.js +0 -269
  166. package/test/node_modules/debug/src/common.js +0 -274
  167. package/test/node_modules/debug/src/index.js +0 -10
  168. package/test/node_modules/debug/src/node.js +0 -263
  169. package/test/node_modules/inherits/LICENSE +0 -16
  170. package/test/node_modules/inherits/README.md +0 -42
  171. package/test/node_modules/inherits/inherits.js +0 -9
  172. package/test/node_modules/inherits/inherits_browser.js +0 -27
  173. package/test/node_modules/inherits/package.json +0 -29
  174. package/test/node_modules/isarray/README.md +0 -54
  175. package/test/node_modules/isarray/build/build.js +0 -209
  176. package/test/node_modules/isarray/component.json +0 -19
  177. package/test/node_modules/isarray/index.js +0 -3
  178. package/test/node_modules/isarray/package.json +0 -25
  179. package/test/node_modules/ms/index.js +0 -162
  180. package/test/node_modules/ms/license.md +0 -21
  181. package/test/node_modules/ms/package.json +0 -37
  182. package/test/node_modules/ms/readme.md +0 -60
  183. package/test/node_modules/querystringify/LICENSE +0 -22
  184. package/test/node_modules/querystringify/README.md +0 -61
  185. package/test/node_modules/querystringify/index.js +0 -118
  186. package/test/node_modules/querystringify/package.json +0 -38
  187. package/test/node_modules/readable-stream/LICENSE +0 -18
  188. package/test/node_modules/readable-stream/README.md +0 -15
  189. package/test/node_modules/readable-stream/duplex.js +0 -1
  190. package/test/node_modules/readable-stream/float.patch +0 -923
  191. package/test/node_modules/readable-stream/lib/_stream_duplex.js +0 -89
  192. package/test/node_modules/readable-stream/lib/_stream_passthrough.js +0 -46
  193. package/test/node_modules/readable-stream/lib/_stream_readable.js +0 -951
  194. package/test/node_modules/readable-stream/lib/_stream_transform.js +0 -209
  195. package/test/node_modules/readable-stream/lib/_stream_writable.js +0 -477
  196. package/test/node_modules/readable-stream/package.json +0 -32
  197. package/test/node_modules/readable-stream/passthrough.js +0 -1
  198. package/test/node_modules/readable-stream/readable.js +0 -10
  199. package/test/node_modules/readable-stream/transform.js +0 -1
  200. package/test/node_modules/readable-stream/writable.js +0 -1
  201. package/test/node_modules/requires-port/.travis.yml +0 -19
  202. package/test/node_modules/requires-port/LICENSE +0 -22
  203. package/test/node_modules/requires-port/README.md +0 -47
  204. package/test/node_modules/requires-port/index.js +0 -38
  205. package/test/node_modules/requires-port/package.json +0 -47
  206. package/test/node_modules/requires-port/test.js +0 -98
  207. package/test/node_modules/safe-buffer/LICENSE +0 -21
  208. package/test/node_modules/safe-buffer/README.md +0 -584
  209. package/test/node_modules/safe-buffer/index.d.ts +0 -187
  210. package/test/node_modules/safe-buffer/index.js +0 -62
  211. package/test/node_modules/safe-buffer/package.json +0 -37
  212. package/test/node_modules/string_decoder/LICENSE +0 -20
  213. package/test/node_modules/string_decoder/README.md +0 -7
  214. package/test/node_modules/string_decoder/index.js +0 -221
  215. package/test/node_modules/string_decoder/package.json +0 -25
  216. package/test/node_modules/url-parse/LICENSE +0 -22
  217. package/test/node_modules/url-parse/README.md +0 -153
  218. package/test/node_modules/url-parse/dist/url-parse.js +0 -755
  219. package/test/node_modules/url-parse/dist/url-parse.min.js +0 -1
  220. package/test/node_modules/url-parse/dist/url-parse.min.js.map +0 -1
  221. package/test/node_modules/url-parse/index.js +0 -589
  222. package/test/node_modules/url-parse/package.json +0 -49
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@types/express-serve-static-core",
3
+ "version": "4.17.35",
4
+ "description": "TypeScript definitions for Express",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-serve-static-core",
6
+ "license": "MIT",
7
+ "contributors": [
8
+ {
9
+ "name": "Boris Yankov",
10
+ "url": "https://github.com/borisyankov",
11
+ "githubUsername": "borisyankov"
12
+ },
13
+ {
14
+ "name": "Satana Charuwichitratana",
15
+ "url": "https://github.com/micksatana",
16
+ "githubUsername": "micksatana"
17
+ },
18
+ {
19
+ "name": "Sami Jaber",
20
+ "url": "https://github.com/samijaber",
21
+ "githubUsername": "samijaber"
22
+ },
23
+ {
24
+ "name": "Jose Luis Leon",
25
+ "url": "https://github.com/JoseLion",
26
+ "githubUsername": "JoseLion"
27
+ },
28
+ {
29
+ "name": "David Stephens",
30
+ "url": "https://github.com/dwrss",
31
+ "githubUsername": "dwrss"
32
+ },
33
+ {
34
+ "name": "Shin Ando",
35
+ "url": "https://github.com/andoshin11",
36
+ "githubUsername": "andoshin11"
37
+ }
38
+ ],
39
+ "main": "",
40
+ "types": "index.d.ts",
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
44
+ "directory": "types/express-serve-static-core"
45
+ },
46
+ "scripts": {},
47
+ "dependencies": {
48
+ "@types/node": "*",
49
+ "@types/qs": "*",
50
+ "@types/range-parser": "*",
51
+ "@types/send": "*"
52
+ },
53
+ "typesPublisherContentHash": "ff8dd9048ee34bf16a6700ed4e90e394e1b8262392fc0c2dfa2e9ea6246bde19",
54
+ "typeScriptVersion": "4.3"
55
+ }
@@ -0,0 +1,21 @@
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
@@ -0,0 +1,10 @@
1
+ import { TypeMap } from "./index";
2
+
3
+ export default class Mime {
4
+ constructor(mimes: TypeMap);
5
+
6
+ lookup(path: string, fallback?: string): string;
7
+ extension(mime: string): string | undefined;
8
+ load(filepath: string): void;
9
+ define(mimes: TypeMap): void;
10
+ }
@@ -0,0 +1,16 @@
1
+ # Installation
2
+ > `npm install --save @types/mime`
3
+
4
+ # Summary
5
+ This package contains type definitions for mime (https://github.com/broofa/node-mime).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime/v1.
9
+
10
+ ### Additional Details
11
+ * Last updated: Mon, 18 Jan 2021 14:32:15 GMT
12
+ * Dependencies: none
13
+ * Global values: `mime`, `mimelite`
14
+
15
+ # Credits
16
+ These definitions were written by [Jeff Goddard](https://github.com/jedigo), and [Daniel Hritzkiv](https://github.com/dhritzkiv).
@@ -0,0 +1,35 @@
1
+ // Type definitions for mime 1.3
2
+ // Project: https://github.com/broofa/node-mime
3
+ // Definitions by: Jeff Goddard <https://github.com/jedigo>
4
+ // Daniel Hritzkiv <https://github.com/dhritzkiv>
5
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
+
7
+ // Originally imported from: https://github.com/soywiz/typescript-node-definitions/mime.d.ts
8
+
9
+ export as namespace mime;
10
+
11
+ export interface TypeMap { [key: string]: string[]; }
12
+
13
+ /**
14
+ * Look up a mime type based on extension.
15
+ *
16
+ * If not found, uses the fallback argument if provided, and otherwise
17
+ * uses `default_type`.
18
+ */
19
+ export function lookup(path: string, fallback?: string): string;
20
+ /**
21
+ * Return a file extensions associated with a mime type.
22
+ */
23
+ export function extension(mime: string): string | undefined;
24
+ /**
25
+ * Load an Apache2-style ".types" file.
26
+ */
27
+ export function load(filepath: string): void;
28
+ export function define(mimes: TypeMap): void;
29
+
30
+ export interface Charsets {
31
+ lookup(mime: string, fallback: string): string;
32
+ }
33
+
34
+ export const charsets: Charsets;
35
+ export const default_type: string;
@@ -0,0 +1,7 @@
1
+ import { default as Mime } from "./Mime";
2
+
3
+ declare const mimelite: Mime;
4
+
5
+ export as namespace mimelite;
6
+
7
+ export = mimelite;
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@types/mime",
3
+ "version": "1.3.2",
4
+ "description": "TypeScript definitions for mime",
5
+ "license": "MIT",
6
+ "contributors": [
7
+ {
8
+ "name": "Jeff Goddard",
9
+ "url": "https://github.com/jedigo",
10
+ "githubUsername": "jedigo"
11
+ },
12
+ {
13
+ "name": "Daniel Hritzkiv",
14
+ "url": "https://github.com/dhritzkiv",
15
+ "githubUsername": "dhritzkiv"
16
+ }
17
+ ],
18
+ "main": "",
19
+ "types": "index.d.ts",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
23
+ "directory": "types/mime"
24
+ },
25
+ "scripts": {},
26
+ "dependencies": {},
27
+ "typesPublisherContentHash": "529a2ee85950b588c079bd053520c5b3c2bbff1886870bc08188284265324348",
28
+ "typeScriptVersion": "3.4"
29
+ }
@@ -0,0 +1,21 @@
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
@@ -0,0 +1,16 @@
1
+ # Installation
2
+ > `npm install --save @types/qs`
3
+
4
+ # Summary
5
+ This package contains type definitions for qs (https://github.com/ljharb/qs).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs.
9
+
10
+ ### Additional Details
11
+ * Last updated: Wed, 07 Jul 2021 17:02:42 GMT
12
+ * Dependencies: none
13
+ * Global values: `qs`
14
+
15
+ # Credits
16
+ These definitions were written by [Roman Korneev](https://github.com/RWander), [Leon Yu](https://github.com/leonyu), [Belinda Teh](https://github.com/tehbelinda), [Melvin Lee](https://github.com/zyml), [Arturs Vonda](https://github.com/artursvonda), [Carlos Bonetti](https://github.com/CarlosBonetti), [Dan Smith](https://github.com/dpsmith3), [Hunter Perrin](https://github.com/hperrin), and [Jordan Harband](https://github.com/ljharb).
@@ -0,0 +1,62 @@
1
+ // Type definitions for qs 6.9
2
+ // Project: https://github.com/ljharb/qs
3
+ // Definitions by: Roman Korneev <https://github.com/RWander>
4
+ // Leon Yu <https://github.com/leonyu>
5
+ // Belinda Teh <https://github.com/tehbelinda>
6
+ // Melvin Lee <https://github.com/zyml>
7
+ // Arturs Vonda <https://github.com/artursvonda>
8
+ // Carlos Bonetti <https://github.com/CarlosBonetti>
9
+ // Dan Smith <https://github.com/dpsmith3>
10
+ // Hunter Perrin <https://github.com/hperrin>
11
+ // Jordan Harband <https://github.com/ljharb>
12
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
13
+ export = QueryString;
14
+ export as namespace qs;
15
+
16
+ declare namespace QueryString {
17
+ type defaultEncoder = (str: any, defaultEncoder?: any, charset?: string) => string;
18
+ type defaultDecoder = (str: string, decoder?: any, charset?: string) => string;
19
+
20
+ interface IStringifyOptions {
21
+ delimiter?: string | undefined;
22
+ strictNullHandling?: boolean | undefined;
23
+ skipNulls?: boolean | undefined;
24
+ encode?: boolean | undefined;
25
+ encoder?: ((str: any, defaultEncoder: defaultEncoder, charset: string, type: 'key' | 'value') => string) | undefined;
26
+ filter?: Array<string | number> | ((prefix: string, value: any) => any) | undefined;
27
+ arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma' | undefined;
28
+ indices?: boolean | undefined;
29
+ sort?: ((a: any, b: any) => number) | undefined;
30
+ serializeDate?: ((d: Date) => string) | undefined;
31
+ format?: 'RFC1738' | 'RFC3986' | undefined;
32
+ encodeValuesOnly?: boolean | undefined;
33
+ addQueryPrefix?: boolean | undefined;
34
+ allowDots?: boolean | undefined;
35
+ charset?: 'utf-8' | 'iso-8859-1' | undefined;
36
+ charsetSentinel?: boolean | undefined;
37
+ }
38
+
39
+ interface IParseOptions {
40
+ comma?: boolean | undefined;
41
+ delimiter?: string | RegExp | undefined;
42
+ depth?: number | false | undefined;
43
+ decoder?: ((str: string, defaultDecoder: defaultDecoder, charset: string, type: 'key' | 'value') => any) | undefined;
44
+ arrayLimit?: number | undefined;
45
+ parseArrays?: boolean | undefined;
46
+ allowDots?: boolean | undefined;
47
+ plainObjects?: boolean | undefined;
48
+ allowPrototypes?: boolean | undefined;
49
+ parameterLimit?: number | undefined;
50
+ strictNullHandling?: boolean | undefined;
51
+ ignoreQueryPrefix?: boolean | undefined;
52
+ charset?: 'utf-8' | 'iso-8859-1' | undefined;
53
+ charsetSentinel?: boolean | undefined;
54
+ interpretNumericEntities?: boolean | undefined;
55
+ }
56
+
57
+ interface ParsedQs { [key: string]: undefined | string | string[] | ParsedQs | ParsedQs[] }
58
+
59
+ function stringify(obj: any, options?: IStringifyOptions): string;
60
+ function parse(str: string, options?: IParseOptions & { decoder?: never | undefined }): ParsedQs;
61
+ function parse(str: string | Record<string, string>, options?: IParseOptions): { [key: string]: unknown };
62
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@types/qs",
3
+ "version": "6.9.7",
4
+ "description": "TypeScript definitions for qs",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs",
6
+ "license": "MIT",
7
+ "contributors": [
8
+ {
9
+ "name": "Roman Korneev",
10
+ "url": "https://github.com/RWander",
11
+ "githubUsername": "RWander"
12
+ },
13
+ {
14
+ "name": "Leon Yu",
15
+ "url": "https://github.com/leonyu",
16
+ "githubUsername": "leonyu"
17
+ },
18
+ {
19
+ "name": "Belinda Teh",
20
+ "url": "https://github.com/tehbelinda",
21
+ "githubUsername": "tehbelinda"
22
+ },
23
+ {
24
+ "name": "Melvin Lee",
25
+ "url": "https://github.com/zyml",
26
+ "githubUsername": "zyml"
27
+ },
28
+ {
29
+ "name": "Arturs Vonda",
30
+ "url": "https://github.com/artursvonda",
31
+ "githubUsername": "artursvonda"
32
+ },
33
+ {
34
+ "name": "Carlos Bonetti",
35
+ "url": "https://github.com/CarlosBonetti",
36
+ "githubUsername": "CarlosBonetti"
37
+ },
38
+ {
39
+ "name": "Dan Smith",
40
+ "url": "https://github.com/dpsmith3",
41
+ "githubUsername": "dpsmith3"
42
+ },
43
+ {
44
+ "name": "Hunter Perrin",
45
+ "url": "https://github.com/hperrin",
46
+ "githubUsername": "hperrin"
47
+ },
48
+ {
49
+ "name": "Jordan Harband",
50
+ "url": "https://github.com/ljharb",
51
+ "githubUsername": "ljharb"
52
+ }
53
+ ],
54
+ "main": "",
55
+ "types": "index.d.ts",
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
59
+ "directory": "types/qs"
60
+ },
61
+ "scripts": {},
62
+ "dependencies": {},
63
+ "typesPublisherContentHash": "b33fed3eed022f94c7db53593571f370eaa77aa17b3e302dc1bd77304f03e56c",
64
+ "typeScriptVersion": "3.6"
65
+ }
@@ -0,0 +1,21 @@
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
@@ -0,0 +1,55 @@
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).
@@ -0,0 +1,35 @@
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;
@@ -0,0 +1,25 @@
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
+ }
@@ -0,0 +1,21 @@
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
@@ -0,0 +1,16 @@
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).