@parse/node-apn
Advanced tools
Comparing version 3.1.0 to 3.2.0
## 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
4
5198
352442
188
2
+ Addeddebug@3.1.0(transitive)
+ Addedextsprintf@1.4.1(transitive)
+ Addedjsonwebtoken@8.1.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addednode-forge@0.10.0(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedcoveralls@^3.0.6
- Removedajv@6.12.6(transitive)
- Removedargparse@1.0.10(transitive)
- Removedasn1@0.2.6(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcoveralls@3.1.1(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddebug@3.2.7(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedesprima@4.0.1(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsonwebtoken@8.5.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedlcov-parse@1.0.0(transitive)
- Removedlog-driver@1.2.7(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimist@1.2.8(transitive)
- Removedms@2.1.3(transitive)
- Removednode-forge@0.7.6(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpsl@1.15.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrequest@2.88.2(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsemver@5.7.2(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduri-js@4.4.1(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.1(transitive)
Updateddebug@3.1.0
Updatedjsonwebtoken@8.1.0
Updatednode-forge@0.10.0
Updatedverror@1.10.0