-
-
Notifications
You must be signed in to change notification settings - Fork 939
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
Dependency cacheable-request
is outdated and does not distinguish POST requests with different bodies
#2138
Comments
In addition |
I just started having very odd issues related to node_modules/@types/cacheable-request/index.d.ts:26:42 - error TS2709: Cannot use namespace 'ResponseLike' as a type.
26 cb?: (response: ServerResponse | ResponseLike) => void
~~~~~~~~~~~~ |
@nbouvrette - please see the plan above. |
@jaredwray Yes I've been reading several threads but for some reason, no workaround is working so far. |
@nbouvrette - that is correct that there are no work arounds that I have seen so far. the goal is to update |
Update to - const cacheableRequest = new CacheableRequest(https.request).createCacheableRequest();
+ const cacheableRequest = new CacheableRequest(https.request).request(); |
@jaredwray if I am following, there |
Correct. It is being actively worked on |
For those interested I did find a workaround (requires npm v8.3.0 (2021-12-09)): Update your "overrides": {
"@types/cacheable-request": "8.3.1"
}, Edit |
|
Unfortunately, this is only half-fixed. |
@AlCalzone - thanks for jumping on this. |
Describe the bug
Before version 8,
cacheable-request
does not correctly distinguish POST requests to the same URL if their body is different. This was fixed in https://github.com/jaredwray/cacheable-request/pull/31I tried my hand at upgrading it, but due to changes to types that are used in got, this wasn't trivial for me. I'm sure someone who's more familiar with this codebase can do it in no time.
Actual behavior
cacheable-request
is on version 7Expected behavior
cacheable-request
should be version 8 or 9Code to reproduce
Not relevant, this is related to upgrading a dependency
Checklist
The text was updated successfully, but these errors were encountered: