Merge pull request #385 from GoogleChromeLabs/renovate/typescript-3.x

Update dependency typescript to v3.2.2
This commit is contained in:
Surma
2018-12-17 12:42:47 +00:00
committed by GitHub
5 changed files with 13 additions and 11 deletions

6
package-lock.json generated
View File

@@ -14582,9 +14582,9 @@
"dev": true "dev": true
}, },
"typescript": { "typescript": {
"version": "3.1.6", "version": "3.2.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.1.6.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.2.2.tgz",
"integrity": "sha512-tDMYfVtvpb96msS1lDX9MEdHrW4yOuZ4Kdc4Him9oU796XldPYF/t2+uKoX0BBa0hXXwDlqYQbXY5Rzjzc5hBA==", "integrity": "sha512-VCj5UiSyHBjwfYacmDuc/NOk4QQixbE+Wn7MFJuS0nRuPQbof132Pw4u53dm264O8LPc2MVsc7RJNml5szurkg==",
"dev": true "dev": true
}, },
"uglify-js": { "uglify-js": {

View File

@@ -58,7 +58,7 @@
"tslint-config-semistandard": "7.0.0", "tslint-config-semistandard": "7.0.0",
"tslint-react": "3.6.0", "tslint-react": "3.6.0",
"typed-css-modules": "0.3.7", "typed-css-modules": "0.3.7",
"typescript": "3.1.6", "typescript": "3.2.2",
"url-loader": "1.1.2", "url-loader": "1.1.2",
"webpack": "4.27.1", "webpack": "4.27.1",
"webpack-bundle-analyzer": "3.0.3", "webpack-bundle-analyzer": "3.0.3",

View File

@@ -56,8 +56,8 @@ export default class App extends Component<Props, State> {
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
this.setState(window.STATE); this.setState(window.STATE);
const oldCDU = this.componentDidUpdate; const oldCDU = this.componentDidUpdate;
this.componentDidUpdate = (props, state) => { this.componentDidUpdate = (props, state, prev) => {
if (oldCDU) oldCDU.call(this, props, state); if (oldCDU) oldCDU.call(this, props, state, prev);
window.STATE = this.state; window.STATE = this.state;
}; };
} }

View File

@@ -40,7 +40,9 @@ import Checkbox from '../checkbox';
import Expander from '../expander'; import Expander from '../expander';
import Select from '../select'; import Select from '../select';
const encoderOptionsComponentMap = { const encoderOptionsComponentMap: {
[x: string]: (new (...args: any[]) => Component<any, any>) | undefined;
} = {
[identity.type]: undefined, [identity.type]: undefined,
[optiPNG.type]: OptiPNGEncoderOptions, [optiPNG.type]: OptiPNGEncoderOptions,
[mozJPEG.type]: MozJpegEncoderOptions, [mozJPEG.type]: MozJpegEncoderOptions,

View File

@@ -576,9 +576,9 @@ export default class Compress extends Component<Props, State> {
mobileView={mobileView} mobileView={mobileView}
preprocessorState={side.latestSettings.preprocessorState} preprocessorState={side.latestSettings.preprocessorState}
encoderState={side.latestSettings.encoderState} encoderState={side.latestSettings.encoderState}
onEncoderTypeChange={this.onEncoderTypeChange.bind(this, index)} onEncoderTypeChange={this.onEncoderTypeChange.bind(this, index as 0|1)}
onEncoderOptionsChange={this.onEncoderOptionsChange.bind(this, index)} onEncoderOptionsChange={this.onEncoderOptionsChange.bind(this, index as 0|1)}
onPreprocessorOptionsChange={this.onPreprocessorOptionsChange.bind(this, index)} onPreprocessorOptionsChange={this.onPreprocessorOptionsChange.bind(this, index as 0|1)}
/> />
)); ));
@@ -592,7 +592,7 @@ export default class Compress extends Component<Props, State> {
source={source} source={source}
loading={loading || side.loading} loading={loading || side.loading}
copyDirection={copyDirections[index]} copyDirection={copyDirections[index]}
onCopyToOtherClick={this.onCopyToOtherClick.bind(this, index)} onCopyToOtherClick={this.onCopyToOtherClick.bind(this, index as 0|1)}
buttonPosition={mobileView ? 'stack-right' : buttonPositions[index]} buttonPosition={mobileView ? 'stack-right' : buttonPositions[index]}
> >
{!mobileView ? null : [ {!mobileView ? null : [