Socket
Socket
Sign inDemoInstall

webpack

Package Overview
Dependencies
5
Maintainers
1
Versions
833
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

7

bin/webpack.js

@@ -131,5 +131,8 @@ #!/usr/bin/env node

break;
case "ensure":
console.log(" \033[35mensure from " + reason.filename + "\033[39m");
case "async require":
console.log(" \033[35masync require (" + reason.count + "x) from " + reason.filename + "\033[39m");
break;
case "async context":
console.log(" \033[35masync context from " + reason.filename + "\033[39m");
break;
default:

@@ -136,0 +139,0 @@ console.log(" \033[31m" + reason.type + "\033[39m");

@@ -97,4 +97,4 @@ /*

var requires = {};
var contexts = [];
var requires = {}, directRequire = {};
var contexts = [], directContexts = {};
function add(r) {

@@ -109,6 +109,14 @@ requires[r.name] = requires[r.name] || [];

}
if(module.requires)
if(module.requires) {
module.requires.forEach(add);
if(module.contexts)
module.requires.forEach(function(r) {
directRequire[r.name] = true;
});
}
if(module.contexts) {
module.contexts.forEach(addContext(module));
module.contexts.forEach(function(c) {
directContexts[c.name] = true;
});
}
if(module.asyncs)

@@ -129,3 +137,3 @@ module.asyncs.forEach(function addAsync(c) {

var reason = {
type: "require",
type: directRequire[moduleName] ? "require" : "async require",
count: requires[moduleName].length,

@@ -150,3 +158,3 @@ filename: filename

var reason = {
type: "ensure",
type: directContexts[context.name] ? "context" : "async context",
filename: filename

@@ -251,3 +259,3 @@ };

};
addModule(depTree, null, filename, options, modulereason, function(err, moduleId) {
addModule(depTree, null, filename, options, reason, function(err, moduleId) {
if(err) {

@@ -254,0 +262,0 @@ endOne(err);

{
"name": "webpack",
"version": "0.2.1",
"version": "0.2.2",
"author": "Tobias Koppers @sokra",

@@ -5,0 +5,0 @@ "description": "Packs CommonJs Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand.",

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