Skip to content

Commit b0f52b9

Browse files
authored
chore: Fixed Vulnerabilities in dependencies (#77)
Summary: There were 23 security vulnerabilities in the dependencies. I brought them down to 3 medium risk ones. It appears to be difficult to bring it down to zero without forcing resolutions. I recommend to merge this PR first and then try fixing the remaining 3 later.
1 parent a1eee23 commit b0f52b9

File tree

3 files changed

+2457
-2279
lines changed

3 files changed

+2457
-2279
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@types/enzyme": "^3.1.15",
4242
"@types/enzyme-adapter-react-16": "^1.0.3",
4343
"@types/hoist-non-react-statics": "^3.3.1",
44-
"@types/jest": "^23.3.12",
44+
"@types/jest": "^26.0.14",
4545
"@types/prop-types": "^15.5.6",
4646
"@types/react": "^16.7.18",
4747
"@types/react-dom": "^16.9.5",
@@ -54,7 +54,7 @@
5454
"eslint-plugin-prettier": "^3.1.2",
5555
"eslint-plugin-react": "^7.19.0",
5656
"eslint-plugin-react-hooks": "^4.1.0",
57-
"jest": "^23.6.0",
57+
"jest": "^26.5.2",
5858
"prettier": "1.19.1",
5959
"react": "^16.8.0",
6060
"react-dom": "^16.8.0",
@@ -63,8 +63,8 @@
6363
"rollup-plugin-node-resolve": "^4.0.0",
6464
"rollup-plugin-replace": "^2.1.0",
6565
"rollup-plugin-typescript2": "^0.18.1",
66-
"rollup-plugin-uglify": "^6.0.1",
67-
"ts-jest": "^23.10.5",
66+
"rollup-plugin-uglify": "^6.0.4",
67+
"ts-jest": "^26.4.1",
6868
"tslib": "^1.9.3",
6969
"typescript": "3.5.1"
7070
}

src/client.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('ReactSDKClient', () => {
8181
it('provides access to the underlying client', () => {
8282
const instance = createInstance(config);
8383
expect(createInstanceSpy).toBeCalledTimes(1);
84-
expect(createInstanceSpy.mock.results[0].isThrow).toBe(false);
84+
expect(createInstanceSpy.mock.results[0].type).toBe('return');
8585
expect(createInstanceSpy.mock.results[0].value).toBe(instance.client);
8686
});
8787

0 commit comments

Comments
 (0)