Skip to content

Commit bcd6abf

Browse files
Merge branch 'master' into node-v14
2 parents b912e08 + 9423977 commit bcd6abf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [14.x, 16.x]
19+
node-version: [14.x, 16.x, 18.x]
2020
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2121

2222
steps:

src/registry/domain/components-cache/components-list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ export default function componentsList(conf: Config, cdn: StorageAdapter) {
4646
};
4747
} catch (err: any) {
4848
if (err.code === 'dir_not_found') {
49-
throw {
49+
return {
5050
lastEdit: getUnixUTCTimestamp(),
51-
components: [] as any
51+
components: {}
5252
};
5353
}
5454
throw err;

0 commit comments

Comments
 (0)