New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

install

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

install - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

14

install.js

@@ -164,3 +164,3 @@ (function (global, undefined) {

var parentReadyCache = file.p.ready;
result = Object.keys(deps).every(function (dep) {
result = deps.every(function (dep) {
// By storing the results of these lookups in `parentReadyCache`,

@@ -217,3 +217,3 @@ // we benefit when any other file in the same directory resolves

if (Array.isArray(contents)) {
var deps = {};
var deps = [];
var func;

@@ -223,3 +223,3 @@

if (isString(item)) {
deps[item] = false; // Initially unsatisfied.
deps.push(item);
} else if (isFunction(item)) {

@@ -233,3 +233,7 @@ func = item;

contents = func || function (require) {
Object.keys(deps).forEach(require);
deps.forEach(function (key) {
require.ensure(function () {
require(key);
});
});
};

@@ -241,3 +245,3 @@

// If contents is already a function, make sure it has deps.
contents.d = contents.d || {};
contents.d = contents.d || [];

@@ -244,0 +248,0 @@ } else if (! isObject(contents)) {

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

!function(n,r){function t(n){var r=new p({}),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 f(n){return"function"==typeof n}function u(n){return"string"==typeof n}function i(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,v(t.f))}))}function a(n){var r=v(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);i(this.q,new p(r,this))}function l(n){var r=a.bind(n);return r.ensure=s.bind(n),r}function p(n,r,t){var e=this;e.p=r=r||null,e.m={id:t?(r&&r.m.id||"")+"/"+t:null},e.q=r&&r.q,e.r=o(n)?l(e):r&&r.r,h(e,n),e.ready=y(e)&&{}}function d(n){var t=!!n,o=n&&n.c,u=f(o)&&o.d;if(u&&!e(o,"seen")){o.seen=!0;var i=n.p.ready;t=Object.keys(u).every(function(r){return i[r]=i[r]||d(k(n.p,r))}),o.seen=r}return t}function v(r){var t=r&&r.c;if(f(t)){var e=r.m;return A.call(e,"exports")||t.call(n,r.r,e.exports={},e),e.exports}return q}function y(n){return o(n.c)}function h(n,r){if(r=b(r)){var t=n.c=n.c||(f(r)?r:{});o(r)&&y(n)&&Object.keys(r).forEach(function(o){var f=e(t,o);f?h(f,r[o]):t[o]=new p(r[o],n,o)})}}function b(n){if(Array.isArray(n)){var r,t={};n.forEach(function(n){u(n)?t[n]=!1:f(n)&&(r=n)}),n=r||function(n){Object.keys(t).forEach(n)},n.d=t}else f(n)?n.d=n.d||{}:o(n)||(n=null);return n}function j(n,r,t){for(;n&&!y(n);)n=n.p;if(!n||!r||"."===r)return n;if(".."===r)return n.p;for(var o=0;o<x.length;++o){var f=r+x[o],u=e(n.c,f);if(u)return u;if(!t)break}}function m(n,r){var t=r.split("/");return t.every(function(r,e){return n=j(n,r,e===t.length-1)}),n}function w(n){return n&&w(n.p)||n}function k(n,r){for(n="/"===r.charAt(0)?m(w(n),r):"."===r.charAt(0)?m(n,r):g(n,r);n&&y(n);){var t=v(j(n,"package.json"));n=t&&u(t.main)&&m(n,t.main)||j(n,"index.js")}return n}function g(n,r){return y(n)&&m(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 p({}),t=r.q={};return t.h=t.t={},t.d=n&&n.defer||function(n){setTimeout(n,0)},function(n){return o(n)&&(y(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 u(n){return"function"==typeof n}function f(n){return"string"==typeof n}function i(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,v(t.f))}))}function a(n){var r=v(g(this,n));if(r===q)throw new Error("Cannot find module '"+n+"'");return r}function s(){var n=E.concat.apply(E,arguments),r=m(n);i(this.q,new p(r,this))}function l(n){var r=a.bind(n);return r.ensure=s.bind(n),r}function p(n,r,t){var e=this;e.p=r=r||null,e.m={id:t?(r&&r.m.id||"")+"/"+t:null},e.q=r&&r.q,e.r=o(n)?l(e):r&&r.r,y(e,n),e.ready=h(e)&&{}}function d(n){var t=!!n,o=n&&n.c,f=u(o)&&o.d;if(f&&!e(o,"seen")){o.seen=!0;var i=n.p.ready;t=f.every(function(r){return i[r]=i[r]||d(g(n.p,r))}),o.seen=r}return t}function v(r){var t=r&&r.c;if(u(t)){var e=r.m;return A.call(e,"exports")||t.call(n,r.r,e.exports={},e),e.exports}return q}function h(n){return o(n.c)}function y(n,r){if(r=m(r)){var t=n.c=n.c||(u(r)?r:{});o(r)&&h(n)&&Object.keys(r).forEach(function(o){var u=e(t,o);u?y(u,r[o]):t[o]=new p(r[o],n,o)})}}function m(n){if(Array.isArray(n)){var r,t=[];n.forEach(function(n){f(n)?t.push(n):u(n)&&(r=n)}),n=r||function(n){t.forEach(function(r){n.ensure(function(){n(r)})})},n.d=t}else u(n)?n.d=n.d||[]:o(n)||(n=null);return n}function b(n,r,t){for(;n&&!h(n);)n=n.p;if(!n||!r||"."===r)return n;if(".."===r)return n.p;for(var o=0;o<x.length;++o){var u=r+x[o],f=e(n.c,u);if(f)return f;if(!t)break}}function j(n,r){var t=r.split("/");return t.every(function(r,e){return n=b(n,r,e===t.length-1)}),n}function w(n){return n&&w(n.p)||n}function g(n,r){for(n="/"===r.charAt(0)?j(w(n),r):"."===r.charAt(0)?j(n,r):k(n,r);n&&h(n);){var t=v(b(n,"package.json"));n=t&&f(t.main)&&j(n,t.main)||b(n,"index.js")}return n}function k(n,r){return h(n)&&j(n,"node_modules/"+r)||n.p&&k(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.5",
"version": "0.2.6",
"license": "MIT",

@@ -21,0 +21,0 @@ "homepage": "http://github.com/benjamn/install",

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