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

@riotjs/compiler

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@riotjs/compiler - npm Package Compare versions

Comparing version 4.8.4 to 4.8.5

3

CHANGELOG.md
# 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

12

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

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