Comparing version 0.10.1 to 0.10.2
@@ -6,16 +6,19 @@ 'use strict'; | ||
}); | ||
var log = function log() { | ||
var _console; | ||
return (_console = console).log.apply(_console, arguments); | ||
}; | ||
exports.default = function (element, type) { | ||
var props = element.props, | ||
scope = element.scope, | ||
result = element.result; | ||
exports.default = function (element, type) { | ||
if (type === 'IN') { | ||
log('<' + element.name + '>'); | ||
} else if (type === 'OUT') { | ||
log('</' + element.name + '>'); | ||
} else { | ||
log('<' + element.name + '>(' + type + ')'); | ||
switch (type) { | ||
case 'IN': | ||
console.log('<' + element.name + '>', { props: props }); | ||
break; | ||
case 'OUT': | ||
console.log('</' + element.name + '>', { scope: scope, result: result }); | ||
break; | ||
default: | ||
console.log('<' + element.name + '>(' + type + ')'); | ||
} | ||
}; |
{ | ||
"name": "actml", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"description": "Like jsx but for your business logic", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
376513
743