From aafbef5b1a667eb764f55f2e62e87beab25b9ebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Kochen?= Date: Fri, 10 Nov 2023 15:09:38 +0100 Subject: [PATCH] PortierClient as default export --- README.md | 2 +- src/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e07ea35..8184d03 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A [Portier] client library for Node.js ```js import Fastify from "fastify"; import formPlugin from "@fastify/formbody"; -import { PortierClient } from "portier"; +import PortierClient from "portier"; const portier = new PortierClient({ redirectUri: "http://localhost:8000/verify", diff --git a/src/index.ts b/src/index.ts index be998cb..b54f872 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,5 @@ -export { default as PortierClient } from "./client.js"; +import PortierClient from "./client.js"; +export default PortierClient; export { default as AbstractStore } from "./store.js"; export { default as MemoryStore } from "./stores/memory.js"; export { default as normalize } from "./normalize.js";