Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
fix(vulnerability/lerna): update to fix security vulnerability (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
JAdshead authored Feb 27, 2020
1 parent c1decb4 commit 570a0b8
Show file tree
Hide file tree
Showing 37 changed files with 8,720 additions and 15,758 deletions.
9 changes: 7 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"lerna": "2.9.0",
"version": "1.0.0",
"packages": [
"packages/*"
]
],
"command": {
"version": {
"conventionalCommits": true,
"allowBranch": "master"
}
}
}
14 changes: 14 additions & 0 deletions lockFileLint.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
/*
* Copyright 2019 American Express Travel Related Services Company, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,either express
* or implied. See the License for the specific language governing permissions and limitations
* under the License.
*/

const { spawnSync } = require('child_process');
const path = require('path');
const fs = require('fs');
Expand Down
7,935 changes: 5,981 additions & 1,954 deletions package-lock.json

Large diffs are not rendered by default.

33 changes: 18 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,25 @@
"posttest": "npm run lint && npm run test:git-history && npm run test:lockfile"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/polyfill": "^7.2.5",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"amex-jest-preset-react": "^5.0.1",
"enzyme": "^3.9.0",
"@babel/cli": "^7.8.3",
"@babel/core": "^7.8.3",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"amex-jest-preset-react": "^5.0.2",
"babel-preset-amex": "^2.1.0",
"core-js": "^3.6.4",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.2.2",
"eslint": "^4.12.1",
"eslint-config-amex": "^7.1.0",
"husky": "^3.0.9",
"jest": "^24.1.0",
"lerna": "^2.9.0",
"lockfile-lint": "^3.0.8",
"react": "^16.11.0",
"react-dom": "^16.11.0",
"react-test-renderer": "^16.11.0"
"eslint": "^6.8.0",
"eslint-config-amex": "^11.2.0",
"husky": "^4.0.10",
"jest": "^24.9.0",
"lerna": "^3.20.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-test-renderer": "^16.12.0",
"regenerator-runtime": "^0.13.3",
"lockfile-lint": "^3.0.8"
},
"license": "Apache-2.0",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
* under the License.
*/

export default () => 'Hello, world';
const helloWorld = () => 'Hello, world';
export default helloWorld;

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

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jest.mock('holocron', () => ({
}],
},
'store-hook-module': {
onEnterRouteHook: store => (nextState, replace) => {
onEnterRouteHook: (store) => (nextState, replace) => {
store.dispatch({ type: 'NEXT_STATE', nextState });
replace('/test-store-hook');
},
Expand Down Expand Up @@ -87,7 +87,7 @@ describe('ModuleRouteUtils', () => {

it('should pass the store to a function that creates routes', () => {
const getState = () => 'Hello world';
const createRoutes = store => ({ props: { state: store.getState() } });
const createRoutes = (store) => ({ props: { state: store.getState() } });
const newProps = { store: { getState } };
expect(passChildrenProps(createRoutes, newProps)).toMatchSnapshot();
});
Expand Down
Loading

0 comments on commit 570a0b8

Please # to comment.