Socket
Socket
Sign inDemoInstall

ddp

Package Overview
Dependencies
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ddp - npm Package Compare versions

Comparing version 0.11.0 to 0.12.0

6

CHANGELOG.md

@@ -0,1 +1,7 @@

0.12.0 — 2016-03-31
- Update npm dependencies, including faye-websocket (#78)
- Catch JSON parsing exceptions (#77)
- Fix adding changed handler on observer creator (#72)
0.11.0 — 2015-03-23

@@ -2,0 +8,0 @@

15

lib/ddp-client.js

@@ -365,4 +365,9 @@ "use strict";

} else if (body) {
var info = JSON.parse(body);
if(!info.base_url) {
var info;
try {
info = JSON.parse(body);
} catch (e) {
console.error(e);
}
if (!info || !info.base_url) {
// no base_url, then use pure WS handling

@@ -505,6 +510,6 @@ var url = self._buildWsUrl();

* Observation can be stopped by calling the stop() method on the observer.
* Functions for added, updated and removed can be added to the observer
* Functions for added, changed and removed can be added to the observer
* afterward.
*/
DDPClient.prototype.observe = function(name, added, updated, removed) {
DDPClient.prototype.observe = function(name, added, changed, removed) {
var self = this;

@@ -523,3 +528,3 @@ var observer = {};

observer.added = added || function(){};
observer.updated = updated || function(){};
observer.changed = changed || function(){};
observer.removed = removed || function(){};

@@ -526,0 +531,0 @@

{
"name": "ddp",
"version": "0.11.0",
"version": "0.12.0",
"description": "Node.js module to connect to servers using DDP protocol.",

@@ -15,3 +15,3 @@ "author": "Tom Coleman <tom@thesnail.org> (http://tom.thesnail.org)",

],
"license": "MIT/X11",
"license": "MIT",
"main": "lib/ddp-client",

@@ -30,9 +30,9 @@ "keywords": [

"ddp-ejson": "0.8.1-3",
"faye-websocket": "~0.9.4",
"request": "2.53.x"
"faye-websocket": "0.11.0",
"request": "2.69.x"
},
"devDependencies": {
"mocha": "~2.2.1",
"sinon": "~1.14.1",
"rewire": "~2.3.1"
"mocha": "~2.4.5",
"sinon": "~1.17.3",
"rewire": "~2.5.1"
},

@@ -39,0 +39,0 @@ "scripts": {

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