We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right now the higher order functions look like this:
const adapter = (core) => { return { readdir: vfs => async (path, options) => {}, // ... } }
It would be nice to have the following option:
const adapter = (core) => { return async (vfs) => { // async optional readdir: async (path, options) => {}, // ... } }
As well as:
This is supported as of 2020-07-22
const adapter = async (core) => { // ... }
The text was updated successfully, but these errors were encountered:
Support async adapter functions (#34)
41f1cad
Abstracted away req/res from VFS calls in favor of options (#34)
de77937
Instead of: ``` const adapter = core => ({ readdir: vfs => file => { console.log(vfs.req.session.user.username) } }) ``` Is now this: ``` const adapter = core => ({ readdir: vfs => (file, options) => { console.log(options.session.user.username) } }) ```
No branches or pull requests
Right now the higher order functions look like this:
It would be nice to have the following option:
As well as:This is supported as of 2020-07-22
The text was updated successfully, but these errors were encountered: