pushy 3.0.1 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +2 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -269,7 +269,7 @@ declare module 'pushy' {
269
269
  sendPushNotification(
270
270
  data: unknown,
271
271
  recipient: string | Array<string>,
272
- options?: SendPushNotificationOptions,
272
+ options?: Partial<SendPushNotificationOptions>,
273
273
  callback?: (error: Error | null, result: SendPushNotificationResult) => void
274
274
  ): Promise<SendPushNotificationResult>;
275
275
 
@@ -345,7 +345,7 @@ declare module 'pushy' {
345
345
  * Retrieve a list of your app's topics and subscribers count.
346
346
  * @see {@link https://pushy.me/docs/api/pubsub-topics}
347
347
  */
348
- getTopics(): Promise<Array<TopicStatus>>;
348
+ getTopics(): Promise<{topics: TopicStatus[]}>;
349
349
 
350
350
  /**
351
351
  * Retrieve a list of devices subscribed to a certain topic.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pushy",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "The official Node.js package for sending push notifications with Pushy.",
5
5
  "main": "index.js",
6
6
  "scripts": {