From 954dd33d78b5635be4e5083a4c8b83fc4a13de69 Mon Sep 17 00:00:00 2001 From: Scott Prue Date: Tue, 22 Oct 2024 16:23:22 -0600 Subject: [PATCH] fix: support esm named imports --- src/index.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/index.js b/src/index.js index 2022ccd0..4847ddce 100644 --- a/src/index.js +++ b/src/index.js @@ -17,14 +17,13 @@ const { Collection } = require('./collection'); const MemoryStore = require('./memory-store'); const OktaApiError = require('./api-error'); +module.exports.Client = Client +module.exports.RequestExecutor = RequestExecutor +module.exports.DefaultRequestExecutor = DefaultRequestExecutor +module.exports.Collection = Collection +module.exports.MemoryStore = MemoryStore +module.exports.OktaApiError = OktaApiError module.exports = Object.assign( - {}, { - Client, - RequestExecutor, - DefaultRequestExecutor, - Collection, - MemoryStore, - OktaApiError, - }, + module.exports, require('./generated'), );