ayame113 / mock-file Goto Github PK
View Code? Open in Web Editor NEWSynchronous file system API polyfill for deno deploy.
Home Page: https://deno.land/x/mock_file
License: MIT License
Synchronous file system API polyfill for deno deploy.
Home Page: https://deno.land/x/mock_file
License: MIT License
Great module, but i'm not seeing files when I read dir. I tried some stuff like
prepareVirtualFile(path, undefined, { isDirectory: true )
Is the logic of FsFile.writable correct? it needs to be checked.
I'm using [email protected]
with [email protected]
on Deno Deploy with the fresh framework. I get this error:
An error occured during route handling or page rendering. TypeError: originalFunc is not a function
at Object.openSync (https://deno.land/x/[email protected]/src/polyfill.ts:120:20)
at js_open (https://deno.land/x/[email protected]/build/vfs.js:29:24)
at denoOpen (wasm://wasm/002a4c4a:1:3005)
at sqlite3PagerSharedLock (wasm://wasm/002a4c4a:1:30327)
at sqlite3BtreeBeginTrans (wasm://wasm/002a4c4a:1:24816)
at sqlite3InitOne (wasm://wasm/002a4c4a:1:157318)
at sqlite3Init (wasm://wasm/002a4c4a:1:156554)
at sqlite3ReadSchema (wasm://wasm/002a4c4a:1:100815)
at sqlite3LocateTable (wasm://wasm/002a4c4a:1:98255)
at sqlite3LocateTableItem (wasm://wasm/002a4c4a:1:245062)
Running it locally works fine.
Thank you for maintaining and updating this project! It is extremely useful to many in the deno community, I am sure. ❤️
I noticed that there is a 1.1.0 tag on this repo. I am excited to use it! However, the latest released version on deno.land is 1.0.1.
May I suggest setting up continuous delivery in this project? For example, whenever a tag is pushed to the repo, it is easy to set up a webhook that automatically publishes code from that tag to deno.land. We at Slack use this setup to publish some of our deno libraries like slackapi/deno-slack-runtime to deno.land/x/deno_slack_runtime.
If this interests you, deno.land has instructions on how to set it up: https://deno.land/add_module
In case it useful for you and as an example, for our deno-slack-runtime repository, the webhook in the GitHub repo's settings are as follows:
?subdir=src%2F
query parameter, this only applies if the code in the repo is located in a subdirectory called src/
. I don't think mock-file would need that, since the main entry-point for this project is in the mod.ts
located in the root of the project.Seems like only Deno.fstat
is polyfilled right now.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.