Comparing version 1.1.6 to 1.1.7
@@ -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 () { |
{ | ||
"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. |
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
23171
450
211
6