@contrast/rewriter
Advanced tools
Comparing version 1.0.4 to 1.1.0
@@ -75,3 +75,2 @@ /* | ||
]; | ||
return; | ||
} | ||
@@ -93,2 +92,7 @@ | ||
} | ||
if (path.node.callee.name === 'Function') { | ||
path.node.arguments = [ | ||
t.callExpression(expression('global.ContrastMethods.Function')(), path.node.arguments) | ||
]; | ||
} | ||
}, | ||
@@ -130,3 +134,3 @@ }; | ||
if (state.orig.indexOf('eval') === -1) { | ||
if (state.orig.indexOf('eval') === -1 && state.orig.indexOf('Function') === -1) { | ||
return { code: state.orig }; | ||
@@ -133,0 +137,0 @@ } |
{ | ||
"name": "@contrast/rewriter", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "A transpilation tool mainly used for instrumentation", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE", |
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
9225
202