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

apnagent

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apnagent - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

8

History.md
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 @@ ==================

2

lib/apnagent.js

@@ -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)",

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