@nestjs/platform-express 12.0.4 → 12.1.1
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.
|
@@ -8,6 +8,8 @@ export declare const multerExceptions: {
|
|
|
8
8
|
LIMIT_UNEXPECTED_FILE: string;
|
|
9
9
|
MISSING_FIELD_NAME: string;
|
|
10
10
|
LIMIT_FIELD_NESTING: string;
|
|
11
|
+
LIMIT_FIELD_ARRAY_INDEX: string;
|
|
12
|
+
INVALID_FIELD_NAME: string;
|
|
11
13
|
};
|
|
12
14
|
export declare const busboyExceptions: {
|
|
13
15
|
MULTIPART_BOUNDARY_NOT_FOUND: string;
|
|
@@ -9,6 +9,11 @@ export const multerExceptions = {
|
|
|
9
9
|
LIMIT_UNEXPECTED_FILE: 'Unexpected file field',
|
|
10
10
|
MISSING_FIELD_NAME: 'Field name missing',
|
|
11
11
|
LIMIT_FIELD_NESTING: 'Field name nesting too deep',
|
|
12
|
+
LIMIT_FIELD_ARRAY_INDEX: 'Field name array index too large',
|
|
13
|
+
INVALID_FIELD_NAME: 'Invalid field name',
|
|
14
|
+
// STREAM_DESTROYED is left out on purpose: it is raised by the storage
|
|
15
|
+
// engine after the file stream was destroyed, not by the request, so it
|
|
16
|
+
// stays a 500.
|
|
12
17
|
};
|
|
13
18
|
export const busboyExceptions = {
|
|
14
19
|
// from https://github.com/mscdex/busboy/blob/master/lib/types/multipart.js
|
|
@@ -37,6 +37,8 @@ export function transformException(error) {
|
|
|
37
37
|
case multerExceptions.LIMIT_FIELD_VALUE:
|
|
38
38
|
case multerExceptions.LIMIT_FIELD_COUNT:
|
|
39
39
|
case multerExceptions.LIMIT_FIELD_NESTING:
|
|
40
|
+
case multerExceptions.LIMIT_FIELD_ARRAY_INDEX:
|
|
41
|
+
case multerExceptions.INVALID_FIELD_NAME:
|
|
40
42
|
case multerExceptions.LIMIT_UNEXPECTED_FILE:
|
|
41
43
|
case multerExceptions.LIMIT_PART_COUNT:
|
|
42
44
|
case multerExceptions.MISSING_FIELD_NAME:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/platform-express",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.1.1",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@platform-express)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"tslib": "2.8.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@nestjs/common": "12.
|
|
36
|
-
"@nestjs/core": "12.
|
|
35
|
+
"@nestjs/common": "12.1.1",
|
|
36
|
+
"@nestjs/core": "12.1.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@nestjs/common": "^12.0.0",
|
|
40
40
|
"@nestjs/core": "^12.0.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "9feedffde8ef8c86f0cd521153740575dc579d88"
|
|
43
43
|
}
|