Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@parse/node-apn

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parse/node-apn - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [6.0.2](https://github.com/parse-community/node-apn/compare/6.0.1...6.0.2) (2024-09-10)
### Bug Fixes
* Incorrect field name `events` instead of `event` in Live Activity push notification payload ([#148](https://github.com/parse-community/node-apn/issues/148)) ([5876a59](https://github.com/parse-community/node-apn/commit/5876a59fcd04c53ccd85ae8ea06a51e2cf119993))
## [6.0.1](https://github.com/parse-community/node-apn/compare/6.0.0...6.0.1) (2023-10-20)

@@ -2,0 +9,0 @@

4

lib/notification/apsProperties.js

@@ -104,5 +104,5 @@ module.exports = {

set events(value) {
set event(value) {
if (typeof value === 'string' || value === undefined) {
this.aps.events = value;
this.aps.event = value;
}

@@ -109,0 +109,0 @@ },

@@ -55,3 +55,3 @@ /**

'staleDate',
'events',
'event',
'contentState',

@@ -58,0 +58,0 @@ ].forEach(propName => {

{
"name": "@parse/node-apn",
"description": "An interface to the Apple Push Notification service for Node.js",
"version": "6.0.1",
"version": "6.0.2",
"author": "Parse Platform, Andrew Naylor <argon@mkbot.net>",

@@ -6,0 +6,0 @@ "keywords": [

@@ -166,3 +166,3 @@ # Node APN <!-- omit in toc -->

note.staleDate = Math.floor(Date.now() / 1000) + (8 * 3600); // Expires 8 hour from now.
note.events = "update"
note.event = "update"
note.contentState = {}

@@ -183,3 +183,3 @@ ```

```json
{"messageFrom":"John Appleseed","aps":{"badge":3,"sound":"ping.aiff","alert":"\uD83D\uDCE7 \u2709 You have a new message", "relevance-score":75,"timestamp":1683129662,"stale-date":1683216062,"events":"update","content-state":{}}}
{"messageFrom":"John Appleseed","aps":{"badge":3,"sound":"ping.aiff","alert":"\uD83D\uDCE7 \u2709 You have a new message", "relevance-score":75,"timestamp":1683129662,"stale-date":1683216062,"event":"update","content-state":{}}}
```

@@ -186,0 +186,0 @@

@@ -835,24 +835,24 @@ const Notification = require('../../lib/notification');

describe('events', function () {
describe('event', function () {
it('defaults to undefined', function () {
expect(compiledOutput()).to.not.have.nested.property('aps.events');
expect(compiledOutput()).to.not.have.nested.property('aps.event');
});
it('can be set to a string', function () {
note.events = 'the-event';
note.event = 'the-event';
expect(compiledOutput()).to.have.nested.property('aps.events', 'the-event');
expect(compiledOutput()).to.have.nested.property('aps.event', 'the-event');
});
it('can be set to undefined', function () {
note.events = 'the-event';
note.events = undefined;
note.event = 'the-event';
note.event = undefined;
expect(compiledOutput()).to.not.have.nested.property('aps.events');
expect(compiledOutput()).to.not.have.nested.property('aps.event');
});
describe('setEvents', function () {
describe('setEvent', function () {
it('is chainable', function () {
expect(note.setEvents('the-event')).to.equal(note);
expect(compiledOutput()).to.have.nested.property('aps.events', 'the-event');
expect(note.setEvent('the-event')).to.equal(note);
expect(compiledOutput()).to.have.nested.property('aps.event', 'the-event');
});

@@ -859,0 +859,0 @@ });

Sorry, the diff of this file is not supported yet

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