Comparing version 2.0.3-channel-groups to 2.0.4-channel-groups
{ | ||
"name": "ably", | ||
"description": "Realtime client library for Ably, the realtime messaging service", | ||
"version": "2.0.3-channel-groups", | ||
"version": "2.0.4-channel-groups", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -15,3 +15,3 @@ import * as Ably from 'ably'; | ||
export type ChannelParameters = string | ChannelNameAndOptions; | ||
export declare const version = "2.0.3-channel-groups"; | ||
export declare const version = "2.0.4-channel-groups"; | ||
export declare function channelOptionsWithAgent(options?: Ably.ChannelOptions): { | ||
@@ -18,0 +18,0 @@ params: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.channelOptionsWithAgent = exports.version = void 0; | ||
exports.version = '2.0.3-channel-groups'; | ||
exports.version = '2.0.4-channel-groups'; | ||
function channelOptionsWithAgent(options) { | ||
@@ -6,0 +6,0 @@ return Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.params), { agent: `react-hooks/${exports.version}` }) }); |
@@ -15,3 +15,3 @@ import * as Ably from 'ably'; | ||
export type ChannelParameters = string | ChannelNameAndOptions; | ||
export declare const version = "2.0.3-channel-groups"; | ||
export declare const version = "2.0.4-channel-groups"; | ||
export declare function channelOptionsWithAgent(options?: Ably.ChannelOptions): { | ||
@@ -18,0 +18,0 @@ params: { |
@@ -1,2 +0,2 @@ | ||
export const version = '2.0.3-channel-groups'; | ||
export const version = '2.0.4-channel-groups'; | ||
export function channelOptionsWithAgent(options) { | ||
@@ -3,0 +3,0 @@ return Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.params), { agent: `react-hooks/${version}` }) }); |
@@ -213,3 +213,3 @@ import * as Utils from '../util/utils'; | ||
this.emit('membership'); | ||
this.emit('membership', memberIds); | ||
Logger.logAction( | ||
@@ -254,3 +254,6 @@ Logger.LOG_MAJOR, | ||
this.consumerGroup = new ConsumerGroup(channels, options?.consumerGroup?.name); | ||
this.consumerGroup.on('membership', () => this.updateAssignedChannels()); | ||
this.consumerGroup.on('membership', (memberIds: string[]) => { | ||
this.emit('membership.updated', memberIds); | ||
this.updateAssignedChannels(); | ||
}); | ||
this.expression = new RegExp(filter); // eslint-disable-line security/detect-non-literal-regexp | ||
@@ -257,0 +260,0 @@ } |
@@ -19,3 +19,3 @@ import * as Ably from 'ably'; | ||
export const version = '2.0.3-channel-groups'; | ||
export const version = '2.0.4-channel-groups'; | ||
@@ -22,0 +22,0 @@ export function channelOptionsWithAgent(options?: Ably.ChannelOptions) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
5645803
70845