Skip to content

Commit 28efc32

Browse files
authored
upgrade lodash to 4.17.21 (#747)
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
1 parent 638a007 commit 28efc32

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

lib/src/commands/Commands.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as _ from 'lodash';
21
import { mock, verify, instance, when, anyNumber } from 'ts-mockito';
32

43
import { Commands } from './Commands';

lib/src/commands/Commands.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as _ from 'lodash';
21
import { NativeCommandsSender, RequestPermissionsOptions } from '../adapters/NativeCommandsSender';
32
import { Notification } from '../DTO/Notification';
43
import { NotificationCategory } from '../interfaces/NotificationCategory';

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"react-native": ">=0.25.1"
5151
},
5252
"devDependencies": {
53-
"lodash": "4.17.19",
53+
"lodash": "4.17.21",
5454
"hermes-engine": "0.4.2-rc1",
5555
"react-autobind": "1.0.6",
5656
"react": "16.11.0",
@@ -71,7 +71,7 @@
7171
"@babel/plugin-proposal-export-default-from": "7.2.0",
7272
"@babel/plugin-proposal-export-namespace-from": "7.2.0",
7373
"@types/jest": "24.9.0",
74-
"@types/lodash": "4.14.153"
74+
"@types/lodash": "4.14.170"
7575
},
7676
"publishConfig": {
7777
"registry": "https://registry.npmjs.org/"

0 commit comments

Comments
 (0)