Socket
Socket
Sign inDemoInstall

edge-parser

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge-parser - npm Package Compare versions

Comparing version 8.2.0 to 8.2.1

4

build/src/EdgeBuffer/index.d.ts

@@ -33,2 +33,6 @@ /**

private compiledOutput;
/**
* Exposing output variable name
*/
outputVariableName: string;
constructor(filename: string, options: {

@@ -35,0 +39,0 @@ outputVar: string;

9

build/src/EdgeBuffer/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc