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

js-beautify-jsreport

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-beautify-jsreport - npm Package Compare versions

Comparing version 1.6.18 to 1.6.19

30

js/src/javascript/tokenizer.js

@@ -188,2 +188,27 @@ /*jshint curly:true, eqeqeq:true, laxbreak:true, noempty:false */

if (last_token.type === 'TK_START_EXPR' && last_token.text === '{#') {
if (c === '}') {
return [c, 'TK_END_EXPR'];
}
while (input.peek() !== '}') {
c += input.next();
if (!input.hasNext()) {
break;
}
}
return [c, 'TK_WORD'];
}
if (
last_token.type === 'TK_WORD' &&
tokens[tokens.length - 2] &&
tokens[tokens.length - 2].type === 'TK_START_EXPR' &&
tokens[tokens.length - 2].text === '{#' &&
c === '}'
) {
return [c, 'TK_END_EXPR'];
}
if (digit.test(c) || (c === '.' && input.testChar(digit))) {

@@ -270,2 +295,7 @@ var allow_decimal = true;

if (c === '{' && input.hasNext() && input.peek() === '#') {
c += input.next();
return [c, 'TK_START_EXPR'];
}
if (c === '{') {

@@ -272,0 +302,0 @@ return [c, 'TK_START_BLOCK'];

2

package.json
{
"name": "js-beautify-jsreport",
"version": "1.6.18",
"version": "1.6.19",
"description": "jsbeautifier.org for node",

@@ -5,0 +5,0 @@ "main": "js/index.js",

Sorry, the diff of this file is too big to display

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