Skip to content

Commit

Permalink
update most of the dependencies to the latest version (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simek committed Jul 3, 2022
1 parent 7061255 commit 71e6d86
Show file tree
Hide file tree
Showing 7 changed files with 2,459 additions and 1,778 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
@@ -1,3 +1,6 @@
module.exports = {
extends: ['universe/native', 'universe/node', 'universe/web'],
rules: {
'import/namespace': 'off',
},
};
4 changes: 2 additions & 2 deletions context/CustomAppearanceProvider.tsx
Expand Up @@ -19,7 +19,7 @@ const CustomAppearanceProvider = ({ children }) => {
try {
const { isDark } = await rehydrateAppearanceState();
setIsDark(isDark);
} catch (ignored) {}
} catch {}
setLoaded(true);
};

Expand Down Expand Up @@ -60,7 +60,7 @@ async function rehydrateAppearanceState() {
try {
const item = await AsyncStorage.getItem(appearanceStorageKey);
return JSON.parse(item);
} catch (ignored) {
} catch {
return defaultState;
}
}
Expand Down
49 changes: 25 additions & 24 deletions package.json
Expand Up @@ -21,52 +21,53 @@
"@expo/match-media": "^0.3.0",
"@jlengstorf/get-share-image": "^0.8.0",
"@popperjs/core": "^2.11.5",
"@react-native-async-storage/async-storage": "^1.17.3",
"@react-native-picker/picker": "^2.4.1",
"@react-native-async-storage/async-storage": "^1.17.7",
"@react-native-picker/picker": "^2.4.2",
"@sentry/react": "^6.19.7",
"@sentry/tracing": "^6.19.7",
"cross-fetch": "^3.1.5",
"expo": "^44.0.6",
"expo-font": "^10.0.5",
"expo": "^45.0.6",
"expo-font": "^10.1.0",
"isomorphic-fetch": "^3.0.0",
"jsonfile": "^6.1.0",
"lodash": "^4.17.21",
"next": "^12.1.5",
"next": "^12.2.0",
"node-emoji": "^1.11.0",
"react": "17.0.2",
"react-content-loader": "^6.2.0",
"react-dom": "17.0.2",
"react-easy-linkify": "^1.0.8",
"react-native": "0.66.4",
"react-native-safe-area-context": "^4.2.5",
"react-native": "0.68.2",
"react-native-safe-area-context": "^4.3.1",
"react-native-svg": "^12.3.0",
"react-native-web": "^0.17.7",
"react-native-web-hooks": "^3.0.2",
"react-popper": "^2.3.0",
"use-debounce": "^7.0.1"
"use-debounce": "^8.0.1"
},
"devDependencies": {
"@babel/core": "^7.17.8",
"@babel/node": "^7.16.8",
"@babel/preset-env": "^7.16.11",
"@expo/next-adapter": "^4.0.4",
"@types/react": "^17.0.43",
"@types/react-native": "0.66.17",
"@babel/core": "^7.18.6",
"@babel/node": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@expo/next-adapter": "^4.0.7",
"@types/react": "^17.0.47",
"@types/react-native": "0.68.1",
"ajv-cli": "^4.2.0",
"babel-preset-expo": "^9.0.2",
"browserslist": "^4.20.2",
"cheerio": "^1.0.0-rc.10",
"dotenv": "^16.0.0",
"eslint": "^8.14.0",
"eslint-config-universe": "^10.0.0",
"babel-preset-expo": "^9.1.0",
"browserslist": "^4.21.1",
"cheerio": "^1.0.0-rc.12",
"dotenv": "^16.0.1",
"eslint": "^8.19.0",
"eslint-config-universe": "^11.0.0",
"lint-staged": "^11.2.6",
"next-compose-plugins": "^2.2.1",
"next-fonts": "^1.5.1",
"next-images": "^1.8.4",
"next-transpile-modules": "^9.0.0",
"prettier": "^2.6.2",
"simple-git-hooks": "^2.7.0",
"typescript": "^4.6.4",
"webpack": "^5.72.0",
"prettier": "^2.7.1",
"simple-git-hooks": "^2.8.0",
"typescript": "^4.7.4",
"webpack": "^5.73.0",
"yarn-deduplicate": "^5.0.0"
},
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-and-score-data.js
Expand Up @@ -201,7 +201,7 @@ async function loadRepositoryDataAsync() {
try {
fs.statSync(GITHUB_RESULTS_PATH);
githubResultsFileExists = true;
} catch (e) {}
} catch {}

const { apiLimit, apiLimitRemaining, apiLimitCost } = await fetchGithubRateLimit();

Expand Down
4 changes: 2 additions & 2 deletions scripts/fetch-npm-data.js
Expand Up @@ -37,7 +37,7 @@ export const fetchNpmDataBulk = async (namesArray, period = 'month', attemptsCou
},
};
});
} catch (e) {
} catch {
await sleep(1000 + 250 * attemptsCount, 2000 + 500 * attemptsCount);
console.log(`[NPM] Retrying fetch for ${namesArray} (${attemptsCount + 1})`);
return await fetchNpmDataBulk(namesArray, period, attemptsCount + 1);
Expand Down Expand Up @@ -73,7 +73,7 @@ export const fetchNpmData = async (pkgData, attemptsCount = 0) => {
period: 'month',
},
};
} catch (e) {
} catch {
await sleep(1000 + 250 * attemptsCount, 2000 + 500 * attemptsCount);
console.log(`[NPM] Retrying fetch for ${npmPkg} (${attemptsCount + 1})`);
return await fetchNpmData(pkgData, attemptsCount + 1);
Expand Down
2 changes: 1 addition & 1 deletion scripts/fetch-readme-images.js
Expand Up @@ -59,7 +59,7 @@ const fetchReadmeImages = async (data, attemptsCount = 0) => {
...data,
images,
};
} catch (e) {
} catch {
console.log(`[GH] Retrying image scrape for ${githubUrl} (${attemptsCount + 1})`);
await sleep(2000);
return await fetchReadmeImages(data, attemptsCount + 1);
Expand Down

0 comments on commit 71e6d86

Please sign in to comment.