@nestjs/common 11.1.24 → 11.1.26

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
@@ -96,6 +96,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
96
96
  </tr><tr>
97
97
  <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>
98
98
  <td align="center" valign="middle"><a href="https://www.fintechcrafts.com/" target="_blank"><img src="https://nestjs.com/img/logos/fintechcrafts-logo.svg" width="65" valign="middle" /></a></td>
99
+ <td align="center" valign="middle"><a href="https://talordata.com/?campaignid=Ya5Xpw2gmhyee6Tg&utm_source=nestjs&utm_term=nestjs" target="_blank"><img src="https://images.opencollective.com/elowen/9ccac7f/avatar/512.png" width="65" valign="middle" /></a></td>
100
+ <td align="center" valign="middle"><a href="https://www.rapidproxy.io/?ref=nestjs" target="_blank"><img src="https://nestjs.com/img/logos/rapid-logo.svg" width="120" valign="middle" /></a></td>
99
101
  </tr>
100
102
  </table>
101
103
 
@@ -441,5 +441,31 @@ export declare function HostParam(): ParameterDecorator;
441
441
  * @publicApi
442
442
  */
443
443
  export declare function HostParam(property: string): ParameterDecorator;
444
+ /**
445
+ * Route handler parameter decorator. Extracts the `Request`
446
+ * object from the underlying platform and populates the decorated
447
+ * parameter with the value of `Request`.
448
+ *
449
+ * Alias for @Request().
450
+ *
451
+ * Example: `logout(@Req() req)`
452
+ *
453
+ * @see [Request object](https://docs.nestjs.com/controllers#request-object)
454
+ *
455
+ * @publicApi
456
+ */
444
457
  export declare const Req: () => ParameterDecorator;
458
+ /**
459
+ * Route handler parameter decorator. Extracts the `Response`
460
+ * object from the underlying platform and populates the decorated
461
+ * parameter with the value of `Response`.
462
+ *
463
+ * Alias for @Response().
464
+ *
465
+ * Example: `logout(@Res() res)`
466
+ *
467
+ * @see [Response object](https://docs.nestjs.com/controllers#response-object)
468
+ *
469
+ * @publicApi
470
+ */
445
471
  export declare const Res: (options?: ResponseDecoratorOptions) => ParameterDecorator;
@@ -261,5 +261,31 @@ function Param(property, ...pipes) {
261
261
  function HostParam(property) {
262
262
  return createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.HOST)(property);
263
263
  }
264
+ /**
265
+ * Route handler parameter decorator. Extracts the `Request`
266
+ * object from the underlying platform and populates the decorated
267
+ * parameter with the value of `Request`.
268
+ *
269
+ * Alias for @Request().
270
+ *
271
+ * Example: `logout(@Req() req)`
272
+ *
273
+ * @see [Request object](https://docs.nestjs.com/controllers#request-object)
274
+ *
275
+ * @publicApi
276
+ */
264
277
  exports.Req = exports.Request;
278
+ /**
279
+ * Route handler parameter decorator. Extracts the `Response`
280
+ * object from the underlying platform and populates the decorated
281
+ * parameter with the value of `Response`.
282
+ *
283
+ * Alias for @Response().
284
+ *
285
+ * Example: `logout(@Res() res)`
286
+ *
287
+ * @see [Response object](https://docs.nestjs.com/controllers#response-object)
288
+ *
289
+ * @publicApi
290
+ */
265
291
  exports.Res = exports.Response;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Severity level applied to a single kind of route conflict detected at
3
+ * bootstrap.
4
+ *
5
+ * @publicApi
6
+ */
7
+ export type RouteConflictPolicyLevel = 'off' | 'warn' | 'error';
8
+ /**
9
+ * Per-kind policy for overlapping routes detected at bootstrap.
10
+ * `duplicate` covers identical (method, path, host, version) registrations.
11
+ * `shadow` covers patterns that can match the same request (for example
12
+ * `/users/me` vs `/users/:id`). Each kind defaults to `'off'`.
13
+ *
14
+ * @publicApi
15
+ */
16
+ export interface RouteConflictPolicy {
17
+ duplicate?: RouteConflictPolicyLevel;
18
+ shadow?: RouteConflictPolicyLevel;
19
+ }
20
+ /**
21
+ * Order in which routes are registered on the underlying HTTP adapter.
22
+ * `'specificity'` registers literal segments before parametric and
23
+ * wildcard ones on order-sensitive adapters (such as Express). Defaults
24
+ * to `'declaration'`.
25
+ *
26
+ * @publicApi
27
+ */
28
+ export type RouteResolutionStrategy = 'declaration' | 'specificity';
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/common",
3
- "version": "11.1.24",
3
+ "version": "11.1.26",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@common)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "homepage": "https://nestjs.com",
@@ -38,5 +38,5 @@
38
38
  "optional": true
39
39
  }
40
40
  },
41
- "gitHead": "d8a0ab829ddd8291b75109c9ac4fc4c7d070fc9e"
41
+ "gitHead": "9ff83d540f50e96eb0093b4eb0dd96191aa6a285"
42
42
  }