@parse/node-apn
Advanced tools
Comparing version
## Changelog | ||
3.2.0 | ||
* Update node-forge and pin packages | ||
* Add typings for the "voip" NotificationPushType | ||
* Typed Notification.pushType | ||
3.1.0 | ||
@@ -3,0 +8,0 @@ * Fix: http2session.shutdown() is not a function |
@@ -113,2 +113,4 @@ /// <reference types="node" /> | ||
export type NotificationPushType = 'background' | 'alert' | 'voip'; | ||
export interface NotificationAlertOptions { | ||
@@ -154,3 +156,3 @@ title?: string; | ||
public collapseId: string; | ||
public pushType: string; | ||
public pushType: NotificationPushType; | ||
public threadId: string; | ||
@@ -157,0 +159,0 @@ |
{ | ||
"name": "@parse/node-apn", | ||
"description": "An interface to the Apple Push Notification service for Node.js", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"author": "Andrew Naylor <argon@mkbot.net>", | ||
@@ -21,14 +21,13 @@ "keywords": [ | ||
"dependencies": { | ||
"coveralls": "^3.0.6", | ||
"debug": "^3.1.0", | ||
"jsonwebtoken": "^8.1.0", | ||
"node-forge": "^0.7.1", | ||
"verror": "^1.10.0" | ||
"debug": "3.1.0", | ||
"jsonwebtoken": "8.1.0", | ||
"node-forge": "0.10.0", | ||
"verror": "1.10.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "3.x", | ||
"chai-as-promised": "^7.1.1", | ||
"mocha": "^4.0.1", | ||
"sinon": "^1.12.2", | ||
"sinon-chai": "^2.14.0" | ||
"chai-as-promised": "7.1.1", | ||
"mocha": "4.0.1", | ||
"sinon": "1.17.7", | ||
"sinon-chai": "2.14.0" | ||
}, | ||
@@ -35,0 +34,0 @@ "publishConfig": { |
@@ -8,24 +8,11 @@ [<p align="center"><img src="doc/logo.png" alt="node-apn" width="450" height="auto"></p>][node-apn] | ||
[](https://github.com/node-apn/node-apn/issues/436) | ||
 | ||
[![Build status][ci-image] ][ci-url] | ||
[![Code coverage][coverage-image]][coverage-url] | ||
[![Codacy][codacy-image]][codacy-url] | ||
[![dependencies][dependencies-image]][dependencies-url] | ||
[![devdependencies][devdependencies-image]][devdependencies-url] | ||
[logo]:doc/logo.png | ||
[npm-image]:https://nodei.co/npm/apn.png?downloads=true | ||
[npm-url]:https://npmjs.com/package/apn | ||
[ci-image]:https://api.travis-ci.org/node-apn/node-apn.svg | ||
[ci-url]:https://travis-ci.org/node-apn/node-apn | ||
[coverage-image]:https://coveralls.io/repos/argon/node-apn/badge.svg?branch=develop | ||
[coverage-url]:https://coveralls.io/r/argon/node-apn | ||
[codacy-image]:https://www.codacy.com/project/badge/e7735fbe0db244f3b310657d0dabaa11 | ||
[codacy-url]:https://www.codacy.com/public/argon/node-apn | ||
[npm-image]:https://nodei.co/npm/@parse/node-apn.png?downloads=true | ||
[npm-url]:https://npmjs.com/package/@parse/node-apn | ||
[ci-image]:https://api.travis-ci.org/parse-community/node-apn.svg | ||
[ci-url]:https://travis-ci.org/parse-community/node-apn | ||
[dependencies-image]:https://david-dm.org/node-apn/node-apn/status.svg | ||
[dependencies-url]:https://david-dm.org/node-apn/node-apn | ||
[devdependencies-image]:https://david-dm.org/node-apn/node-apn/dev-status.svg | ||
[devdependencies-url]:https://david-dm.org/node-apn/node-apn?type=dev | ||
## Features | ||
@@ -54,3 +41,3 @@ | ||
```javascript | ||
var apn = require('apn'); | ||
var apn = require('@parse/node-apn'); | ||
``` | ||
@@ -137,3 +124,3 @@ | ||
You should only create one `Provider` per-process for each certificate/key pair you have. You do not need to create a new `Provider` for each notification. If you are only sending notifications to one app then there is no need for more than one `Provider`. | ||
You should only create one `Provider` per-process for each certificate/key pair you have. You do not need to create a new `Provider` for each notification. If you are only sending notifications to one app then there is no need for more than one `Provider`. | ||
@@ -183,3 +170,3 @@ If you are constantly creating `Provider` instances in your app, make sure to call `Provider.shutdown()` when you are done with each provider to release its resources and memory. | ||
[npm]: https://npmjs.org | ||
[node-apn]: https://github.com/node-apn/node-apn | ||
[node-apn]: https://github.com/parse-community/node-apn | ||
[certificateWiki]:https://github.com/node-apn/node-apn/wiki/Preparing-Certificates "Preparing Certificates" | ||
@@ -186,0 +173,0 @@ [pl]: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html "Local and Push Notification Programming Guide: APNs Overview" |
Sorry, the diff of this file is not supported yet
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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
4
-20%5198
0.02%352442
-0.17%188
-6.47%2
100%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated