@salesforce/acorn-visualforce
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -622,2 +622,10 @@ module.exports = | ||
instance.extend('parsePropertyName', function (inner) { | ||
return function vfelExtendedParsePropertyName(prop) { | ||
if (this.type === tt.metastring) return prop.key = this.parseExprAtom(); | ||
return inner.call(this, prop); | ||
}; | ||
}); | ||
instance.extend('finishNode', function (inner) { | ||
@@ -650,4 +658,5 @@ return function vfelExtendedFinishNode(node, type) { | ||
acorn.Parser.prototype.loadPlugins = function loadPlugins(pluginConfigs) { | ||
if (pluginConfigs.vfel) // vfel is specified in plugin settings, respecting them | ||
if (pluginConfigs.jsx && pluginConfigs.vfel) // jsx and vfel are specified in plugin settings, respecting them | ||
originalLoadPlugins.call(this, pluginConfigs);else originalLoadPlugins.call(this, Object.assign({}, pluginConfigs, { | ||
jsx: true, | ||
vfel: true | ||
@@ -654,0 +663,0 @@ })); |
{ | ||
"name": "@salesforce/acorn-visualforce", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "acorn extension for Salesforce js dialect with merge fields", | ||
@@ -5,0 +5,0 @@ "main": "dist/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
156409
670