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

pug-lexer

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pug-lexer - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

6

index.js

@@ -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 @@ }

12

package.json
{
"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)

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