Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@nestjs/common

Package Overview
Dependencies
Maintainers
1
Versions
437
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/common - npm Package Compare versions

Comparing version
11.1.19
to
11.1.20
+1
-0
decorators/core/use-pipes.decorator.js

@@ -33,2 +33,3 @@ "use strict";

if (descriptor) {
(0, validate_each_util_1.validateEach)(target.constructor, pipes, isPipeValid, '@UsePipes', 'pipe');
(0, extend_metadata_util_1.extendArrayMetadata)(constants_1.PIPES_METADATA, pipes, descriptor.value);

@@ -35,0 +36,0 @@ return descriptor;

+2
-2
{
"name": "@nestjs/common",
"version": "11.1.19",
"version": "11.1.20",
"description": "Nest - modern, fast, powerful node.js web framework (@common)",

@@ -41,3 +41,3 @@ "author": "Kamil Mysliwiec",

},
"gitHead": "67309956821c0626c050fe6725c90645d2577e3d"
"gitHead": "7caeb3fb70de81085c4c3e8502a2a0e62e4f8eda"
}

@@ -26,2 +26,14 @@ "use strict";

}
/**
* If the file buffer is not available, and fallbackToMimetype is not enabled,
* we cannot perform magic number validation,
* so we return a specific error message indicating
* that validation could not be performed due to missing buffer.
*/
if (file?.mimetype &&
!file.buffer &&
!this.validationOptions?.fallbackToMimetype &&
!this.validationOptions?.skipMagicNumbersValidation) {
return `Validation failed (file buffer is not available; file type validation could not be performed; expected type is ${this.validationOptions.fileType})`;
}
if (file?.mimetype) {

@@ -28,0 +40,0 @@ const baseMessage = `Validation failed (current file type is ${file.mimetype}, expected type is ${this.validationOptions.fileType})`;

@@ -28,3 +28,3 @@ "use strict";

}
if (!value) {
if ((0, shared_utils_1.isNil)(value) || value === '') {
throw this.exceptionFactory('Validation failed (no Date provided)');

@@ -31,0 +31,0 @@ }

@@ -32,3 +32,3 @@ <p align="center">

<p>In recent years, thanks to Node.js, JavaScript has become the “lingua franca” of the web for both front-end and back-end applications, giving rise to awesome projects like <a href="https://angular.io/" target="_blank">Angular</a>, <a href="https://github.com/facebook/react" target="_blank">React</a>, and <a href="https://github.com/vuejs/vue" target="_blank">Vue</a>, which improve developer productivity and enable the construction of fast, testable, and extensible frontend applications. However, on the server-side, while there are a lot of superb libraries, helpers, and tools for Node, none of them effectively solve the main problem - the architecture.</p>
<p>In recent years, thanks to Node.js, JavaScript has become the “lingua franca” of the web for both front-end and back-end applications, giving rise to awesome projects like <a href="https://angular.dev/" target="_blank">Angular</a>, <a href="https://react.dev/" target="_blank">React</a>, and <a href="https://vuejs.org/" target="_blank">Vue</a>, which improve developer productivity and enable the construction of fast, testable, and extensible frontend applications. However, on the server-side, while there are a lot of superb libraries, helpers, and tools for Node, none of them effectively solve the main problem - the architecture.</p>
<p>Nest aims to provide an application architecture out of the box which allows for effortless creation of highly testable, scalable, and loosely coupled and easily maintainable applications. The architecture is heavily inspired by Angular.</p>

@@ -99,2 +99,3 @@

<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>
<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>
</tr>

@@ -101,0 +102,0 @@ </table>