Skip to content

Commit 9a81858

Browse files
authored
Merge pull request #264 from perrin4869/master
Expose WebPushError as a public API
2 parents 720b344 + 9ba46ba commit 9a81858

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
const vapidHelper = require('./vapid-helper.js');
44
const encryptionHelper = require('./encryption-helper.js');
55
const WebPushLib = require('./web-push-lib.js');
6+
const WebPushError = require('./web-push-error.js');
67

78
const webPush = new WebPushLib();
89

910
module.exports = {
11+
WebPushError: WebPushError,
1012
encrypt: encryptionHelper.encrypt,
1113
getVapidHeaders: vapidHelper.getVapidHeaders,
1214
generateVAPIDKeys: vapidHelper.generateVAPIDKeys,

0 commit comments

Comments
 (0)