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

browserify-async-define

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-async-define - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

6

index.js

@@ -13,3 +13,3 @@ var path = require('path');

var adPathName = require.resolve('async-define');
// var adPathName = 'async-define';
var adModName = '_d';

@@ -84,3 +84,3 @@ temp.track(); // remove temp files

var name = t[0];
return "require('" + adPathName + "')(" + quote(label) + ", function(){return " + mangleName(name) + ";});"
return "require('" + adModName + "')(" + quote(label) + ", function(){return " + mangleName(name) + ";});"
})

@@ -147,2 +147,3 @@ .join('\n');

b.require(adPathName, { expose: adModName });

@@ -195,2 +196,3 @@ b.transform(transformer.requireTransform, {

var b = browserify(f, {basedir: process.cwd(), paths: ['./node_modules']});
b.require(adPathName, { expose: adModName });
if(opts.collapse) {

@@ -197,0 +199,0 @@ b.plugin(bundleCollapser);

{
"name": "browserify-async-define",
"version": "2.1.1",
"version": "2.1.2",
"description": "Browserify plugin for async-define",

@@ -24,10 +24,8 @@ "main": "index.js",

"react": "^0.14.5",
"async-define": "^3.0.3",
"async-define": "^3.0.4",
"react-dom": "^0.14.5",
"npm-release": "^1.0.0"
},
"peerDependencies": {
"async-define": "^3.0.3"
},
"dependencies": {
"async-define": "^3.0.4",
"browserify-transform-tools": "^1.5.0",

@@ -34,0 +32,0 @@ "bundle-collapser": "^1.2.1",

@@ -6,3 +6,3 @@ var path = require('path');

var mangleName = utils.mangleName;
var adPathName = require.resolve('async-define');
var adModName = '_d';

@@ -13,3 +13,3 @@ function wrap(exports, deps, sym, body){

var s = sym ? quote(sym) + "," : "";
var out = ["require('" + adPathName + "')(" + s + d + "function (" + a + "){"];
var out = ["require('" + adModName + "')(" + s + d + "function(" + a + "){"];
out.push(body);

@@ -16,0 +16,0 @@ if (sym){

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