Skip to content

Commit

Permalink
fix: fs.constants updated for web
Browse files Browse the repository at this point in the history
resolves #61
  • Loading branch information
jetexe committed Sep 9, 2020
1 parent 9e39d76 commit 0d3518e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index-web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ import fetch from "isomorphic-fetch";
export default buildDereferencer(fetch, {
access: () => Promise.resolve(false),
readFile: () => Promise.resolve(""),
constants: {
F_OK: 0,
R_OK: 4,
},
});

0 comments on commit 0d3518e

Please sign in to comment.