Skip to content

Commit d1b933e

Browse files
update packages
1 parent db58aa3 commit d1b933e

File tree

4 files changed

+193
-173
lines changed

4 files changed

+193
-173
lines changed

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,45 +43,45 @@
4343
],
4444
"devDependencies": {
4545
"@types/accept-language-parser": "1.5.3",
46-
"@types/async": "3.2.15",
46+
"@types/async": "3.2.16",
4747
"@types/cross-spawn": "6.0.2",
4848
"@types/errorhandler": "1.5.0",
49-
"@types/express": "4.17.14",
49+
"@types/express": "4.17.15",
5050
"@types/fs-extra": "9.0.13",
5151
"@types/got": "^9.6.12",
5252
"@types/livereload": "0.9.2",
53-
"@types/lodash": "4.14.186",
53+
"@types/lodash": "4.14.191",
5454
"@types/morgan": "1.9.3",
5555
"@types/multer": "1.4.7",
56-
"@types/node": "18.8.4",
56+
"@types/node": "18.11.16",
5757
"@types/parse-author": "2.0.1",
5858
"@types/read": "0.0.29",
5959
"@types/response-time": "2.3.5",
60-
"@types/semver": "7.3.12",
60+
"@types/semver": "7.3.13",
6161
"@types/targz": "1.0.1",
62-
"@types/yargs": "17.0.13",
63-
"@typescript-eslint/eslint-plugin": "5.40.0",
64-
"@typescript-eslint/parser": "5.40.0",
65-
"chai": "4.3.6",
62+
"@types/yargs": "17.0.17",
63+
"@typescript-eslint/eslint-plugin": "5.46.1",
64+
"@typescript-eslint/parser": "5.46.1",
65+
"chai": "4.3.7",
6666
"chalk": "4.1.2",
67-
"eslint": "8.25.0",
67+
"eslint": "8.30.0",
6868
"eslint-config-prettier": "8.5.0",
6969
"eslint-plugin-prettier": "4.2.1",
7070
"glob": "7.2.0",
71-
"husky": "7.0.4",
71+
"husky": "8.0.2",
7272
"injectr": "0.5.1",
7373
"minimist": "1.2.7",
7474
"mocha": "9.1.3",
7575
"node-emoji": "1.11.0",
7676
"p-limit": "^3.1.0",
77-
"prettier": "2.7.1",
77+
"prettier": "2.8.1",
7878
"rimraf": "3.0.2",
7979
"semver-sort": "1.0.0",
8080
"simple-git": "2.48.0",
8181
"sinon": "12.0.1",
8282
"ts-node": "10.9.1",
8383
"type-fest": "2.8.0",
84-
"typescript": "4.8.4"
84+
"typescript": "4.9.4"
8585
},
8686
"dependencies": {
8787
"accept-language-parser": "1.5.0",
@@ -92,11 +92,11 @@
9292
"colors": "1.4.0",
9393
"cross-spawn": "7.0.3",
9494
"dependency-graph": "0.11.0",
95-
"dotenv": "16.0.1",
95+
"dotenv": "16.0.3",
9696
"errorhandler": "1.5.1",
9797
"express": "4.18.2",
9898
"form-data": "4.0.0",
99-
"fs-extra": "10.1.0",
99+
"fs-extra": "11.1.0",
100100
"getport": "0.1.0",
101101
"got": "11.8.5",
102102
"livereload": "0.9.3",
@@ -128,6 +128,6 @@
128128
"targz": "1.0.1",
129129
"try-require": "1.2.1",
130130
"universalify": "^2.0.0",
131-
"yargs": "17.6.0"
131+
"yargs": "17.6.2"
132132
}
133133
}

src/registry/routes/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,11 @@ export default function (repository: Repository) {
8989
components: componentsInfo,
9090
componentsReleases,
9191
componentsList: componentsInfo.map(component => {
92-
const state: 'deprecated' | 'experimental' | undefined =
93-
_.get(component, 'oc.state', '');
92+
const state: 'deprecated' | 'experimental' | '' = _.get(
93+
component,
94+
'oc.state',
95+
''
96+
);
9497
if (state) {
9598
stateCounts[state] = (stateCounts[state] || 0) + 1;
9699
}

src/registry/views/info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface Vm {
1616
href: string;
1717
sandBoxDefaultQs: string;
1818
title: string;
19-
repositoryUrl: string;
19+
repositoryUrl: string | null;
2020
}
2121

2222
export default function info(vm: Vm): string {

0 commit comments

Comments
 (0)