Comparing version 8.1.0 to 8.2.0
@@ -8,2 +8,6 @@ Change Log | ||
## [8.2.0](https://github.com/AndrewBarba/apns2/releases/tag/8.2.0) | ||
1. Add correct TypeScript definitions for `NotificationOptions` | ||
## [8.1.0](https://github.com/AndrewBarba/apns2/releases/tag/8.1.0) | ||
@@ -10,0 +14,0 @@ |
@@ -72,17 +72,15 @@ import { EventEmitter } from "events" | ||
declare interface NotificationOptions { | ||
alert?: string | any; | ||
aps?: any; | ||
actions?: NotificationAction[]; | ||
badge?: string; | ||
body?: string; | ||
badge?: number; | ||
category?: string; | ||
collapseId?: string; | ||
contentAvailable?: boolean; | ||
data?: any; | ||
dir?: NotificationDirection; | ||
icon?: string; | ||
image?: string; | ||
lang?: string; | ||
renotify?: boolean; | ||
requireInteraction?: boolean; | ||
silent?: boolean; | ||
tag?: string; | ||
timestamp?: number; | ||
vibrate?: VibratePattern; | ||
expiration?: number; | ||
priority?: string; | ||
pushType?: string; | ||
sound?: string; | ||
threadId?: string; | ||
topic?: string; | ||
} | ||
@@ -89,0 +87,0 @@ |
@@ -6,3 +6,3 @@ const { URL } = require('url') | ||
if (!http2.constants || !http2.constants.NGHTTP2_SESSION_CLIENT) { | ||
throw new Error('Invalid http2 library, must be running Node v8.10 or later') | ||
throw new Error('Invalid http2 library, must be running Node v10.16 or later') | ||
} | ||
@@ -9,0 +9,0 @@ |
{ | ||
"name": "apns2", | ||
"version": "8.1.0", | ||
"version": "8.2.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>", |
@@ -168,2 +168,2 @@ APNS2 | ||
`apns2` requires Node.js v8.10 or later | ||
`apns2` requires Node.js v10.16 or later |
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
30513
831