@nestjs/common 10.3.9 → 10.4.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/Readme.md
CHANGED
|
@@ -60,7 +60,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
60
60
|
<table style="text-align:center;">
|
|
61
61
|
<tr>
|
|
62
62
|
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
|
|
63
|
+
<td><a href="https://microsoft.com/" target="_blank"><img src="https://nestjs.com/img/logos/microsoft-logo.png" width="180" valign="middle" /></a></td>
|
|
63
64
|
<td><a href="https://mojam.co" target="_blank"><img src="https://nestjs.com/img/logos/mojam-logo.png" width="80" valign="middle" /></a></td>
|
|
65
|
+
<td><a href="https://marblism.com?utm_source=nest" target="_blank"><img src="https://nestjs.com/img/logos/marblism-logo.png" width="180" valign="middle" /></a></td>
|
|
64
66
|
<td><a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
|
|
65
67
|
<td><a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/logos/amplication-logo.svg" width="190" valign="middle" /></a></td>
|
|
66
68
|
</tr>
|
|
@@ -89,8 +91,10 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
89
91
|
|
|
90
92
|
<table style="text-align:center;">
|
|
91
93
|
<tr>
|
|
92
|
-
<td><a href="https://
|
|
93
|
-
<td><a href="https://
|
|
94
|
+
<td><a href="https://www.mercedes-benz.com/" target="_blank"><img src="https://nestjs.com/img/logos/mercedes-logo.png" width="100" valign="middle" /></a></td>
|
|
95
|
+
<td><a href="https://www.dinii.jp/" target="_blank"><img src="https://nestjs.com/img/logos/dinii-logo.png" width="65" valign="middle" /></a></td>
|
|
96
|
+
<td><a href="https://bloodycase.com/?promocode=NEST" target="_blank"><img src="https://nestjs.com/img/logos/bloodycase-logo.png" width="65" valign="middle" /></a></td>
|
|
97
|
+
<td><a href="https://handsontable.com/docs/react-data-grid/?utm_source=NestJS_GH&utm_medium=sponsorship&utm_campaign=library_sponsorship_2024" target="_blank"><img src="https://nestjs.com/img/logos/handsontable-logo.svg" width="150" valign="middle" /></a></td>
|
|
94
98
|
</tr>
|
|
95
99
|
</table>
|
|
96
100
|
|
|
@@ -122,9 +126,12 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
122
126
|
<td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/logos/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
|
|
123
127
|
</tr>
|
|
124
128
|
<tr>
|
|
125
|
-
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/logos/julienferand-logo.jpeg" width="
|
|
129
|
+
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/logos/julienferand-logo.jpeg" width="55" valign="middle" /></a></td>
|
|
126
130
|
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/logos/tripoffice-logo.png" width="140" valign="middle" /></a></td>
|
|
127
131
|
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/logos/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
|
|
132
|
+
<td align="center" valign="middle"><a href="https://www.itflashcards.com/" target="_blank"><img src="https://nestjs.com/img/logos/it_flashcards-logo.png" width="150" valign="middle" /></a></td>
|
|
133
|
+
<td align="center" valign="middle"><a href="https://www.route4me.com/" target="_blank"><img src="https://nestjs.com/img/logos/route4me-logo.svg" width="100" valign="middle" /></a></td>
|
|
134
|
+
<td align="center" valign="middle"><a href="https://www.slotsup.com/" target="_blank"><img src="https://nestjs.com/img/logos/slotsup-logo.png" width="60" valign="middle" /></a></td>
|
|
128
135
|
</tr>
|
|
129
136
|
</table>
|
|
130
137
|
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Options for `StreamableFile`
|
|
3
3
|
*
|
|
4
|
+
* @see [Streaming files](https://docs.nestjs.com/techniques/streaming-files)
|
|
5
|
+
*
|
|
4
6
|
* @publicApi
|
|
5
7
|
*/
|
|
6
8
|
export interface StreamableFileOptions {
|
|
9
|
+
/**
|
|
10
|
+
* The value that will be used for the `Content-Type` response header.
|
|
11
|
+
* @default `"application/octet-stream"`
|
|
12
|
+
*/
|
|
7
13
|
type?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The value that will be used for the `Content-Disposition` response header.
|
|
16
|
+
*/
|
|
8
17
|
disposition?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The value that will be used for the `Content-Length` response header.
|
|
20
|
+
*/
|
|
9
21
|
length?: number;
|
|
10
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/common",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.4.0",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@common)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"homepage": "https://nestjs.com",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"iterare": "1.2.1",
|
|
22
|
-
"tslib": "2.6.
|
|
22
|
+
"tslib": "2.6.3",
|
|
23
23
|
"uid": "2.0.2"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
@@ -4,7 +4,7 @@ import { ErrorHttpStatusCode } from '../utils/http-error-by-code.util';
|
|
|
4
4
|
* @publicApi
|
|
5
5
|
*/
|
|
6
6
|
export interface ParseUUIDPipeOptions {
|
|
7
|
-
version?: '3' | '4' | '5';
|
|
7
|
+
version?: '3' | '4' | '5' | '7';
|
|
8
8
|
errorHttpStatusCode?: ErrorHttpStatusCode;
|
|
9
9
|
exceptionFactory?: (errors: string) => any;
|
|
10
10
|
optional?: boolean;
|
|
@@ -22,6 +22,7 @@ export declare class ParseUUIDPipe implements PipeTransform<string> {
|
|
|
22
22
|
3: RegExp;
|
|
23
23
|
4: RegExp;
|
|
24
24
|
5: RegExp;
|
|
25
|
+
7: RegExp;
|
|
25
26
|
all: RegExp;
|
|
26
27
|
};
|
|
27
28
|
private readonly version;
|
package/pipes/parse-uuid.pipe.js
CHANGED
|
@@ -47,6 +47,7 @@ ParseUUIDPipe.uuidRegExps = {
|
|
|
47
47
|
3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
|
|
48
48
|
4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
|
|
49
49
|
5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
|
|
50
|
+
7: /^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
|
|
50
51
|
all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
|
|
51
52
|
};
|
|
52
53
|
exports.ParseUUIDPipe = ParseUUIDPipe = ParseUUIDPipe_1 = tslib_1.__decorate([
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadPackage = void 0;
|
|
4
4
|
const logger_service_1 = require("../services/logger.service");
|
|
5
|
-
const MISSING_REQUIRED_DEPENDENCY = (name, reason) => `The "${name}" package is missing. Please, make sure to install
|
|
5
|
+
const MISSING_REQUIRED_DEPENDENCY = (name, reason) => `The "${name}" package is missing. Please, make sure to install it to take advantage of ${reason}.`;
|
|
6
6
|
const logger = new logger_service_1.Logger('PackageLoader');
|
|
7
7
|
function loadPackage(packageName, context, loaderFn) {
|
|
8
8
|
try {
|