Comparing version 0.14.3 to 0.14.4
Changelog | ||
========= | ||
**0.14.4** | ||
* Added support for multiple topics using FCM condition | ||
**0.14.2** | ||
@@ -5,0 +8,0 @@ * Updated README, added note on v1 development |
@@ -197,2 +197,6 @@ var Constants = require('./constants'); | ||
} | ||
if ((/\|\||&&/).test(recipient)) { | ||
body.condition = recipient; | ||
return callback(null, body); | ||
} | ||
body.to = recipient; | ||
@@ -229,2 +233,3 @@ return callback(null, body); | ||
topic: isString, | ||
condition: isString, | ||
notificationKey: isString, | ||
@@ -231,0 +236,0 @@ registrationIds: isArray, |
{ | ||
"name": "node-gcm", | ||
"description": "Easy interface for Google's Cloud Messaging service (now Firebase Cloud Messaging)", | ||
"version": "0.14.3", | ||
"version": "0.14.4", | ||
"author": "Marcus Farkas <toothlessgear@finitebox.com>", | ||
@@ -39,3 +39,4 @@ "contributors": [ | ||
"Chirag Choudhary <chirag200666@gmail.com> (https://github.com/chirag200666)", | ||
"Alexander Amin <alexander.amin@high5-it.de> (https://github.com/AlexAmin)" | ||
"Alexander Amin <alexander.amin@high5-it.de> (https://github.com/AlexAmin)", | ||
"Gaurav Nolkha <gaurav@swiftday.com> (https://github.com/vibgy)" | ||
], | ||
@@ -42,0 +43,0 @@ "repository": { |
# node-gcm | ||
[![Join the chat at https://gitter.im/ToothlessGear/node-gcm](https://badges.gitter.im/ToothlessGear/node-gcm.svg)](https://gitter.im/ToothlessGear/node-gcm?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
[![npm](https://badge.fury.io/js/node-gcm.svg)](https://www.npmjs.com/package/node-gcm) | ||
@@ -18,3 +20,3 @@ | ||
```bash | ||
$ npm install node-gcm | ||
$ npm install node-gcm --save | ||
``` | ||
@@ -127,2 +129,3 @@ | ||
|topic|String|A single publish/subscribe topic. | ||
|condition|String|Multiple topics using the [condition](https://firebase.google.com/docs/cloud-messaging/topic-messaging) parameter. | ||
|notificationKey|String|Deprecated. A key that groups multiple registration tokens linked to the same user. | ||
@@ -129,0 +132,0 @@ |registrationIds|String[]|Deprecated. Use registrationTokens instead.| |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
34936
421
224
0