Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

edge-parser

Package Overview
Dependencies
Maintainers
1
Versions
92
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 1.0.12 to 1.0.13

5

build/src/Parser/index.d.ts
/**
* @module Parser
*/
import * as Contracts from 'edge-lexer/build/src/Contracts';
import { EdgeBuffer } from '../EdgeBuffer';

@@ -45,2 +46,6 @@ import { ITag, ILoc } from '../Contracts';

/**
* Generates and returns AST tokens for a given template
*/
generateTokens(template: string): Contracts.INode[];
/**
* Process a token and writes the output to the buffer instance

@@ -47,0 +52,0 @@ */

13

build/src/Parser/index.js

@@ -87,8 +87,13 @@ "use strict";

const buffer = new EdgeBuffer_1.EdgeBuffer();
const tokens = this.generateTokens(template);
tokens.forEach((token) => (this.processToken(token, buffer)));
return buffer.flush(wrapAsFunction);
}
/**
* Generates and returns AST tokens for a given template
*/
generateTokens(template) {
const tokenizer = new edge_lexer_1.Tokenizer(template, this.tags);
tokenizer.parse();
tokenizer.tokens.forEach((token) => {
this.processToken(token, buffer);
});
return buffer.flush(wrapAsFunction);
return tokenizer.tokens;
}

@@ -95,0 +100,0 @@ /**

@@ -0,1 +1,11 @@

<a name="1.0.13"></a>
## [1.0.13](https://github.com/poppinss/edge-parser/compare/v1.0.12...v1.0.13) (2018-07-09)
### Features
* **parser:** expose generateTokens method to generate lexer tokens ([9c5073f](https://github.com/poppinss/edge-parser/commit/9c5073f))
<a name="1.0.12"></a>

@@ -2,0 +12,0 @@ ## [1.0.12](https://github.com/poppinss/edge-parser/compare/v1.0.11...v1.0.12) (2018-07-09)

{
"name": "edge-parser",
"version": "1.0.12",
"version": "1.0.13",
"description": "Parser for edge template engine",

@@ -5,0 +5,0 @@ "scripts": {

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