Comparing version 1.7.6 to 1.7.7
## Changelog | ||
1.7.7: | ||
* Fix Documentation URL (#393) | ||
* Prevent `badge: 0` sending `badge: undefined` (#394) | ||
* Avoid error, when deferredConnection is null (#397) | ||
1.7.6: | ||
@@ -4,0 +10,0 @@ |
@@ -225,3 +225,5 @@ "use strict"; | ||
var connectionTimer = setTimeout(function () { | ||
this.deferredConnection.reject(new Error("Connect timed out")); | ||
if(this.deferredConnection) { | ||
this.deferredConnection.reject(new Error("Connect timed out")); | ||
} | ||
if(this.socket) { | ||
@@ -228,0 +230,0 @@ this.socket.end(); |
@@ -483,3 +483,3 @@ "use strict"; | ||
aps.badge = this.badge || aps.badge; | ||
aps.badge = typeof this.badge !== "undefined" ? this.badge : aps.badge; | ||
aps.sound = this.sound || aps.sound; | ||
@@ -486,0 +486,0 @@ aps.alert = this.alert || aps.alert; |
{ | ||
"name": "apn", | ||
"description": "An interface to the Apple Push Notification service for Node.js", | ||
"version": "1.7.6", | ||
"version": "1.7.7", | ||
"author": "Andrew Naylor <argon@mkbot.net>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
Sorry, the diff of this file is not supported yet
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
245531
3831