Comparing version 1.1.2 to 1.1.3
1.1.3 / 2014-10-08 | ||
================== | ||
* Merge pull request #22 from Speicher210/master | ||
* Replace const by var. | ||
* travis using node .10 and .11 | ||
* Increase the max payload size according to the not-yet-documented change for APN (256bytes->2048bytes). Centralise the value in a constant Update the test case for truncation and exceptions | ||
1.1.2 / 2014-10-08 | ||
@@ -3,0 +11,0 @@ ================== |
@@ -11,3 +11,3 @@ /*! | ||
exports.version = '1.1.2'; | ||
exports.version = '1.1.3'; | ||
@@ -14,0 +14,0 @@ /*! |
@@ -28,2 +28,4 @@ /*! | ||
var MAX_PAYLOAD_SIZE = 2048; | ||
/** | ||
@@ -411,4 +413,4 @@ * ## Message Builder API | ||
if (len > 256 && this.aps.body) { | ||
var over = len - 256 | ||
if (len > MAX_PAYLOAD_SIZE && this.aps.body) { | ||
var over = len - MAX_PAYLOAD_SIZE | ||
, bodyLen = Buffer.byteLength(this.aps.body, enc) | ||
@@ -428,3 +430,3 @@ , body = bodyLen <= over | ||
} | ||
} else if (len > 256) { | ||
} else if (len > MAX_PAYLOAD_SIZE) { | ||
throw new SE('Message too long.', null, ssf); | ||
@@ -431,0 +433,0 @@ } |
{ | ||
"name": "apnagent", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Node adapter for Apple Push Notification (APN) service.", | ||
@@ -5,0 +5,0 @@ "author": "Jake Luer <jake@qualiancy.com> (http://qualiancy.com)", |
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
70140
2259