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

pushy

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pushy - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

48

index.d.ts

@@ -140,2 +140,3 @@ declare module 'pushy' {

}
interface NotificationStatus {

@@ -218,2 +219,22 @@ /** The creation date of the push notification (unix timestamp). */

/**
* Options for extra request library parameters.
*/
interface ExtraRequestOptions {
/**
* Custom headers for the request, represented as key-value pairs.
*/
headers?: Record<string, string>;
/**
* Timeout for the request in milliseconds.
*/
timeout?: number;
/**
* Allow any additional options to be specified.
*/
[key: string]: any;
}
interface DevicePresenceInfo {

@@ -259,2 +280,8 @@ /** The device token linked to this presence object. */

export default class Pushy {
/**
* Constructor
* @see {@link https://pushy.me/docs/api}
*
* @param apiKey Pushy Secret API Key, available in the Pushy Dashboard (Click your app -> API Authentication tab).
*/
constructor(apiKey: string);

@@ -363,3 +390,24 @@

): Promise<TopicSuscribers>;
/**
* Set extra request library options to customize requests sent to the Pushy API.
*
* @param options An object containing additional request options.
*/
setExtraRequestOptions(options: ExtraRequestOptions): void;
/**
* Set the Pushy Enterprise API endpoint hostname.
*
* @param endpoint The Pushy Enterprise API endpoint along with protocol (no trailing slash).
*/
setEnterpriseConfig(endpoint: string): void;
/**
* Get the API endpoint being used by the Pushy instance.
*
* @returns The API endpoint URL as a string.
*/
getApiEndpoint(): string;
}
}

2

package.json
{
"name": "pushy",
"version": "4.0.0",
"version": "4.0.1",
"description": "The official Node.js package for sending push notifications with Pushy.",

@@ -5,0 +5,0 @@ "main": "index.js",

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