harcon-radiation
Advanced tools
Comparing version 0.1.0 to 0.1.5
@@ -38,4 +38,4 @@ var rest = require('connect-rest'); | ||
radiation.ignite = function( event, params, callback ){ | ||
var parameters = [ event ].concat( params ); | ||
radiation.ignite = function( division, event, params, callback ){ | ||
var parameters = [ division, event ].concat( params ); | ||
parameters.push( function(err, res){ | ||
@@ -74,3 +74,3 @@ return callback( err, res ); | ||
rest.post( path, function( request, content, callback ){ | ||
self.ignite( firestarter.context + '.' + service, content.params || content.parameters || [], callback ); | ||
self.ignite( firestarter.division, firestarter.context + '.' + service, content.params || content.parameters || [], callback ); | ||
} ); | ||
@@ -130,3 +130,3 @@ self.rests[ firestarter.name ].push( path ); | ||
if( self.ios.contains( data.event ) ){ | ||
return self.ignite( data.event, data.params || data.parameters || [], function(err, res){ | ||
return self.ignite( data.division, data.event, data.params || data.parameters || [], function(err, res){ | ||
socket.emit( err ? 'error' : 'done', err ? err.message : res ); | ||
@@ -133,0 +133,0 @@ } ); |
{ | ||
"name": "harcon-radiation", | ||
"version": "0.1.0", | ||
"version": "0.1.5", | ||
"description": "REST and Websocket plugin for harcon", | ||
@@ -53,3 +53,3 @@ "keywords": [ | ||
}, | ||
"_id": "harcon-radiation@0.1.0" | ||
"_id": "harcon-radiation@0.1.5" | ||
} |
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
22861