Skip to content

Commit

Permalink
Merge pull request #792 from shaunek/remediate-lodash.set-vuln
Browse files Browse the repository at this point in the history
fix(): use full lodash instead of per-method pkgs
  • Loading branch information
kamilmysliwiec committed Jan 3, 2022
2 parents 51070a9 + f308a20 commit 9d56134
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 58 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Expand Up @@ -9,7 +9,6 @@ module.exports = {
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
],
root: true,
env: {
Expand Down
4 changes: 1 addition & 3 deletions lib/config.service.ts
@@ -1,8 +1,6 @@
import { Inject, Injectable, Optional } from '@nestjs/common';
import { isUndefined } from '@nestjs/common/utils/shared.utils';
import get from 'lodash.get';
import has from 'lodash.has';
import set from 'lodash.set';
import { get, has, set } from 'lodash';
import {
CONFIGURATION_TOKEN,
VALIDATED_ENV_PROPNAME,
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/merge-configs.util.ts
@@ -1,4 +1,4 @@
import set from 'lodash.set';
import { set } from 'lodash';

export function mergeConfigObject(
host: Record<string, any>,
Expand Down
51 changes: 4 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions package.json
Expand Up @@ -20,9 +20,7 @@
"dependencies": {
"dotenv": "10.0.0",
"dotenv-expand": "5.1.0",
"lodash.get": "4.4.2",
"lodash.has": "4.5.2",
"lodash.set": "4.3.2",
"lodash": "4.17.21",
"uuid": "8.3.2"
},
"devDependencies": {
Expand All @@ -33,9 +31,7 @@
"@nestjs/platform-express": "8.2.4",
"@nestjs/testing": "8.2.4",
"@types/jest": "27.4.0",
"@types/lodash.get": "4.4.6",
"@types/lodash.has": "4.5.6",
"@types/lodash.set": "4.3.6",
"@types/lodash": "4.14.178",
"@types/node": "16.11.17",
"@types/uuid": "8.3.3",
"@typescript-eslint/eslint-plugin": "5.8.1",
Expand Down

0 comments on commit 9d56134

Please sign in to comment.