@pusher/chatkit-server
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -8,4 +8,14 @@ # Changelog | ||
## [Unreleased](https://github.com/pusher/chatkit-server-node/compare/2.0.0...HEAD) | ||
## [Unreleased](https://github.com/pusher/chatkit-server-node/compare/2.1.0...HEAD) | ||
## [2.1.0](https://github.com/pusher/chatkit-server-node/compare/2.0.1...2.1.0) | ||
### Additions | ||
- Support for `PushNotificationTitleOverride` attribute in the Room model | ||
### Changes | ||
- Bump minimum lodash version for security concerns | ||
## [2.0.1](https://github.com/pusher/chatkit-server-node/compare/2.0.0...2.0.1) | ||
@@ -12,0 +22,0 @@ |
{ | ||
"name": "@pusher/chatkit-server", | ||
"description": "Pusher Chatkit server SDK", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"main": "target/src/index.js", | ||
@@ -33,2 +33,5 @@ "license": "MIT", | ||
}, | ||
"resolutions": { | ||
"**/**/lodash": "^4.17.13" | ||
}, | ||
"devDependencies": { | ||
@@ -35,0 +38,0 @@ "@types/tape": "^4.2.32", |
{ | ||
"name": "@pusher/chatkit-server", | ||
"description": "Pusher Chatkit server SDK", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"main": "target/src/index.js", | ||
@@ -33,2 +33,5 @@ "license": "MIT", | ||
}, | ||
"resolutions": { | ||
"**/**/lodash": "^4.17.13" | ||
}, | ||
"devDependencies": { | ||
@@ -35,0 +38,0 @@ "@types/tape": "^4.2.32", |
@@ -155,2 +155,3 @@ /// <reference types="node" /> | ||
name: string; | ||
pushNotificationTitleOverride?: string; | ||
isPrivate?: boolean; | ||
@@ -163,2 +164,3 @@ userIds?: Array<string>; | ||
name?: string; | ||
pushNotificationTitleOverride?: string | null; | ||
isPrivate?: boolean; | ||
@@ -165,0 +167,0 @@ customData?: object; |
@@ -343,5 +343,6 @@ "use strict"; | ||
}); | ||
const { id, name, isPrivate, userIds, customData } = options; | ||
const { id, name, pushNotificationTitleOverride, isPrivate, userIds, customData } = options; | ||
let roomPayload = { | ||
name, | ||
push_notification_title_override: pushNotificationTitleOverride, | ||
private: isPrivate || false, | ||
@@ -374,2 +375,5 @@ }; | ||
} | ||
if (options.pushNotificationTitleOverride) { | ||
body.push_notification_title_override = options.pushNotificationTitleOverride; | ||
} | ||
if (options.isPrivate) { | ||
@@ -376,0 +380,0 @@ body.private = options.isPrivate; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66488
959
1