Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
cainaleaouk committed Jul 5, 2018
2 parents cc4a901 + 8461ae1 commit 2616eee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 8 additions & 4 deletions package.json
Expand Up @@ -55,13 +55,17 @@
"react-dom": "^16.0.0 || ^15.5.4"
},
"scripts": {
"build": "webpack --config webpack/webpack.config.js -p --display-error-details --progress --optimize-minimize",
"build":
"webpack --config webpack/webpack.config.js -p --display-error-details --progress --optimize-minimize",
"prebuild": "npm run test:unit",
"build:demo": "webpack --config webpack/webpack.config-demo.js -p --display-error-details --progress --optimize-minimize",
"dev": "webpack-dev-server --config webpack/webpack.config-dev.js --open",
"build:demo":
"webpack --config webpack/webpack.config-demo.js -p --display-error-details --progress --optimize-minimize",
"dev":
"webpack-dev-server --config webpack/webpack.config-dev.js --open",
"modules:debug": "./docker/debug.sh",
"modules:tree": "webpack --config webpack/webpack.config.js --json ",
"modules:size-analyzer": "webpack --config webpack/webpack.config.js --json | webpack-bundle-size-analyzer",
"modules:size-analyzer":
"webpack --config webpack/webpack.config.js --json | webpack-bundle-size-analyzer",
"test": "npm run test:unit && npm run test:coverage",
"test:unit": "nyc mocha test/**/*-test.js",
"test:coverage": "nyc report --reporter=text-lcov | coveralls",
Expand Down
2 changes: 2 additions & 0 deletions src/js/index.js
Expand Up @@ -25,6 +25,7 @@ class ReactJsonView extends React.PureComponent {
src: ReactJsonView.defaultProps.src,
name: ReactJsonView.defaultProps.name,
theme: ReactJsonView.defaultProps.theme,
validationMessage: ReactJsonView.defaultProps.validationMessage,
// the state object also needs to remember the prev prop values, because we need to compare
// old and new props in getDerivedStateFromProps().
prevSrc: ReactJsonView.defaultProps.src,
Expand Down Expand Up @@ -71,6 +72,7 @@ class ReactJsonView extends React.PureComponent {
src: nextProps.src,
name: nextProps.name,
theme: nextProps.theme,
validationMessage: nextProps.validationMessage,
prevSrc: nextProps.src,
prevName: nextProps.name,
prevTheme: nextProps.theme
Expand Down

0 comments on commit 2616eee

Please sign in to comment.