Skip to content

Commit

Permalink
fix: update dependencies with security vulnerabilities (#47)
Browse files Browse the repository at this point in the history
* Update dependencies on redux and react-redux to remove dependency in insecure version of lodash-es

* Update lerna and dependencies to remove dependency on insecure version of lodash.template

* Filter out redux internal actions for setting page title in tests
  • Loading branch information
hedgepigdaniel authored Jul 15, 2019
1 parent d0d0fa6 commit 3c18480
Show file tree
Hide file tree
Showing 25 changed files with 616 additions and 558 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@
"jest": "^24.8.0",
"jest-cli": "^24.8.0",
"jest-localstorage-mock": "^2.4.0",
"lerna": "^3.14.1",
"lerna": "^3.15.0",
"lint-staged": "^7.2.0",
"npm-publish-git": "git://github.com/hedgepigdaniel/npm-publish-git.git",
"prettier": "^1.14.2",
"prop-types": "^15.6.2",
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react-hot-loader": "^4.8.8",
"react-redux": "^7.0.3",
"react-redux": "^7.1.0",
"react-test-renderer": "^16.1.1",
"redux": "^3.6.0",
"redux": "^4.0.4",
"redux-thunk": "^2.2.0",
"rimraf": "^2.6.1",
"source-map-loader": "^0.2.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/boilerplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react-hot-loader": "^4.8.8",
"react-redux": "^7.0.3",
"react-redux": "^7.1.0",
"react-universal-component": "^3.0.3",
"redux": "^3.7.2",
"redux": "^4.0.4",
"redux-devtools-extension": "^2.13.5",
"serve-favicon": "^2.4.5",
"source-map-support": "^0.5.6",
Expand Down
8 changes: 6 additions & 2 deletions packages/integration-tests/__helpers__/createTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,14 @@ export const setupStore = (routesMap, initialPath, opts) => {
const middlewareFunc = options.middlewareFunc
delete options.middlewareFunc

const title = (state, action = {}) =>
action.payload !== undefined
const title = (state, action = {}) => {
if (action.type.indexOf('@@redux') === 0) {
return state || '<initial_title>'
}
return action.payload !== undefined
? `${action.type} - ${JSON.stringify(action.payload)}`
: action.type
}

const {
middleware,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down Expand Up @@ -200,7 +200,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Object {
"universal": false,
"url": "/missed",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down Expand Up @@ -291,7 +291,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down Expand Up @@ -572,7 +572,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down Expand Up @@ -268,7 +268,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down Expand Up @@ -464,7 +464,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down Expand Up @@ -333,7 +333,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down Expand Up @@ -1297,7 +1297,7 @@ Object {
"universal": false,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Object {
"universal": true,
"url": "/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Object {
"universal": false,
"url": "/",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Object {
"universal": false,
"url": "/bar/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down Expand Up @@ -426,7 +426,7 @@ Object {
"universal": false,
"url": "/foo/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down Expand Up @@ -770,7 +770,7 @@ Object {
"universal": false,
"url": "/foo/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down Expand Up @@ -1205,7 +1205,7 @@ Object {
"universal": false,
"url": "/foo/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down Expand Up @@ -1640,7 +1640,7 @@ Object {
"universal": false,
"url": "/foo/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down Expand Up @@ -1917,7 +1917,7 @@ Object {
"universal": false,
"url": "/bar/first",
},
"title": "@@redux/INIT",
"title": "<initial_title>",
}
`;

Expand Down
Loading

0 comments on commit 3c18480

Please sign in to comment.