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 5.3.1 to 5.4.0

32

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

@@ -38,22 +38,22 @@ "main": "dist/index.js",

"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@riotjs/dom-bindings": "^5.0.3",
"@babel/core": "^7.14.0",
"@babel/preset-env": "^7.14.0",
"@riotjs/dom-bindings": "^5.0.5",
"@rollup/plugin-alias": "^3.1.2",
"@rollup/plugin-commonjs": "^18.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.1.1",
"chai": "^4.2.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"chai": "^4.3.4",
"coveralls": "^3.1.0",
"eslint": "^7.19.0",
"eslint": "^7.25.0",
"eslint-config-riot": "^3.0.0",
"esm": "^3.2.25",
"mocha": "^8.2.1",
"mocha": "^8.3.2",
"node-sass": "^5.0.0",
"nyc": "^15.1.0",
"pug": "^3.0.0",
"rollup": "^2.38.2",
"rollup-plugin-alias": "^2.2.0",
"rollup-plugin-commonjs": "^10.1.0",
"pug": "^3.0.2",
"rollup": "^2.46.0",
"rollup-plugin-node-builtins": "^2.1.2",
"shelljs": "^0.8.4",
"typescript": "^4.1.5"
"typescript": "^4.2.4"
},

@@ -68,4 +68,4 @@ "author": "Gianluca Guarini <gianluca.guarini@gmail.com> (http://gianlucaguarini.com)",

"@riotjs/parser": "^4.3.1",
"@riotjs/util": "2.0.0",
"acorn": "^8.0.5",
"@riotjs/util": "2.0.2",
"babylon": "^6.18.0",
"cssesc": "^3.0.0",

@@ -75,3 +75,3 @@ "cumpa": "^1.0.1",

"dom-nodes": "^1.1.3",
"globals": "^13.5.0",
"globals": "^13.8.0",
"recast": "^0.20.4",

@@ -78,0 +78,0 @@ "source-map": "^0.7.3"

@@ -104,5 +104,6 @@ import {

*/
function visitProperty(path) {
function visitObjectProperty(path) {
const value = path.node.value
const isShorthand = path.node.shorthand
if (isIdentifier(value) || isMemberExpression(value) || isShorthand) {

@@ -156,3 +157,3 @@ // disable shorthand object properties

visitMemberExpression,
visitProperty,
visitObjectProperty,
visitThisExpression,

@@ -159,0 +160,0 @@ visitClassExpression: ignorePath

@@ -10,3 +10,2 @@ import globalScope from 'globals'

export const isExpressionStatement = n => namedTypes.ExpressionStatement.check(n)
export const isObjectExpression = n => namedTypes.ObjectExpression.check(n)
export const isThisExpression = n => namedTypes.ThisExpression.check(n)

@@ -19,7 +18,4 @@ export const isThisExpressionStatement = n =>

export const isSequenceExpression = n => namedTypes.SequenceExpression.check(n)
export const isBinaryExpression = n => namedTypes.BinaryExpression.check(n)
export const isUnaryExpression = n => namedTypes.UnaryExpression.check(n)
export const isExportDefaultStatement = n => namedTypes.ExportDefaultDeclaration.check(n)
export const isMemberExpression = n => namedTypes.MemberExpression.check(n)
export const isArrayExpression = n => namedTypes.ArrayExpression.check(n)
export const isImportDeclaration = n => namedTypes.ImportDeclaration.check(n)

@@ -26,0 +22,0 @@

@@ -1,4 +0,3 @@

import {Parser} from 'acorn'
import {parse as customParser} from 'recast/parsers/babel'
import {parse} from 'recast'
/**

@@ -12,12 +11,5 @@ * Parse a js source to generate the AST

return parse(source, {
parser: {
parse(source, opts) {
return Parser.parse(source, {
...opts,
ecmaVersion: 2020
})
}
},
parser: { parse: customParser },
...options
})
}

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