streamline
Advanced tools
Comparing version 0.1.15 to 0.1.16
@@ -1,2 +0,2 @@ | ||
/*** Generated by streamline 0.1.14 - DO NOT EDIT ***/ | ||
/*** Generated by streamline 0.1.16 - DO NOT EDIT ***/ | ||
@@ -7,2 +7,4 @@ "use strict"; | ||
function __future(fn, args, i) { var done, err, result; var cb = function(e, r) { done = true; err = e, result = r; }; args = Array.prototype.slice.call(args); args[i] = function(e, r) { cb(e, r); }; fn.apply(this, args); return function(_) { if (done) _.call(this, err, result); else cb = _.bind(this); }.bind(this); } | ||
function __propagate(_, err) { try { _(err); } catch (ex) { __trap(ex); } } | ||
function __trap(err) { if (err) { if (__global.__context && __global.__context.errorHandler) __global.__context.errorHandler(err); else console.error("UNCAUGHT EXCEPTION: " + err.message + "\n" + err.stack); } } | ||
/* 1 */ var fs = require("fs"); | ||
@@ -9,0 +11,0 @@ /* 3 */ var path = require("path"); |
@@ -1,2 +0,2 @@ | ||
/*** Generated by streamline 0.1.14 - DO NOT EDIT ***/ | ||
/*** Generated by streamline 0.1.16 - DO NOT EDIT ***/ | ||
var __global = typeof global !== 'undefined' ? global : window; function __cb(_, fn) { var ctx = __global.__context; return function(err, result) { __global.__context = ctx; if (err) return _(err); return fn(null, result); } } function __future(fn, args, i) { var done, err, result; var cb = function(e, r) { done = true; err = e, result = r; }; args = Array.prototype.slice.call(args); args[i] = function(e, r) { cb(e, r); }; fn.apply(this, args); return function(_) { if (done) _.call(this, err, result); else cb = _.bind(this); }.bind(this); } function __nt(_, fn) { var i = 0; var cb = __cb(_, fn); var safeCb = function() { try { cb(); } catch (ex) { __propagate(cb, ex); } }; if (typeof process != "undefined" && typeof process.nextTick == "function") return function() { if (++i % 20 == 0) process.nextTick(safeCb); else cb(); }; else return function() { if (++i % 20 == 0) setTimeout(safeCb); else cb(); }; } function __propagate(_, err) { try { _(err); } catch (ex) { __trap(ex); } } function __trap(err) { if (err) { if (__global.__context && __global.__context.errorHandler) __global.__context.errorHandler(err); else console.error("UNCAUGHT EXCEPTION: " + err.message + "\n" + err.stack); } } function __forIn(object) { var array = []; for (var obj in object) { array.push(obj); } return array; } (function __1(exports) { | ||
@@ -3,0 +3,0 @@ |
@@ -1566,3 +1566,3 @@ /** | ||
strict = strict ? '"use strict";' + sep : ""; | ||
used.__propagate = used.__propagate || used.__nt; | ||
used.__propagate = used.__propagate || used.__nt || options.tryCatch !== "fast"; | ||
used.__trap = used.__trap || used.__propagate || used.__wrapIn || used.__wrapOut; | ||
@@ -1580,3 +1580,3 @@ return sep + strict + __global + | ||
} | ||
exports.version = "0.1.14"; | ||
exports.version = "0.1.16"; | ||
@@ -1583,0 +1583,0 @@ exports.banner = function() { |
{ | ||
"name": "streamline", | ||
"description": "Asynchronous Javascript for dummies", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"engines": { "node": ">=0.2.1" }, | ||
@@ -6,0 +6,0 @@ "dependencies": {}, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
940465
9766