Socket
Socket
Sign inDemoInstall

edge-lexer

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge-lexer - npm Package Compare versions

Comparing version 4.0.4 to 4.0.5

16

build/src/Tokenizer/index.js

@@ -122,3 +122,3 @@ "use strict";

if (tag.seekable && !tag.hasBrace) {
throw (0, Exceptions_1.unopenedParen)({ line: tag.line, col: tag.col }, tag.filename);
throw Exceptions_1.unopenedParen({ line: tag.line, col: tag.col }, tag.filename);
}

@@ -187,3 +187,3 @@ /**

if (scanner.leftOver.trim()) {
throw (0, Exceptions_1.cannotSeekStatement)(scanner.leftOver, scanner.loc, tag.filename);
throw Exceptions_1.cannotSeekStatement(scanner.leftOver, scanner.loc, tag.filename);
}

@@ -319,3 +319,3 @@ /**

*/
const anotherMustache = (0, Detector_1.getMustache)(scanner.leftOver, this.options.filename, scanner.loc.line, scanner.loc.col);
const anotherMustache = Detector_1.getMustache(scanner.leftOver, this.options.filename, scanner.loc.line, scanner.loc.col);
if (anotherMustache) {

@@ -422,3 +422,3 @@ this.handleMustacheOpening(scanner.leftOver, anotherMustache);

*/
const tag = (0, Detector_1.getTag)(line, this.options.filename, this.line, 0, this.tagsDef, this.options.claimTag);
const tag = Detector_1.getTag(line, this.options.filename, this.line, 0, this.tagsDef, this.options.claimTag);
if (tag) {

@@ -441,3 +441,3 @@ /**

*/
const mustache = (0, Detector_1.getMustache)(line, this.options.filename, this.line, 0);
const mustache = Detector_1.getMustache(line, this.options.filename, this.line, 0);
if (mustache) {

@@ -463,3 +463,3 @@ this.pushNewLine();

const { tag } = this.tagStatement;
throw (0, Exceptions_1.unclosedParen)({ line: tag.line, col: tag.col }, tag.filename);
throw Exceptions_1.unclosedParen({ line: tag.line, col: tag.col }, tag.filename);
}

@@ -472,3 +472,3 @@ /**

const { mustache } = this.mustacheStatement;
throw (0, Exceptions_1.unclosedCurlyBrace)({ line: mustache.line, col: mustache.col }, mustache.filename);
throw Exceptions_1.unclosedCurlyBrace({ line: mustache.line, col: mustache.col }, mustache.filename);
}

@@ -480,3 +480,3 @@ /**

const openedTag = this.openedTags[this.openedTags.length - 1];
throw (0, Exceptions_1.unclosedTag)(openedTag.properties.name, openedTag.loc.start, openedTag.filename);
throw Exceptions_1.unclosedTag(openedTag.properties.name, openedTag.loc.start, openedTag.filename);
}

@@ -483,0 +483,0 @@ }

# The MIT License
Copyright 2020 thetutlage, contributors
Copyright 2021 Harminder Virk, contributors

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

{
"name": "edge-lexer",
"version": "4.0.4",
"version": "4.0.5",
"description": "Parses raw markup files to converts them to Edge tokens",

@@ -35,7 +35,7 @@ "main": "build/index.js",

"devDependencies": {
"@adonisjs/mrm-preset": "^3.0.0",
"@adonisjs/require-ts": "^2.0.3",
"@types/node": "^15.0.1",
"@adonisjs/mrm-preset": "^3.1.0",
"@adonisjs/require-ts": "^2.0.4",
"@types/node": "^15.3.0",
"benchmark": "^2.1.4",
"commitizen": "^4.2.3",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",

@@ -45,5 +45,5 @@ "dedent": "^0.7.0",

"doctoc": "^2.0.0",
"eslint": "^7.25.0",
"eslint": "^7.26.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-adonis": "^1.3.0",
"eslint-plugin-adonis": "^1.3.1",
"eslint-plugin-prettier": "^3.4.0",

@@ -55,7 +55,7 @@ "github-label-sync": "^2.0.0",

"np": "^7.5.0",
"prettier": "^2.2.1",
"typescript": "^4.3.0-beta"
"prettier": "^2.3.0",
"typescript": "^4.4.0-dev.20210514"
},
"dependencies": {
"edge-error": "^2.0.3"
"edge-error": "^2.0.4"
},

@@ -62,0 +62,0 @@ "config": {

@@ -6,3 +6,3 @@ <div align="center"><img src="https://res.cloudinary.com/adonis-js/image/upload/v1620150474/edge-banner_tzmnox.jpg" width="600px"></div>

[![circleci-image]][circleci-url] [![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url] [![synk-image]][synk-url]
[![gh-workflow-image]][gh-workflow-url] [![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url] [![synk-image]][synk-url]

@@ -500,4 +500,4 @@ Edge lexer produces a list of `tokens` by scanning for [Edge whitelisted syntax](https://github.com/edge-js/syntax).

[circleci-image]: https://img.shields.io/circleci/project/github/edge-js/lexer/master.svg?style=for-the-badge&logo=circleci
[circleci-url]: https://circleci.com/gh/edge-js/lexer 'circleci'
[gh-workflow-image]: https://img.shields.io/github/workflow/status/edge-js/lexer/test?style=for-the-badge
[gh-workflow-url]: https://github.com/edge-js/lexer/actions/workflows/test.yml "Github action"

@@ -504,0 +504,0 @@ [npm-image]: https://img.shields.io/npm/v/edge-lexer.svg?style=for-the-badge&logo=npm

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