Comparing version 4.0.0 to 4.1.0
@@ -1221,3 +1221,7 @@ 'use strict'; | ||
// a part of the value | ||
if((!characterParser.isPunctuator(str[x]) || quoteRe.test(str[x]) || str[x] === ':') && this.assertExpression(val, true)){ | ||
const isNotPunctuator = !characterParser.isPunctuator(str[x]) | ||
const isQuote = quoteRe.test(str[x]) | ||
const isColon = str[x] === ':' | ||
const isSpreadOperator = str[x] + str[x + 1] + str[x + 2] === '...' | ||
if ((isNotPunctuator || isQuote || isColon || isSpreadOperator) && this.assertExpression(val, true)) { | ||
done = true; | ||
@@ -1224,0 +1228,0 @@ } |
{ | ||
"name": "pug-lexer", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "The pug lexer (takes a string and converts it to an array of tokens)", | ||
@@ -11,3 +11,3 @@ "keywords": [ | ||
"is-expression": "^3.0.0", | ||
"pug-error": "^1.3.2" | ||
"pug-error": "^1.3.3" | ||
}, | ||
@@ -17,8 +17,12 @@ "devDependencies": { | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/pugjs/pug-lexer.git" | ||
"url": "https://github.com/pugjs/pug/tree/master/packages/pug-lexer" | ||
}, | ||
"author": "ForbesLindesay", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"gitHead": "1bdf628a70fda7a0d840c52f3abce54b1c6b0130" | ||
} |
@@ -6,3 +6,4 @@ # pug-lexer | ||
[![Build Status](https://img.shields.io/travis/pugjs/pug-lexer/master.svg)](https://travis-ci.org/pugjs/pug-lexer) | ||
[![Dependency Status](https://img.shields.io/david/pugjs/pug-lexer.svg)](https://david-dm.org/pugjs/pug-lexer) | ||
[![Dependencies Status](https://david-dm.org/pugjs/pug/status.svg?path=packages/pug-lexer)](https://david-dm.org/pugjs/pug?path=packages/pug-lexer) | ||
[![DevDependencies Status](https://david-dm.org/pugjs/pug/dev-status.svg?path=packages/pug-lexer)](https://david-dm.org/pugjs/pug?path=packages/pug-lexer&type=dev) | ||
[![NPM version](https://img.shields.io/npm/v/pug-lexer.svg)](https://www.npmjs.org/package/pug-lexer) | ||
@@ -9,0 +10,0 @@ [![Coverage Status](https://img.shields.io/codecov/c/github/pugjs/pug-lexer.svg)](https://codecov.io/gh/pugjs/pug-lexer) |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
74
0
47140
5
1346
Updatedpug-error@^1.3.3