chaijs / chai-http

HTTP Response assertions for the Chai Assertion Library.
http://chaijs.com/plugins/chai-http
633 stars 113 forks source link

No export named `request` #342

Closed torra closed 1 month ago

torra commented 1 month ago

Currently, in the documentation in the readme, there is an example importing request from chai-http:

...
import {default as chaiHttp, request} from "chai-http";
...

However, there is no export named request in the currently available release in npm, which is 5.0.0:

SyntaxError: The requested module 'chai-http' does not provide an export named 'request'

There is a tagged 5.1.0 release in github - does that fix the issue? Are there plans to publish that release to npm?

43081j commented 1 month ago

Good catch!

My mistake. We did publish a 5.1.0 release but the ci workflow to release it to npm failed

I will sort it out 👍

torra commented 1 month ago

Great, thanks!

torra commented 1 month ago

Thanks for fixing this!

I believe I found two small typos in the README btw: https://github.com/chaijs/chai-http/pull/343/files