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

outcome

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

outcome - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

5

lib/index.js

@@ -120,2 +120,7 @@ var EventEmitter = require('events').EventEmitter,

module.exports.on = function() {
globalEmitter.on.apply(globalEmitter, arguments);
}
//bleh this could be better. Need to copy the chain functions to the module.exports var

@@ -122,0 +127,0 @@ var chain = Chain();

180

outcome.js

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

var require = function (file, cwd) {
(function(){var require = function (file, cwd) {
var resolved = require.resolve(file, cwd || '/');

@@ -7,3 +7,4 @@ var mod = require.modules[resolved];

);
var res = mod._cached ? mod._cached : mod();
var cached = require.cache[resolved];
var res = cached? cached.exports : mod();
return res;

@@ -14,2 +15,3 @@ }

require.modules = {};
require.cache = {};
require.extensions = [".js",".coffee"];

@@ -31,3 +33,4 @@

var path = require.modules.path();
var y = cwd || '.';
cwd = path.resolve('/', cwd);
var y = cwd || '/';

@@ -46,2 +49,3 @@ if (x.match(/^(?:\.\.?\/|\/)/)) {

function loadAsFileSync (x) {
x = path.normalize(x);
if (require.modules[x]) {

@@ -59,3 +63,3 @@ return x;

x = x.replace(/\/+$/, '');
var pkgfile = x + '/package.json';
var pkgfile = path.normalize(x + '/package.json');
if (require.modules[pkgfile]) {

@@ -125,3 +129,3 @@ var pkg = require.modules[pkgfile]();

var res = [];
for (var key in obj) res.push(key)
for (var key in obj) res.push(key);
return res;

@@ -142,73 +146,44 @@ })(require.modules);

require.define = function (filename, fn) {
var dirname = require._core[filename]
? ''
: require.modules.path().dirname(filename)
;
(function () {
var process = {};
var require_ = function (file) {
return require(file, dirname)
};
require_.resolve = function (name) {
return require.resolve(name, dirname);
};
require_.modules = require.modules;
require_.define = require.define;
var module_ = { exports : {} };
require.modules[filename] = function () {
require.modules[filename]._cached = module_.exports;
fn.call(
module_.exports,
require_,
module_,
module_.exports,
dirname,
filename
);
require.modules[filename]._cached = module_.exports;
return module_.exports;
};
};
if (typeof process === 'undefined') process = {};
if (!process.nextTick) process.nextTick = (function () {
var queue = [];
var canPost = typeof window !== 'undefined'
&& window.postMessage && window.addEventListener
;
if (canPost) {
window.addEventListener('message', function (ev) {
if (ev.source === window && ev.data === 'browserify-tick') {
ev.stopPropagation();
if (queue.length > 0) {
var fn = queue.shift();
fn();
}
}
}, true);
}
return function (fn) {
if (canPost) {
queue.push(fn);
window.postMessage('browserify-tick', '*');
require.define = function (filename, fn) {
if (require.modules.__browserify_process) {
process = require.modules.__browserify_process();
}
else setTimeout(fn, 0);
var dirname = require._core[filename]
? ''
: require.modules.path().dirname(filename)
;
var require_ = function (file) {
return require(file, dirname);
};
require_.resolve = function (name) {
return require.resolve(name, dirname);
};
require_.modules = require.modules;
require_.define = require.define;
require_.cache = require.cache;
var module_ = { exports : {} };
require.modules[filename] = function () {
require.cache[filename] = module_;
fn.call(
module_.exports,
require_,
module_,
module_.exports,
dirname,
filename,
process
);
return module_.exports;
};
};
})();
if (!process.title) process.title = 'browser';
if (!process.binding) process.binding = function (name) {
if (name === 'evals') return require('vm')
else throw new Error('No such module')
};
if (!process.cwd) process.cwd = function () { return '.' };
require.define("path", function (require, module, exports, __dirname, __filename) {
function filter (xs, fn) {
require.define("path",function(require,module,exports,__dirname,__filename,process){function filter (xs, fn) {
var res = [];

@@ -347,7 +322,55 @@ for (var i = 0; i < xs.length; i++) {

};
});
require.define("__browserify_process",function(require,module,exports,__dirname,__filename,process){var process = module.exports = {};
process.nextTick = (function () {
var queue = [];
var canPost = typeof window !== 'undefined'
&& window.postMessage && window.addEventListener
;
if (canPost) {
window.addEventListener('message', function (ev) {
if (ev.source === window && ev.data === 'browserify-tick') {
ev.stopPropagation();
if (queue.length > 0) {
var fn = queue.shift();
fn();
}
}
}, true);
}
return function (fn) {
if (canPost) {
queue.push(fn);
window.postMessage('browserify-tick', '*');
}
else setTimeout(fn, 0);
};
})();
process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.binding = function (name) {
if (name === 'evals') return (require)('vm')
else throw new Error('No such module. (Possibly not yet loaded)')
};
(function () {
var cwd = '/';
var path;
process.cwd = function () { return cwd };
process.chdir = function (dir) {
if (!path) path = require('path');
cwd = path.resolve(dir, cwd);
};
})();
});
require.define("events", function (require, module, exports, __dirname, __filename) {
if (!process.EventEmitter) process.EventEmitter = function () {};
require.define("events",function(require,module,exports,__dirname,__filename,process){if (!process.EventEmitter) process.EventEmitter = function () {};

@@ -358,3 +381,3 @@ var EventEmitter = exports.EventEmitter = process.EventEmitter;

: function (xs) {
return Object.toString.call(xs) === '[object Array]'
return Object.prototype.toString.call(xs) === '[object Array]'
}

@@ -524,7 +547,5 @@ ;

};
});
require.define("/index.js", function (require, module, exports, __dirname, __filename) {
var EventEmitter = require('events').EventEmitter,
require.define("/index.js",function(require,module,exports,__dirname,__filename,process){var EventEmitter = require('events').EventEmitter,

@@ -648,2 +669,7 @@ //used for dispatching unhandledError messages

module.exports.on = function() {
globalEmitter.on.apply(globalEmitter, arguments);
}
//bleh this could be better. Need to copy the chain functions to the module.exports var

@@ -675,4 +701,4 @@ var chain = Chain();

});
require("/index.js");
})();

@@ -1,17 +0,15 @@

var require=function(b,h){var e=require.resolve(b,h||"/"),f=require.modules[e];if(!f)throw Error("Failed to resolve module "+b+", tried "+e);return f._cached?f._cached:f()};require.paths=[];require.modules={};require.extensions=[".js",".coffee"];require._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0};
require.resolve=function(){return function(b,h){function e(a){if(require.modules[a])return a;for(var g=0;g<require.extensions.length;g++){var c=require.extensions[g];if(require.modules[a+c])return a+c}}function f(a){var a=a.replace(/\/+$/,""),g=a+"/package.json";if(require.modules[g]){var g=require.modules[g](),c=g.browserify;if(typeof c==="object"&&c.main){if(g=e(d.resolve(a,c.main)))return g}else if(typeof c==="string"){if(g=e(d.resolve(a,c)))return g}else if(g.main&&(g=e(d.resolve(a,g.main))))return g}return e(a+
"/index")}h||(h="/");if(require._core[b])return b;var d=require.modules.path(),c=h||".";if(b.match(/^(?:\.\.?\/|\/)/)){var a=e(d.resolve(c,b))||f(d.resolve(c,b));if(a)return a}if(c=function(a,c){var b;b=c==="/"?[""]:d.normalize(c).split("/");for(var h=[],i=b.length-1;i>=0;i--)if(b[i]!=="node_modules"){var j=b.slice(0,i+1).join("/")+"/node_modules";h.push(j)}for(b=0;b<h.length;b++){i=h[b];if(j=e(i+"/"+a))return j;if(i=f(i+"/"+a))return i}if(j=e(a))return j}(b,c))return c;throw Error("Cannot find module '"+
b+"'");}}();require.alias=function(b,h){var e=require.modules.path(),f=null;try{f=require.resolve(b+"/package.json","/")}catch(d){f=require.resolve(b,"/")}for(var e=e.dirname(f),f=(Object.keys||function(a){var c=[],d;for(d in a)c.push(d);return c})(require.modules),c=0;c<f.length;c++){var a=f[c];a.slice(0,e.length+1)===e+"/"?(a=a.slice(e.length),require.modules[h+a]=require.modules[e+a]):a===e&&(require.modules[h]=require.modules[e])}};
require.define=function(b,h){var e=require._core[b]?"":require.modules.path().dirname(b),f=function(c){return require(c,e)};f.resolve=function(c){return require.resolve(c,e)};f.modules=require.modules;f.define=require.define;var d={exports:{}};require.modules[b]=function(){require.modules[b]._cached=d.exports;h.call(d.exports,f,d,d.exports,e,b);return require.modules[b]._cached=d.exports}};typeof process==="undefined"&&(process={});
if(!process.nextTick)process.nextTick=function(){var b=[],h=typeof window!=="undefined"&&window.postMessage&&window.addEventListener;h&&window.addEventListener("message",function(e){e.source===window&&e.data==="browserify-tick"&&(e.stopPropagation(),b.length>0&&b.shift()())},!0);return function(e){h?(b.push(e),window.postMessage("browserify-tick","*")):setTimeout(e,0)}}();if(!process.title)process.title="browser";
if(!process.binding)process.binding=function(b){if(b==="evals")return require("vm");else throw Error("No such module");};if(!process.cwd)process.cwd=function(){return"."};
require.define("path",function(b,h,e){function f(a,c){for(var g=[],d=0;d<a.length;d++)c(a[d],d,a)&&g.push(a[d]);return g}function d(a,c){for(var d=0,b=a.length;b>=0;b--){var e=a[b];e=="."?a.splice(b,1):e===".."?(a.splice(b,1),d++):d&&(a.splice(b,1),d--)}if(c)for(;d--;)a.unshift("..");return a}var c=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;e.resolve=function(){for(var a="",c=!1,g=arguments.length;g>=-1&&!c;g--){var b=g>=0?arguments[g]:process.cwd();typeof b==="string"&&b&&(a=b+"/"+a,c=b.charAt(0)===
"/")}a=d(f(a.split("/"),function(a){return!!a}),!c).join("/");return(c?"/":"")+a||"."};e.normalize=function(a){var c=a.charAt(0)==="/",b=a.slice(-1)==="/",a=d(f(a.split("/"),function(a){return!!a}),!c).join("/");!a&&!c&&(a=".");a&&b&&(a+="/");return(c?"/":"")+a};e.join=function(){var a=Array.prototype.slice.call(arguments,0);return e.normalize(f(a,function(a){return a&&typeof a==="string"}).join("/"))};e.dirname=function(a){return(a=c.exec(a)[1]||"")?a.length===1?a:a.substring(0,a.length-1):"."};
e.basename=function(a,d){var b=c.exec(a)[2]||"";d&&b.substr(-1*d.length)===d&&(b=b.substr(0,b.length-d.length));return b};e.extname=function(a){return c.exec(a)[3]||""}});
require.define("events",function(b,h,e){if(!process.EventEmitter)process.EventEmitter=function(){};var b=e.EventEmitter=process.EventEmitter,f=typeof Array.isArray==="function"?Array.isArray:function(d){return Object.toString.call(d)==="[object Array]"};b.prototype.setMaxListeners=function(d){if(!this._events)this._events={};this._events.maxListeners=d};b.prototype.emit=function(d){if(d==="error"&&(!this._events||!this._events.error||f(this._events.error)&&!this._events.error.length))if(arguments[1]instanceof
Error)throw arguments[1];else throw Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;var c=this._events[d];if(!c)return!1;if(typeof c=="function"){switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:var a=Array.prototype.slice.call(arguments,1);c.apply(this,a)}return!0}else if(f(c)){for(var a=Array.prototype.slice.call(arguments,1),c=c.slice(),b=0,g=c.length;b<g;b++)c[b].apply(this,
a);return!0}else return!1};b.prototype.addListener=function(d,c){if("function"!==typeof c)throw Error("addListener only takes instances of Function");if(!this._events)this._events={};this.emit("newListener",d,c);if(this._events[d])if(f(this._events[d])){if(!this._events[d].warned){var a;if((a=this._events.maxListeners!==void 0?this._events.maxListeners:10)&&a>0&&this._events[d].length>a)this._events[d].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",
this._events[d].length),console.trace()}this._events[d].push(c)}else this._events[d]=[this._events[d],c];else this._events[d]=c;return this};b.prototype.on=b.prototype.addListener;b.prototype.once=function(d,c){var a=this;a.on(d,function g(){a.removeListener(d,g);c.apply(this,arguments)});return this};b.prototype.removeListener=function(d,c){if("function"!==typeof c)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[d])return this;var a=this._events[d];
if(f(a)){var b=a.indexOf(c);if(b<0)return this;a.splice(b,1);a.length==0&&delete this._events[d]}else this._events[d]===c&&delete this._events[d];return this};b.prototype.removeAllListeners=function(b){b&&this._events&&this._events[b]&&(this._events[b]=null);return this};b.prototype.listeners=function(b){if(!this._events)this._events={};this._events[b]||(this._events[b]=[]);f(this._events[b])||(this._events[b]=[this._events[b]]);return this._events[b]}});
require.define("/index.js",function(b,h){var e=new (b("events").EventEmitter),f=function(c){function a(a){for(var b in c)a[b]||(a[b]=c[b]);return f(a)}c||(c={});var b=function(){var a=Array.apply(null,arguments);c.callback&&c.callback.apply(this,a);c.handle?c.handle.apply(c,a):(err=a.shift())?c.error.call(this,err):c.success&&c.success.apply(this,a)};b.listeners=c;b.done=function(a){return a.callback(a)};b.handle=function(b){return a({handle:b})};b.callback=function(b){return a({callback:b})};b.success=
function(b){return a({success:b})};b.error=function(b){return a({error:b})};if(!c.error)c.error=function(a){if(!e.emit("unhandledError",a)&&!c.callback)throw a;};return b};h.exports=function(b){return f(b)};var d=f();Object.keys(d).forEach(function(b){h.exports[b]=function(){var a=f();return a[b].apply(a,arguments)}});if(typeof window!="undefined")window.outcome=h.exports});require("/index.js");
(function(){var a=function(i,g){var d=a.resolve(i,g||"/"),h=a.modules[d];if(!h)throw Error("Failed to resolve module "+i+", tried "+d);return(d=a.cache[d])?d.exports:h()};a.paths=[];a.modules={};a.cache={};a.extensions=[".js",".coffee"];a._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0};a.resolve=function(){return function(i,g){function d(e){e=j.normalize(e);if(a.modules[e])return e;for(var b=0;b<a.extensions.length;b++){var k=a.extensions[b];if(a.modules[e+k])return e+k}}function h(e){var e=e.replace(/\/+$/,
""),b=j.normalize(e+"/package.json");if(a.modules[b]){var b=a.modules[b](),k=b.browserify;if(typeof k==="object"&&k.main){if(b=d(j.resolve(e,k.main)))return b}else if(typeof k==="string"){if(b=d(j.resolve(e,k)))return b}else if(b.main&&(b=d(j.resolve(e,b.main))))return b}return d(e+"/index")}g||(g="/");if(a._core[i])return i;var j=a.modules.path(),c=(g=j.resolve("/",g))||"/";if(i.match(/^(?:\.\.?\/|\/)/)){var f=d(j.resolve(c,i))||h(j.resolve(c,i));if(f)return f}if(c=function(e,b){var k;k=b==="/"?
[""]:j.normalize(b).split("/");for(var c=[],a=k.length-1;a>=0;a--)if(k[a]!=="node_modules"){var f=k.slice(0,a+1).join("/")+"/node_modules";c.push(f)}for(k=0;k<c.length;k++){a=c[k];if(f=d(a+"/"+e))return f;if(a=h(a+"/"+e))return a}if(f=d(e))return f}(i,c))return c;throw Error("Cannot find module '"+i+"'");}}();a.alias=function(i,g){var d=a.modules.path(),h=null;try{h=a.resolve(i+"/package.json","/")}catch(j){h=a.resolve(i,"/")}for(var d=d.dirname(h),h=(Object.keys||function(e){var b=[],k;for(k in e)b.push(k);
return b})(a.modules),c=0;c<h.length;c++){var f=h[c];f.slice(0,d.length+1)===d+"/"?(f=f.slice(d.length),a.modules[g+f]=a.modules[d+f]):f===d&&(a.modules[g]=a.modules[d])}};(function(){var i={};a.define=function(g,d){a.modules.__browserify_process&&(i=a.modules.__browserify_process());var h=a._core[g]?"":a.modules.path().dirname(g),j=function(c){return a(c,h)};j.resolve=function(c){return a.resolve(c,h)};j.modules=a.modules;j.define=a.define;j.cache=a.cache;var c={exports:{}};a.modules[g]=function(){a.cache[g]=
c;d.call(c.exports,j,c,c.exports,h,g,i);return c.exports}}})();a.define("path",function(a,g,d,h,j,c){function f(b,e){for(var c=[],a=0;a<b.length;a++)e(b[a],a,b)&&c.push(b[a]);return c}function e(b,e){for(var c=0,a=b.length;a>=0;a--){var f=b[a];f=="."?b.splice(a,1):f===".."?(b.splice(a,1),c++):c&&(b.splice(a,1),c--)}if(e)for(;c--;)b.unshift("..");return b}var b=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;d.resolve=function(){for(var b="",a=!1,d=arguments.length;d>=-1&&!a;d--){var i=d>=0?arguments[d]:c.cwd();
typeof i==="string"&&i&&(b=i+"/"+b,a=i.charAt(0)==="/")}b=e(f(b.split("/"),function(b){return!!b}),!a).join("/");return(a?"/":"")+b||"."};d.normalize=function(b){var a=b.charAt(0)==="/",c=b.slice(-1)==="/",b=e(f(b.split("/"),function(b){return!!b}),!a).join("/");!b&&!a&&(b=".");b&&c&&(b+="/");return(a?"/":"")+b};d.join=function(){var b=Array.prototype.slice.call(arguments,0);return d.normalize(f(b,function(b){return b&&typeof b==="string"}).join("/"))};d.dirname=function(e){return(e=b.exec(e)[1]||
"")?e.length===1?e:e.substring(0,e.length-1):"."};d.basename=function(e,a){var c=b.exec(e)[2]||"";a&&c.substr(-1*a.length)===a&&(c=c.substr(0,c.length-a.length));return c};d.extname=function(e){return b.exec(e)[3]||""}});a.define("__browserify_process",function(a,g,d,h,j,c){c=g.exports={};c.nextTick=function(){var a=[],e=typeof window!=="undefined"&&window.postMessage&&window.addEventListener;e&&window.addEventListener("message",function(b){b.source===window&&b.data==="browserify-tick"&&(b.stopPropagation(),
a.length>0&&a.shift()())},!0);return function(b){e?(a.push(b),window.postMessage("browserify-tick","*")):setTimeout(b,0)}}();c.title="browser";c.browser=!0;c.env={};c.argv=[];c.binding=function(c){if(c==="evals")return a("vm");else throw Error("No such module. (Possibly not yet loaded)");};(function(){var d="/",e;c.cwd=function(){return d};c.chdir=function(b){e||(e=a("path"));d=e.resolve(b,d)}})()});a.define("events",function(a,g,d,h,j,c){if(!c.EventEmitter)c.EventEmitter=function(){};var a=d.EventEmitter=
c.EventEmitter,f=typeof Array.isArray==="function"?Array.isArray:function(a){return Object.prototype.toString.call(a)==="[object Array]"};a.prototype.setMaxListeners=function(a){if(!this._events)this._events={};this._events.maxListeners=a};a.prototype.emit=function(a){if(a==="error"&&(!this._events||!this._events.error||f(this._events.error)&&!this._events.error.length))if(arguments[1]instanceof Error)throw arguments[1];else throw Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;
var b=this._events[a];if(!b)return!1;if(typeof b=="function"){switch(arguments.length){case 1:b.call(this);break;case 2:b.call(this,arguments[1]);break;case 3:b.call(this,arguments[1],arguments[2]);break;default:var c=Array.prototype.slice.call(arguments,1);b.apply(this,c)}return!0}else if(f(b)){for(var c=Array.prototype.slice.call(arguments,1),b=b.slice(),d=0,g=b.length;d<g;d++)b[d].apply(this,c);return!0}else return!1};a.prototype.addListener=function(a,b){if("function"!==typeof b)throw Error("addListener only takes instances of Function");
if(!this._events)this._events={};this.emit("newListener",a,b);if(this._events[a])if(f(this._events[a])){if(!this._events[a].warned){var c;if((c=this._events.maxListeners!==void 0?this._events.maxListeners:10)&&c>0&&this._events[a].length>c)this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),console.trace()}this._events[a].push(b)}else this._events[a]=[this._events[a],
b];else this._events[a]=b;return this};a.prototype.on=a.prototype.addListener;a.prototype.once=function(a,b){var c=this;c.on(a,function l(){c.removeListener(a,l);b.apply(this,arguments)});return this};a.prototype.removeListener=function(a,b){if("function"!==typeof b)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[a])return this;var c=this._events[a];if(f(c)){var d=c.indexOf(b);if(d<0)return this;c.splice(d,1);c.length==0&&delete this._events[a]}else this._events[a]===
b&&delete this._events[a];return this};a.prototype.removeAllListeners=function(a){a&&this._events&&this._events[a]&&(this._events[a]=null);return this};a.prototype.listeners=function(a){if(!this._events)this._events={};this._events[a]||(this._events[a]=[]);f(this._events[a])||(this._events[a]=[this._events[a]]);return this._events[a]}});a.define("/index.js",function(a,g){var d=new (a("events").EventEmitter),h=function(a){function f(b){for(var d in a)b[d]||(b[d]=a[d]);return h(b)}a||(a={});var e=function(){var b=
Array.apply(null,arguments);a.callback&&a.callback.apply(this,b);a.handle?a.handle.apply(a,b):(err=b.shift())?a.error.call(this,err):a.success&&a.success.apply(this,b)};e.listeners=a;e.done=function(a){return a.callback(a)};e.handle=function(a){return f({handle:a})};e.callback=function(a){return f({callback:a})};e.success=function(a){return f({success:a})};e.error=function(a){return f({error:a})};if(!a.error)a.error=function(b){if(!d.emit("unhandledError",b)&&!a.callback)throw b;};return e};g.exports=
function(a){return h(a)};g.exports.on=function(){d.on.apply(d,arguments)};var j=h();Object.keys(j).forEach(function(a){g.exports[a]=function(){var d=h();return d[a].apply(d,arguments)}});if(typeof window!="undefined")window.outcome=g.exports});a("/index.js")})();

@@ -10,3 +10,3 @@ {

"repository": {},
"version": "0.0.5",
"version": "0.0.6",
"engines": {},

@@ -13,0 +13,0 @@ "dependencies": {},

Sorry, the diff of this file is not supported yet

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