Comparing version 0.11.0 to 0.12.0
@@ -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 @@ |
@@ -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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
50370
0
969
1
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@0.2.01.0.0(transitive)
+ Addedasync@2.6.4(transitive)
+ Addedaws-sign2@0.6.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedbl@1.0.3(transitive)
+ Addedcaseless@0.11.0(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfaye-websocket@0.11.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@1.0.1(transitive)
+ Addedgenerate-function@2.3.1(transitive)
+ Addedgenerate-object-property@1.2.0(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedhar-validator@2.0.6(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhawk@3.1.3(transitive)
+ Addedhttp-signature@1.1.1(transitive)
+ Addedis-my-ip-valid@1.0.1(transitive)
+ Addedis-my-json-valid@2.20.6(transitive)
+ Addedis-property@1.0.2(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjsonpointer@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedoauth-sign@0.8.2(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedprocess-nextick-args@1.0.7(transitive)
+ Addedqs@6.0.4(transitive)
+ Addedreadable-stream@2.0.6(transitive)
+ Addedrequest@2.69.0(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedtough-cookie@2.2.2(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedasn1@0.1.11(transitive)
- Removedassert-plus@0.1.5(transitive)
- Removedasync@0.9.2(transitive)
- Removedaws-sign2@0.5.0(transitive)
- Removedbl@0.9.5(transitive)
- Removedcaseless@0.9.0(transitive)
- Removedcombined-stream@0.0.7(transitive)
- Removedctype@0.5.3(transitive)
- Removeddelayed-stream@0.0.5(transitive)
- Removedfaye-websocket@0.9.4(transitive)
- Removedforever-agent@0.5.2(transitive)
- Removedform-data@0.2.0(transitive)
- Removedhawk@2.3.1(transitive)
- Removedhttp-signature@0.10.1(transitive)
- Removedisarray@0.0.1(transitive)
- Removedmime-db@1.12.0(transitive)
- Removedmime-types@2.0.14(transitive)
- Removedoauth-sign@0.6.0(transitive)
- Removedqs@2.3.3(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedrequest@2.53.0(transitive)
- Removedtldts@6.1.52(transitive)
- Removedtldts-core@6.1.52(transitive)
- Removedtough-cookie@5.0.0(transitive)
Updatedfaye-websocket@0.11.0
Updatedrequest@2.69.x