@jaredwray/mockhttp 0.6.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1829 -1209
- package/package.json +77 -82
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
[](https://npmjs.com/package/@jaredwray/mockhttp)
|
|
7
7
|
[](https://npmjs.com/package/@jaredwray/mockhttp)
|
|
8
8
|
[](https://hub.docker.com/r/jaredwray/mockhttp)
|
|
9
|
+
[](https://mockhttp.org)
|
|
9
10
|
|
|
10
11
|
A simple HTTP server that can be used to mock HTTP responses for testing purposes. Inspired by [httpbin](https://httpbin.org/) and built using `nodejs` and `fastify` with the idea of running it via https://mockhttp.org, via docker `jaredwray/mockhttp`, or nodejs `npm install jaredwray/mockhttp`.
|
|
11
12
|
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ type HttpBinOptions = {
|
|
|
9
9
|
statusCodes?: boolean;
|
|
10
10
|
cookies?: boolean;
|
|
11
11
|
anything?: boolean;
|
|
12
|
+
auth?: boolean;
|
|
12
13
|
};
|
|
13
14
|
type MockHttpOptions = {
|
|
14
15
|
/**
|
|
@@ -169,6 +170,11 @@ declare class MockHttp extends Hookified {
|
|
|
169
170
|
* @param fastifyInstance - the server instance to register the routes on.
|
|
170
171
|
*/
|
|
171
172
|
registerAnythingRoutes(fastifyInstance?: FastifyInstance): Promise<void>;
|
|
173
|
+
/**
|
|
174
|
+
* Register the auth routes.
|
|
175
|
+
* @param fastifyInstance - the server instance to register the routes on.
|
|
176
|
+
*/
|
|
177
|
+
registerAuthRoutes(fastifyInstance?: FastifyInstance): Promise<void>;
|
|
172
178
|
}
|
|
173
179
|
|
|
174
180
|
declare const start: () => Promise<MockHttp>;
|