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.2.5 to 4.2.6

3

CHANGELOG.md
# Compiler Changes
### v4.2.6
- Fix expression parts issues https://github.com/riot/riot/issues/2701
### v4.2.5

@@ -4,0 +7,0 @@ - Fix https://github.com/riot/riot/issues/2700 replacing the `esprima` parser with `acorn`

4

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

@@ -59,3 +59,3 @@ "main": "dist/index.js",

"@riotjs/dom-bindings": "^4.1.1",
"@riotjs/parser": "^4.0.0",
"@riotjs/parser": "^4.0.1",
"acorn": "^6.1.1",

@@ -62,0 +62,0 @@ "cumpa": "^1.0.1",

@@ -25,6 +25,2 @@ import {

return transformExpression(node.expressions[0], sourceFile, sourceCode)
const lastExpression = node.expressions[node.expressions.length - 1]
const tail = sourceCode.substring(lastExpression.end, node.end).replace(/"|'/, '')
const stringsArray = [

@@ -38,4 +34,3 @@ ...node.parts.reduce((acc, str) => {

]
}, []),
builders.literal(tail)
}, [])
].filter(expr => !isLiteral(expr) || expr.value)

@@ -42,0 +37,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