edge-parser
Advanced tools
Comparing version 8.2.0 to 8.2.1
@@ -33,2 +33,6 @@ /** | ||
private compiledOutput; | ||
/** | ||
* Exposing output variable name | ||
*/ | ||
outputVariableName: string; | ||
constructor(filename: string, options: { | ||
@@ -35,0 +39,0 @@ outputVar: string; |
@@ -50,2 +50,3 @@ "use strict"; | ||
this.currentFileName = this.filename; | ||
this.outputVariableName = options.outputVar; | ||
this.options.outputVar = options.outputVar; | ||
@@ -75,3 +76,3 @@ this.options.rethrowCallPath = Array.isArray(options.rethrowCallPath) | ||
*/ | ||
this.outputOutVariable && buffer.push(`let ${this.options.outputVar} = "";`); | ||
this.outputOutVariable && buffer.push(`let ${this.outputVariableName} = "";`); | ||
/** | ||
@@ -112,3 +113,3 @@ * Define line number variable | ||
*/ | ||
this.outputReturnStatement && buffer.push(`return ${this.options.outputVar};`); | ||
this.outputReturnStatement && buffer.push(`return ${this.outputVariableName};`); | ||
} | ||
@@ -137,3 +138,3 @@ /** | ||
outputRaw(text) { | ||
this.buffer.push(`${this.options.outputVar} += ${(0, js_stringify_1.default)(text)};`); | ||
this.buffer.push(`${this.outputVariableName} += ${(0, js_stringify_1.default)(text)};`); | ||
return this; | ||
@@ -148,3 +149,3 @@ } | ||
text = templateLiteral ? `\`\${${text}}\`` : text; | ||
this.buffer.push(`${this.options.outputVar} += ${text};`); | ||
this.buffer.push(`${this.outputVariableName} += ${text};`); | ||
return this; | ||
@@ -151,0 +152,0 @@ } |
{ | ||
"name": "edge-parser", | ||
"version": "8.2.0", | ||
"version": "8.2.1", | ||
"description": "Parser for edge template engine", | ||
@@ -5,0 +5,0 @@ "main": "build/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
77788
1816