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.9.0 to 4.9.1

2

package.json
{
"name": "@riotjs/compiler",
"version": "4.9.0",
"version": "4.9.1",
"description": "Compiler for riot .tag files",

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

@@ -67,16 +67,26 @@ import {

function visitMemberExpression(path) {
if (!isGlobal(path)) {
if (path.value.computed) {
this.traverse(path)
} else if (
isArrayExpression(path.node.object) ||
isBinaryExpression(path.node.object) ||
path.node.object.computed
) {
this.traverse(path.get('object'))
} else if (!path.node.object.callee) {
replacePathScope(path, isThisExpression(path.node.object) ? path.node.property : path.node)
} else {
this.traverse(path.get('object'))
const traversePathObject = () => this.traverse(path.get('object'))
switch (true) {
case isGlobal(path):
if (path.node.object.arguments && path.node.object.arguments.length) {
traversePathObject()
}
break
case path.value.computed:
this.traverse(path)
break
case isArrayExpression(path.node.object):
case isBinaryExpression(path.node.object):
case path.node.object.computed:
traversePathObject()
break
case !path.node.object.callee:
replacePathScope(
path,
isThisExpression(path.node.object) ? path.node.property : path.node
)
break
default:
traversePathObject()
}

@@ -83,0 +93,0 @@

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