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

apn

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apn - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

11

lib/apn.js

@@ -34,2 +34,3 @@ var tls = require('tls');

keyData: '',
passphrase: null,
gateway: 'gateway.push.apple.com' /* gateway address */,

@@ -130,2 +131,6 @@ port: 2195 /* gateway port */,

if (options['passphrase']) {
socketOptions['passphrase'] = options['passphrase'];
}
var writeNotificationToSocket = function (data) {

@@ -212,3 +217,2 @@ if (self.socket === undefined || self.socket.readyState != 'open') {

if (data[0] == 8) {
self.socket.end();

@@ -337,2 +341,3 @@ if (!options.enhanced) {

keyData: '', /* Key data */
passphrase: null, /* Passphrase for key */
address: 'feedback.push.apple.com', /* feedback address */

@@ -412,2 +417,6 @@ port: 2196, /* feedback port */

if (options['passphrase']) {
socketOptions['passphrase'] = options['passphrase'];
}
if (options['interval'] > 0) {

@@ -414,0 +423,0 @@ this.interval = setInterval(function () {

2

package.json
{
"name": "apn",
"description": "An interface to the Apple Push Notification service for Node.js",
"version": "1.1.6",
"version": "1.1.7",
"author": "Andrew Naylor <argon@mkbot.net>",

@@ -6,0 +6,0 @@ "contributors": [

@@ -43,2 +43,3 @@ #node-apn

keyData: null, /* Optional: if supplied uses this instead of Key file */
passphrase: null, /* Optional: A passphrase for the Key file */
gateway: 'gateway.push.apple.com',/* gateway address */

@@ -95,2 +96,3 @@ port: 2195, /* gateway port */

keyData: null, /* Key file contents */
passphrase: null, /* Optional: A passphrase for the Key file */
address: 'feedback.push.apple.com', /* feedback address */

@@ -152,2 +154,6 @@ port: 2196, /* feedback port */

1.1.7:
* Fixes a problem with sockets being closed on transmission error causing EPIPE errors in node.
* Issues #29, #30
1.1.6:

@@ -154,0 +160,0 @@ * Fixes a regression from v1.1.5 causing connections to stall and messages to not be sent.

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