@tsed/platform-express 8.34.0 → 8.35.0

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.
@@ -1,17 +1,17 @@
1
1
  import "@tsed/platform-multer/express";
2
- import { readFileSync } from "node:fs";
3
- import { dirname, join } from "node:path";
4
- import { fileURLToPath } from "node:url";
5
- import { catchAsyncError, Env, isArray, isFunction } from "@tsed/core";
6
- import { constant, inject, logger, runInContext } from "@tsed/di";
7
- import { PlatformExceptions } from "@tsed/platform-exceptions";
8
- import { adapter, application, createContext, PlatformAdapter, PlatformBuilder, PlatformHandler, PlatformResponse } from "@tsed/platform-http";
2
+ import { Env, catchAsyncError, isArray, isFunction } from "@tsed/core";
3
+ import { PlatformAdapter, PlatformBuilder, PlatformHandler, PlatformResponse, adapter, application, createContext } from "@tsed/platform-http";
9
4
  import { PlatformHandlerType } from "@tsed/platform-router";
5
+ import { constant, inject, logger, runInContext } from "@tsed/di";
6
+ import { dirname, join } from "node:path";
10
7
  import Express from "express";
11
- import { staticsMiddleware } from "../middlewares/staticsMiddleware.js";
8
+ import { PlatformExceptions } from "@tsed/platform-exceptions";
12
9
  import { PlatformExpressHandler } from "../services/PlatformExpressHandler.js";
13
10
  import { PlatformExpressResponse } from "../services/PlatformExpressResponse.js";
14
11
  import { convertPath } from "../utils/convertPath.js";
12
+ import { fileURLToPath } from "node:url";
13
+ import { readFileSync } from "node:fs";
14
+ import { staticsMiddleware } from "../middlewares/staticsMiddleware.js";
15
15
  function callNext(next, metadata, $ctx) {
16
16
  if (metadata.type !== PlatformHandlerType.RESPONSE_FN) {
17
17
  return next && $ctx.error && !$ctx.isDone() ? next($ctx.error) : next();
@@ -1,6 +1,6 @@
1
- import { promisify } from "node:util";
2
1
  import { isFunction, isStream } from "@tsed/core";
3
2
  import { PlatformHandler } from "@tsed/platform-http";
3
+ import { promisify } from "node:util";
4
4
  export class PlatformExpressHandler extends PlatformHandler {
5
5
  onResponse(response, $ctx) {
6
6
  super.onResponse(response, $ctx);
package/package.json CHANGED
@@ -1,9 +1,38 @@
1
1
  {
2
2
  "name": "@tsed/platform-express",
3
+ "version": "8.35.0",
3
4
  "description": "A TypeScript Framework on top of Express",
4
- "type": "module",
5
- "version": "8.34.0",
5
+ "keywords": [
6
+ "Controller",
7
+ "Decorator",
8
+ "ES2015",
9
+ "ES6",
10
+ "Express",
11
+ "Inject",
12
+ "TypeScript",
13
+ "api",
14
+ "decorator",
15
+ "decorators",
16
+ "di",
17
+ "express",
18
+ "ioc",
19
+ "mvc",
20
+ "rest",
21
+ "server",
22
+ "swagger",
23
+ "swagger ui",
24
+ "typescript",
25
+ "validation"
26
+ ],
27
+ "homepage": "https://github.com/tsedio/tsed/tree/production/packages/platform/platform-express",
28
+ "bugs": {
29
+ "url": "https://github.com/tsedio/tsed/issues"
30
+ },
31
+ "license": "MIT",
32
+ "author": "Romain Lenzotti",
33
+ "repository": "https://github.com/tsedio/tsed",
6
34
  "source": "./src/index.ts",
35
+ "type": "module",
7
36
  "main": "./lib/esm/index.js",
8
37
  "module": "./lib/esm/index.js",
9
38
  "typings": "./lib/types/index.d.ts",
@@ -24,47 +53,18 @@
24
53
  "build:ts": "tsc --build tsconfig.esm.json",
25
54
  "test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
26
55
  },
27
- "keywords": [
28
- "Express",
29
- "TypeScript",
30
- "typescript",
31
- "Decorator",
32
- "decorators",
33
- "decorator",
34
- "express",
35
- "Controller",
36
- "Inject",
37
- "ioc",
38
- "di",
39
- "mvc",
40
- "swagger",
41
- "swagger ui",
42
- "ES2015",
43
- "ES6",
44
- "server",
45
- "rest",
46
- "api",
47
- "validation"
48
- ],
49
- "author": "Romain Lenzotti",
50
- "license": "MIT",
51
- "bugs": {
52
- "url": "https://github.com/tsedio/tsed/issues"
53
- },
54
- "homepage": "https://github.com/tsedio/tsed/tree/production/packages/platform/platform-express",
55
- "repository": "https://github.com/tsedio/tsed",
56
56
  "dependencies": {
57
57
  "multer": "^2.0.0",
58
58
  "tslib": ">=2.7.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@tsed/barrels": "8.34.0",
62
- "@tsed/core": "8.34.0",
63
- "@tsed/di": "8.34.0",
64
- "@tsed/platform-http": "8.34.0",
65
- "@tsed/platform-test-sdk": "8.34.0",
66
- "@tsed/platform-views": "8.34.0",
67
- "@tsed/typescript": "8.34.0",
61
+ "@tsed/barrels": "8.35.0",
62
+ "@tsed/core": "8.35.0",
63
+ "@tsed/di": "8.35.0",
64
+ "@tsed/platform-http": "8.35.0",
65
+ "@tsed/platform-test-sdk": "8.35.0",
66
+ "@tsed/platform-views": "8.35.0",
67
+ "@tsed/typescript": "8.35.0",
68
68
  "@types/body-parser": "1.19.5",
69
69
  "@types/compression": "1.7.5",
70
70
  "@types/cookie-parser": "1.4.7",
@@ -76,7 +76,6 @@
76
76
  "cookie-parser": "1.4.7",
77
77
  "cors": "2.8.5",
78
78
  "cross-env": "7.0.3",
79
- "eslint": "9.12.0",
80
79
  "express": "5.2.1",
81
80
  "express-session": "1.18.1",
82
81
  "method-override": "3.0.0",