Socket
Socket
Sign inDemoInstall

webpack

Package Overview
Dependencies
5
Maintainers
1
Versions
834
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.3 to 0.2.4

buildin/__webpack_global.js

8

buildin/__webpack_console.js

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

var console = window.console;
exports.log = (console && console.log) || function() {};

@@ -14,7 +15,2 @@ exports.info = (console && console.info) || function() {};

exports.trace = (console && console.trace) || function() {};
exports.assert = (console && console.assert) || function() {
if (!expression) {
var arr = Array.prototype.slice.call(arguments, 1);
require('assert').ok(false, util.format.apply(this, arr));
}
};
exports.assert = (console && console.assert) || function() {};

@@ -118,4 +118,5 @@ /*

case "VariableDeclarator":
if(declarator.name in context.options.overwrites) {
context.overwrite.push(declarator.name);
if(declarator.id.type === "Identifier" &&
declarator.id.name in context.options.overwrites) {
context.overwrite.push(declarator.id.name);
}

@@ -122,0 +123,0 @@ if(declarator.init)

@@ -61,2 +61,4 @@ /*

options.parse.overwrites.module = options.parse.overwrites.module || ("__webpack_module");
options.parse.overwrites.console = options.parse.overwrites.console || ("__webpack_console");
options.parse.overwrites.global = options.parse.overwrites.global || ("__webpack_global");
options.resolve = options.resolve || {};

@@ -63,0 +65,0 @@ options.resolve.paths = options.resolve.paths || [];

{
"name": "webpack",
"version": "0.2.3",
"version": "0.2.4",
"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.",

@@ -46,2 +46,11 @@ window.test(true, "index.js should be replaced with index.web.js");

process.emit("xyz");
window.test(window === global, "window === global");
(function() {
var require = 123;
window.test(require === 123, "overwrite require via variable should be ok");
}());
(function() {
var module = 1233;
window.test(module === 1233, "overwrite module via variable should be ok");
}());
});

@@ -48,0 +57,0 @@

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