Skip to content

Commit

Permalink
chore: Add default export (#258)
Browse files Browse the repository at this point in the history
Adds a default export so import stytch from 'stytch' doesn't resolve with undefined.

Closes #222
  • Loading branch information
max-stytch authored Oct 4, 2023
1 parent 8d891c2 commit 66bab0c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
14 changes: 10 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
export { Client } from "./b2c/client";
import { Client } from "./b2c/client";
import { B2BClient } from "./b2b/client";

export { Client, B2BClient };
export * from "./b2c/index";
export { B2BClient } from "./b2b/client";
export * from "./b2b/index";
export * as envs from "./shared/envs";
export * from "./shared/errors";

export default { Client, B2BClient };
10 changes: 8 additions & 2 deletions types/lib/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 66bab0c

Please sign in to comment.