Comparing version 8.2.0 to 8.3.0
@@ -8,2 +8,6 @@ Change Log | ||
## [8.3.0](https://github.com/AndrewBarba/apns2/releases/tag/8.3.0) | ||
1. Add voip support | ||
## [8.2.0](https://github.com/AndrewBarba/apns2/releases/tag/8.2.0) | ||
@@ -10,0 +14,0 @@ |
@@ -95,2 +95,3 @@ import { EventEmitter } from "events" | ||
background: string | ||
voip: string | ||
} |
const Notification = require('./notification') | ||
const pushType = require('./constants/push-type') | ||
const priority = require('./constants/priority') | ||
@@ -18,4 +16,2 @@ /** | ||
options = options || {} | ||
options.pushType = pushType.alert | ||
options.priority = priority.immediate | ||
options.alert = options.alert || {} | ||
@@ -22,0 +18,0 @@ options.alert.body = message |
module.exports = Object.freeze({ | ||
alert: 'alert', | ||
background: 'background' | ||
background: 'background', | ||
voip: 'voip' | ||
}) |
@@ -19,4 +19,4 @@ const Notification = require('./notification') | ||
contentAvailable: true, | ||
pushType: pushType.background, | ||
priority: priority.throttled, | ||
pushType: options.pushType || pushType.background, | ||
priority: options.priority || priority.throttled, | ||
badge: options.badge, | ||
@@ -23,0 +23,0 @@ topic: options.topic, |
{ | ||
"name": "apns2", | ||
"version": "8.2.0", | ||
"version": "8.3.0", | ||
"description": "Node client for connecting to Apple's Push Notification Service using the new HTTP/2 protocol with JSON web tokens.", | ||
@@ -5,0 +5,0 @@ "author": "Andrew Barba <abarba.77@gmail.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30495
829