New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pusher/push-notifications-server

Package Overview
Dependencies
Maintainers
8
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pusher/push-notifications-server - npm Package Compare versions

Comparing version 0.10.4 to 0.10.5

2

package.json
{
"name": "@pusher/push-notifications-server",
"version": "0.10.4",
"version": "0.10.5",
"description": "NodeJS Server SDK for Pusher Push Notifications",

@@ -5,0 +5,0 @@ "main": "push-notifications.js",

const https = require('https');
const SDK_VERSION = '0.10.2';
const INTERESTS_REGEX = new RegExp('^(_|\\-|=|@|,|\\.|:|[A-Z]|[a-z]|[0-9])*$');
const SDK_VERSION = '0.10.5';
const INTERESTS_REGEX = new RegExp('^(_|\\-|=|@|,|\\.|;|[A-Z]|[a-z]|[0-9])*$');
const INTEREST_STRING_MAX_LENGTH = 164;

@@ -6,0 +6,0 @@ const INTEREST_ARRAY_MAX_LENGTH = 100;

[![Build Status](https://travis-ci.org/pusher/push-notifications-node.svg?branch=master)](https://travis-ci.org/pusher/push-notifications-node)
# Pusher Push Notifications Node.js Server SDK
Full documentation for this SDK can be found [here](https://docs.pusher.com/push-notifications/reference/server-sdk-node)
# Pusher Beams Node.js Server SDK
Full documentation for this SDK can be found [here](https://docs.pusher.com/beams/reference/server-sdk-node)
## Installation
The Pusher Notifications Node.js server SDK is available on npm [here](https://www.npmjs.com/package/pusher-push-notifications-node).
The Beams Node.js server SDK is available on npm [here](https://www.npmjs.com/package/@pusher/push-notifications-server).

@@ -20,3 +20,3 @@ You can install this SDK by using [npm](https://npmjs.com):

### Configuring the SDK for Your Instance
Use your instance id and secret (you can get these from the [dashboard](https://dash.pusher.com)) to create a PushNotifications instance:
Use your instance id and secret (you can get these from the [dashboard](https://dash.pusher.com/beams)) to create a Beams PushNotifications instance:
```javascript

@@ -32,3 +32,3 @@ const PushNotifications = require('@pusher/push-notifications-server');

### Publishing a Notification
Once you have created your PushNotifications instance you can publish a push notification to your registered & subscribed devices:
Once you have created your Beams PushNotifications instance you can publish a push notification to your registered & subscribed devices:
```javascript

@@ -35,0 +35,0 @@ pushNotifications.publish(['hello'], {

@@ -120,3 +120,3 @@ const expect = require('chai').expect;

authorization: 'Bearer SECRET_KEY',
'x-pusher-library': 'pusher-push-notifications-node 0.10.2',
'x-pusher-library': 'pusher-push-notifications-node 0.10.5',
host: 'instance_id.pushnotifications.pusher.com'

@@ -192,2 +192,6 @@ });

).to.throw('contains a forbidden character');
expect(() =>
pn.publish(['good-interest', 'bad:interest'], {})
).to.throw('contains a forbidden character');
});

@@ -194,0 +198,0 @@

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