Socket
Socket
Sign inDemoInstall

@nestjs/common

Package Overview
Dependencies
11
Maintainers
1
Versions
358
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 10.1.3 to 10.2.0

2

package.json
{
"name": "@nestjs/common",
"version": "10.1.3",
"version": "10.2.0",
"description": "Nest - modern, fast, powerful node.js web framework (@common)",

@@ -5,0 +5,0 @@ "author": "Kamil Mysliwiec",

@@ -15,3 +15,3 @@ import { IFile } from './interfaces';

*/
abstract isValid(file?: TFile): boolean | Promise<boolean>;
abstract isValid(file?: TFile | TFile[] | Record<string, TFile[]>): boolean | Promise<boolean>;
/**

@@ -18,0 +18,0 @@ * Builds an error message in case the validation fails.

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

Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).

@@ -38,6 +38,6 @@ <p>Under the hood, Nest makes use of <a href="https://expressjs.com/" target="_blank">Express</a>, but also, provides compatibility with a wide range of other libraries, like e.g. <a href="https://github.com/fastify/fastify" target="_blank">Fastify</a>, allowing for easy use of the myriad third-party plugins which are available.</p>

* To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
* 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
* [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
* [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
- To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
- 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
- [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
- [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:

@@ -61,2 +61,3 @@ ## Questions

#### Principal Sponsors
<table style="text-align:center;"><tr>

@@ -66,2 +67,4 @@ <td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></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>
<td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr></table>

@@ -76,4 +79,3 @@

<td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td><td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td>
<td>

@@ -94,3 +96,4 @@ <a href="https://weld.app/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="140" valign="middle" /></a></td>

<table style="text-align:center;"><tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td></tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td>
<td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td></tr>
</table>

@@ -130,5 +133,5 @@

* Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
* Website - [https://nestjs.com](https://nestjs.com/)
* Twitter - [@nestframework](https://twitter.com/nestframework)
- Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)

@@ -135,0 +138,0 @@ ## License

@@ -52,2 +52,8 @@ import { LoggerService, LogLevel } from './logger.service';

/**
* Write a 'fatal' level log, if the configured level allows for it.
* Prints to `stdout` with newline.
*/
fatal(message: any, context?: string): void;
fatal(message: any, ...optionalParams: [...any, string?]): void;
/**
* Set log levels

@@ -54,0 +60,0 @@ * @param levels log levels

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

'verbose',
'fatal',
];

@@ -85,2 +86,12 @@ const dateTimeFormatter = new Intl.DateTimeFormat(undefined, {

}
fatal(message, ...optionalParams) {
if (!this.isLevelEnabled('fatal')) {
return;
}
const { messages, context } = this.getContextAndMessagesToPrint([
message,
...optionalParams,
]);
this.printMessages(messages, context, 'fatal');
}
/**

@@ -226,2 +237,4 @@ * Set log levels

return cli_colors_util_1.clc.cyanBright;
case 'fatal':
return cli_colors_util_1.clc.bold;
default:

@@ -228,0 +241,0 @@ return cli_colors_util_1.clc.green;

/**
* @publicApi
*/
export type LogLevel = 'log' | 'error' | 'warn' | 'debug' | 'verbose';
export type LogLevel = 'log' | 'error' | 'warn' | 'debug' | 'verbose' | 'fatal';
/**

@@ -30,2 +30,6 @@ * @publicApi

/**
* Write a 'fatal' level log.
*/
fatal?(message: any, ...optionalParams: any[]): any;
/**
* Set log levels.

@@ -92,2 +96,7 @@ * @param levels log levels

/**
* Write a 'fatal' level log.
*/
fatal(message: any, context?: string): void;
fatal(message: any, ...optionalParams: [...any, string?]): void;
/**
* Write an 'error' level log.

@@ -121,2 +130,7 @@ */

/**
* Write a 'fatal' level log.
*/
static fatal(message: any, context?: string): void;
static fatal(message: any, ...optionalParams: [...any, string?]): void;
/**
* Print buffered logs and detach buffer.

@@ -123,0 +137,0 @@ */

@@ -69,2 +69,8 @@ "use strict";

}
fatal(message, ...optionalParams) {
optionalParams = this.context
? optionalParams.concat(this.context)
: optionalParams;
this.localInstance?.fatal?.(message, ...optionalParams);
}
static error(message, ...optionalParams) {

@@ -85,2 +91,5 @@ this.staticInstanceRef?.error(message, ...optionalParams);

}
static fatal(message, ...optionalParams) {
this.staticInstanceRef?.fatal?.(message, ...optionalParams);
}
/**

@@ -193,2 +202,8 @@ * Print buffered logs and detach buffer.

tslib_1.__metadata("design:returntype", void 0)
], Logger.prototype, "fatal", null);
tslib_1.__decorate([
Logger_1.WrapBuffer,
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object, Object]),
tslib_1.__metadata("design:returntype", void 0)
], Logger, "error", null);

@@ -219,2 +234,8 @@ tslib_1.__decorate([

], Logger, "verbose", null);
tslib_1.__decorate([
Logger_1.WrapBuffer,
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object, Object]),
tslib_1.__metadata("design:returntype", void 0)
], Logger, "fatal", null);
exports.Logger = Logger = Logger_1 = tslib_1.__decorate([

@@ -221,0 +242,0 @@ (0, core_1.Injectable)(),

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

error: 4,
fatal: 5,
};

@@ -12,0 +13,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc