mercurius
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -81,3 +81,3 @@ #! /usr/bin/env node | ||
webPush.sendNotification(registration.endpoint, req.body.ttl, registration.key, req.body.payload) | ||
webPush.sendNotification(registration.endpoint, req.body.ttl, registration.key, JSON.stringify(req.body.payload)) | ||
.then(function() { | ||
@@ -84,0 +84,0 @@ res.sendStatus(200); |
{ | ||
"name": "mercurius", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Generic push server", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,1 +21,12 @@ # mercurius | ||
- body: the body of the notification. | ||
Example: | ||
``` | ||
{ | ||
"token": "aToken", | ||
"payload": { | ||
"title": "IRSSI", | ||
"body": "a message" | ||
} | ||
} | ||
``` |
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
18547
32