typespeed 2.4.1 → 2.4.3

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 (214) hide show
  1. package/dist/database.decorator.js +2 -4
  2. package/dist/typespeed.js +4 -1
  3. package/introduction/tsconfig.json +20 -0
  4. package/package.json +2 -4
  5. package/src/database.decorator.ts +2 -4
  6. package/src/typespeed.ts +4 -1
  7. package/app/node_modules/.package-lock.json +0 -134
  8. package/app/node_modules/@types/body-parser/LICENSE +0 -21
  9. package/app/node_modules/@types/body-parser/README.md +0 -16
  10. package/app/node_modules/@types/body-parser/index.d.ts +0 -107
  11. package/app/node_modules/@types/body-parser/package.json +0 -58
  12. package/app/node_modules/@types/connect/LICENSE +0 -21
  13. package/app/node_modules/@types/connect/README.md +0 -16
  14. package/app/node_modules/@types/connect/index.d.ts +0 -93
  15. package/app/node_modules/@types/connect/package.json +0 -32
  16. package/app/node_modules/@types/express/LICENSE +0 -21
  17. package/app/node_modules/@types/express/README.md +0 -16
  18. package/app/node_modules/@types/express/index.d.ts +0 -136
  19. package/app/node_modules/@types/express/package.json +0 -45
  20. package/app/node_modules/@types/express-serve-static-core/LICENSE +0 -21
  21. package/app/node_modules/@types/express-serve-static-core/README.md +0 -16
  22. package/app/node_modules/@types/express-serve-static-core/index.d.ts +0 -1281
  23. package/app/node_modules/@types/express-serve-static-core/package.json +0 -55
  24. package/app/node_modules/@types/mime/LICENSE +0 -21
  25. package/app/node_modules/@types/mime/Mime.d.ts +0 -10
  26. package/app/node_modules/@types/mime/README.md +0 -16
  27. package/app/node_modules/@types/mime/index.d.ts +0 -35
  28. package/app/node_modules/@types/mime/lite.d.ts +0 -7
  29. package/app/node_modules/@types/mime/package.json +0 -29
  30. package/app/node_modules/@types/node/LICENSE +0 -21
  31. package/app/node_modules/@types/node/README.md +0 -16
  32. package/app/node_modules/@types/node/assert/strict.d.ts +0 -8
  33. package/app/node_modules/@types/node/assert.d.ts +0 -961
  34. package/app/node_modules/@types/node/async_hooks.d.ts +0 -518
  35. package/app/node_modules/@types/node/buffer.d.ts +0 -2323
  36. package/app/node_modules/@types/node/child_process.d.ts +0 -1399
  37. package/app/node_modules/@types/node/cluster.d.ts +0 -410
  38. package/app/node_modules/@types/node/console.d.ts +0 -412
  39. package/app/node_modules/@types/node/constants.d.ts +0 -18
  40. package/app/node_modules/@types/node/crypto.d.ts +0 -3973
  41. package/app/node_modules/@types/node/dgram.d.ts +0 -545
  42. package/app/node_modules/@types/node/diagnostics_channel.d.ts +0 -192
  43. package/app/node_modules/@types/node/dns/promises.d.ts +0 -370
  44. package/app/node_modules/@types/node/dns.d.ts +0 -660
  45. package/app/node_modules/@types/node/dom-events.d.ts +0 -126
  46. package/app/node_modules/@types/node/domain.d.ts +0 -170
  47. package/app/node_modules/@types/node/events.d.ts +0 -682
  48. package/app/node_modules/@types/node/fs/promises.d.ts +0 -1159
  49. package/app/node_modules/@types/node/fs.d.ts +0 -3976
  50. package/app/node_modules/@types/node/globals.d.ts +0 -303
  51. package/app/node_modules/@types/node/globals.global.d.ts +0 -1
  52. package/app/node_modules/@types/node/http.d.ts +0 -1714
  53. package/app/node_modules/@types/node/http2.d.ts +0 -2133
  54. package/app/node_modules/@types/node/https.d.ts +0 -542
  55. package/app/node_modules/@types/node/index.d.ts +0 -134
  56. package/app/node_modules/@types/node/inspector.d.ts +0 -2741
  57. package/app/node_modules/@types/node/module.d.ts +0 -115
  58. package/app/node_modules/@types/node/net.d.ts +0 -883
  59. package/app/node_modules/@types/node/os.d.ts +0 -473
  60. package/app/node_modules/@types/node/package.json +0 -237
  61. package/app/node_modules/@types/node/path.d.ts +0 -191
  62. package/app/node_modules/@types/node/perf_hooks.d.ts +0 -625
  63. package/app/node_modules/@types/node/process.d.ts +0 -1488
  64. package/app/node_modules/@types/node/punycode.d.ts +0 -117
  65. package/app/node_modules/@types/node/querystring.d.ts +0 -131
  66. package/app/node_modules/@types/node/readline/promises.d.ts +0 -143
  67. package/app/node_modules/@types/node/readline.d.ts +0 -653
  68. package/app/node_modules/@types/node/repl.d.ts +0 -424
  69. package/app/node_modules/@types/node/stream/consumers.d.ts +0 -12
  70. package/app/node_modules/@types/node/stream/promises.d.ts +0 -42
  71. package/app/node_modules/@types/node/stream/web.d.ts +0 -330
  72. package/app/node_modules/@types/node/stream.d.ts +0 -1440
  73. package/app/node_modules/@types/node/string_decoder.d.ts +0 -67
  74. package/app/node_modules/@types/node/test.d.ts +0 -783
  75. package/app/node_modules/@types/node/timers/promises.d.ts +0 -93
  76. package/app/node_modules/@types/node/timers.d.ts +0 -101
  77. package/app/node_modules/@types/node/tls.d.ts +0 -1111
  78. package/app/node_modules/@types/node/trace_events.d.ts +0 -171
  79. package/app/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  80. package/app/node_modules/@types/node/ts4.8/assert.d.ts +0 -961
  81. package/app/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -518
  82. package/app/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2323
  83. package/app/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1399
  84. package/app/node_modules/@types/node/ts4.8/cluster.d.ts +0 -410
  85. package/app/node_modules/@types/node/ts4.8/console.d.ts +0 -412
  86. package/app/node_modules/@types/node/ts4.8/constants.d.ts +0 -18
  87. package/app/node_modules/@types/node/ts4.8/crypto.d.ts +0 -3972
  88. package/app/node_modules/@types/node/ts4.8/dgram.d.ts +0 -545
  89. package/app/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -192
  90. package/app/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -370
  91. package/app/node_modules/@types/node/ts4.8/dns.d.ts +0 -660
  92. package/app/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -126
  93. package/app/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  94. package/app/node_modules/@types/node/ts4.8/events.d.ts +0 -682
  95. package/app/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1138
  96. package/app/node_modules/@types/node/ts4.8/fs.d.ts +0 -3875
  97. package/app/node_modules/@types/node/ts4.8/globals.d.ts +0 -302
  98. package/app/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  99. package/app/node_modules/@types/node/ts4.8/http.d.ts +0 -1651
  100. package/app/node_modules/@types/node/ts4.8/http2.d.ts +0 -2133
  101. package/app/node_modules/@types/node/ts4.8/https.d.ts +0 -542
  102. package/app/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  103. package/app/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2741
  104. package/app/node_modules/@types/node/ts4.8/module.d.ts +0 -115
  105. package/app/node_modules/@types/node/ts4.8/net.d.ts +0 -883
  106. package/app/node_modules/@types/node/ts4.8/os.d.ts +0 -473
  107. package/app/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  108. package/app/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -625
  109. package/app/node_modules/@types/node/ts4.8/process.d.ts +0 -1488
  110. package/app/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  111. package/app/node_modules/@types/node/ts4.8/querystring.d.ts +0 -131
  112. package/app/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -143
  113. package/app/node_modules/@types/node/ts4.8/readline.d.ts +0 -653
  114. package/app/node_modules/@types/node/ts4.8/repl.d.ts +0 -424
  115. package/app/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  116. package/app/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -42
  117. package/app/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -330
  118. package/app/node_modules/@types/node/ts4.8/stream.d.ts +0 -1440
  119. package/app/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  120. package/app/node_modules/@types/node/ts4.8/test.d.ts +0 -784
  121. package/app/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  122. package/app/node_modules/@types/node/ts4.8/timers.d.ts +0 -94
  123. package/app/node_modules/@types/node/ts4.8/tls.d.ts +0 -1111
  124. package/app/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -171
  125. package/app/node_modules/@types/node/ts4.8/tty.d.ts +0 -206
  126. package/app/node_modules/@types/node/ts4.8/url.d.ts +0 -902
  127. package/app/node_modules/@types/node/ts4.8/util.d.ts +0 -2017
  128. package/app/node_modules/@types/node/ts4.8/v8.d.ts +0 -541
  129. package/app/node_modules/@types/node/ts4.8/vm.d.ts +0 -644
  130. package/app/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
  131. package/app/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -695
  132. package/app/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  133. package/app/node_modules/@types/node/tty.d.ts +0 -206
  134. package/app/node_modules/@types/node/url.d.ts +0 -902
  135. package/app/node_modules/@types/node/util.d.ts +0 -2017
  136. package/app/node_modules/@types/node/v8.d.ts +0 -541
  137. package/app/node_modules/@types/node/vm.d.ts +0 -644
  138. package/app/node_modules/@types/node/wasi.d.ts +0 -158
  139. package/app/node_modules/@types/node/worker_threads.d.ts +0 -695
  140. package/app/node_modules/@types/node/zlib.d.ts +0 -517
  141. package/app/node_modules/@types/qs/LICENSE +0 -21
  142. package/app/node_modules/@types/qs/README.md +0 -16
  143. package/app/node_modules/@types/qs/index.d.ts +0 -62
  144. package/app/node_modules/@types/qs/package.json +0 -65
  145. package/app/node_modules/@types/range-parser/LICENSE +0 -21
  146. package/app/node_modules/@types/range-parser/README.md +0 -55
  147. package/app/node_modules/@types/range-parser/index.d.ts +0 -35
  148. package/app/node_modules/@types/range-parser/package.json +0 -25
  149. package/app/node_modules/@types/send/LICENSE +0 -21
  150. package/app/node_modules/@types/send/README.md +0 -16
  151. package/app/node_modules/@types/send/index.d.ts +0 -231
  152. package/app/node_modules/@types/send/package.json +0 -33
  153. package/app/node_modules/@types/serve-static/LICENSE +0 -21
  154. package/app/node_modules/@types/serve-static/README.md +0 -16
  155. package/app/node_modules/@types/serve-static/index.d.ts +0 -113
  156. package/app/node_modules/@types/serve-static/package.json +0 -38
  157. package/app/node_modules/colors/LICENSE +0 -25
  158. package/app/node_modules/colors/README.md +0 -221
  159. package/app/node_modules/colors/examples/normal-usage.js +0 -82
  160. package/app/node_modules/colors/examples/safe-string.js +0 -79
  161. package/app/node_modules/colors/index.d.ts +0 -136
  162. package/app/node_modules/colors/lib/colors.js +0 -211
  163. package/app/node_modules/colors/lib/custom/trap.js +0 -46
  164. package/app/node_modules/colors/lib/custom/zalgo.js +0 -110
  165. package/app/node_modules/colors/lib/extendStringPrototype.js +0 -110
  166. package/app/node_modules/colors/lib/index.js +0 -13
  167. package/app/node_modules/colors/lib/maps/america.js +0 -10
  168. package/app/node_modules/colors/lib/maps/rainbow.js +0 -12
  169. package/app/node_modules/colors/lib/maps/random.js +0 -11
  170. package/app/node_modules/colors/lib/maps/zebra.js +0 -5
  171. package/app/node_modules/colors/lib/styles.js +0 -95
  172. package/app/node_modules/colors/lib/system/has-flag.js +0 -35
  173. package/app/node_modules/colors/lib/system/supports-colors.js +0 -151
  174. package/app/node_modules/colors/package.json +0 -45
  175. package/app/node_modules/colors/safe.d.ts +0 -48
  176. package/app/node_modules/colors/safe.js +0 -10
  177. package/app/node_modules/colors/themes/generic-logging.js +0 -12
  178. package/app/node_modules/dateformat/LICENSE +0 -20
  179. package/app/node_modules/dateformat/Readme.md +0 -204
  180. package/app/node_modules/dateformat/lib/dateformat.js +0 -1
  181. package/app/node_modules/dateformat/package.json +0 -38
  182. package/app/node_modules/mkdirp/CHANGELOG.md +0 -15
  183. package/app/node_modules/mkdirp/LICENSE +0 -21
  184. package/app/node_modules/mkdirp/bin/cmd.js +0 -68
  185. package/app/node_modules/mkdirp/index.js +0 -31
  186. package/app/node_modules/mkdirp/lib/find-made.js +0 -29
  187. package/app/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
  188. package/app/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
  189. package/app/node_modules/mkdirp/lib/opts-arg.js +0 -23
  190. package/app/node_modules/mkdirp/lib/path-arg.js +0 -29
  191. package/app/node_modules/mkdirp/lib/use-native.js +0 -10
  192. package/app/node_modules/mkdirp/package.json +0 -44
  193. package/app/node_modules/mkdirp/readme.markdown +0 -266
  194. package/app/node_modules/tinytim/.travis.yml +0 -5
  195. package/app/node_modules/tinytim/README.md +0 -212
  196. package/app/node_modules/tinytim/index.js +0 -1
  197. package/app/node_modules/tinytim/lib/index.js +0 -55
  198. package/app/node_modules/tinytim/lib/tinytim.js +0 -50
  199. package/app/node_modules/tinytim/package.json +0 -24
  200. package/app/node_modules/tinytim/test/files/html.tim +0 -1
  201. package/app/node_modules/tinytim/test/files/string.tim +0 -1
  202. package/app/node_modules/tinytim/test/files/string2.tim +0 -1
  203. package/app/node_modules/tinytim/test/render-file-replace.js +0 -39
  204. package/app/node_modules/tinytim/test/render-replace.js +0 -94
  205. package/app/node_modules/tinytim/test/tim-replace.js +0 -95
  206. package/app/node_modules/tracer/README.md +0 -747
  207. package/app/node_modules/tracer/lib/color_console.js +0 -15
  208. package/app/node_modules/tracer/lib/console.js +0 -165
  209. package/app/node_modules/tracer/lib/dailyfile.js +0 -92
  210. package/app/node_modules/tracer/lib/index.js +0 -10
  211. package/app/node_modules/tracer/lib/settings.js +0 -25
  212. package/app/node_modules/tracer/lib/utils.js +0 -58
  213. package/app/node_modules/tracer/package.json +0 -53
  214. package/app/node_modules/tracer/types/index.d.ts +0 -189
@@ -305,13 +305,11 @@ class Model {
305
305
  }
306
306
  else {
307
307
  const operatorTemplate = { $lt: "<", $lte: "<=", $gt: ">", $gte: ">=", $ne: "!=", $like: "LIKE" };
308
- let firstCondition = Object.keys(conditions[field]).length > 1;
309
- Object.keys(conditions[field]).map((operator) => {
308
+ Object.keys(conditions[field]).map((operator, index) => {
310
309
  if (operatorTemplate[operator]) {
311
310
  const operatorValue = operatorTemplate[operator];
312
- result["sql"] += ` ${field} ${operatorValue} ? ` + (firstCondition ? " AND " : "");
311
+ result["sql"] += (index ? " AND " : "") + ` ${field} ${operatorValue} ? `;
313
312
  result["values"].push(conditions[field][operator]);
314
- firstCondition = false;
315
313
  }
316
314
  });
317
315
  }
package/dist/typespeed.js CHANGED
@@ -91,7 +91,10 @@ function getRootPath(lines) {
91
91
  for (let line of lines) {
92
92
  if (line.includes(macths[matchIndex])) {
93
93
  if (matchIndex === macths.length - 1) {
94
- return line.split("(")[1].split(":")[0];
94
+ let arr = line.split("(")[1].split(":");
95
+ arr.pop();
96
+ arr.pop();
97
+ return arr.join(':');
95
98
  }
96
99
  matchIndex++;
97
100
  }
@@ -0,0 +1,20 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "CommonJS",
4
+ "declaration": true,
5
+ "emitDecoratorMetadata": true,
6
+ "experimentalDecorators": true,
7
+ "allowSyntheticDefaultImports": true,
8
+ "forceConsistentCasingInFileNames": true,
9
+ "target": "ES2017",
10
+ "sourceMap": true,
11
+ "outDir": "./dist",
12
+ "baseUrl": "./",
13
+ "typeRoots": [
14
+ "node_modules/@types"
15
+ ],
16
+ },
17
+ "include": [
18
+ "./**/*.ts"
19
+ ]
20
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typespeed",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "A new Framework for TypeScript.",
5
5
  "author": "speedphp",
6
6
  "license": "MIT License",
@@ -10,9 +10,7 @@
10
10
  "start": "ts-node --transpile-only app/src/main.ts",
11
11
  "build": "tsc -p .",
12
12
  "postbuild": "cp src/typespeed.d.ts dist/typespeed.d.ts && cp -r src/default/pages dist/default/pages && cp -r src/scaffold/templates dist/scaffold/templates",
13
- "prebuild": "rm -rf dist",
14
- "prepublishOnly": "npm version patch && npm run build",
15
- "upgrade": "npm version minor"
13
+ "prebuild": "rm -rf dist"
16
14
  },
17
15
  "main": "dist/typespeed.js",
18
16
  "bin": {
@@ -313,13 +313,11 @@ class Model {
313
313
  result["sql"] += `(${orSql})`;
314
314
  } else {
315
315
  const operatorTemplate = { $lt: "<", $lte: "<=", $gt: ">", $gte: ">=", $ne: "!=", $like: "LIKE" };
316
- let firstCondition: boolean = Object.keys(conditions[field]).length > 1;
317
- Object.keys(conditions[field]).map((operator) => {
316
+ Object.keys(conditions[field]).map((operator, index) => {
318
317
  if (operatorTemplate[operator]) {
319
318
  const operatorValue = operatorTemplate[operator];
320
- result["sql"] += ` ${field} ${operatorValue} ? ` + (firstCondition ? " AND " : "");
319
+ result["sql"] += (index ? " AND " : "") + ` ${field} ${operatorValue} ? `;
321
320
  result["values"].push(conditions[field][operator]);
322
- firstCondition = false;
323
321
  }
324
322
  });
325
323
  }
package/src/typespeed.ts CHANGED
@@ -75,7 +75,10 @@ function getRootPath(lines: string[]) {
75
75
  for (let line of lines) {
76
76
  if (line.includes(macths[matchIndex])) {
77
77
  if(matchIndex === macths.length - 1) {
78
- return line.split("(")[1].split(":")[0];
78
+ let arr = line.split("(")[1].split(":")
79
+ arr.pop()
80
+ arr.pop()
81
+ return arr.join(':')
79
82
  }
80
83
  matchIndex++;
81
84
  }else{
@@ -1,134 +0,0 @@
1
- {
2
- "name": "test-typespeed",
3
- "version": "1.0.0",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "node_modules/@types/body-parser": {
8
- "version": "1.19.2",
9
- "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz",
10
- "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==",
11
- "dependencies": {
12
- "@types/connect": "*",
13
- "@types/node": "*"
14
- }
15
- },
16
- "node_modules/@types/connect": {
17
- "version": "3.4.35",
18
- "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz",
19
- "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==",
20
- "dependencies": {
21
- "@types/node": "*"
22
- }
23
- },
24
- "node_modules/@types/express": {
25
- "version": "4.17.17",
26
- "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz",
27
- "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==",
28
- "dependencies": {
29
- "@types/body-parser": "*",
30
- "@types/express-serve-static-core": "^4.17.33",
31
- "@types/qs": "*",
32
- "@types/serve-static": "*"
33
- }
34
- },
35
- "node_modules/@types/express-serve-static-core": {
36
- "version": "4.17.35",
37
- "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz",
38
- "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==",
39
- "dependencies": {
40
- "@types/node": "*",
41
- "@types/qs": "*",
42
- "@types/range-parser": "*",
43
- "@types/send": "*"
44
- }
45
- },
46
- "node_modules/@types/mime": {
47
- "version": "1.3.2",
48
- "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz",
49
- "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw=="
50
- },
51
- "node_modules/@types/node": {
52
- "version": "18.16.14",
53
- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.14.tgz",
54
- "integrity": "sha512-+ImzUB3mw2c5ISJUq0punjDilUQ5GnUim0ZRvchHIWJmOC0G+p0kzhXBqj6cDjK0QdPFwzrHWgrJp3RPvCG5qg=="
55
- },
56
- "node_modules/@types/qs": {
57
- "version": "6.9.7",
58
- "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz",
59
- "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw=="
60
- },
61
- "node_modules/@types/range-parser": {
62
- "version": "1.2.4",
63
- "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz",
64
- "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw=="
65
- },
66
- "node_modules/@types/send": {
67
- "version": "0.17.1",
68
- "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz",
69
- "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==",
70
- "dependencies": {
71
- "@types/mime": "^1",
72
- "@types/node": "*"
73
- }
74
- },
75
- "node_modules/@types/serve-static": {
76
- "version": "1.15.1",
77
- "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz",
78
- "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==",
79
- "dependencies": {
80
- "@types/mime": "*",
81
- "@types/node": "*"
82
- }
83
- },
84
- "node_modules/colors": {
85
- "version": "1.4.0",
86
- "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz",
87
- "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==",
88
- "engines": {
89
- "node": ">=0.1.90"
90
- }
91
- },
92
- "node_modules/dateformat": {
93
- "version": "4.5.1",
94
- "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.5.1.tgz",
95
- "integrity": "sha512-OD0TZ+B7yP7ZgpJf5K2DIbj3FZvFvxgFUuaqA/V5zTjAtAAXZ1E8bktHxmAGs4x5b7PflqA9LeQ84Og7wYtF7Q==",
96
- "engines": {
97
- "node": "*"
98
- }
99
- },
100
- "node_modules/mkdirp": {
101
- "version": "1.0.4",
102
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
103
- "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
104
- "bin": {
105
- "mkdirp": "bin/cmd.js"
106
- },
107
- "engines": {
108
- "node": ">=10"
109
- }
110
- },
111
- "node_modules/tinytim": {
112
- "version": "0.1.1",
113
- "resolved": "https://registry.npmjs.org/tinytim/-/tinytim-0.1.1.tgz",
114
- "integrity": "sha512-NIpsp9lBIxPNzB++HnMmUd4byzJSVbbO4F+As1Gb1IG/YQT5QvmBDjpx8SpDS8fhGC+t+Qw8ldQgbcAIaU+2cA==",
115
- "engines": {
116
- "node": ">= 0.2.0"
117
- }
118
- },
119
- "node_modules/tracer": {
120
- "version": "1.1.6",
121
- "resolved": "https://registry.npmjs.org/tracer/-/tracer-1.1.6.tgz",
122
- "integrity": "sha512-VKEIQRNgzSgti18whs+8l7e2y/gWcklw+C/xZtFH/AGvaN6GDlvhkQTFEsy448Gxb5MtbNbzJiG0L1TJEQnqcA==",
123
- "dependencies": {
124
- "colors": "1.4.0",
125
- "dateformat": "4.5.1",
126
- "mkdirp": "^1.0.4",
127
- "tinytim": "0.1.1"
128
- },
129
- "engines": {
130
- "node": ">= 0.10.0"
131
- }
132
- }
133
- }
134
- }
@@ -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/body-parser`
3
-
4
- # Summary
5
- This package contains type definitions for body-parser (https://github.com/expressjs/body-parser).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/body-parser.
9
-
10
- ### Additional Details
11
- * Last updated: Tue, 16 Nov 2021 18:31:30 GMT
12
- * Dependencies: [@types/connect](https://npmjs.com/package/@types/connect), [@types/node](https://npmjs.com/package/@types/node)
13
- * Global values: none
14
-
15
- # Credits
16
- These definitions were written by [Santi Albo](https://github.com/santialbo), [Vilic Vane](https://github.com/vilic), [Jonathan Häberle](https://github.com/dreampulse), [Gevik Babakhani](https://github.com/blendsdk), [Tomasz Łaziuk](https://github.com/tlaziuk), [Jason Walton](https://github.com/jwalton), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).
@@ -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).