forked from github.com/GenderDysphoria.fyi
Migrate to Node 16 (#118)
* Node 16: fix build dependencies * Node 16: fix Bootstrap dependency problem * Node 16: fix error in HTML writer * Node 16: move await to proper place (h/t alliejones)
This commit is contained in:
@@ -22,12 +22,12 @@ module.exports = exports = class Manifest {
|
||||
this.stat = memoizeAsync((f) =>
|
||||
fs.stat(resolve(f))
|
||||
.catch(() => null)
|
||||
.then((stats) => (stats && Math.floor(stats.mtimeMs / 1000))),
|
||||
.then((stats) => (stats && Math.floor(stats.mtimeMs / 1000)))
|
||||
);
|
||||
this.revFile = memoizeAsync((f) =>
|
||||
readFile(f)
|
||||
.then(revHash)
|
||||
.catch(() => null),
|
||||
.catch(() => null)
|
||||
);
|
||||
|
||||
this.isProd = prod;
|
||||
|
||||
Reference in New Issue
Block a user