Comparing version 0.2.3 to 0.2.4
@@ -227,3 +227,3 @@ (function (global, undefined) { | ||
// that simply requires each dependency (really common case). | ||
contents = func || function (module, require) { | ||
contents = func || function (require) { | ||
Object.keys(deps).forEach(require); | ||
@@ -230,0 +230,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
!function(n,r){function t(n){var r=new l({}),t=r.q={};return t.h=t.t={},t.d=n&&n.defer||function(n){setTimeout(n,0)},function(n){return o(n)&&(h(r,n),c(r.q)),r.r}}function e(n,r){return A.call(n,r)&&n[r]}function o(n){return n&&"object"==typeof n}function i(n){return"function"==typeof n}function f(n){return"string"==typeof n}function u(n,r){n.t=n.t.n={f:r},n.h.n===n.t&&c(n)}function c(n){n.p||(n.p=!0,n.d(function(){n.p=r;var t=n.h.n;t&&d(t.f)&&(c(n),n.h=t,y(t.f))}))}function a(n){var r=y(k(this,n));if(r===q)throw new Error("Cannot find module '"+n+"'");return r}function s(){var n=E.concat.apply(E,arguments),r=b(n);u(this.q,new l(r,this))}function p(n){var r=a.bind(n);return r.ensure=s.bind(n),r}function l(n,r,t){var e=this;e.p=r=r||null,t&&(e.id=(r&&r.id||"")+"/"+t),e.q=r&&r.q,e.r=o(n)?p(e):r&&r.r,h(e,n),e.ready=v(e)&&{}}function d(n){var t=!!n,o=n&&n.c,f=i(o)&&o.d;if(f&&!e(o,"seen")){o.seen=!0;var u=n.p.ready;t=Object.keys(f).every(function(r){return u[r]=u[r]||d(k(n.p,r))}),o.seen=r}return t}function y(r){var t=r&&r.c;return i(t)?(A.call(t,"exports")||(t.id=r.id,t.call(n,r.r,t.exports={},t)),t.exports):q}function v(n){return o(n.c)}function h(n,r){if(r=b(r)){var t=n.c=n.c||(i(r)?r:{});o(r)&&v(n)&&Object.keys(r).forEach(function(o){var i=e(t,o);i?h(i,r[o]):t[o]=new l(r[o],n,o)})}}function b(n){if(Array.isArray(n)){var r,t={};n.forEach(function(n){f(n)?t[n]=!1:i(n)&&(r=n)}),n=r||function(n,r){Object.keys(t).forEach(r)},n.d=t}else i(n)?n.d=n.d||{}:o(n)||(n=null);return n}function j(n,r,t){for(;n&&!v(n);)n=n.p;if(!n||!r||"."===r)return n;if(".."===r)return n.p;for(var o=0;o<x.length;++o){var i=r+x[o],f=e(n.c,i);if(f)return f;if(!t)break}}function w(n,r){var t=r.split("/");return t.every(function(r,e){return n=j(n,r,e===t.length-1)}),n}function m(n){return n&&m(n.p)||n}function k(n,r){for(n="/"===r.charAt(0)?w(m(n),r):"."===r.charAt(0)?w(n,r):g(n,r);n&&v(n);){var t=y(j(n,"package.json"));n=t&&f(t.main)&&w(n,t.main)||j(n,"index.js")}return n}function g(n,r){return v(n)&&w(n,"node_modules/"+r)||n.p&&g(n.p,r)}if(!n.makeInstaller){n.makeInstaller=t,"object"==typeof exports&&(exports.makeInstaller=t);var x=["",".js",".json"],q={},A=q.hasOwnProperty,E=Array.prototype}}("object"==typeof global?global:"object"==typeof window?window:"object"==typeof self?self:this); | ||
!function(n,r){function t(n){var r=new l({}),t=r.q={};return t.h=t.t={},t.d=n&&n.defer||function(n){setTimeout(n,0)},function(n){return o(n)&&(h(r,n),c(r.q)),r.r}}function e(n,r){return A.call(n,r)&&n[r]}function o(n){return n&&"object"==typeof n}function i(n){return"function"==typeof n}function f(n){return"string"==typeof n}function u(n,r){n.t=n.t.n={f:r},n.h.n===n.t&&c(n)}function c(n){n.p||(n.p=!0,n.d(function(){n.p=r;var t=n.h.n;t&&d(t.f)&&(c(n),n.h=t,y(t.f))}))}function a(n){var r=y(k(this,n));if(r===q)throw new Error("Cannot find module '"+n+"'");return r}function s(){var n=E.concat.apply(E,arguments),r=b(n);u(this.q,new l(r,this))}function p(n){var r=a.bind(n);return r.ensure=s.bind(n),r}function l(n,r,t){var e=this;e.p=r=r||null,t&&(e.id=(r&&r.id||"")+"/"+t),e.q=r&&r.q,e.r=o(n)?p(e):r&&r.r,h(e,n),e.ready=v(e)&&{}}function d(n){var t=!!n,o=n&&n.c,f=i(o)&&o.d;if(f&&!e(o,"seen")){o.seen=!0;var u=n.p.ready;t=Object.keys(f).every(function(r){return u[r]=u[r]||d(k(n.p,r))}),o.seen=r}return t}function y(r){var t=r&&r.c;return i(t)?(A.call(t,"exports")||(t.id=r.id,t.call(n,r.r,t.exports={},t)),t.exports):q}function v(n){return o(n.c)}function h(n,r){if(r=b(r)){var t=n.c=n.c||(i(r)?r:{});o(r)&&v(n)&&Object.keys(r).forEach(function(o){var i=e(t,o);i?h(i,r[o]):t[o]=new l(r[o],n,o)})}}function b(n){if(Array.isArray(n)){var r,t={};n.forEach(function(n){f(n)?t[n]=!1:i(n)&&(r=n)}),n=r||function(n){Object.keys(t).forEach(n)},n.d=t}else i(n)?n.d=n.d||{}:o(n)||(n=null);return n}function j(n,r,t){for(;n&&!v(n);)n=n.p;if(!n||!r||"."===r)return n;if(".."===r)return n.p;for(var o=0;o<x.length;++o){var i=r+x[o],f=e(n.c,i);if(f)return f;if(!t)break}}function w(n,r){var t=r.split("/");return t.every(function(r,e){return n=j(n,r,e===t.length-1)}),n}function m(n){return n&&m(n.p)||n}function k(n,r){for(n="/"===r.charAt(0)?w(m(n),r):"."===r.charAt(0)?w(n,r):g(n,r);n&&v(n);){var t=y(j(n,"package.json"));n=t&&f(t.main)&&w(n,t.main)||j(n,"index.js")}return n}function g(n,r){return v(n)&&w(n,"node_modules/"+r)||n.p&&g(n.p,r)}if(!n.makeInstaller){n.makeInstaller=t,"object"==typeof exports&&(exports.makeInstaller=t);var x=["",".js",".json"],q={},A=q.hasOwnProperty,E=Array.prototype}}("object"==typeof global?global:"object"==typeof window?window:"object"==typeof self?self:this); |
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"license": "MIT", | ||
@@ -21,0 +21,0 @@ "homepage": "http://github.com/benjamn/install", |
418281