loop-detection
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -31,6 +31,6 @@ // Transformer adds in loop protection code to each loop. | ||
Transformer.prototype.transform = function transform() { | ||
var ast = recast.parse(this.code) | ||
var ast = recast.parse(this.code, {sourceFileName: this.sourceMap && this.sourceMap.file}) | ||
types.visit(ast, this.visitor) | ||
var result = recast.print(ast, {inputSourceMap: this.sourceMap}) | ||
var result = recast.print(ast, {inputSourceMap: this.sourceMap, sourceMapName: 'map.json'}) | ||
return {code: result.code, sourceMap: result.map} | ||
@@ -37,0 +37,0 @@ } |
{ | ||
"name": "loop-detection", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
7965