insert-module-globals
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -123,5 +123,6 @@ var parseScope = require('lexical-scope'); | ||
var keys = Object.keys(globals); | ||
return '(function(' + keys + '){' + src + '\n})(' | ||
+ keys.map(function (key) { return globals[key] }).join(',') + ')' | ||
; | ||
if (keys.length === 0) return src; | ||
return 'var ' + keys.map(function (key) { | ||
return key + '=' + globals[key]; | ||
}).join(',') + ';' + src; | ||
} |
{ | ||
"name": "insert-module-globals", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "insert implicit module globals into a module-deps stream", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121221
3362