mswjs / interceptors

Low-level network interception library.
https://npm.im/@mswjs/interceptors
MIT License
539 stars 123 forks source link

Incorrect absolute path for _http_common #633

Closed sjoleee closed 3 weeks ago

sjoleee commented 3 weeks ago

image

I found an error occurring when using MSW starting from version 2.4.4
The cause seems to be an incorrect absolute path in mswjs/interceptor 0.35.0

//tsconfig.json

...
    "paths": {
      "_http_commons": ["./_http.common.d.ts"]
      // In the usage(MockHttpSocket.ts), _http_common is being used instead of _http_commons.
      // We do not have _http.common.d.ts, but instead have _http_common.d.ts.
    }
...
kettanaito commented 3 weeks ago

Released: v0.35.2 🎉

This has been released in v0.35.2!

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.