@tsed/platform-multer 8.33.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.
- package/lib/esm/adapters/express/MulterModule.js +2 -2
- package/lib/esm/adapters/fastify/MulterModule.js +3 -3
- package/lib/esm/adapters/koa/MulterModule.js +2 -2
- package/lib/esm/common/decorators/multerOptions.js +1 -1
- package/lib/esm/common/decorators/multipartFile.js +1 -1
- package/lib/esm/common/middlewares/PlatformMulterMiddleware.js +2 -2
- package/lib/types/common/interfaces/PlatformMulterSettings.d.ts +1 -1
- package/lib/types/common/middlewares/PlatformMulterMiddleware.d.ts +1 -1
- package/package.json +29 -30
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { promisify } from "node:util";
|
|
2
|
-
import { injectable } from "@tsed/di";
|
|
3
1
|
import { MULTER_MODULE } from "../../common/index.js";
|
|
2
|
+
import { injectable } from "@tsed/di";
|
|
3
|
+
import { promisify } from "node:util";
|
|
4
4
|
async function factory() {
|
|
5
5
|
const { default: multer } = await import("multer");
|
|
6
6
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { promisify } from "node:util";
|
|
2
|
-
import { injectable } from "@tsed/di";
|
|
3
|
-
import fp from "fastify-plugin";
|
|
4
1
|
import { MULTER_MODULE } from "../../common/index.js";
|
|
2
|
+
import fp from "fastify-plugin";
|
|
3
|
+
import { injectable } from "@tsed/di";
|
|
4
|
+
import { promisify } from "node:util";
|
|
5
5
|
const kMultipart = Symbol("multipart");
|
|
6
6
|
function setMultipart(req, _payload, done) {
|
|
7
7
|
// nothing to do, it will be done by multer in beforeHandler method
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Metadata, StoreMerge, useDecorators, useMethodDecorators } from "@tsed/core";
|
|
2
|
-
import { UseBefore } from "@tsed/platform-middlewares";
|
|
3
2
|
import { ParamTypes, UseParam } from "@tsed/platform-params";
|
|
4
3
|
import { InFile } from "@tsed/schema";
|
|
5
4
|
import { PLATFORM_MULTER_OPTIONS } from "../constants/constants.js";
|
|
6
5
|
import { PlatformMulterMiddleware } from "../middlewares/PlatformMulterMiddleware.js";
|
|
6
|
+
import { UseBefore } from "@tsed/platform-middlewares";
|
|
7
7
|
function mapOptions(name, maxCount) {
|
|
8
8
|
return {
|
|
9
9
|
fields: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata, __param } from "tslib";
|
|
2
|
-
import { constant, inject, injectable
|
|
3
|
-
import { Context } from "@tsed/platform-params";
|
|
2
|
+
import { ProviderType, constant, inject, injectable } from "@tsed/di";
|
|
4
3
|
import { MULTER_MODULE, PLATFORM_MULTER_OPTIONS } from "../constants/constants.js";
|
|
4
|
+
import { Context } from "@tsed/platform-params";
|
|
5
5
|
import { MulterException } from "../errors/MulterException.js";
|
|
6
6
|
/**
|
|
7
7
|
* @middleware
|
package/package.json
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/platform-multer",
|
|
3
|
+
"version": "8.35.0",
|
|
3
4
|
"description": "Multer adapter package for Ts.ED framework",
|
|
4
|
-
"
|
|
5
|
-
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Decorator",
|
|
7
|
+
"ESM",
|
|
8
|
+
"Multer",
|
|
9
|
+
"Ts.ED",
|
|
10
|
+
"TypeScript",
|
|
11
|
+
"decorator",
|
|
12
|
+
"decorators",
|
|
13
|
+
"multipartfile",
|
|
14
|
+
"typescript"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://github.com/tsedio/tsed/tree/production/packages/platform/platform-multer",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/tsedio/tsed/issues"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"author": "Romain Lenzotti",
|
|
22
|
+
"repository": "https://github.com/tsedio/tsed",
|
|
6
23
|
"source": "./src/index.ts",
|
|
24
|
+
"type": "module",
|
|
7
25
|
"main": "./lib/esm/index.js",
|
|
8
26
|
"module": "./lib/esm/index.js",
|
|
9
27
|
"typings": "./lib/types/index.d.ts",
|
|
@@ -40,40 +58,21 @@
|
|
|
40
58
|
"build:ts": "tsc --build tsconfig.esm.json",
|
|
41
59
|
"test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
|
|
42
60
|
},
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"typescript",
|
|
47
|
-
"Decorator",
|
|
48
|
-
"decorators",
|
|
49
|
-
"decorator",
|
|
50
|
-
"ESM",
|
|
51
|
-
"multipartfile",
|
|
52
|
-
"Ts.ED"
|
|
53
|
-
],
|
|
54
|
-
"author": "Romain Lenzotti",
|
|
55
|
-
"license": "MIT",
|
|
56
|
-
"bugs": {
|
|
57
|
-
"url": "https://github.com/tsedio/tsed/issues"
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"multer": "^2.0.0",
|
|
63
|
+
"tslib": ">=2.7.0"
|
|
58
64
|
},
|
|
59
|
-
"homepage": "https://github.com/tsedio/tsed/tree/production/packages/platform/platform-multer",
|
|
60
|
-
"repository": "https://github.com/tsedio/tsed",
|
|
61
65
|
"devDependencies": {
|
|
62
|
-
"@tsed/barrels": "8.
|
|
63
|
-
"@tsed/core": "8.
|
|
64
|
-
"@tsed/di": "8.
|
|
65
|
-
"@tsed/platform-middlewares": "8.
|
|
66
|
-
"@tsed/platform-params": "8.
|
|
67
|
-
"@tsed/typescript": "8.
|
|
66
|
+
"@tsed/barrels": "8.35.0",
|
|
67
|
+
"@tsed/core": "8.35.0",
|
|
68
|
+
"@tsed/di": "8.35.0",
|
|
69
|
+
"@tsed/platform-middlewares": "8.35.0",
|
|
70
|
+
"@tsed/platform-params": "8.35.0",
|
|
71
|
+
"@tsed/typescript": "8.35.0",
|
|
68
72
|
"@types/multer": "^2.0.0",
|
|
69
|
-
"eslint": "9.12.0",
|
|
70
73
|
"typescript": "6.0.2",
|
|
71
74
|
"vitest": "4.1.4"
|
|
72
75
|
},
|
|
73
|
-
"dependencies": {
|
|
74
|
-
"multer": "^2.0.0",
|
|
75
|
-
"tslib": ">=2.7.0"
|
|
76
|
-
},
|
|
77
76
|
"peerDependencies": {
|
|
78
77
|
"@tsed/core": ">=8.0.0",
|
|
79
78
|
"@tsed/di": ">=8.0.0",
|