New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babble

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babble - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1-SNAPSHOT

5

HISTORY.md

@@ -5,2 +5,7 @@ # babble history

## 2016-02-16, version 0.11.0
- Replaced `instanceof MyClass` checks with `object.isMyClass` checks.
## 2014-08-18, version 0.10.0

@@ -7,0 +12,0 @@

15

lib/babble.js

@@ -218,3 +218,3 @@ 'use strict';

// validate actor
['ask', 'tell', 'listen'].forEach(function (prop) {
['ask', 'tell', 'listen', 'listenOnce'].forEach(function (prop) {
if (actor[prop] !== undefined) {

@@ -240,3 +240,4 @@ throw new Error('Conflict: actor already has a property "' + prop + '"');

babbler._receive(message);
receiveOriginal.call(actor, from, message);
// TODO: only propagate to receiveOriginal if the message is not handled by the babbler
return receiveOriginal.call(actor, from, message);
};

@@ -246,3 +247,3 @@ }

actor[receiveName] = function (from, message) {
babbler._receive(message);
return babbler._receive(message);
};

@@ -262,3 +263,3 @@ }

babbler: babbler,
receive: receiveOriginal,
receiveOriginal: receiveOriginal,
receiveName: receiveName

@@ -289,5 +290,5 @@ };

// restore any original receive method
if (__babbler__.receive) {
actor[__babbler__.receiveName] = __babbler__.receive;
// restore any original receiveOriginal method
if (__babbler__.receiveOriginal) {
actor[__babbler__.receiveName] = __babbler__.receiveOriginal;
}

@@ -294,0 +295,0 @@ }

@@ -36,2 +36,5 @@ 'use strict';

// type information
Babbler.prototype.isBabbler = true;
/**

@@ -38,0 +41,0 @@ * Connect to a message bus

@@ -12,2 +12,5 @@ 'use strict';

// type information
Block.prototype.isBlock = true;
/**

@@ -14,0 +17,0 @@ * Execute the block

@@ -73,3 +73,3 @@ 'use strict';

if (choices && (choices instanceof Function)) {
if (choices && (typeof choices === 'function')) {
throw new TypeError('Parameter choices must be an object');

@@ -93,2 +93,5 @@ }

// type information
Decision.prototype.isDecision = true;
/**

@@ -137,3 +140,3 @@ * Execute the block

if (!(block instanceof Block)) {
if (!block || !block.isBlock) {
throw new TypeError('Block expected as choice');

@@ -140,0 +143,0 @@ }

@@ -48,3 +48,3 @@ 'use strict';

if (condition instanceof Function) {
if (typeof condition === 'function') {
this.condition = condition;

@@ -63,7 +63,7 @@ }

if (trueBlock && !(trueBlock instanceof Block)) {
if (trueBlock && !trueBlock.isBlock) {
throw new TypeError('Parameter trueBlock must be a Block');
}
if (falseBlock && !(falseBlock instanceof Block)) {
if (falseBlock && !falseBlock.isBlock) {
throw new TypeError('Parameter falseBlock must be a Block');

@@ -79,2 +79,5 @@ }

// type information
IIf.prototype.isIIf = true;
/**

@@ -81,0 +84,0 @@ * Execute the block

@@ -24,2 +24,5 @@ 'use strict';

// type information
Listen.prototype.isListen = true;
/**

@@ -26,0 +29,0 @@ * Execute the block

@@ -35,2 +35,5 @@ 'use strict';

// type information
Tell.prototype.isTell = true;
/**

@@ -37,0 +40,0 @@ * Execute the block

@@ -32,2 +32,5 @@ 'use strict';

// type information
Then.prototype.isThen = true;
/**

@@ -70,3 +73,3 @@ * Execute the block

if (!(next instanceof Block)) {
if (!next || !next.isBlock) {
throw new TypeError('Parameter next must be a Block or function');

@@ -73,0 +76,0 @@ }

@@ -32,2 +32,5 @@ var uuid = require('node-uuid');

// type information
Conversation.prototype.isConversation = true;
/**

@@ -34,0 +37,0 @@ * Send a message

{
"name": "babble",
"version": "0.10.0",
"version": "0.10.1-SNAPSHOT",
"description": "Dynamic communication flows between message based actors.",

@@ -16,6 +16,6 @@ "author": "Jos de Jong <wjosdejong@gmail.com> (https://github.com/josdejong)",

"dependencies": {
"es6-promise": "^1.0.0",
"node-uuid": "~1.4.1",
"pubnub": "~3.6.7",
"pubsub-js": "~1.4.0"
"es6-promise": "^3.1.2",
"node-uuid": "~1.4.7",
"pubnub": "~3.9.2",
"pubsub-js": "~1.5.3"
},

@@ -22,0 +22,0 @@ "devDependencies": {

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

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