From 14bf82dc583da14d7ba1fccb505042e0c70d7f03 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Thu, 6 Aug 2026 15:04:16 -0600 Subject: [PATCH 1/2] TSM-02: add CJS/ESM export compatibility test --- test/services/module_exports_compat.test.js | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/services/module_exports_compat.test.js diff --git a/test/services/module_exports_compat.test.js b/test/services/module_exports_compat.test.js new file mode 100644 index 00000000..8173c3c9 --- /dev/null +++ b/test/services/module_exports_compat.test.js @@ -0,0 +1,25 @@ +import { expect } from 'chai'; +import { createRequire } from 'module'; + +const require = createRequire(import.meta.url); + +describe('Package export compatibility', function () { + it('supports CommonJS require', function () { + const EasyPostClient = require('../..'); + + expect(EasyPostClient).to.be.a('function'); + + const client = new EasyPostClient('apiKey'); + expect(client).to.be.an('object'); + }); + + it('supports ESM import default', async function () { + const module = await import('../..'); + const EasyPostClient = module.default; + + expect(EasyPostClient).to.be.a('function'); + + const client = new EasyPostClient('apiKey'); + expect(client).to.be.an('object'); + }); +}); From eb35df35358b6ded3a3657b8697aa0a659de2c73 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Fri, 7 Aug 2026 13:28:16 -0600 Subject: [PATCH 2/2] chore: retrigger CI after GitHub Actions outage