dx: easier to debug projectInfo
Massimo Melina committed
Dec 23, 2023 at 17:46 UTC
c4c57644a7ec53af59f0269ea4eee329d5c5686b
1 file changed
+1
-1
src/github.ts
+1
-1
@@ -180,5 +180,5 @@ let builtIn = JSON.parse(readFileSync(join(__dirname, '..', FN), 'utf8'))
180
export const getProjectInfo = debounceAsync(
181
() => readGithubFile(`${HFS_REPO}/${HFS_REPO_BRANCH}/${FN}`)
182
.then(JSON.parse, () => null)
183
- .then(x => Object.assign(Object.create(builtIn), DEV ? null : x) ), // fall back to built-in
183
+ .then(x => Object.assign({ ...builtIn }, DEV ? null : x) ), // fall back to built-in
184
0, { retain: DAY, retainFailure: 60_000 } )
\ No newline at end of file