Skip to content

Commit 96f6011

Browse files
committed
feat: export api constructor too
1 parent d5d9c9e commit 96f6011

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3+
module.exports.Api = require('./paddle/api')
34
module.exports.SubscriptionsHooks = require('./subscription-hook-storage')
45
module.exports.SubscriptionInfo = require('./subscription-info')
56
module.exports.middleware = require('./middleware')

test-e2e/spec/subscription.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test.beforeAll(testPageRunner.start)
2323
test.afterAll(testPageRunner.stop)
2424

2525
test.beforeAll(async () => {
26-
const API = await (await import('../../lib/paddle/api.js')).default
26+
const API = await (await import('../../lib/index')).Api
2727
api = new API({ useSandbox: true, authCode: process.env.AUTH_CODE, vendorId: process.env.VENDOR_ID })
2828
await api.init()
2929

0 commit comments

Comments
 (0)