Skip to content

Commit e7dd8e2

Browse files
committed
Fix security issues
1 parent 9b9a359 commit e7dd8e2

File tree

3 files changed

+23
-17
lines changed

3 files changed

+23
-17
lines changed

package-lock.json

Lines changed: 20 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nest-status-monitor",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Realtime Monitoring for Express-based Node applications",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -34,7 +34,7 @@
3434
"@nestjs/websockets": "^6.0.0",
3535
"axios": "^0.18.0",
3636
"debug": "^2.6.8",
37-
"handlebars": "~4.0.12",
37+
"handlebars": "4.5.1",
3838
"on-headers": "^1.0.1",
3939
"pidusage": "^1.1.6",
4040
"reflect-metadata": "^0.1.12",

src/status.monitor.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Get, Controller, HttpCode, Inject } from '@nestjs/common';
22
import * as fs from 'fs';
33
import * as path from 'path';
4-
import Handlebars from 'handlebars';
54
import { HealthCheckService } from './health.check.service';
65
import { PATH_METADATA } from '@nestjs/common/constants';
76
import { STATUS_MONITOR_OPTIONS_PROVIDER } from './status.monitor.constants';
87
import { StatusMonitorConfiguration } from './config/status.monitor.configuration';
8+
const Handlebars = require('handlebars');
99

1010
@Controller()
1111
export class StatusMonitorController {

0 commit comments

Comments
 (0)