Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

harcon-radiation

Package Overview
Dependencies
Maintainers
1
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

harcon-radiation - npm Package Compare versions

Comparing version 0.5.6 to 0.6.0

15

lib/harcon-radiation.js

@@ -6,3 +6,3 @@ var ES6 = require('./ES6Fixer');

var VERSION = exports.VERSION = '0.5.6';
var VERSION = exports.VERSION = '0.6.0';
function extend(obj, extension){

@@ -26,2 +26,5 @@ for(var key in extension){

this.logger = this.options.logger || inflicter.logger;
this.inceptors = this.options.inceptors || {};
this.logger.radiationlog = function( err, message, obj, level ){

@@ -80,2 +83,6 @@ this.log( err ? 'error' : (level || 'debug'), err ? err.message : message, extend( obj || {}, { 'radiation': VERSION } ) );

radiation.intercept = function(path, interceptor){
this.inceptors[ path ] = interceptor;
};
radiation.ignite = function( id, terms, division, event, params, callback ){

@@ -149,3 +156,7 @@ var parameters = [ id, division, event ].concat( params );

self.restify.post( path, function( request, content, callback ){
self.ignite( clerobee.generate(), { request: request, content: content }, firestarter.division, firestarter.context + '.' + service, content.params || content.parameters || [], callback );
self.ignite( clerobee.generate(), { request: request, content: content }, firestarter.division, firestarter.context + '.' + service, content.params || content.parameters || [], function(err, res){
if( self.inceptors[ path.context + path.path ] )
self.inceptors[ path.context + path.path ]( request, content, err, res );
callback( err, res );
} );
}, null, security );

@@ -152,0 +163,0 @@ return path;

4

package.json
{
"name": "harcon-radiation",
"version": "0.5.6",
"version": "0.6.0",
"description": "REST and Websocket plugin for harcon",

@@ -54,3 +54,3 @@ "keywords": [

},
"_id": "harcon-radiation@0.5.6"
"_id": "harcon-radiation@0.6.0"
}
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