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.2.0 to 8.3.0

4

CHANGELOG.md

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

4

lib/notifications/basic-notification.js
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>",

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