mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-11 21:24:35 +00:00
deps: upgrade flow-bin@^0.86.0
(#1002)
Summary: There have been some breaking changes that require new type annotations, which is a good thing: these prevent `any`-leakage. Test Plan: Run `yarn flow`. wchargin-branch: flow-v0.86.0
This commit is contained in:
parent
0a6eca7d79
commit
332e776317
@ -56,7 +56,7 @@ const repoRegistry = loadRepoRegistry();
|
|||||||
// Get environment variables to inject into our app.
|
// Get environment variables to inject into our app.
|
||||||
const env = getClientEnvironment(repoRegistry);
|
const env = getClientEnvironment(repoRegistry);
|
||||||
|
|
||||||
function makeConfig(mode /*: "production" | "development" */) {
|
function makeConfig(mode /*: "production" | "development" */) /*: mixed */ {
|
||||||
return {
|
return {
|
||||||
// Don't attempt to continue if there are any errors.
|
// Don't attempt to continue if there are any errors.
|
||||||
bail: true,
|
bail: true,
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
"eslint-plugin-jsx-a11y": "5.1.1",
|
"eslint-plugin-jsx-a11y": "5.1.1",
|
||||||
"eslint-plugin-react": "7.4.0",
|
"eslint-plugin-react": "7.4.0",
|
||||||
"file-loader": "1.1.5",
|
"file-loader": "1.1.5",
|
||||||
"flow-bin": "^0.80.0",
|
"flow-bin": "^0.86.0",
|
||||||
"jest": "^23.6.0",
|
"jest": "^23.6.0",
|
||||||
"jest-fetch-mock": "^1.6.5",
|
"jest-fetch-mock": "^1.6.5",
|
||||||
"prettier": "^1.13.4",
|
"prettier": "^1.13.4",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import React from "react";
|
import React, {type Node as ReactNode} from "react";
|
||||||
import deepEqual from "lodash.isequal";
|
import deepEqual from "lodash.isequal";
|
||||||
import * as MapUtil from "../../util/map";
|
import * as MapUtil from "../../util/map";
|
||||||
import {NodeTypeConfig} from "./NodeTypeConfig";
|
import {NodeTypeConfig} from "./NodeTypeConfig";
|
||||||
@ -24,7 +24,7 @@ export class PluginWeightConfig extends React.Component<Props> {
|
|||||||
super(props);
|
super(props);
|
||||||
}
|
}
|
||||||
|
|
||||||
_renderNodeWeightControls() {
|
_renderNodeWeightControls(): ReactNode {
|
||||||
return Array.from(this.props.weightedTypes.nodes.values()).map(
|
return Array.from(this.props.weightedTypes.nodes.values()).map(
|
||||||
(wnt: WeightedNodeType) => {
|
(wnt: WeightedNodeType) => {
|
||||||
const onChange = (newType: WeightedNodeType) => {
|
const onChange = (newType: WeightedNodeType) => {
|
||||||
@ -44,7 +44,7 @@ export class PluginWeightConfig extends React.Component<Props> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
_renderEdgeWeightControls() {
|
_renderEdgeWeightControls(): ReactNode {
|
||||||
return Array.from(this.props.weightedTypes.edges.values()).map(
|
return Array.from(this.props.weightedTypes.edges.values()).map(
|
||||||
(wnt: WeightedEdgeType) => {
|
(wnt: WeightedEdgeType) => {
|
||||||
const onChange = (newType: WeightedEdgeType) => {
|
const onChange = (newType: WeightedEdgeType) => {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import React from "react";
|
import React, {type Node as ReactNode} from "react";
|
||||||
import * as NullUtil from "../../util/null";
|
import * as NullUtil from "../../util/null";
|
||||||
import * as MapUtil from "../../util/map";
|
import * as MapUtil from "../../util/map";
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ export class WeightConfig extends React.Component<Props> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
_renderPluginWeightConfigs() {
|
_renderPluginWeightConfigs(): ReactNode {
|
||||||
return this.props.adapters
|
return this.props.adapters
|
||||||
.adapters()
|
.adapters()
|
||||||
.filter((x) => x.declaration().name !== FALLBACK_NAME)
|
.filter((x) => x.declaration().name !== FALLBACK_NAME)
|
||||||
|
@ -3440,10 +3440,10 @@ flatten@^1.0.2:
|
|||||||
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782"
|
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782"
|
||||||
integrity sha1-2uRqnXj74lKSJYzB54CkHZXAN4I=
|
integrity sha1-2uRqnXj74lKSJYzB54CkHZXAN4I=
|
||||||
|
|
||||||
flow-bin@^0.80.0:
|
flow-bin@^0.86.0:
|
||||||
version "0.80.0"
|
version "0.86.0"
|
||||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.80.0.tgz#04cc1ee626a6f50786f78170c92ebe1745235403"
|
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.86.0.tgz#153a28722b4dc13b7200c74b644dd4d9f4969a11"
|
||||||
integrity sha512-0wRnqvXErQRPrx6GBLB5swgndfWkotd9MgfePgT7Z+VsE046c8Apzl7KKTCypB/pzn0pZF2g5Jurxxb2umET8g==
|
integrity sha512-ulRvFH3ewGIYwg+qPk/OJXoe3Nhqi0RyR0wqgK0b1NzUDEC6O99zU39MBTickXvlrr6iwRO6Wm4lVGeDmnzbew==
|
||||||
|
|
||||||
flush-write-stream@^1.0.0:
|
flush-write-stream@^1.0.0:
|
||||||
version "1.0.3"
|
version "1.0.3"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user