js-beautify-jsreport
Advanced tools
Comparing version 1.6.18 to 1.6.19
@@ -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']; |
{ | ||
"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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
895752
19449
0