@samitouri / QOS-React / commits / 53c7338420

Updated flow-bin to attempt to fix the error

Brian Vaughn committed Apr 23, 2019 at 09:00 UTC 53c73384201e3abfcc7aa7e3a2124228ecc5cdd4
4 files changed +9 -9
package.json
+1 -1
@@ -109,7 +109,7 @@
109 "fbjs": "0.5.1",
110 "fbjs-scripts": "0.7.0",
111 "firefox-profile": "^1.0.2",
112 - "flow-bin": "^0.96.0",
112 + "flow-bin": "^0.97.0",
113 "fs-extra": "^3.0.1",
114 "gh-pages": "^1.0.0",
115 "html2canvas": "^1.0.0-alpha.12",
src/devtools/cache.js
+2 -2
@@ -71,10 +71,10 @@ type Config = {
71 useLRU?: boolean,
72 };
73
74 -const entries: Map<Resource<any, any, any>, Map<any, any>> = new Map();
74 +const entries: Map<Resource<any, any, any>, Map<any, any> | LRU> = new Map();
75 const resourceConfigs: Map<Resource<any, any, any>, Config> = new Map();
76
77 -function getEntriesForResource(resource: any): Map<any, any> {
77 +function getEntriesForResource(resource: any): Map<any, any> | LRU {
78 let entriesForResource = ((entries.get(resource): any): Map<any, any>);
79 if (entriesForResource === undefined) {
80 const config = resourceConfigs.get(resource);
src/devtools/views/hooks.js
+1 -1
@@ -56,7 +56,7 @@ export function useLocalStorage<T>(
56 value => {
57 try {
58 const valueToStore =
59 - value instanceof Function ? value(storedValue) : value;
59 + value instanceof Function ? (value: any)(storedValue) : value;
60 setStoredValue(valueToStore);
61 window.localStorage.setItem(key, JSON.stringify(valueToStore));
62 } catch (error) {
yarn.lock
+5 -5
@@ -5126,10 +5126,10 @@ flatstr@^1.0.9:
5126 resolved "https://registry.yarnpkg.com/flatstr/-/flatstr-1.0.9.tgz#0950d56fec02de1030c1311847ecd58c25690eb9"
5127 integrity sha512-qFlJnOBWDfIaunF54/lBqNKmXOI0HqNhu+mHkLmbaBXlS71PUd9OjFOdyevHt/aHoHB1+eW7eKHgRKOG5aHSpw==
5128
5129 -flow-bin@^0.96.0:
5130 - version "0.96.0"
5131 - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.96.0.tgz#3b0379d97304dc1879ae6db627cd2d6819998661"
5132 - integrity sha512-OSxERs0EdhVxEVCst/HmlT/RcnXsQQIRqcfK9J9wC8/93JQj+xQz4RtlsmYe1PSRYaozuDLyPS5pIA81Zwzaww==
5129 +flow-bin@^0.97.0:
5130 + version "0.97.0"
5131 + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.97.0.tgz#036ffcfc27503367a9d906ec9d843a0aa6f6bb83"
5132 + integrity sha512-jXjD05gkatLuC4+e28frH1hZoRwr1iASP6oJr61Q64+kR4kmzaS+AdFBhYgoYS5kpoe4UzwDebWK8ETQFNh00w==
5133
5134 fluent-syntax@0.10.0:
5135 version "0.10.0"
@@ -9245,7 +9245,7 @@ react-window@^1.8.0:
9245 "@babel/runtime" "^7.0.0"
9246 memoize-one ">=3.1.1 <6"
9247
9248 -react0.0.0-4221565e1:
9248 +react@0.0.0-4221565e1:
9249 version "0.0.0-4221565e1"
9250 resolved "https://registry.yarnpkg.com/react/-/react-0.0.0-4221565e1.tgz#bc7f3e67f2c2c53693cda2e89e6fa71bfc89ebcd"
9251 integrity sha512-iVAljelOxza6S9QcFMkxJCcj2Y+QDiv6XwGz9A8c5jtKejGOEKK/Xumg7uTDmGwy8vjGVDI7qGDW8Rta80xH9g==