@nestjs/core
Advanced tools
Comparing version 4.5.0 to 4.5.1
@@ -0,1 +1,3 @@ | ||
/// <reference types="node" /> | ||
import * as http from 'http'; | ||
import { CanActivate, ExceptionFilter, NestInterceptor, PipeTransform, WebSocketAdapter } from '@nestjs/common'; | ||
@@ -26,2 +28,3 @@ import { INestApplication, INestMicroservice } from '@nestjs/common'; | ||
getMicroservices(): INestMicroservice[]; | ||
getHttpServer(): http.Server; | ||
startAllMicroservices(callback?: () => void): void; | ||
@@ -28,0 +31,0 @@ startAllMicroservicesAsync(): Promise<void>; |
@@ -107,2 +107,5 @@ "use strict"; | ||
} | ||
getHttpServer() { | ||
return this.httpServer; | ||
} | ||
startAllMicroservices(callback) { | ||
@@ -109,0 +112,0 @@ Promise.all(this.microservices.map(this.listenToPromise)).then(() => callback && callback()); |
{ | ||
"name": "@nestjs/core", | ||
"version": "4.5.0", | ||
"version": "4.5.1", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@core)", | ||
@@ -5,0 +5,0 @@ "author": "Kamil Mysliwiec", |
@@ -10,3 +10,3 @@ <p align="center"> | ||
<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable web applications. :cat: </p> | ||
<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable web applications, heavily inspired by <a href="https://angular.io" target="blank">Angular</a>.</p> | ||
<p align="center"> | ||
@@ -18,3 +18,3 @@ <a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a> | ||
<a href="https://travis-ci.org/nestjs/nest"><img src="https://img.shields.io/travis/nestjs/nest/master.svg?label=linux" alt="Linux" /></a> | ||
<a href="https://coveralls.io/github/nestjs/nest?branch=master"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#2" alt="Coverage" /></a> | ||
<a href="https://coveralls.io/github/nestjs/nest?branch=master"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#4" alt="Coverage" /></a> | ||
<a href="https://gitter.im/nestjs/nestjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge"><img src="https://badges.gitter.im/nestjs/nestjs.svg" alt="Gitter" /></a> | ||
@@ -29,3 +29,3 @@ <a href="https://opencollective.com/nest#backer"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a> | ||
<p>Nest is a framework for building efficient, scalable <a href="http://nodejs.org" target="_blank">Node.js</a> web applications. It uses modern JavaScript, is built with <a href="http://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Progamming), FP (Functional Programming), and FRP (Functional Reactive Programming).</p> | ||
<p>Nest is a framework for building efficient, scalable <a href="http://nodejs.org" target="_blank">Node.js</a> web applications. It uses modern JavaScript, is built with <a href="http://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).</p> | ||
<p>Under the hood, Nest makes use of <a href="https://expressjs.com/" target="_blank">Express</a>, allowing for easy use of the myriad third-party plugins which are available.</p> | ||
@@ -38,54 +38,14 @@ | ||
## Features | ||
## Getting started | ||
<ul> | ||
<li>Built with <a href="http://www.typescriptlang.org" target="_blank">TypeScript</a> (compatible with pure JavaScript + <a href="http://babeljs.io/" target="_blank">Babel</a>)</li> | ||
<li><strong>Easy</strong> to learn - syntax similar to <a href="https://angular.io/" target="_blank">Angular</a></li> | ||
<li><strong>Familiar</strong> - based on well-known libraries (<a href="https://github.com/expressjs/express" target="_blank">Express</a> / <a href="https://github.com/socketio/socket.io" target="_blank">socket.io</a>)</li> | ||
<li><strong>Dependency Injection</strong> - built-in asynchronous <strong>IoC</strong> container with a <strong>hierarchical injector</strong></li> | ||
<li><strong>WebSockets</strong> module (based on <a href="https://github.com/socketio/socket.io" target="_blank">socket.io</a>, but you can bring your own library, by making use of <code>WsAdapter</code>)</li> | ||
<li><strong>Modular</strong> - defines an easy to follow module definition pattern so you can split your system into reusable modules</li> | ||
<li><strong>Reactive microservice</strong> support with message patterns (built-in transport via TCP / <a href="https://redis.io/" target="_blank">Redis</a>, but other communication schemes can be implemented with <code>CustomTransportStrategy</code>)</li> | ||
<li><strong>Exception layer</strong> - throwable web exceptions with status codes, exception filters</li> | ||
<li><strong>Pipes</strong> - synchronous & asynchronous (e.g. validation purposes)</li> | ||
<li><strong>Guards</strong> - attach additional logic in a declarative manner (e.g. role-based access control)</li> | ||
<li><strong>Interceptors</strong> - built on top of <a href="https://github.com/reactivex/rxjs" target="blank">RxJS</a></li> | ||
<li>Testing utilities (both <strong>e2e & unit</strong> tests)</li> | ||
</ul> | ||
To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books: | ||
## Installation | ||
## Sponsors | ||
**Install the TypeScript Starter Project with Git:** | ||
```bash | ||
$ git clone https://github.com/nestjs/typescript-starter.git project | ||
$ cd project | ||
$ npm install | ||
$ npm run start | ||
``` | ||
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://opencollective.com/nest). Thanks! :heart_eyes: | ||
**Install the JavaScript (Babel) Starter Project with Git:** | ||
```bash | ||
$ git clone https://github.com/nestjs/javascript-starter.git project | ||
$ cd project | ||
$ npm install | ||
$ npm run start | ||
``` | ||
**Start a New Project from Scratch with NPM:** | ||
```bash | ||
$ npm i --save @nestjs/core @nestjs/common @nestjs/microservices @nestjs/websockets @nestjs/testing reflect-metadata rxjs | ||
``` | ||
## Documentation & Quick Start | ||
:books: [Documentation & Tutorial](https://docs.nestjs.com) | ||
## Sponsors | ||
<a href="https://valor-software.com/"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="210" /></a> | ||
## Backers | ||
## Backers | ||
I am on a mission to provide an architecture to create truly flexible, scalable and loosely coupled systems using the Node.js platform. It takes a lot of time, so if you want to support me, please [become a backer / sponsor]((https://opencollective.com/nest#backer)). I appreciate your help. Thanks! :heart_eyes: | ||
<a href="https://opencollective.com/nest/backer/0/website" target="_blank"><img src="https://opencollective.com/nest/backer/0/avatar.svg"></a> | ||
@@ -129,2 +89,2 @@ <a href="https://opencollective.com/nest/backer/1/website" target="_blank"><img src="https://opencollective.com/nest/backer/1/avatar.svg"></a> | ||
[MIT](LICENSE) | ||
Nest is [MIT licensed](LICENSE). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3524
172092
86