Skip to content

Commit 7da838d

Browse files
author
minaorangina
committed
updates sdk number
1 parent a379ae0 commit 7da838d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

__tests__/publishToInterests.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('publishToInterests', () => {
5757
expect(headers).toEqual({
5858
authorization: 'Bearer SECRET_KEY',
5959
accept: 'application/json',
60-
'x-pusher-library': 'pusher-push-notifications-node 1.1.0',
60+
'x-pusher-library': 'pusher-push-notifications-node 1.1.1',
6161
host: 'instance_id.pushnotifications.pusher.com',
6262
'content-type': 'application/json',
6363
'content-length': 55
@@ -113,7 +113,7 @@ describe('publishToInterests', () => {
113113
'content-type': 'application/json',
114114
'content-length': 55,
115115
authorization: 'Bearer SECRET_KEY',
116-
'x-pusher-library': 'pusher-push-notifications-node 1.1.0',
116+
'x-pusher-library': 'pusher-push-notifications-node 1.1.1',
117117
host: 'instance_id.pushnotifications.pusher.com'
118118
});
119119
expect(body).toEqual({
@@ -201,7 +201,7 @@ describe('publishToInterests', () => {
201201
'content-type': 'application/json',
202202
'content-length': 1846,
203203
authorization: 'Bearer 1234',
204-
'x-pusher-library': 'pusher-push-notifications-node 1.1.0',
204+
'x-pusher-library': 'pusher-push-notifications-node 1.1.1',
205205
host: '1234.pushnotifications.pusher.com'
206206
});
207207
expect(body).toEqual({

__tests__/publishToUsers.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('publishToUsers', () => {
5757
'content-type': 'application/json',
5858
'content-length': 72,
5959
authorization: 'Bearer SECRET_KEY',
60-
'x-pusher-library': 'pusher-push-notifications-node 1.1.0',
60+
'x-pusher-library': 'pusher-push-notifications-node 1.1.1',
6161
host: 'instance_id.pushnotifications.pusher.com'
6262
});
6363
expect(body).toEqual({

push-notifications.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const request = require('request-promise-native');
22
const jwt = require('jsonwebtoken');
33

4-
const SDK_VERSION = '1.1.0';
4+
const SDK_VERSION = '1.1.1';
55
const INTERESTS_REGEX = new RegExp('^(_|\\-|=|@|,|\\.|;|[A-Z]|[a-z]|[0-9])*$');
66
const {
77
INTEREST_STRING_MAX_LENGTH,

0 commit comments

Comments
 (0)