Skip to content

Commit

Permalink
upgrade lodash to 4.17.21 (#747)
Browse files Browse the repository at this point in the history
In order to solve the [security vulnerability](GHSA-35jh-r3h4-6jhm) lodash should be upgraded
I removed the import of lodash when it's not needed
  • Loading branch information
DanielEliraz authored Jun 20, 2021
1 parent 638a007 commit 28efc32
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/src/commands/Commands.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as _ from 'lodash';
import { mock, verify, instance, when, anyNumber } from 'ts-mockito';

import { Commands } from './Commands';
Expand Down
1 change: 0 additions & 1 deletion lib/src/commands/Commands.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as _ from 'lodash';
import { NativeCommandsSender, RequestPermissionsOptions } from '../adapters/NativeCommandsSender';
import { Notification } from '../DTO/Notification';
import { NotificationCategory } from '../interfaces/NotificationCategory';
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"react-native": ">=0.25.1"
},
"devDependencies": {
"lodash": "4.17.19",
"lodash": "4.17.21",
"hermes-engine": "0.4.2-rc1",
"react-autobind": "1.0.6",
"react": "16.11.0",
Expand All @@ -71,7 +71,7 @@
"@babel/plugin-proposal-export-default-from": "7.2.0",
"@babel/plugin-proposal-export-namespace-from": "7.2.0",
"@types/jest": "24.9.0",
"@types/lodash": "4.14.153"
"@types/lodash": "4.14.170"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
Expand Down

0 comments on commit 28efc32

Please sign in to comment.