insert-module-globals
Advanced tools
Comparing version 3.1.2 to 3.1.3
10
index.js
@@ -65,3 +65,3 @@ var parseScope = require('lexical-scope'); | ||
? { globals: { implicit: varNames } } | ||
: parseScope('(function(){' + source + '})()') | ||
: parseScope('(function(){\n' + source + '\n})()') | ||
; | ||
@@ -100,4 +100,4 @@ } | ||
if (keys.length <= 3) { | ||
return '(function (' + keys.join(',') + '){' | ||
+ src + '}).call(this,' + values.join(',') + ')' | ||
return '(function (' + keys.join(',') + '){\n' | ||
+ src + '\n}).call(this,' + values.join(',') + ')' | ||
; | ||
@@ -114,5 +114,5 @@ } | ||
return '(function (' + names.join(',') + '){' | ||
+ src + '}).call(this,' + values.join(',') + ')' | ||
return '(function (' + names.join(',') + '){\n' | ||
+ src + '\n}).call(this,' + values.join(',') + ')' | ||
; | ||
} |
{ | ||
"name": "insert-module-globals", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"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
14921