@salesforce/acorn-visualforce
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -100,3 +100,3 @@ module.exports = | ||
tc.vfel_expr = new TokContext('{!...}', true, true); | ||
tc.vfel_expr = new TokContext('{!...}', true, false); // isExpr = true, preserveSpace = false | ||
tt.vfelExpressionStart = new TokenType('vfelExpressionStart', { | ||
@@ -293,2 +293,5 @@ beforeExpr: true, | ||
}, | ||
// There is only a minor difference between original skipSpace and vfel_skipSpace — there are no line comments in VFEL | ||
vfel_skipSpace: function vfel_skipSpace() { | ||
@@ -336,3 +339,3 @@ var isWhitespace = true; | ||
var startLoc = this.startLoc; | ||
this.next(); // consuming '{!' | ||
this.expect(tt.vfelExpressionStart); // consuming '{!' | ||
this.inMergeField = true; | ||
@@ -344,3 +347,3 @@ return this.vfel_parseMergeFieldAt(startPos, startLoc); | ||
node.value = this.parseMaybeAssign(); | ||
this.next(); // consuming vfelExpressionEnd '}' | ||
this.expect(tt.vfelExpressionEnd); // consuming vfelExpressionEnd '}' | ||
this.inMergeField = false; | ||
@@ -347,0 +350,0 @@ return this.finishNode(node, 'VFELExpression'); |
{ | ||
"name": "@salesforce/acorn-visualforce", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "acorn extension for Salesforce js dialect with merge fields", | ||
@@ -27,5 +27,4 @@ "main": "dist/index.js", | ||
}, | ||
"dependencies": { | ||
"acorn": "^4.0.4", | ||
"acorn-jsx": "^3.0.1" | ||
"peerDependencies": { | ||
"acorn": "^5.0.3" | ||
}, | ||
@@ -58,3 +57,5 @@ "devDependencies": { | ||
}, | ||
"plugins": [ "import" ], | ||
"plugins": [ | ||
"import" | ||
], | ||
"parserOptions": { | ||
@@ -61,0 +62,0 @@ "ecmaVersion": 6, |
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
156477
1
567
+ Addedacorn@5.7.4(transitive)
- Removedacorn@^4.0.4
- Removedacorn-jsx@^3.0.1
- Removedacorn@3.3.04.0.13(transitive)
- Removedacorn-jsx@3.0.1(transitive)