mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Updated flow-bin to attempt to fix the error
This commit is contained in:
+1
-1
@@ -109,7 +109,7 @@
|
||||
"fbjs": "0.5.1",
|
||||
"fbjs-scripts": "0.7.0",
|
||||
"firefox-profile": "^1.0.2",
|
||||
"flow-bin": "^0.96.0",
|
||||
"flow-bin": "^0.97.0",
|
||||
"fs-extra": "^3.0.1",
|
||||
"gh-pages": "^1.0.0",
|
||||
"html2canvas": "^1.0.0-alpha.12",
|
||||
|
||||
@@ -71,10 +71,10 @@ type Config = {
|
||||
useLRU?: boolean,
|
||||
};
|
||||
|
||||
const entries: Map<Resource<any, any, any>, Map<any, any>> = new Map();
|
||||
const entries: Map<Resource<any, any, any>, Map<any, any> | LRU> = new Map();
|
||||
const resourceConfigs: Map<Resource<any, any, any>, Config> = new Map();
|
||||
|
||||
function getEntriesForResource(resource: any): Map<any, any> {
|
||||
function getEntriesForResource(resource: any): Map<any, any> | LRU {
|
||||
let entriesForResource = ((entries.get(resource): any): Map<any, any>);
|
||||
if (entriesForResource === undefined) {
|
||||
const config = resourceConfigs.get(resource);
|
||||
|
||||
@@ -56,7 +56,7 @@ export function useLocalStorage<T>(
|
||||
value => {
|
||||
try {
|
||||
const valueToStore =
|
||||
value instanceof Function ? value(storedValue) : value;
|
||||
value instanceof Function ? (value: any)(storedValue) : value;
|
||||
setStoredValue(valueToStore);
|
||||
window.localStorage.setItem(key, JSON.stringify(valueToStore));
|
||||
} catch (error) {
|
||||
|
||||
@@ -5126,10 +5126,10 @@ flatstr@^1.0.9:
|
||||
resolved "https://registry.yarnpkg.com/flatstr/-/flatstr-1.0.9.tgz#0950d56fec02de1030c1311847ecd58c25690eb9"
|
||||
integrity sha512-qFlJnOBWDfIaunF54/lBqNKmXOI0HqNhu+mHkLmbaBXlS71PUd9OjFOdyevHt/aHoHB1+eW7eKHgRKOG5aHSpw==
|
||||
|
||||
flow-bin@^0.96.0:
|
||||
version "0.96.0"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.96.0.tgz#3b0379d97304dc1879ae6db627cd2d6819998661"
|
||||
integrity sha512-OSxERs0EdhVxEVCst/HmlT/RcnXsQQIRqcfK9J9wC8/93JQj+xQz4RtlsmYe1PSRYaozuDLyPS5pIA81Zwzaww==
|
||||
flow-bin@^0.97.0:
|
||||
version "0.97.0"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.97.0.tgz#036ffcfc27503367a9d906ec9d843a0aa6f6bb83"
|
||||
integrity sha512-jXjD05gkatLuC4+e28frH1hZoRwr1iASP6oJr61Q64+kR4kmzaS+AdFBhYgoYS5kpoe4UzwDebWK8ETQFNh00w==
|
||||
|
||||
fluent-syntax@0.10.0:
|
||||
version "0.10.0"
|
||||
@@ -9245,7 +9245,7 @@ react-window@^1.8.0:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
memoize-one ">=3.1.1 <6"
|
||||
|
||||
react0.0.0-4221565e1:
|
||||
react@0.0.0-4221565e1:
|
||||
version "0.0.0-4221565e1"
|
||||
resolved "https://registry.yarnpkg.com/react/-/react-0.0.0-4221565e1.tgz#bc7f3e67f2c2c53693cda2e89e6fa71bfc89ebcd"
|
||||
integrity sha512-iVAljelOxza6S9QcFMkxJCcj2Y+QDiv6XwGz9A8c5jtKejGOEKK/Xumg7uTDmGwy8vjGVDI7qGDW8Rta80xH9g==
|
||||
|
||||
Reference in New Issue
Block a user