@riotjs/compiler
Advanced tools
Comparing version 4.8.4 to 4.8.5
# Compiler Changes | ||
### v4,8.5 | ||
- Fix https://github.com/riot/riot/issues/2859 | ||
### v4,8.4 | ||
@@ -4,0 +7,0 @@ - Fix https://github.com/riot/riot/issues/2858 |
{ | ||
"name": "@riotjs/compiler", | ||
"version": "4.8.4", | ||
"version": "4.8.5", | ||
"description": "Compiler for riot .tag files", | ||
@@ -42,10 +42,10 @@ "main": "dist/index.js", | ||
"coveralls": "^3.1.0", | ||
"eslint": "^6.8.0", | ||
"eslint": "^7.0.0", | ||
"eslint-config-riot": "^3.0.0", | ||
"esm": "^3.2.25", | ||
"mocha": "^7.1.2", | ||
"node-sass": "^4.14.0", | ||
"node-sass": "^4.14.1", | ||
"nyc": "^15.0.1", | ||
"pug": "^2.0.4", | ||
"rollup": "^2.7.6", | ||
"rollup": "^2.10.2", | ||
"rollup-plugin-alias": "^2.2.0", | ||
@@ -65,3 +65,3 @@ "rollup-plugin-commonjs": "^10.1.0", | ||
"@riotjs/util": "1.3.1", | ||
"acorn": "^7.1.1", | ||
"acorn": "^7.2.0", | ||
"cssesc": "^3.0.0", | ||
@@ -72,5 +72,5 @@ "cumpa": "^1.0.1", | ||
"globals": "^13.0.0", | ||
"recast": "^0.19.0", | ||
"recast": "^0.19.1", | ||
"source-map": "^0.7.3" | ||
} | ||
} |
@@ -19,3 +19,3 @@ import { | ||
import { hasExpressions, isGlobal, isTagNode, isTextNode, isVoidNode } from './checks' | ||
import { isBinaryExpression, isIdentifier, isLiteral, isMemberExpression, isThisExpression } from '../../utils/ast-nodes-checks' | ||
import { isArrayExpression, isBinaryExpression, isIdentifier, isLiteral, isMemberExpression, isThisExpression } from '../../utils/ast-nodes-checks' | ||
import { nullNode, simplePropertyNode } from '../../utils/custom-ast-nodes' | ||
@@ -71,3 +71,7 @@ import addLinesOffset from '../../utils/add-lines-offset' | ||
this.traverse(path) | ||
} else if (isBinaryExpression(path.node.object) || path.node.object.computed) { | ||
} else if ( | ||
isArrayExpression(path.node.object) || | ||
isBinaryExpression(path.node.object) || | ||
path.node.object.computed | ||
) { | ||
this.traverse(path.get('object')) | ||
@@ -74,0 +78,0 @@ } else if (!path.node.object.callee) { |
@@ -17,2 +17,3 @@ import globalScope from 'globals' | ||
export const isMemberExpression = n => namedTypes.MemberExpression.check(n) | ||
export const isArrayExpression = n => namedTypes.ArrayExpression.check(n) | ||
@@ -19,0 +20,0 @@ export const isBrowserAPI = ({name}) => browserAPIs.includes(name) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
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
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
2069227
54607
Updatedacorn@^7.2.0
Updatedrecast@^0.19.1