@nestjs/common 10.4.12 → 10.4.13

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.
@@ -302,6 +302,26 @@ export declare function Body(property: string, ...pipes: (Type<PipeTransform> |
302
302
  * @publicApi
303
303
  */
304
304
  export declare function RawBody(): ParameterDecorator;
305
+ /**
306
+ * Route handler parameter decorator. Extracts the `rawBody` Buffer
307
+ * property from the `req` object and populates the decorated parameter with that value.
308
+ * Also applies pipes to the bound rawBody parameter.
309
+ *
310
+ * For example:
311
+ * ```typescript
312
+ * async create(@RawBody(new ValidationPipe()) rawBody: Buffer)
313
+ * ```
314
+ *
315
+ * @param pipes one or more pipes - either instances or classes - to apply to
316
+ * the bound body parameter.
317
+ *
318
+ * @see [Request object](https://docs.nestjs.com/controllers#request-object)
319
+ * @see [Raw body](https://docs.nestjs.com/faq/raw-body)
320
+ * @see [Working with pipes](https://docs.nestjs.com/custom-decorators#working-with-pipes)
321
+ *
322
+ * @publicApi
323
+ */
324
+ export declare function RawBody(...pipes: (Type<PipeTransform<Buffer | undefined>> | PipeTransform<Buffer | undefined>)[]): ParameterDecorator;
305
325
  /**
306
326
  * Route handler parameter decorator. Extracts the `params`
307
327
  * property from the `req` object and populates the decorated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/common",
3
- "version": "10.4.12",
3
+ "version": "10.4.13",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@common)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "homepage": "https://nestjs.com",