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

pusher-chatkit-server

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pusher-chatkit-server - npm Package Compare versions

Comparing version 0.11.2 to 0.12.0

.github/ISSUE_TEMPLATE.md

86

CHANGELOG.md
# Changelog
All notable changes to this project will be documented in this file.
## [0.11.2] 2018-04-17
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased](https://github.com/pusher/chatkit-server-node/compare/0.12.0...HEAD)
## [0.12.0](https://github.com/pusher/chatkit-server-node/compare/0.11.2...0.12.0) - 2018-04-23
### Changes
- Bump pusher-platform-node dependency to 0.13.0
- `authenticate` now returns an object like this:
```js
{
"status": 200,
"headers": {
"Some-Header": "some-value"
},
"body": {
"access_token": "an.access.token",
"token_type": "bearer",
"expires_in": 86400
}
}
```
where:
* `status` is the suggested HTTP response status code,
* `headers` are the suggested response headers,
* `body` holds the token payload.
If there's an error with the authentication process then the return value will be the same but with a different `body`. For example:
```js
{
"status": 422,
"headers": {
"Some-Header": "some-value"
},
"body": {
"error": "token_provider/invalid_grant_type",
"error_description": "The grant_type provided, some-invalid-grant-type, is unsupported"
}
}
```
- Authentication no longer returns refresh tokens.
If your client devices are running the:
* Swift SDK - (**breaking change**) you must be using version `>= 0.8.0` of [chatkit-swift](https://github.com/pusher/chatkit-swift).
* Android SDK - you won't be affected regardless of which version you are running.
* JS SDK - you won't be affected regardless of which version you are running.
## [0.11.2](https://github.com/pusher/chatkit-server-node/compare/0.11.1...0.11.2) - 2018-04-17
### Additions

@@ -9,3 +65,3 @@

## [0.11.1] 2018-04-10
## [0.11.1](https://github.com/pusher/chatkit-server-node/compare/0.11.0...0.11.1) - 2018-04-10

@@ -16,3 +72,3 @@ ### Fixes

## [0.11.0] 2018-04-09
## [0.11.0](https://github.com/pusher/chatkit-server-node/compare/0.10.0...0.11.0) - 2018-04-09

@@ -57,3 +113,3 @@ ### Changes

## [0.10.0] 2018-03-12
## [0.10.0](https://github.com/pusher/chatkit-server-node/compare/0.9.2...0.10.0) - 2018-03-12

@@ -70,3 +126,3 @@ ### Changes

## [0.9.2] 2018-02-08
## [0.9.2](https://github.com/pusher/chatkit-server-node/compare/0.9.1...0.9.2) - 2018-02-08

@@ -81,3 +137,3 @@ ### Changes

## [0.9.1] 2018-01-26
## [0.9.1](https://github.com/pusher/chatkit-server-node/compare/0.9.0...0.9.1) - 2018-01-26

@@ -94,3 +150,3 @@ ### Additions

## [0.9.0] 2018-01-16
## [0.9.0](https://github.com/pusher/chatkit-server-node/compare/0.8.3...0.9.0) - 2018-01-16

@@ -109,3 +165,3 @@ ### Additions

## [0.8.3] 2018-01-04
## [0.8.3](https://github.com/pusher/chatkit-server-node/compare/0.8.2...0.8.3) - 2018-01-04

@@ -116,3 +172,3 @@ ### Additions

## [0.8.0] 2017-12-19
## [0.8.0](https://github.com/pusher/chatkit-server-node/compare/0.7.2...0.8.0) - 2017-12-19

@@ -123,3 +179,3 @@ ### Changes

## [0.7.2] 2017-12-11
## [0.7.2](https://github.com/pusher/chatkit-server-node/compare/0.7.1...0.7.2) - 2017-12-11

@@ -130,3 +186,3 @@ ### Changes

## [0.7.1] 2017-11-23
## [0.7.1](https://github.com/pusher/chatkit-server-node/compare/0.7.0...0.7.1) - 2017-11-23

@@ -137,3 +193,3 @@ ### Fixes

## [0.7.0] 2017-11-20
## [0.7.0](https://github.com/pusher/chatkit-server-node/compare/0.6.0...0.7.0) - 2017-11-20

@@ -148,3 +204,3 @@ ### Changes

## [0.6.0] 2017-11-16
## [0.6.0](https://github.com/pusher/chatkit-server-node/compare/0.5.2...0.6.0) - 2017-11-16

@@ -155,3 +211,3 @@ ### Additions

## [0.5.2] 2017-11-10
## [0.5.2](https://github.com/pusher/chatkit-server-node/compare/0.5.1...0.5.2) - 2017-11-10

@@ -166,3 +222,3 @@ ### Fixes

## [0.5.1] 2017-11-10
## [0.5.1](https://github.com/pusher/chatkit-server-node/compare/0.5.0...0.5.1) - 2017-11-10

@@ -169,0 +225,0 @@ ### Changes

4

package.json
{
"name": "pusher-chatkit-server",
"description": "Pusher Chatkit server library",
"version": "0.11.2",
"version": "0.12.0",
"main": "./target/index.js",

@@ -20,3 +20,3 @@ "license": "MIT",

"jsonwebtoken": "^8.2.0",
"pusher-platform-node": "~0.12.1"
"pusher-platform-node": "~0.13.0"
},

@@ -23,0 +23,0 @@ "devDependencies": {

@@ -225,2 +225,12 @@ import {

createUsers(options: CreateUsersOptions): Promise<any> {
const users = options.users.map(user => {
const { id, name } = user;
return {
id,
name,
avatar_url: user.avatarURL,
custom_data: user.customData,
}
});
return this.apiInstance.request({

@@ -233,3 +243,3 @@ method: 'POST',

body: {
users: options.users
users
},

@@ -236,0 +246,0 @@ jwt: this.getServerToken(),

@@ -7,4 +7,3 @@ export { default as default } from './chatkit';

AuthenticationResponse,
InvalidGrantTypeError,
UnsupportedGrantTypeError,
ErrorResponse,
} from 'pusher-platform-node';

@@ -80,2 +80,11 @@ "use strict";

Chatkit.prototype.createUsers = function (options) {
var users = options.users.map(function (user) {
var id = user.id, name = user.name;
return {
id: id,
name: name,
avatar_url: user.avatarURL,
custom_data: user.customData,
};
});
return this.apiInstance.request({

@@ -88,3 +97,3 @@ method: 'POST',

body: {
users: options.users
users: users
},

@@ -91,0 +100,0 @@ jwt: this.getServerToken(),

export { default as default } from './chatkit';
export { AuthenticateOptions, AuthenticatePayload, AuthenticationResponse, InvalidGrantTypeError, UnsupportedGrantTypeError } from 'pusher-platform-node';
export { AuthenticateOptions, AuthenticatePayload, AuthenticationResponse, ErrorResponse } from 'pusher-platform-node';

@@ -6,4 +6,4 @@ "use strict";

var pusher_platform_node_1 = require("pusher-platform-node");
exports.InvalidGrantTypeError = pusher_platform_node_1.InvalidGrantTypeError;
exports.UnsupportedGrantTypeError = pusher_platform_node_1.UnsupportedGrantTypeError;
exports.AuthenticationResponse = pusher_platform_node_1.AuthenticationResponse;
exports.ErrorResponse = pusher_platform_node_1.ErrorResponse;
//# sourceMappingURL=index.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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