Comparing version 2.0.1-channel-groups to 2.0.2-channel-groups
@@ -264,3 +264,3 @@ /** | ||
/** | ||
* See {@link ChannelGroups | documentation for the `ChannelGroups` module}. | ||
* See {@link ChannelGroups | documentation for the `ChannelGroups` plugin}. | ||
*/ | ||
@@ -267,0 +267,0 @@ ChannelGroups?: typeof ChannelGroups; |
{ | ||
"name": "ably", | ||
"description": "Realtime client library for Ably, the realtime messaging service", | ||
"version": "2.0.1-channel-groups", | ||
"version": "2.0.2-channel-groups", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -192,3 +192,7 @@ import * as Utils from '../util/utils'; | ||
const memberIds = result?.filter((member) => member.clientId).map((member) => member.clientId!) || []; | ||
let memberIds = result?.filter((member) => member.clientId).map((member) => member.clientId!) || []; | ||
// each member will be entered into the presence set once per connection, | ||
// so we need to deduplicate the members by client ID | ||
memberIds = memberIds.filter((id, index) => memberIds.indexOf(id) === index); | ||
const { add, remove } = diffSets(this.locator.getNodes(), memberIds); | ||
@@ -195,0 +199,0 @@ |
@@ -200,6 +200,2 @@ import Platform from 'common/platform'; | ||
export function arrIn(arr: Array<unknown>, val: unknown): boolean { | ||
return arr.indexOf(val) !== -1; | ||
} | ||
export function arrDeleteValue<T>(arr: Array<T>, val: T): boolean { | ||
@@ -206,0 +202,0 @@ const idx = arr.indexOf(val); |
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
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
6537195
79969