Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apns2

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apns2 - npm Package Compare versions

Comparing version 8.1.0 to 8.2.0

4

CHANGELOG.md

@@ -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 @@

24

index.d.ts

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc