Comparing version 0.1.3 to 0.1.4
@@ -59,7 +59,8 @@ var fs = require('fs') | ||
if (config.exposeRequire) { | ||
exported.push("window['require'] = require") | ||
exported.push('window.require = require') | ||
} | ||
// Output | ||
var code = formatTemplate(normjoin(__dirname, '../support/template.js'), | ||
var template = (config.exposeRequire ? 'noConflictTemplate' : 'template') | ||
var code = formatTemplate(normjoin(__dirname, '../support/' + template + '.js'), | ||
exported.join('\n')) | ||
@@ -66,0 +67,0 @@ , outputPath = normjoin(config.root, config.output) |
{ | ||
"name": "buildumb" | ||
, "description": "Ultra-dumb exporter of Node.js modules for use in the browser" | ||
, "version": "0.1.3" | ||
, "author": "Jonathan Buchanan <jonathan.buchanan@gmail.com> (https://github.com/insin)" | ||
, "tags": ["build", "export", "browser", "modules"] | ||
, "version": "0.1.4" | ||
, "author": "Jonathan Buchanan <jonathan.buchanan@gmail.com>" | ||
, "keywords": [ | ||
"build" | ||
, "export" | ||
, "browser" | ||
, "modules" | ||
, "require" | ||
] | ||
, "main": "./lib/buildumb" | ||
@@ -16,2 +22,3 @@ , "repository": { | ||
} | ||
, "license": "MIT" | ||
} |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
8638
7
153
2