New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0.2 to 1.0.3

6

History.md
1.0.3 / 2013-10-26
==================
* Merge pull request #2 from nrcmedia/content-available-support
* Added support for content-available flag
1.0.2 / 2013-04-16

@@ -3,0 +9,0 @@ ==================

2

lib/apnagent.js

@@ -11,3 +11,3 @@ /*!

exports.version = '1.0.2';
exports.version = '1.0.3';

@@ -14,0 +14,0 @@ /*!

@@ -81,2 +81,3 @@ /*!

if (opts.aps.sound) this.sound(opts.aps.sound);
if (opts.aps['content-available']) this.contentAvailable(opts.aps['content-available']);

@@ -323,2 +324,29 @@ // import alert

/**
* ### .contentAvailable (bool)
*
* Set the content-available flag for content download
* push notifications
*
* ```js
* msg.contentAvailable(true);
* ```
*
* @param {Bool} sets content-available flag to 1 if true
* @returns {this} for chaining
* @api public
* @name contentAvailable
*/
Message.prototype.contentAvailable = function (contentAvailable) {
if (contentAvailable) {
this.settings['content-available'] = 1;
} else {
this.settings['content-available'] = undefined;
}
return this;
};
/*!

@@ -325,0 +353,0 @@ * .serialize ()

{
"name": "apnagent"
, "version": "1.0.2"
, "version": "1.0.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