dep updates

pull/1130/head
gabrielburnworth 2019-03-11 19:20:58 -07:00
parent 21cfc7d4bf
commit 4017f087b9
2 changed files with 16 additions and 14 deletions

View File

@ -36,10 +36,12 @@ function initLocalStorage() {
return {};
}
function getAllIconsFromCache(): Dictionary<OFIcon | undefined> {
type IconDictionary = Dictionary<OFIcon | undefined>;
function getAllIconsFromCache(): IconDictionary {
try {
const dictionary = JSON.parse(localStorage.getItem(STORAGE_KEY) || "");
return isObject(dictionary) ? dictionary : initLocalStorage();
return isObject(dictionary) ? dictionary as IconDictionary : initLocalStorage();
} catch (error) {
return initLocalStorage();
}

View File

@ -24,20 +24,20 @@
"license": "MIT",
"dependencies": {
"@blueprintjs/core": "3.14.1",
"@blueprintjs/datetime": "3.7.1",
"@blueprintjs/datetime": "3.7.2",
"@blueprintjs/select": "3.7.0",
"@types/enzyme": "3.9.0",
"@types/i18next": "12.1.0",
"@types/jest": "24.0.9",
"@types/lodash": "4.14.122",
"@types/jest": "24.0.11",
"@types/lodash": "4.14.123",
"@types/markdown-it": "0.0.7",
"@types/moxios": "0.4.8",
"@types/node": "11.10.4",
"@types/node": "11.11.1",
"@types/promise-timeout": "1.3.0",
"@types/react": "16.8.6",
"@types/react": "16.8.7",
"@types/react-color": "2.14.1",
"@types/react-dom": "16.8.2",
"@types/react-redux": "7.0.1",
"@types/react-redux": "7.0.3",
"axios": "0.18.0",
"boxed_value": "1.0.0",
"browser-speech": "1.1.1",
@ -47,23 +47,23 @@
"farmbot": "7.0.0-rc10",
"farmbot-toastr": "1.0.3",
"i18next": "12.1.0",
"jest": "24.1.0",
"jest-cli": "24.1.0",
"jest": "24.4.0",
"jest-cli": "24.4.0",
"lodash": "4.17.11",
"markdown-it": "8.4.2",
"markdown-it-emoji": "1.4.0",
"moment": "2.24.0",
"moxios": "0.4.0",
"parcel-bundler": "1.11.0",
"parcel-bundler": "1.12.0",
"promise-timeout": "1.3.0",
"raf": "3.4.1",
"react": "16.8.3",
"react": "16.8.4",
"react-addons-test-utils": "15.6.2",
"react-color": "2.17.0",
"react-dom": "16.8.3",
"react-dom": "16.8.4",
"react-joyride": "2.0.5",
"react-redux": "6.0.1",
"react-test-renderer": "16.8.3",
"react-test-renderer": "16.8.4",
"react-transition-group": "2.6.0",
"redux": "4.0.1",
"redux-immutable-state-invariant": "2.1.0",