Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ably

Package Overview
Dependencies
Maintainers
6
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ably - npm Package Compare versions

Comparing version 2.6.1 to 2.6.2

2

build/push.js
/*@license Copyright 2015-2022 Ably Real-time Ltd (ably.com)
Ably JavaScript Library v2.6.1
Ably JavaScript Library v2.6.2
https://github.com/ably/ably-js

@@ -5,0 +5,0 @@

/*@license Copyright 2015-2022 Ably Real-time Ltd (ably.com)
Ably JavaScript Library v2.6.1
Ably JavaScript Library v2.6.2
https://github.com/ably/ably-js

@@ -5,0 +5,0 @@

/*@license Copyright 2015-2022 Ably Real-time Ltd (ably.com)
Ably JavaScript Library v2.6.1
Ably JavaScript Library v2.6.2
https://github.com/ably/ably-js

@@ -5,0 +5,0 @@

{
"name": "ably",
"description": "Realtime client library for Ably, the realtime messaging service",
"version": "2.6.1",
"version": "2.6.2",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "bugs": {

@@ -11,3 +11,3 @@ import * as Ably from 'ably';

export type ChannelParameters = string | ChannelNameAndOptions;
export declare const version = "2.6.1";
export declare const version = "2.6.2";
export declare function channelOptionsWithAgent(options?: Ably.ChannelOptions): {

@@ -14,0 +14,0 @@ params: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.channelOptionsWithAgent = exports.version = void 0;
exports.version = '2.6.1';
exports.version = '2.6.2';
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}` }) });

@@ -11,3 +11,3 @@ import * as Ably from 'ably';

export type ChannelParameters = string | ChannelNameAndOptions;
export declare const version = "2.6.1";
export declare const version = "2.6.2";
export declare function channelOptionsWithAgent(options?: Ably.ChannelOptions): {

@@ -14,0 +14,0 @@ params: {

@@ -1,2 +0,2 @@

export const version = '2.6.1';
export const version = '2.6.2';
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}` }) });

@@ -599,4 +599,3 @@ import { actions, channelModes } from '../types/protocolmessagecommon';

firstMessage = encoded[0],
lastMessage = encoded[encoded.length - 1],
channelSerial = message.channelSerial;
lastMessage = encoded[encoded.length - 1];

@@ -643,9 +642,2 @@ if (

for (let i = 0; i < messages.length; i++) {
const msg = messages[i];
if (channelSerial && !msg.version) {
msg.version = channelSerial + ':' + i.toString().padStart(3, '0');
}
}
this._lastPayload.messageId = lastMessage.id;

@@ -652,0 +644,0 @@ this._lastPayload.protocolMessageChannelSerial = message.channelSerial;

@@ -221,7 +221,16 @@ import Platform from 'common/platform';

export function populateFieldsFromParent(parent: ProtocolMessage) {
const { id, connectionId, timestamp, channelSerial } = parent;
let msgs: BaseMessage[];
switch (parent.action) {
case actions.MESSAGE:
case actions.MESSAGE: {
msgs = parent.messages!;
for (let i = 0; i < msgs.length; i++) {
const msg = parent.messages![i];
if (channelSerial && !msg.version) {
msg.version = channelSerial + ':' + i.toString().padStart(3, '0');
}
}
break;
}
case actions.PRESENCE:

@@ -235,8 +244,13 @@ case actions.SYNC:

const { id, connectionId, timestamp } = parent;
for (let i = 0; i < msgs.length; i++) {
const msg = msgs[i];
if (!msg.connectionId) msg.connectionId = connectionId;
if (!msg.timestamp) msg.timestamp = timestamp;
if (id && !msg.id) msg.id = id + ':' + i;
if (!msg.connectionId) {
msg.connectionId = connectionId;
}
if (!msg.timestamp) {
msg.timestamp = timestamp;
}
if (id && !msg.id) {
msg.id = id + ':' + i;
}
}

@@ -243,0 +257,0 @@ }

@@ -15,3 +15,3 @@ import * as Ably from 'ably';

export const version = '2.6.1';
export const version = '2.6.2';

@@ -18,0 +18,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 not supported yet

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 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