Skip to content

Commit

Permalink
Merge pull request web-push-libs#264 from perrin4869/master
Browse files Browse the repository at this point in the history
Expose WebPushError as a public API
  • Loading branch information
marco-c authored Feb 11, 2017
2 parents 720b344 + 9ba46ba commit 9a81858
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
const vapidHelper = require('./vapid-helper.js');
const encryptionHelper = require('./encryption-helper.js');
const WebPushLib = require('./web-push-lib.js');
const WebPushError = require('./web-push-error.js');

const webPush = new WebPushLib();

module.exports = {
WebPushError: WebPushError,
encrypt: encryptionHelper.encrypt,
getVapidHeaders: vapidHelper.getVapidHeaders,
generateVAPIDKeys: vapidHelper.generateVAPIDKeys,
Expand Down

0 comments on commit 9a81858

Please sign in to comment.