From 9252372dbab4a896c8c1597f081126aadbd9ba62 Mon Sep 17 00:00:00 2001 From: Danny Simms <103758200+GreyNewfie@users.noreply.github.com> Date: Mon, 10 Mar 2025 20:21:48 -0230 Subject: [PATCH 1/4] Fix import statement for interfaces module to use .js extension --- src/notificationapi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notificationapi.ts b/src/notificationapi.ts index 1fad8eb..b43157f 100644 --- a/src/notificationapi.ts +++ b/src/notificationapi.ts @@ -9,7 +9,7 @@ import { SendRequest, SetUserPreferencesRequest, User -} from './interfaces'; +} from './interfaces.js'; import axios, { AxiosResponse, Method } from 'axios'; import { createHmac } from 'crypto'; From 400d43952f58f143b141d2210d3d51595c6026ee Mon Sep 17 00:00:00 2001 From: mbasadi Date: Mon, 10 Mar 2025 19:08:50 -0400 Subject: [PATCH 2/4] Add export for interfaces module in package.json --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 890e8c1..06bed29 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,10 @@ ".": { "import": "./lib/esm/index.js", "require": "./lib/cjs/index.js" + }, + "./interfaces": { + "import": "./lib/esm/interfaces.js", + "require": "./lib/cjs/interfaces.js" } }, "files": [ From 1d8eb9eec7200bb18587aa777b4bb880caa8e882 Mon Sep 17 00:00:00 2001 From: mbasadi Date: Mon, 10 Mar 2025 19:09:06 -0400 Subject: [PATCH 3/4] Add export map for interfaces module in package.json --- src/notificationapi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notificationapi.ts b/src/notificationapi.ts index b43157f..1fad8eb 100644 --- a/src/notificationapi.ts +++ b/src/notificationapi.ts @@ -9,7 +9,7 @@ import { SendRequest, SetUserPreferencesRequest, User -} from './interfaces.js'; +} from './interfaces'; import axios, { AxiosResponse, Method } from 'axios'; import { createHmac } from 'crypto'; From cf5b1243fcd037900d627637a16418cbe16d8d23 Mon Sep 17 00:00:00 2001 From: mbasadi Date: Mon, 10 Mar 2025 19:12:57 -0400 Subject: [PATCH 4/4] Bump version to 2.3.1 --- package-lock.json | 4 ++-- package.json | 2 +- src/notificationapi.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4dce291..369c6c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "notificationapi-node-server-sdk", - "version": "2.3.0", + "version": "2.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "notificationapi-node-server-sdk", - "version": "2.3.0", + "version": "2.3.1", "license": "ISC", "dependencies": { "axios": "^1.7.9" diff --git a/package.json b/package.json index 06bed29..16eb602 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notificationapi-node-server-sdk", - "version": "2.3.0", + "version": "2.3.1", "description": "NotificationAPI server-side library for Node.js", "keywords": [ "notificationapi", diff --git a/src/notificationapi.ts b/src/notificationapi.ts index 1fad8eb..704f31a 100644 --- a/src/notificationapi.ts +++ b/src/notificationapi.ts @@ -15,7 +15,7 @@ import { createHmac } from 'crypto'; class NotificationAPIService { private USER_AGENT = 'notificationapi-node-server-sdk'; - private VERSION = '2.2.1'; + private VERSION = '2.3.1'; clientId: null | string = null; clientSecret: null | string = null;