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

leancloud-realtime

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leancloud-realtime - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

4

bower.json
{
"name": "leancloud-realtime",
"version": "3.0.1",
"version": "3.0.2",
"homepage": "https://github.com/leancloud/js-realtime-sdk/",

@@ -26,5 +26,5 @@ "description": "LeanCloud JavaScript Realtime SDK",

"devDependencies": {
"mocha": "~2.4.5",
"mocha": "^2.5.0",
"sinon": "http://sinonjs.org/releases/sinon-1.17.3.js"
}
}

@@ -0,1 +1,11 @@

<a name="3.0.2"></a>
## 3.0.2 (2016-06-30)
### Bug Fixes
* **ConversationQuery:** 指定 `withLastMessagesRefreshed` 时,查询结果的 lastMessage 现在包含了完整的信息(`from`、`id`) ([#285](https://github.com/leancloud/js-realtime-sdk/issues/285)) ([51bda7e](https://github.com/leancloud/js-realtime-sdk/commit/51bda7e))
<a name="3.0.1"></a>

@@ -2,0 +12,0 @@ ## 3.0.1 (2016-06-27)

@@ -38,3 +38,3 @@ /* eslint-disable */

browserName: 'firefox',
version: 'latest',
version: '46',
platform: 'Windows 7'

@@ -41,0 +41,0 @@ }, {

{
"name": "leancloud-realtime",
"version": "3.0.1",
"version": "3.0.2",
"description": "LeanCloud Realtime Message JavaScript SDK",

@@ -5,0 +5,0 @@ "main": "dist/realtime.js",

@@ -527,2 +527,5 @@ import Client from './client';

msg: 'lastMessage',
msg_from: 'lastMessageFrom',
msg_mid: 'lastMessageId',
msg_timestamp: 'lastMessageTimestamp',
m: 'members',

@@ -536,2 +539,8 @@ attr: 'attributes',

data.lastMessage = this._messageParser.parse(data.lastMessage);
data.lastMessage.from = data.lastMessageFrom;
data.lastMessage.id = data.lastMessageId;
data.lastMessage.timestamp = new Date(data.lastMessageTimestamp);
delete data.lastMessageFrom;
delete data.lastMessageId;
delete data.lastMessageTimestamp;
}

@@ -538,0 +547,0 @@ return new Conversation(data, this);

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

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