exocom-dev
Advanced tools
Comparing version 0.15.1 to 0.15.2
// Generated by LiveScript 1.5.0 | ||
var ref$, cyan, dim, green, red, magenta, docopt, N, name, version, path, ExoCom, doc, onWebsocketBound, onHttpBound, onError, run, options; | ||
ref$ = require('chalk'), cyan = ref$.cyan, dim = ref$.dim, green = ref$.green, red = ref$.red, magenta = ref$.magenta; | ||
var ref$, cyan, dim, green, red, magenta, yellow, docopt, N, name, version, path, ExoCom, doc, onWebsocketBound, onHttpBound, onError, onWarn, run, options; | ||
ref$ = require('chalk'), cyan = ref$.cyan, dim = ref$.dim, green = ref$.green, red = ref$.red, magenta = ref$.magenta, yellow = ref$.yellow; | ||
docopt = require('docopt').docopt; | ||
@@ -24,2 +24,5 @@ N = require('nitroglycerin'); | ||
}; | ||
onWarn = function(warning){ | ||
return console.log(yellow("Warning: " + warning)); | ||
}; | ||
run = function(){ | ||
@@ -33,2 +36,3 @@ var x$, exocom; | ||
x$.on('error', onError); | ||
x$.on('warn', onWarn); | ||
x$.listen(+process.env.PORT || 3100); | ||
@@ -35,0 +39,0 @@ x$.on('routing-setup', function(){ |
@@ -78,6 +78,5 @@ // Generated by LiveScript 1.5.0 | ||
switch (false) { | ||
case !!this.routes[messageName]: | ||
throw new Error("No receivers for message '" + messageName + "' registered"); | ||
case !this.routes[messageName]: | ||
return this.routes[messageName].receivers; | ||
} | ||
return this.routes[messageName].receivers; | ||
}; | ||
@@ -84,0 +83,0 @@ ClientRegistry.prototype.canSend = function(sender, message){ |
@@ -37,3 +37,3 @@ // Generated by LiveScript 1.5.0 | ||
}); | ||
delegateEvent('websocket-bound', 'error', { | ||
delegateEvent('websocket-bound', 'error', 'warn', { | ||
from: this.websocket, | ||
@@ -85,2 +85,5 @@ to: this | ||
subscribers = this.clientRegistry.subscribersTo(externalMessageName); | ||
if (!subscribers) { | ||
return 'no receivers'; | ||
} | ||
res$ = []; | ||
@@ -87,0 +90,0 @@ for (i$ = 0, len$ = subscribers.length; i$ < len$; ++i$) { |
@@ -94,2 +94,4 @@ // Generated by LiveScript 1.5.0 | ||
break; | ||
case 'no receivers': | ||
return this.emit('warn', "No receivers for message '" + data.name + "' registered"); | ||
case 'missing request id': | ||
@@ -96,0 +98,0 @@ return this.emit('error', 'missing request id'); |
{ | ||
"name": "exocom-dev", | ||
"version": "0.15.1", | ||
"version": "0.15.2", | ||
"author": "Kevin Goslar", | ||
@@ -8,3 +8,3 @@ "dependencies": { | ||
"chalk": "1.1.3", | ||
"debug": "2.3.2", | ||
"debug": "2.3.3", | ||
"docopt": "0.6.2", | ||
@@ -23,12 +23,12 @@ "express": "4.14.0", | ||
"devDependencies": { | ||
"async": "2.1.2", | ||
"async": "2.1.4", | ||
"chai": "3.5.0", | ||
"cucumber": "1.3.1", | ||
"cucumber-snippets-livescript": "1.0.1", | ||
"dependency-lint": "4.2.0", | ||
"dependency-lint": "4.3.0", | ||
"dim-console": "0.4.4", | ||
"exosphere-shared": "0.8.17", | ||
"exosphere-shared": "0.9.4", | ||
"jsdiff-console": "2.2.1", | ||
"livescript": "1.5.0", | ||
"mocha": "3.1.2", | ||
"mocha": "3.2.0", | ||
"mocha-circleci-reporter": "0.0.2", | ||
@@ -41,3 +41,3 @@ "o-tools": "0.7.0", | ||
"record-http": "0.6.1", | ||
"request": "2.78.0" | ||
"request": "2.79.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "engines": { |
@@ -6,4 +6,5 @@ # Exosphere Communication Server | ||
[![devDependency Status](https://david-dm.org/originate/exocom-dev/dev-status.svg)](https://david-dm.org/originate/exocom-dev#info=devDependencies) | ||
[![yarn compatibility](https://img.shields.io/badge/yarn-compatible-brightgreen.svg)](https://yarnpkg.com) | ||
This is a lightweight, fast, in-memory implementation of the **Exo**sphere **Com**munication infrastructure, | ||
This is a lightweight, fast, in-memory implementation of the **Exo**sphere **Com**munication infrastructure for AI-native applications, | ||
optimized for running easily without dependencies, | ||
@@ -10,0 +11,0 @@ for example on developer machines, |
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
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
34526
842
30
+ Addeddebug@2.3.3(transitive)
- Removeddebug@2.3.2(transitive)
Updateddebug@2.3.3