I hereby claim:
- I am redeemefy on github.
- I am redeemefy (https://keybase.io/redeemefy) on keybase.
- I have a public key ASDBKW7BeMJw5vUew5wNcWBBgytmt8bYnAsyxqwcLsvEzQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import { ValidationPipe } from '@nestjs/common'; | |
| import { NestFactory } from '@nestjs/core'; | |
| import { AppModule } from './app.module'; | |
| async function bootstrap() { | |
| const app = await NestFactory.create(AppModule); | |
| app.useGlobalPipes(new ValidationPipe({ // class-validator class-transformer for DTOs | |
| transform: true, // converts payload to DTO classes in the controller | |
| whitelist: true, // strip out props are not in DTOs |
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "Launch Program", |
| version: '3.7' | |
| services: | |
| main: | |
| container_name: main | |
| build: | |
| context: . | |
| target: development | |
| volumes: | |
| - .:/usr/src/app |
| const https = require("https") | |
| const http = require("http") | |
| const fetch = require("node-fetch") | |
| const ElasticSearchRestClient = { | |
| get: function(body, options = {}) { | |
| return new Promise((resolve, reject) => { | |
| const callback = function(response) { | |
| let str = "" |
| { | |
| "libs": [ | |
| "browser" | |
| ], | |
| "plugins": { | |
| "node": {}, | |
| "modules": {}, | |
| "requirejs": {}, | |
| "es_modules": {}, | |
| "jasmine": {} |
| // src/app/messaging.service.ts | |
| import { Injectable } from '@angular/core'; | |
| import { Subject } from 'rxjs'; | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) | |
| export class MessagingService { | |
| private subject = new Subject() |