jstransform
Advanced tools
Comparing version 6.3.0 to 6.3.2
{ | ||
"name": "jstransform", | ||
"version": "6.3.0", | ||
"version": "6.3.2", | ||
"description": "A simple AST visitor-based JS transformer", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -67,5 +67,6 @@ # JSTransform [![Build Status](https://travis-ci.org/facebook/jstransform.svg?branch=master)](https://travis-ci.org/facebook/jstransform) | ||
var jstransform = require('jstransform'); | ||
var Syntax = require('esprima-fb').Syntax; | ||
var utils = require('jstransform/src/utils'); | ||
var Syntax = jstransform.Syntax; | ||
function visitEvalCallExpressions(traverse, node, path, state) { | ||
@@ -72,0 +73,0 @@ // Appends an alert() call to the output buffer *before* the visited node |
@@ -254,1 +254,2 @@ /** | ||
exports.transform = transform; | ||
exports.Syntax = Syntax; |
@@ -196,4 +196,3 @@ /** | ||
methodAccessor = JSON.stringify(methodAccessor); | ||
} else if (!state.g.opts.es5 && | ||
reservedWordsHelper.isReservedWord(methodAccessor)) { | ||
} else if (reservedWordsHelper.isReservedWord(methodAccessor)) { | ||
methodAccessor = '[' + JSON.stringify(methodAccessor) + ']'; | ||
@@ -200,0 +199,0 @@ } else { |
@@ -43,4 +43,3 @@ /** | ||
utils.catchup(node.key.range[1] + 1, state); | ||
} else if (!state.g.opts.es5 && | ||
reservedWordsHelper.isReservedWord(node.key.name)) { | ||
} else if (reservedWordsHelper.isReservedWord(node.key.name)) { | ||
utils.catchup(node.key.range[0], state); | ||
@@ -47,0 +46,0 @@ utils.append('"', state); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
99
94
188452
5279