@nestjs/common 11.1.7 → 11.1.9
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://nestjs.com/" target="
|
|
2
|
+
<a href="https://nestjs.com/" target="_blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
|
|
@@ -49,7 +49,7 @@ Please make sure to read the [Issue Reporting Checklist](https://github.com/nest
|
|
|
49
49
|
|
|
50
50
|
## Consulting
|
|
51
51
|
|
|
52
|
-
With official support, you can get expert help straight from Nest core team. We provide dedicated technical support, migration strategies, advice on best practices (and design decisions), PR reviews, and team augmentation. Read more about [support here](https://enterprise.nestjs.com).
|
|
52
|
+
With official support, you can get expert help straight from the Nest core team. We provide dedicated technical support, migration strategies, advice on best practices (and design decisions), PR reviews, and team augmentation. Read more about [support here](https://enterprise.nestjs.com).
|
|
53
53
|
|
|
54
54
|
## Support
|
|
55
55
|
|
|
@@ -92,6 +92,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
92
92
|
<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="170" valign="middle" /></a></td>
|
|
93
93
|
<td align="center" valign="middle"><a href="https://arcjet.com/?ref=nestjs" target="_blank"><img src="https://nestjs.com/img/logos/arcjet-logo.svg" width="170" valign="middle" /></a></td>
|
|
94
94
|
<td align="center" valign="middle"><a href="https://crawljobs.com" target="_blank"><img src="https://nestjs.com/img/logos/crawljobs-logo.svg" width="130" valign="middle" /></a></td>
|
|
95
|
+
</tr><tr>
|
|
96
|
+
<td align="center" valign="middle"><a href="https://pandektes.com" target="_blank"><img src="https://nestjs.com/img/logos/pandektes-logo.png" width="65" valign="middle" /></a></td>
|
|
95
97
|
</tr>
|
|
96
98
|
</table>
|
|
97
99
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { METHOD_METADATA } from '../../constants';
|
|
2
|
+
import { RequestMethod } from '../../enums/request-method.enum';
|
|
1
3
|
/**
|
|
2
4
|
* Declares this route as a Server-Sent-Events endpoint
|
|
3
5
|
*
|
|
4
6
|
* @publicApi
|
|
5
7
|
*/
|
|
6
|
-
export declare function Sse(path?: string
|
|
8
|
+
export declare function Sse(path?: string, options?: {
|
|
9
|
+
[METHOD_METADATA]?: RequestMethod;
|
|
10
|
+
}): MethodDecorator;
|
|
@@ -8,11 +8,13 @@ const request_method_enum_1 = require("../../enums/request-method.enum");
|
|
|
8
8
|
*
|
|
9
9
|
* @publicApi
|
|
10
10
|
*/
|
|
11
|
-
function Sse(path
|
|
11
|
+
function Sse(path, options = {
|
|
12
|
+
[constants_1.METHOD_METADATA]: request_method_enum_1.RequestMethod.GET,
|
|
13
|
+
}) {
|
|
12
14
|
return (target, key, descriptor) => {
|
|
13
15
|
path = path && path.length ? path : '/';
|
|
14
16
|
Reflect.defineMetadata(constants_1.PATH_METADATA, path, descriptor.value);
|
|
15
|
-
Reflect.defineMetadata(constants_1.METHOD_METADATA,
|
|
17
|
+
Reflect.defineMetadata(constants_1.METHOD_METADATA, options[constants_1.METHOD_METADATA], descriptor.value);
|
|
16
18
|
Reflect.defineMetadata(constants_1.SSE_METADATA, true, descriptor.value);
|
|
17
19
|
return descriptor;
|
|
18
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/common",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.9",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@common)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"homepage": "https://nestjs.com",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"file-type": "21.
|
|
21
|
+
"file-type": "21.1.0",
|
|
22
22
|
"iterare": "1.2.1",
|
|
23
23
|
"load-esm": "1.0.3",
|
|
24
24
|
"tslib": "2.8.1",
|