From e8cebe0773551b9686e515ca8d44fd46972d4b9e Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Sun, 4 Feb 2024 10:26:16 +0100 Subject: [PATCH] add default export Signed-off-by: Matteo Collina --- oauth-interceptor.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/oauth-interceptor.js b/oauth-interceptor.js index 5a85c4f..4ce45cf 100644 --- a/oauth-interceptor.js +++ b/oauth-interceptor.js @@ -134,4 +134,5 @@ function createOAuthInterceptor (options) { } } +module.exports = createOAuthInterceptor module.exports.createOAuthInterceptor = createOAuthInterceptor diff --git a/package.json b/package.json index d3bdcc1..d510d33 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "undici-oauth-interceptor", - "version": "0.4.0", + "version": "0.4.1", "description": "Automatically manage OAuth 2.0 access tokens for Undici requests", "main": "oauth-interceptor.js", "scripts": {