-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
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
feat: add getDeployStore
method
#68
Conversation
✅ Deploy Preview for blobs-js ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
const string = await deployStore.get(key) | ||
expect(string).toBe(value) | ||
|
||
const stream = await deployStore.get(key, { type: 'stream' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could make the types for deployStore.get
better that if the type is stream
it will return a NodeJS.ReadableStream
but we can do this in a follow up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which problem is this pull request solving?
Adds a
getDeployStore
method that can be used to create a deploy-scoped store. It can also read the deploy ID from the context object in the environment.More information in the updated README.