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

deumdify

Package Overview
Dependencies
Maintainers
6
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deumdify - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

LICENSE

23

index.js

@@ -24,11 +24,22 @@ 'use strict';

estraverse.replace(ast, {
enter: function enter(node) {
if ('BlockStatement' === node.type) {
return node.body[0].alternate.alternate;
leave: function leave(node, parent) {
var ret;
if ('IfStatement' === node.type) {
if ('BinaryExpression' !== node.test.type) return;
if ('self' === node.test.left.argument.name) {
node.alternate = null;
} else if ('global' === node.test.left.argument.name) {
ret = node.alternate;
}
return ret;
}
if (
'ConditionalExpression' === node.type
&& 'global' === node.consequent.right.name
'BlockStatement' === node.type
&& 'FunctionExpression' === parent.type
) {
return node.alternate;
return node.body[0].alternate.alternate;
}

@@ -35,0 +46,0 @@ }

{
"name": "deumdify",
"version": "1.0.4",
"version": "1.1.0",
"description": "Browserify plugin to expose a standalone bundle as a property of the global object",

@@ -25,9 +25,9 @@ "keywords": [

"scripts": {
"coverage": "istanbul cover node_modules/.bin/_mocha -- --reporter spec",
"test": "mocha --reporter spec",
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec"
"coverage": "istanbul cover node_modules/.bin/_mocha",
"test": "mocha",
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly"
},
"dependencies": {
"escodegen": "1.4.x",
"esprima": "1.2.x",
"escodegen": "1.6.x",
"esprima": "2.0.x",
"estraverse": "1.9.x",

@@ -37,12 +37,12 @@ "through2": "0.6.x"

"devDependencies": {
"browserify": "8.0.x",
"browserify": "9.0.x",
"concat-stream": "1.4.x",
"istanbul": "0.3.x",
"jsdom": "1.5.x",
"jsdom": "3.1.x",
"mocha": "2.1.x",
"pre-commit": "0.0.x"
"pre-commit": "1.0.x"
},
"peerDependencies": {
"browserify": "5.1.0 - 8"
"browserify": "9"
}
}
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