Skip to content

Commit

Permalink
Export abort controller and signal events
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Jun 12, 2019
1 parent cb3c6c2 commit 1c87c74
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ import { Request } from "servie/dist/browser";
import { transport, XhrResponse } from "popsicle-transport-xhr";
import { toFetch } from "./common";

export * from "servie/dist/signal";
export * from "servie/dist/headers";

/**
* Expose browser components.
*/
export { transport, Request, XhrResponse, toFetch };
export { Request, toFetch, transport, XhrResponse };

/**
* Browser standard middleware stack.
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import {
XhrResponse
} from "./browser";

export * from "servie/dist/signal";
export * from "servie/dist/headers";

export const fetch: (
...args: Parameters<typeof nodeFetch> & Parameters<typeof browserFetch>
) => Promise<XhrResponse | HttpResponse> = nodeFetch;
Expand Down
3 changes: 3 additions & 0 deletions src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { redirects } from "popsicle-redirects";
import { userAgent } from "popsicle-user-agent";
import { toFetch } from "./common";

export * from "servie/dist/signal";
export * from "servie/dist/headers";

/**
* Expose node.js components.
*/
Expand Down

0 comments on commit 1c87c74

Please sign in to comment.