Comparing version 0.0.4 to 0.0.5
@@ -363,3 +363,2 @@ "use strict"; | ||
behaviours.loggable = function (flow) { | ||
flow.toString = function () { | ||
@@ -369,2 +368,6 @@ return "{ Object Flow, name:%name }".replace("%name", flow.name()); | ||
}; | ||
function log(flow, name, newData, oldData) { | ||
instance.logger && !isInternal(flow) && instance.logger(flow, name, newData, oldData); | ||
} | ||
behaviours.stateful = function (flow, defaults, name, data) { | ||
@@ -462,6 +465,2 @@ flow.data = function () { | ||
function log(flow, name, newData, oldData) { | ||
instance.logger && !isInternal(flow) && instance.logger(flow, name, newData, oldData); | ||
} | ||
function dispatchInternalEvent(flow, name, newData, oldData) { | ||
@@ -468,0 +467,0 @@ var e = create(DEFAULTS, "flow." + name); |
{ | ||
"name": "nflow", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "event/data/control flow", | ||
@@ -18,12 +18,13 @@ "main": "dist/flow.js", | ||
"devDependencies": { | ||
"karma": "~0.12.31", | ||
"chai": "~2.1.2", | ||
"gulp": "~3.8.11", | ||
"gulp-babel": "~4.0.0", | ||
"gulp-concat": "~2.5.2", | ||
"gulp-mocha": "~2.0.0", | ||
"gulp-sourcemaps": "~1.5.1", | ||
"gulp-traceur": "~0.17.0", | ||
"gulp-util": "~3.0.4", | ||
"gulp-concat": "~2.5.2", | ||
"gulp-traceur": "~0.17.0", | ||
"gulp-sourcemaps": "~1.5.1", | ||
"chai": "~2.1.2", | ||
"gulp-babel": "~4.0.0" | ||
"html-webpack-plugin": "^1.6.2", | ||
"karma": "~0.12.31" | ||
} | ||
} |
@@ -24,2 +24,8 @@ var guid = 0 | ||
flow.call = (...functions){ | ||
functions | ||
.filter(f=>typeof(f)=='function') | ||
.forEach(f=>f(flow)) | ||
} | ||
} |
behaviours.loggable = (flow)=>{ | ||
flow.toString = () => { | ||
@@ -7,3 +6,8 @@ return "{ Object Flow, name:%name }" | ||
} | ||
} | ||
function log(flow, name, newData, oldData){ | ||
instance.logger | ||
&& !isInternal(flow) | ||
&& instance.logger(flow, name, newData, oldData) | ||
} |
@@ -45,8 +45,2 @@ /** | ||
function log(flow, name, newData, oldData){ | ||
instance.logger | ||
&& !isInternal(flow) | ||
&& instance.logger(flow, name, newData, oldData) | ||
} | ||
function dispatchInternalEvent(flow, name, newData, oldData){ | ||
@@ -53,0 +47,0 @@ var e= create(DEFAULTS, "flow."+name) |
Sorry, the diff of this file is not supported yet
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
80081
1566
10