-
Notifications
You must be signed in to change notification settings - Fork 154
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(s3): add getInstance
to expose some utils
#592
base: main
Are you sure you want to change the base?
Conversation
can you add a test too? similar to the one in the redis tests: it("exposes instance", () => {
expect(driver.getInstance?.()).toBeInstanceOf(ioredis.default);
}); |
I'm noticing that the |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #592 +/- ##
==========================================
- Coverage 65.05% 60.05% -5.01%
==========================================
Files 39 42 +3
Lines 4055 3655 -400
Branches 487 590 +103
==========================================
- Hits 2638 2195 -443
- Misses 1408 1457 +49
+ Partials 9 3 -6 ☔ View full report in Codecov by Sentry. |
Regarding tests, it seems good change here but it is not right that we always have potential to miss this. i think we should probably add a (required) option to |
getInstance
getInstance
to expose client
I'm also thinking if it is too early to expose a "client" off s3. If you check aws4fetch implementation, we mainly use it for signing. Many of other functionalities are internal. Changing the return type after we expose it would be a breaking change also.. We could perhaps return an object like |
getInstance
to expose clientgetInstance
to expose some utils
Oh, indeed. I'll study this and propose a few potentially useful utils. One for sure being |
Missing
getInstance
for theS3
driver, this should allow to presign urls based on the existing driver options.