Socket
Socket
Sign inDemoInstall

conduitjs

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.1 to 0.3.2

6

changelog.md

@@ -0,3 +1,7 @@

##v0.3.2
* removed the `setTarget` method I just added and replaced it with `target` - which can be used to both set the target and also return it.
##v0.3.1
* Added setTarget method to conduit instance....
* Added `setTarget` method to conduit instance....

9

lib/conduit.js
/**
* conduitjs - Give any method a pre/post invocation pipeline....
* Author: Jim Cowart (http://freshbrewedcode.com/jimcowart)
* Version: v0.3.1
* Version: v0.3.2
* Url: http://github.com/ifandelse/ConduitJS

@@ -119,4 +119,7 @@ * License: MIT

};
conduit.setTarget = function (fn) {
_target = fn;
conduit.target = function (fn) {
if (fn) {
_target = fn;
}
return _target;
};

@@ -123,0 +126,0 @@ return conduit;

/**
* conduitjs - Give any method a pre/post invocation pipeline....
* Author: Jim Cowart (http://freshbrewedcode.com/jimcowart)
* Version: v0.3.1
* Version: v0.3.2
* Url: http://github.com/ifandelse/ConduitJS
* License: MIT
*/
(function(t,n){"object"==typeof module&&module.exports?module.exports=n():"function"==typeof define&&define.amd?define(n(t)):t.Conduit=n(t)})(this,function(){function t(t){if("function"!=typeof t.target)throw new Error("You can only make functions into Conduits.");var n={pre:t.pre||[],post:t.post||[],all:[]},e=t.context,o=t.target,r={isTarget:!0,fn:t.sync?function(){var t=Array.prototype.slice.call(arguments,0),n=o.apply(e,t);return n}:function(t){var n=Array.prototype.slice.call(arguments,1);n.splice(1,1,o.apply(e,n)),t.apply(this,n)}},a=function(){n.all=n.pre.concat([r].concat(n.post))};a();var c=function(){var o,r,a=0,c=function p(){var c,i,u=Array.prototype.slice.call(arguments,0),f=a;a+=1,f<n.all.length&&(c=n.all[f],r="target"===r?"after":c.isTarget?"target":"before",t.sync?"before"===r?(i=c.fn.apply(c.context||e,u),p.apply(this,i||u)):(o=c.fn.apply(c.context||e,u)||o,p.apply(this,[o].concat(u))):c.fn.apply(c.context||e,[p].concat(u)))};return c.apply(this,arguments),o};return c.steps=function(){return n.all},c.context=function(t){return 0===arguments.length?e:void(e=t)},c.before=function(t,e){t="function"==typeof t?{fn:t}:t,e=e||{},e.prepend?n.pre.unshift(t):n.pre.push(t),a()},c.after=function(t,e){t="function"==typeof t?{fn:t}:t,e=e||{},e.prepend?n.post.unshift(t):n.post.push(t),a()},c.clear=function(){n={pre:[],post:[],all:[]},a()},c.setTarget=function(t){o=t},c}return{Sync:function(n){return n.sync=!0,t.call(this,n)},Async:function(n){return t.call(this,n)}}});
(function(t,n){"object"==typeof module&&module.exports?module.exports=n():"function"==typeof define&&define.amd?define(n(t)):t.Conduit=n(t)})(this,function(){function t(t){if("function"!=typeof t.target)throw new Error("You can only make functions into Conduits.");var n={pre:t.pre||[],post:t.post||[],all:[]},e=t.context,r=t.target,o={isTarget:!0,fn:t.sync?function(){var t=Array.prototype.slice.call(arguments,0),n=r.apply(e,t);return n}:function(t){var n=Array.prototype.slice.call(arguments,1);n.splice(1,1,r.apply(e,n)),t.apply(this,n)}},a=function(){n.all=n.pre.concat([o].concat(n.post))};a();var c=function(){var r,o,a=0,c=function p(){var c,u,i=Array.prototype.slice.call(arguments,0),f=a;a+=1,f<n.all.length&&(c=n.all[f],o="target"===o?"after":c.isTarget?"target":"before",t.sync?"before"===o?(u=c.fn.apply(c.context||e,i),p.apply(this,u||i)):(r=c.fn.apply(c.context||e,i)||r,p.apply(this,[r].concat(i))):c.fn.apply(c.context||e,[p].concat(i)))};return c.apply(this,arguments),r};return c.steps=function(){return n.all},c.context=function(t){return 0===arguments.length?e:void(e=t)},c.before=function(t,e){t="function"==typeof t?{fn:t}:t,e=e||{},e.prepend?n.pre.unshift(t):n.pre.push(t),a()},c.after=function(t,e){t="function"==typeof t?{fn:t}:t,e=e||{},e.prepend?n.post.unshift(t):n.post.push(t),a()},c.clear=function(){n={pre:[],post:[],all:[]},a()},c.target=function(t){return t&&(r=t),r},c}return{Sync:function(n){return n.sync=!0,t.call(this,n)},Async:function(n){return t.call(this,n)}}});
{
"name": "conduitjs",
"description": "Give any method a pre/post invocation pipeline....",
"version": "0.3.1",
"version": "0.3.2",
"homepage": "http://github.com/ifandelse/ConduitJS",

@@ -6,0 +6,0 @@ "repository": {

@@ -1,2 +0,2 @@

#ConduitJS v0.3.1
#ConduitJS v0.3.2

@@ -3,0 +3,0 @@ ConduitJS can be used to *intercept* your methods and give them a pre- and post-invocation pipeline. You can think of it as targeted [AOP](http://en.wikipedia.org/wiki/Aspect-oriented_programming) for JavaScript methods or the [Decorator](http://en.wikipedia.org/wiki/Decorator_pattern) pattern used to target methods specifically. Need the ability to execute behavior just before or after a method is invoked? Want to apply a predicate that determines if the method should actually fire? You can use ConduitJS to make that happen.

@@ -1,1 +0,1 @@

__history = [{"date":"Tue, 27 May 2014 19:24:47 GMT","sloc":126,"lloc":97,"functions":16,"deliveredBugs":1.1738643618589166,"maintainability":116.34557478234014,"lintErrors":3,"difficulty":47.49230769230769}]
__history = [{"date":"Tue, 27 May 2014 19:24:47 GMT","sloc":126,"lloc":97,"functions":16,"deliveredBugs":1.1738643618589166,"maintainability":116.34557478234014,"lintErrors":3,"difficulty":47.49230769230769},{"date":"Tue, 27 May 2014 19:54:11 GMT","sloc":129,"lloc":99,"functions":16,"deliveredBugs":1.1793279322493373,"maintainability":115.94636862090704,"lintErrors":3,"difficulty":48.5625}]

@@ -1,1 +0,1 @@

[{"date":"Tue, 27 May 2014 19:24:47 GMT","sloc":126,"lloc":97,"functions":16,"deliveredBugs":1.1738643618589166,"maintainability":116.34557478234014,"lintErrors":3,"difficulty":47.49230769230769}]
[{"date":"Tue, 27 May 2014 19:24:47 GMT","sloc":126,"lloc":97,"functions":16,"deliveredBugs":1.1738643618589166,"maintainability":116.34557478234014,"lintErrors":3,"difficulty":47.49230769230769},{"date":"Tue, 27 May 2014 19:54:11 GMT","sloc":129,"lloc":99,"functions":16,"deliveredBugs":1.1793279322493373,"maintainability":115.94636862090704,"lintErrors":3,"difficulty":48.5625}]

@@ -1,1 +0,1 @@

__report = {"info":{"file":"/Users/Jim/git/ConduitJS/lib/conduit.js","fileShort":"/Users/Jim/git/ConduitJS/lib/conduit.js","fileSafe":"_Users_Jim_git_ConduitJS_lib_conduit_js","link":"files/_Users_Jim_git_ConduitJS_lib_conduit_js/index.html"},"complexity":{"aggregate":{"line":8,"complexity":{"sloc":{"physical":126,"logical":97},"cyclomatic":15,"halstead":{"operators":{"distinct":21,"total":254,"identifiers":["__stripped__"]},"operands":{"distinct":65,"total":294,"identifiers":["__stripped__"]},"length":548,"vocabulary":86,"difficulty":47.49230769230769,"volume":3521.5930855767497,"effort":167248.58238731424,"bugs":1.1738643618589166,"time":9291.587910406346},"params":14}},"functions":[{"name":"<anonymous>","line":19,"complexity":{"sloc":{"physical":115,"logical":4},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":7,"identifiers":["__stripped__"]},"operands":{"distinct":6,"total":8,"identifiers":["__stripped__"]},"length":15,"vocabulary":10,"difficulty":2.6666666666666665,"volume":49.82892142331044,"effort":132.8771237954945,"bugs":0.016609640474436815,"time":7.382062433083028},"params":2}},{"name":"Conduit","line":20,"complexity":{"sloc":{"physical":104,"logical":21},"cyclomatic":3,"halstead":{"operators":{"distinct":16,"total":60,"identifiers":["__stripped__"]},"operands":{"distinct":25,"total":57,"identifiers":["__stripped__"]},"length":117,"vocabulary":41,"difficulty":18.24,"volume":626.8335845403158,"effort":11433.444582015358,"bugs":0.20894452818010525,"time":635.1913656675199},"params":1}},{"name":"<anonymous>","line":34,"complexity":{"sloc":{"physical":5,"logical":3},"cyclomatic":1,"halstead":{"operators":{"distinct":5,"total":11,"identifiers":["__stripped__"]},"operands":{"distinct":11,"total":13,"identifiers":["__stripped__"]},"length":24,"vocabulary":16,"difficulty":2.9545454545454546,"volume":96,"effort":283.6363636363636,"bugs":0.032,"time":15.757575757575758},"params":0}},{"name":"<anonymous>","line":38,"complexity":{"sloc":{"physical":5,"logical":3},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":12,"identifiers":["__stripped__"]},"operands":{"distinct":13,"total":20,"identifiers":["__stripped__"]},"length":32,"vocabulary":17,"difficulty":3.076923076923077,"volume":130.79881092001088,"effort":402.45787975387964,"bugs":0.04359960364000363,"time":22.358771097437756},"params":1}},{"name":"_genPipeline","line":44,"complexity":{"sloc":{"physical":3,"logical":2},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":9,"identifiers":["__stripped__"]},"operands":{"distinct":7,"total":10,"identifiers":["__stripped__"]},"length":19,"vocabulary":11,"difficulty":2.857142857142857,"volume":65.72920075410866,"effort":187.79771644031047,"bugs":0.021909733584702887,"time":10.433206468906137},"params":0}},{"name":"conduit","line":48,"complexity":{"sloc":{"physical":29,"logical":6},"cyclomatic":1,"halstead":{"operators":{"distinct":6,"total":10,"identifiers":["__stripped__"]},"operands":{"distinct":8,"total":11,"identifiers":["__stripped__"]},"length":21,"vocabulary":14,"difficulty":4.125,"volume":79.95445336320968,"effort":329.81212012323994,"bugs":0.026651484454403226,"time":18.32289556240222},"params":0}},{"name":"next","line":52,"complexity":{"sloc":{"physical":22,"logical":19},"cyclomatic":6,"halstead":{"operators":{"distinct":12,"total":58,"identifiers":["__stripped__"]},"operands":{"distinct":31,"total":72,"identifiers":["__stripped__"]},"length":130,"vocabulary":43,"difficulty":13.935483870967744,"volume":705.4144181112728,"effort":9830.291245937738,"bugs":0.23513813937042424,"time":546.1272914409855},"params":0}},{"name":"conduit.steps","line":77,"complexity":{"sloc":{"physical":3,"logical":1},"cyclomatic":1,"halstead":{"operators":{"distinct":2,"total":2,"identifiers":["__stripped__"]},"operands":{"distinct":2,"total":2,"identifiers":["__stripped__"]},"length":4,"vocabulary":4,"difficulty":1,"volume":8,"effort":8,"bugs":0.0026666666666666666,"time":0.4444444444444444},"params":0}},{"name":"conduit.context","line":80,"complexity":{"sloc":{"physical":7,"logical":4},"cyclomatic":2,"halstead":{"operators":{"distinct":6,"total":6,"identifiers":["__stripped__"]},"operands":{"distinct":5,"total":7,"identifiers":["__stripped__"]},"length":13,"vocabulary":11,"difficulty":4.199999999999999,"volume":44.97261104228487,"effort":188.8849663775964,"bugs":0.01499087034742829,"time":10.493609243199801},"params":1}},{"name":"conduit.before","line":87,"complexity":{"sloc":{"physical":12,"logical":8},"cyclomatic":3,"halstead":{"operators":{"distinct":11,"total":19,"identifiers":["__stripped__"]},"operands":{"distinct":11,"total":23,"identifiers":["__stripped__"]},"length":42,"vocabulary":22,"difficulty":11.5,"volume":187.29612798276648,"effort":2153.9054718018147,"bugs":0.06243204266092216,"time":119.66141510010081},"params":2}},{"name":"conduit.after","line":99,"complexity":{"sloc":{"physical":12,"logical":8},"cyclomatic":3,"halstead":{"operators":{"distinct":11,"total":19,"identifiers":["__stripped__"]},"operands":{"distinct":11,"total":23,"identifiers":["__stripped__"]},"length":42,"vocabulary":22,"difficulty":11.5,"volume":187.29612798276648,"effort":2153.9054718018147,"bugs":0.06243204266092216,"time":119.66141510010081},"params":2}},{"name":"conduit.clear","line":111,"complexity":{"sloc":{"physical":8,"logical":5},"cyclomatic":1,"halstead":{"operators":{"distinct":5,"total":9,"identifiers":["__stripped__"]},"operands":{"distinct":6,"total":9,"identifiers":["__stripped__"]},"length":18,"vocabulary":11,"difficulty":3.75,"volume":62.26976913547136,"effort":233.51163425801758,"bugs":0.020756589711823786,"time":12.972868569889865},"params":0}},{"name":"conduit.setTarget","line":119,"complexity":{"sloc":{"physical":3,"logical":1},"cyclomatic":1,"halstead":{"operators":{"distinct":1,"total":1,"identifiers":["__stripped__"]},"operands":{"distinct":2,"total":3,"identifiers":["__stripped__"]},"length":4,"vocabulary":3,"difficulty":0.75,"volume":6.339850002884625,"effort":4.754887502163469,"bugs":0.002113283334294875,"time":0.2641604167868594},"params":1}},{"name":"Sync","line":125,"complexity":{"sloc":{"physical":4,"logical":2},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":5,"identifiers":["__stripped__"]},"operands":{"distinct":6,"total":8,"identifiers":["__stripped__"]},"length":13,"vocabulary":10,"difficulty":2.6666666666666665,"volume":43.18506523353572,"effort":115.16017395609524,"bugs":0.014395021744511906,"time":6.397787442005291},"params":1}},{"name":"Async","line":129,"complexity":{"sloc":{"physical":3,"logical":1},"cyclomatic":1,"halstead":{"operators":{"distinct":3,"total":3,"identifiers":["__stripped__"]},"operands":{"distinct":4,"total":5,"identifiers":["__stripped__"]},"length":8,"vocabulary":7,"difficulty":1.875,"volume":22.458839376460833,"effort":42.11032383086406,"bugs":0.007486279792153611,"time":2.3394624350480036},"params":1}},{"name":"<anonymous>","line":8,"complexity":{"sloc":{"physical":12,"logical":7},"cyclomatic":3,"halstead":{"operators":{"distinct":8,"total":20,"identifiers":["__stripped__"]},"operands":{"distinct":9,"total":20,"identifiers":["__stripped__"]},"length":40,"vocabulary":17,"difficulty":8.88888888888889,"volume":163.4985136500136,"effort":1453.3201213334542,"bugs":0.05449950455000453,"time":80.74000674074745},"params":2}}],"maintainability":116.34557478234014,"params":0.875,"module":"/Users/Jim/git/ConduitJS/lib/conduit.js"},"jshint":{"messages":[{"severity":"error","line":123,"column":6,"message":"Unnecessary semicolon.","source":"Unnecessary semicolon."},{"severity":"error","line":127,"column":47,"message":"Missing semicolon.","source":"Missing semicolon."},{"severity":"error","line":132,"column":6,"message":"Missing semicolon.","source":"Missing semicolon."}]}}
__report = {"info":{"file":"/Users/Jim/git/ConduitJS/lib/conduit.js","fileShort":"/Users/Jim/git/ConduitJS/lib/conduit.js","fileSafe":"_Users_Jim_git_ConduitJS_lib_conduit_js","link":"files/_Users_Jim_git_ConduitJS_lib_conduit_js/index.html"},"complexity":{"aggregate":{"line":8,"complexity":{"sloc":{"physical":129,"logical":99},"cyclomatic":16,"halstead":{"operators":{"distinct":21,"total":256,"identifiers":["__stripped__"]},"operands":{"distinct":64,"total":296,"identifiers":["__stripped__"]},"length":552,"vocabulary":85,"difficulty":48.5625,"volume":3537.9837967480116,"effort":171813.3381295753,"bugs":1.1793279322493373,"time":9545.185451643072},"params":14}},"functions":[{"name":"<anonymous>","line":19,"complexity":{"sloc":{"physical":118,"logical":4},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":7,"identifiers":["__stripped__"]},"operands":{"distinct":6,"total":8,"identifiers":["__stripped__"]},"length":15,"vocabulary":10,"difficulty":2.6666666666666665,"volume":49.82892142331044,"effort":132.8771237954945,"bugs":0.016609640474436815,"time":7.382062433083028},"params":2}},{"name":"Conduit","line":20,"complexity":{"sloc":{"physical":107,"logical":21},"cyclomatic":3,"halstead":{"operators":{"distinct":16,"total":60,"identifiers":["__stripped__"]},"operands":{"distinct":24,"total":57,"identifiers":["__stripped__"]},"length":117,"vocabulary":40,"difficulty":19,"volume":622.6655871018214,"effort":11830.646154934608,"bugs":0.20755519570060713,"time":657.2581197185893},"params":1}},{"name":"<anonymous>","line":34,"complexity":{"sloc":{"physical":5,"logical":3},"cyclomatic":1,"halstead":{"operators":{"distinct":5,"total":11,"identifiers":["__stripped__"]},"operands":{"distinct":11,"total":13,"identifiers":["__stripped__"]},"length":24,"vocabulary":16,"difficulty":2.9545454545454546,"volume":96,"effort":283.6363636363636,"bugs":0.032,"time":15.757575757575758},"params":0}},{"name":"<anonymous>","line":38,"complexity":{"sloc":{"physical":5,"logical":3},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":12,"identifiers":["__stripped__"]},"operands":{"distinct":13,"total":20,"identifiers":["__stripped__"]},"length":32,"vocabulary":17,"difficulty":3.076923076923077,"volume":130.79881092001088,"effort":402.45787975387964,"bugs":0.04359960364000363,"time":22.358771097437756},"params":1}},{"name":"_genPipeline","line":44,"complexity":{"sloc":{"physical":3,"logical":2},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":9,"identifiers":["__stripped__"]},"operands":{"distinct":7,"total":10,"identifiers":["__stripped__"]},"length":19,"vocabulary":11,"difficulty":2.857142857142857,"volume":65.72920075410866,"effort":187.79771644031047,"bugs":0.021909733584702887,"time":10.433206468906137},"params":0}},{"name":"conduit","line":48,"complexity":{"sloc":{"physical":29,"logical":6},"cyclomatic":1,"halstead":{"operators":{"distinct":6,"total":10,"identifiers":["__stripped__"]},"operands":{"distinct":8,"total":11,"identifiers":["__stripped__"]},"length":21,"vocabulary":14,"difficulty":4.125,"volume":79.95445336320968,"effort":329.81212012323994,"bugs":0.026651484454403226,"time":18.32289556240222},"params":0}},{"name":"next","line":52,"complexity":{"sloc":{"physical":22,"logical":19},"cyclomatic":6,"halstead":{"operators":{"distinct":12,"total":58,"identifiers":["__stripped__"]},"operands":{"distinct":31,"total":72,"identifiers":["__stripped__"]},"length":130,"vocabulary":43,"difficulty":13.935483870967744,"volume":705.4144181112728,"effort":9830.291245937738,"bugs":0.23513813937042424,"time":546.1272914409855},"params":0}},{"name":"conduit.steps","line":77,"complexity":{"sloc":{"physical":3,"logical":1},"cyclomatic":1,"halstead":{"operators":{"distinct":2,"total":2,"identifiers":["__stripped__"]},"operands":{"distinct":2,"total":2,"identifiers":["__stripped__"]},"length":4,"vocabulary":4,"difficulty":1,"volume":8,"effort":8,"bugs":0.0026666666666666666,"time":0.4444444444444444},"params":0}},{"name":"conduit.context","line":80,"complexity":{"sloc":{"physical":7,"logical":4},"cyclomatic":2,"halstead":{"operators":{"distinct":6,"total":6,"identifiers":["__stripped__"]},"operands":{"distinct":5,"total":7,"identifiers":["__stripped__"]},"length":13,"vocabulary":11,"difficulty":4.199999999999999,"volume":44.97261104228487,"effort":188.8849663775964,"bugs":0.01499087034742829,"time":10.493609243199801},"params":1}},{"name":"conduit.before","line":87,"complexity":{"sloc":{"physical":12,"logical":8},"cyclomatic":3,"halstead":{"operators":{"distinct":11,"total":19,"identifiers":["__stripped__"]},"operands":{"distinct":11,"total":23,"identifiers":["__stripped__"]},"length":42,"vocabulary":22,"difficulty":11.5,"volume":187.29612798276648,"effort":2153.9054718018147,"bugs":0.06243204266092216,"time":119.66141510010081},"params":2}},{"name":"conduit.after","line":99,"complexity":{"sloc":{"physical":12,"logical":8},"cyclomatic":3,"halstead":{"operators":{"distinct":11,"total":19,"identifiers":["__stripped__"]},"operands":{"distinct":11,"total":23,"identifiers":["__stripped__"]},"length":42,"vocabulary":22,"difficulty":11.5,"volume":187.29612798276648,"effort":2153.9054718018147,"bugs":0.06243204266092216,"time":119.66141510010081},"params":2}},{"name":"conduit.clear","line":111,"complexity":{"sloc":{"physical":8,"logical":5},"cyclomatic":1,"halstead":{"operators":{"distinct":5,"total":9,"identifiers":["__stripped__"]},"operands":{"distinct":6,"total":9,"identifiers":["__stripped__"]},"length":18,"vocabulary":11,"difficulty":3.75,"volume":62.26976913547136,"effort":233.51163425801758,"bugs":0.020756589711823786,"time":12.972868569889865},"params":0}},{"name":"conduit.target","line":119,"complexity":{"sloc":{"physical":6,"logical":3},"cyclomatic":2,"halstead":{"operators":{"distinct":3,"total":3,"identifiers":["__stripped__"]},"operands":{"distinct":2,"total":5,"identifiers":["__stripped__"]},"length":8,"vocabulary":5,"difficulty":3.75,"volume":18.575424759098897,"effort":69.65784284662087,"bugs":0.006191808253032966,"time":3.8698801581456035},"params":1}},{"name":"Sync","line":128,"complexity":{"sloc":{"physical":4,"logical":2},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":5,"identifiers":["__stripped__"]},"operands":{"distinct":6,"total":8,"identifiers":["__stripped__"]},"length":13,"vocabulary":10,"difficulty":2.6666666666666665,"volume":43.18506523353572,"effort":115.16017395609524,"bugs":0.014395021744511906,"time":6.397787442005291},"params":1}},{"name":"Async","line":132,"complexity":{"sloc":{"physical":3,"logical":1},"cyclomatic":1,"halstead":{"operators":{"distinct":3,"total":3,"identifiers":["__stripped__"]},"operands":{"distinct":4,"total":5,"identifiers":["__stripped__"]},"length":8,"vocabulary":7,"difficulty":1.875,"volume":22.458839376460833,"effort":42.11032383086406,"bugs":0.007486279792153611,"time":2.3394624350480036},"params":1}},{"name":"<anonymous>","line":8,"complexity":{"sloc":{"physical":12,"logical":7},"cyclomatic":3,"halstead":{"operators":{"distinct":8,"total":20,"identifiers":["__stripped__"]},"operands":{"distinct":9,"total":20,"identifiers":["__stripped__"]},"length":40,"vocabulary":17,"difficulty":8.88888888888889,"volume":163.4985136500136,"effort":1453.3201213334542,"bugs":0.05449950455000453,"time":80.74000674074745},"params":2}}],"maintainability":115.94636862090704,"params":0.875,"module":"/Users/Jim/git/ConduitJS/lib/conduit.js"},"jshint":{"messages":[{"severity":"error","line":126,"column":6,"message":"Unnecessary semicolon.","source":"Unnecessary semicolon."},{"severity":"error","line":130,"column":47,"message":"Missing semicolon.","source":"Missing semicolon."},{"severity":"error","line":135,"column":6,"message":"Missing semicolon.","source":"Missing semicolon."}]}}

@@ -1,1 +0,1 @@

{"info":{"file":"/Users/Jim/git/ConduitJS/lib/conduit.js","fileShort":"/Users/Jim/git/ConduitJS/lib/conduit.js","fileSafe":"_Users_Jim_git_ConduitJS_lib_conduit_js","link":"files/_Users_Jim_git_ConduitJS_lib_conduit_js/index.html"},"complexity":{"aggregate":{"line":8,"complexity":{"sloc":{"physical":126,"logical":97},"cyclomatic":15,"halstead":{"operators":{"distinct":21,"total":254,"identifiers":["__stripped__"]},"operands":{"distinct":65,"total":294,"identifiers":["__stripped__"]},"length":548,"vocabulary":86,"difficulty":47.49230769230769,"volume":3521.5930855767497,"effort":167248.58238731424,"bugs":1.1738643618589166,"time":9291.587910406346},"params":14}},"functions":[{"name":"<anonymous>","line":19,"complexity":{"sloc":{"physical":115,"logical":4},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":7,"identifiers":["__stripped__"]},"operands":{"distinct":6,"total":8,"identifiers":["__stripped__"]},"length":15,"vocabulary":10,"difficulty":2.6666666666666665,"volume":49.82892142331044,"effort":132.8771237954945,"bugs":0.016609640474436815,"time":7.382062433083028},"params":2}},{"name":"Conduit","line":20,"complexity":{"sloc":{"physical":104,"logical":21},"cyclomatic":3,"halstead":{"operators":{"distinct":16,"total":60,"identifiers":["__stripped__"]},"operands":{"distinct":25,"total":57,"identifiers":["__stripped__"]},"length":117,"vocabulary":41,"difficulty":18.24,"volume":626.8335845403158,"effort":11433.444582015358,"bugs":0.20894452818010525,"time":635.1913656675199},"params":1}},{"name":"<anonymous>","line":34,"complexity":{"sloc":{"physical":5,"logical":3},"cyclomatic":1,"halstead":{"operators":{"distinct":5,"total":11,"identifiers":["__stripped__"]},"operands":{"distinct":11,"total":13,"identifiers":["__stripped__"]},"length":24,"vocabulary":16,"difficulty":2.9545454545454546,"volume":96,"effort":283.6363636363636,"bugs":0.032,"time":15.757575757575758},"params":0}},{"name":"<anonymous>","line":38,"complexity":{"sloc":{"physical":5,"logical":3},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":12,"identifiers":["__stripped__"]},"operands":{"distinct":13,"total":20,"identifiers":["__stripped__"]},"length":32,"vocabulary":17,"difficulty":3.076923076923077,"volume":130.79881092001088,"effort":402.45787975387964,"bugs":0.04359960364000363,"time":22.358771097437756},"params":1}},{"name":"_genPipeline","line":44,"complexity":{"sloc":{"physical":3,"logical":2},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":9,"identifiers":["__stripped__"]},"operands":{"distinct":7,"total":10,"identifiers":["__stripped__"]},"length":19,"vocabulary":11,"difficulty":2.857142857142857,"volume":65.72920075410866,"effort":187.79771644031047,"bugs":0.021909733584702887,"time":10.433206468906137},"params":0}},{"name":"conduit","line":48,"complexity":{"sloc":{"physical":29,"logical":6},"cyclomatic":1,"halstead":{"operators":{"distinct":6,"total":10,"identifiers":["__stripped__"]},"operands":{"distinct":8,"total":11,"identifiers":["__stripped__"]},"length":21,"vocabulary":14,"difficulty":4.125,"volume":79.95445336320968,"effort":329.81212012323994,"bugs":0.026651484454403226,"time":18.32289556240222},"params":0}},{"name":"next","line":52,"complexity":{"sloc":{"physical":22,"logical":19},"cyclomatic":6,"halstead":{"operators":{"distinct":12,"total":58,"identifiers":["__stripped__"]},"operands":{"distinct":31,"total":72,"identifiers":["__stripped__"]},"length":130,"vocabulary":43,"difficulty":13.935483870967744,"volume":705.4144181112728,"effort":9830.291245937738,"bugs":0.23513813937042424,"time":546.1272914409855},"params":0}},{"name":"conduit.steps","line":77,"complexity":{"sloc":{"physical":3,"logical":1},"cyclomatic":1,"halstead":{"operators":{"distinct":2,"total":2,"identifiers":["__stripped__"]},"operands":{"distinct":2,"total":2,"identifiers":["__stripped__"]},"length":4,"vocabulary":4,"difficulty":1,"volume":8,"effort":8,"bugs":0.0026666666666666666,"time":0.4444444444444444},"params":0}},{"name":"conduit.context","line":80,"complexity":{"sloc":{"physical":7,"logical":4},"cyclomatic":2,"halstead":{"operators":{"distinct":6,"total":6,"identifiers":["__stripped__"]},"operands":{"distinct":5,"total":7,"identifiers":["__stripped__"]},"length":13,"vocabulary":11,"difficulty":4.199999999999999,"volume":44.97261104228487,"effort":188.8849663775964,"bugs":0.01499087034742829,"time":10.493609243199801},"params":1}},{"name":"conduit.before","line":87,"complexity":{"sloc":{"physical":12,"logical":8},"cyclomatic":3,"halstead":{"operators":{"distinct":11,"total":19,"identifiers":["__stripped__"]},"operands":{"distinct":11,"total":23,"identifiers":["__stripped__"]},"length":42,"vocabulary":22,"difficulty":11.5,"volume":187.29612798276648,"effort":2153.9054718018147,"bugs":0.06243204266092216,"time":119.66141510010081},"params":2}},{"name":"conduit.after","line":99,"complexity":{"sloc":{"physical":12,"logical":8},"cyclomatic":3,"halstead":{"operators":{"distinct":11,"total":19,"identifiers":["__stripped__"]},"operands":{"distinct":11,"total":23,"identifiers":["__stripped__"]},"length":42,"vocabulary":22,"difficulty":11.5,"volume":187.29612798276648,"effort":2153.9054718018147,"bugs":0.06243204266092216,"time":119.66141510010081},"params":2}},{"name":"conduit.clear","line":111,"complexity":{"sloc":{"physical":8,"logical":5},"cyclomatic":1,"halstead":{"operators":{"distinct":5,"total":9,"identifiers":["__stripped__"]},"operands":{"distinct":6,"total":9,"identifiers":["__stripped__"]},"length":18,"vocabulary":11,"difficulty":3.75,"volume":62.26976913547136,"effort":233.51163425801758,"bugs":0.020756589711823786,"time":12.972868569889865},"params":0}},{"name":"conduit.setTarget","line":119,"complexity":{"sloc":{"physical":3,"logical":1},"cyclomatic":1,"halstead":{"operators":{"distinct":1,"total":1,"identifiers":["__stripped__"]},"operands":{"distinct":2,"total":3,"identifiers":["__stripped__"]},"length":4,"vocabulary":3,"difficulty":0.75,"volume":6.339850002884625,"effort":4.754887502163469,"bugs":0.002113283334294875,"time":0.2641604167868594},"params":1}},{"name":"Sync","line":125,"complexity":{"sloc":{"physical":4,"logical":2},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":5,"identifiers":["__stripped__"]},"operands":{"distinct":6,"total":8,"identifiers":["__stripped__"]},"length":13,"vocabulary":10,"difficulty":2.6666666666666665,"volume":43.18506523353572,"effort":115.16017395609524,"bugs":0.014395021744511906,"time":6.397787442005291},"params":1}},{"name":"Async","line":129,"complexity":{"sloc":{"physical":3,"logical":1},"cyclomatic":1,"halstead":{"operators":{"distinct":3,"total":3,"identifiers":["__stripped__"]},"operands":{"distinct":4,"total":5,"identifiers":["__stripped__"]},"length":8,"vocabulary":7,"difficulty":1.875,"volume":22.458839376460833,"effort":42.11032383086406,"bugs":0.007486279792153611,"time":2.3394624350480036},"params":1}},{"name":"<anonymous>","line":8,"complexity":{"sloc":{"physical":12,"logical":7},"cyclomatic":3,"halstead":{"operators":{"distinct":8,"total":20,"identifiers":["__stripped__"]},"operands":{"distinct":9,"total":20,"identifiers":["__stripped__"]},"length":40,"vocabulary":17,"difficulty":8.88888888888889,"volume":163.4985136500136,"effort":1453.3201213334542,"bugs":0.05449950455000453,"time":80.74000674074745},"params":2}}],"maintainability":116.34557478234014,"params":0.875,"module":"/Users/Jim/git/ConduitJS/lib/conduit.js"},"jshint":{"messages":[{"severity":"error","line":123,"column":6,"message":"Unnecessary semicolon.","source":"Unnecessary semicolon."},{"severity":"error","line":127,"column":47,"message":"Missing semicolon.","source":"Missing semicolon."},{"severity":"error","line":132,"column":6,"message":"Missing semicolon.","source":"Missing semicolon."}]}}
{"info":{"file":"/Users/Jim/git/ConduitJS/lib/conduit.js","fileShort":"/Users/Jim/git/ConduitJS/lib/conduit.js","fileSafe":"_Users_Jim_git_ConduitJS_lib_conduit_js","link":"files/_Users_Jim_git_ConduitJS_lib_conduit_js/index.html"},"complexity":{"aggregate":{"line":8,"complexity":{"sloc":{"physical":129,"logical":99},"cyclomatic":16,"halstead":{"operators":{"distinct":21,"total":256,"identifiers":["__stripped__"]},"operands":{"distinct":64,"total":296,"identifiers":["__stripped__"]},"length":552,"vocabulary":85,"difficulty":48.5625,"volume":3537.9837967480116,"effort":171813.3381295753,"bugs":1.1793279322493373,"time":9545.185451643072},"params":14}},"functions":[{"name":"<anonymous>","line":19,"complexity":{"sloc":{"physical":118,"logical":4},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":7,"identifiers":["__stripped__"]},"operands":{"distinct":6,"total":8,"identifiers":["__stripped__"]},"length":15,"vocabulary":10,"difficulty":2.6666666666666665,"volume":49.82892142331044,"effort":132.8771237954945,"bugs":0.016609640474436815,"time":7.382062433083028},"params":2}},{"name":"Conduit","line":20,"complexity":{"sloc":{"physical":107,"logical":21},"cyclomatic":3,"halstead":{"operators":{"distinct":16,"total":60,"identifiers":["__stripped__"]},"operands":{"distinct":24,"total":57,"identifiers":["__stripped__"]},"length":117,"vocabulary":40,"difficulty":19,"volume":622.6655871018214,"effort":11830.646154934608,"bugs":0.20755519570060713,"time":657.2581197185893},"params":1}},{"name":"<anonymous>","line":34,"complexity":{"sloc":{"physical":5,"logical":3},"cyclomatic":1,"halstead":{"operators":{"distinct":5,"total":11,"identifiers":["__stripped__"]},"operands":{"distinct":11,"total":13,"identifiers":["__stripped__"]},"length":24,"vocabulary":16,"difficulty":2.9545454545454546,"volume":96,"effort":283.6363636363636,"bugs":0.032,"time":15.757575757575758},"params":0}},{"name":"<anonymous>","line":38,"complexity":{"sloc":{"physical":5,"logical":3},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":12,"identifiers":["__stripped__"]},"operands":{"distinct":13,"total":20,"identifiers":["__stripped__"]},"length":32,"vocabulary":17,"difficulty":3.076923076923077,"volume":130.79881092001088,"effort":402.45787975387964,"bugs":0.04359960364000363,"time":22.358771097437756},"params":1}},{"name":"_genPipeline","line":44,"complexity":{"sloc":{"physical":3,"logical":2},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":9,"identifiers":["__stripped__"]},"operands":{"distinct":7,"total":10,"identifiers":["__stripped__"]},"length":19,"vocabulary":11,"difficulty":2.857142857142857,"volume":65.72920075410866,"effort":187.79771644031047,"bugs":0.021909733584702887,"time":10.433206468906137},"params":0}},{"name":"conduit","line":48,"complexity":{"sloc":{"physical":29,"logical":6},"cyclomatic":1,"halstead":{"operators":{"distinct":6,"total":10,"identifiers":["__stripped__"]},"operands":{"distinct":8,"total":11,"identifiers":["__stripped__"]},"length":21,"vocabulary":14,"difficulty":4.125,"volume":79.95445336320968,"effort":329.81212012323994,"bugs":0.026651484454403226,"time":18.32289556240222},"params":0}},{"name":"next","line":52,"complexity":{"sloc":{"physical":22,"logical":19},"cyclomatic":6,"halstead":{"operators":{"distinct":12,"total":58,"identifiers":["__stripped__"]},"operands":{"distinct":31,"total":72,"identifiers":["__stripped__"]},"length":130,"vocabulary":43,"difficulty":13.935483870967744,"volume":705.4144181112728,"effort":9830.291245937738,"bugs":0.23513813937042424,"time":546.1272914409855},"params":0}},{"name":"conduit.steps","line":77,"complexity":{"sloc":{"physical":3,"logical":1},"cyclomatic":1,"halstead":{"operators":{"distinct":2,"total":2,"identifiers":["__stripped__"]},"operands":{"distinct":2,"total":2,"identifiers":["__stripped__"]},"length":4,"vocabulary":4,"difficulty":1,"volume":8,"effort":8,"bugs":0.0026666666666666666,"time":0.4444444444444444},"params":0}},{"name":"conduit.context","line":80,"complexity":{"sloc":{"physical":7,"logical":4},"cyclomatic":2,"halstead":{"operators":{"distinct":6,"total":6,"identifiers":["__stripped__"]},"operands":{"distinct":5,"total":7,"identifiers":["__stripped__"]},"length":13,"vocabulary":11,"difficulty":4.199999999999999,"volume":44.97261104228487,"effort":188.8849663775964,"bugs":0.01499087034742829,"time":10.493609243199801},"params":1}},{"name":"conduit.before","line":87,"complexity":{"sloc":{"physical":12,"logical":8},"cyclomatic":3,"halstead":{"operators":{"distinct":11,"total":19,"identifiers":["__stripped__"]},"operands":{"distinct":11,"total":23,"identifiers":["__stripped__"]},"length":42,"vocabulary":22,"difficulty":11.5,"volume":187.29612798276648,"effort":2153.9054718018147,"bugs":0.06243204266092216,"time":119.66141510010081},"params":2}},{"name":"conduit.after","line":99,"complexity":{"sloc":{"physical":12,"logical":8},"cyclomatic":3,"halstead":{"operators":{"distinct":11,"total":19,"identifiers":["__stripped__"]},"operands":{"distinct":11,"total":23,"identifiers":["__stripped__"]},"length":42,"vocabulary":22,"difficulty":11.5,"volume":187.29612798276648,"effort":2153.9054718018147,"bugs":0.06243204266092216,"time":119.66141510010081},"params":2}},{"name":"conduit.clear","line":111,"complexity":{"sloc":{"physical":8,"logical":5},"cyclomatic":1,"halstead":{"operators":{"distinct":5,"total":9,"identifiers":["__stripped__"]},"operands":{"distinct":6,"total":9,"identifiers":["__stripped__"]},"length":18,"vocabulary":11,"difficulty":3.75,"volume":62.26976913547136,"effort":233.51163425801758,"bugs":0.020756589711823786,"time":12.972868569889865},"params":0}},{"name":"conduit.target","line":119,"complexity":{"sloc":{"physical":6,"logical":3},"cyclomatic":2,"halstead":{"operators":{"distinct":3,"total":3,"identifiers":["__stripped__"]},"operands":{"distinct":2,"total":5,"identifiers":["__stripped__"]},"length":8,"vocabulary":5,"difficulty":3.75,"volume":18.575424759098897,"effort":69.65784284662087,"bugs":0.006191808253032966,"time":3.8698801581456035},"params":1}},{"name":"Sync","line":128,"complexity":{"sloc":{"physical":4,"logical":2},"cyclomatic":1,"halstead":{"operators":{"distinct":4,"total":5,"identifiers":["__stripped__"]},"operands":{"distinct":6,"total":8,"identifiers":["__stripped__"]},"length":13,"vocabulary":10,"difficulty":2.6666666666666665,"volume":43.18506523353572,"effort":115.16017395609524,"bugs":0.014395021744511906,"time":6.397787442005291},"params":1}},{"name":"Async","line":132,"complexity":{"sloc":{"physical":3,"logical":1},"cyclomatic":1,"halstead":{"operators":{"distinct":3,"total":3,"identifiers":["__stripped__"]},"operands":{"distinct":4,"total":5,"identifiers":["__stripped__"]},"length":8,"vocabulary":7,"difficulty":1.875,"volume":22.458839376460833,"effort":42.11032383086406,"bugs":0.007486279792153611,"time":2.3394624350480036},"params":1}},{"name":"<anonymous>","line":8,"complexity":{"sloc":{"physical":12,"logical":7},"cyclomatic":3,"halstead":{"operators":{"distinct":8,"total":20,"identifiers":["__stripped__"]},"operands":{"distinct":9,"total":20,"identifiers":["__stripped__"]},"length":40,"vocabulary":17,"difficulty":8.88888888888889,"volume":163.4985136500136,"effort":1453.3201213334542,"bugs":0.05449950455000453,"time":80.74000674074745},"params":2}}],"maintainability":115.94636862090704,"params":0.875,"module":"/Users/Jim/git/ConduitJS/lib/conduit.js"},"jshint":{"messages":[{"severity":"error","line":126,"column":6,"message":"Unnecessary semicolon.","source":"Unnecessary semicolon."},{"severity":"error","line":130,"column":47,"message":"Missing semicolon.","source":"Missing semicolon."},{"severity":"error","line":135,"column":6,"message":"Missing semicolon.","source":"Missing semicolon."}]}}

@@ -1,1 +0,1 @@

__history = [{"date":"Tue, 27 May 2014 19:24:48 GMT","total":{"sloc":126,"maintainability":116.34557478234014},"average":{"sloc":126,"maintainability":"116.35"}},{"date":"Tue, 27 May 2014 19:26:42 GMT","total":{"sloc":0,"maintainability":0},"average":{"sloc":0,"maintainability":"NaN"}}]
__history = [{"date":"Tue, 27 May 2014 19:24:48 GMT","total":{"sloc":126,"maintainability":116.34557478234014},"average":{"sloc":126,"maintainability":"116.35"}},{"date":"Tue, 27 May 2014 19:26:42 GMT","total":{"sloc":0,"maintainability":0},"average":{"sloc":0,"maintainability":"NaN"}},{"date":"Tue, 27 May 2014 19:37:11 GMT","total":{"sloc":0,"maintainability":0},"average":{"sloc":0,"maintainability":"NaN"}},{"date":"Tue, 27 May 2014 19:42:40 GMT","total":{"sloc":0,"maintainability":0},"average":{"sloc":0,"maintainability":"NaN"}},{"date":"Tue, 27 May 2014 19:54:11 GMT","total":{"sloc":129,"maintainability":115.94636862090704},"average":{"sloc":129,"maintainability":"115.95"}}]

@@ -1,1 +0,1 @@

[{"date":"Tue, 27 May 2014 19:24:48 GMT","total":{"sloc":126,"maintainability":116.34557478234014},"average":{"sloc":126,"maintainability":"116.35"}},{"date":"Tue, 27 May 2014 19:26:42 GMT","total":{"sloc":0,"maintainability":0},"average":{"sloc":0,"maintainability":"NaN"}}]
[{"date":"Tue, 27 May 2014 19:24:48 GMT","total":{"sloc":126,"maintainability":116.34557478234014},"average":{"sloc":126,"maintainability":"116.35"}},{"date":"Tue, 27 May 2014 19:26:42 GMT","total":{"sloc":0,"maintainability":0},"average":{"sloc":0,"maintainability":"NaN"}},{"date":"Tue, 27 May 2014 19:37:11 GMT","total":{"sloc":0,"maintainability":0},"average":{"sloc":0,"maintainability":"NaN"}},{"date":"Tue, 27 May 2014 19:42:40 GMT","total":{"sloc":0,"maintainability":0},"average":{"sloc":0,"maintainability":"NaN"}},{"date":"Tue, 27 May 2014 19:54:11 GMT","total":{"sloc":129,"maintainability":115.94636862090704},"average":{"sloc":129,"maintainability":"115.95"}}]

@@ -1,1 +0,1 @@

__report = {"summary":{"total":{"sloc":0,"maintainability":0},"average":{"sloc":0,"maintainability":"NaN"}},"reports":[]}
__report = {"summary":{"total":{"sloc":129,"maintainability":115.94636862090704},"average":{"sloc":129,"maintainability":"115.95"}},"reports":[{"info":{"file":"/Users/Jim/git/ConduitJS/lib/conduit.js","fileShort":"/Users/Jim/git/ConduitJS/lib/conduit.js","fileSafe":"_Users_Jim_git_ConduitJS_lib_conduit_js","link":"files/_Users_Jim_git_ConduitJS_lib_conduit_js/index.html"},"jshint":{"messages":3},"complexity":{"aggregate":{"line":8,"complexity":{"sloc":{"physical":129,"logical":99},"cyclomatic":16,"halstead":{"operators":{"distinct":21,"total":256,"identifiers":["__stripped__"]},"operands":{"distinct":64,"total":296,"identifiers":["__stripped__"]},"length":552,"vocabulary":85,"difficulty":48.5625,"volume":3537.9837967480116,"effort":171813.3381295753,"bugs":1.1793279322493373,"time":9545.185451643072},"params":14}},"module":"/Users/Jim/git/ConduitJS/lib/conduit.js","maintainability":115.94636862090704}}]}

@@ -1,1 +0,1 @@

{"summary":{"total":{"sloc":0,"maintainability":0},"average":{"sloc":0,"maintainability":"NaN"}},"reports":[]}
{"summary":{"total":{"sloc":129,"maintainability":115.94636862090704},"average":{"sloc":129,"maintainability":"115.95"}},"reports":[{"info":{"file":"/Users/Jim/git/ConduitJS/lib/conduit.js","fileShort":"/Users/Jim/git/ConduitJS/lib/conduit.js","fileSafe":"_Users_Jim_git_ConduitJS_lib_conduit_js","link":"files/_Users_Jim_git_ConduitJS_lib_conduit_js/index.html"},"jshint":{"messages":3},"complexity":{"aggregate":{"line":8,"complexity":{"sloc":{"physical":129,"logical":99},"cyclomatic":16,"halstead":{"operators":{"distinct":21,"total":256,"identifiers":["__stripped__"]},"operands":{"distinct":64,"total":296,"identifiers":["__stripped__"]},"length":552,"vocabulary":85,"difficulty":48.5625,"volume":3537.9837967480116,"effort":171813.3381295753,"bugs":1.1793279322493373,"time":9545.185451643072},"params":14}},"module":"/Users/Jim/git/ConduitJS/lib/conduit.js","maintainability":115.94636862090704}}]}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc