Socket
Socket
Sign inDemoInstall

@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.6 to 4.3.0

3

CHANGELOG.md
# Compiler Changes
### v4.3.0
- Add support for dynamic import
### v4.2.6

@@ -4,0 +7,0 @@ - Fix expression parts issues https://github.com/riot/riot/issues/2701

15

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

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

"scripts": {
"prepare": "npm i pug@2.0.3 node-sass@4.9.4 @babel/core@7 @babel/preset-env@7 --no-save",
"prepare": "npm i pug@2.0.3 node-sass@4.12.0 @babel/core@7 @babel/preset-env@7 --no-save",
"lint": "eslint src/ test/ build/",

@@ -38,4 +38,4 @@ "cov": "nyc report --reporter=text-lcov | coveralls",

"chai": "^4.2.0",
"coveralls": "^3.0.3",
"eslint": "^5.16.0",
"coveralls": "^3.0.4",
"eslint": "^6.0.0",
"eslint-config-riot": "^2.0.0",

@@ -45,3 +45,3 @@ "esm": "^3.2.25",

"nyc": "^14.1.1",
"rollup": "^1.13.1",
"rollup": "^1.16.2",
"rollup-plugin-alias": "^1.5.2",

@@ -51,3 +51,3 @@ "rollup-plugin-commonjs": "^10.0.0",

"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-resolve": "^5.0.1",
"rollup-plugin-node-resolve": "^5.0.4",
"shelljs": "^0.8.3"

@@ -62,5 +62,6 @@ },

"dependencies": {
"@riotjs/dom-bindings": "^4.1.1",
"@riotjs/dom-bindings": "^4.2.2",
"@riotjs/parser": "^4.0.1",
"acorn": "^6.1.1",
"acorn-dynamic-import": "^4.0.0",
"cumpa": "^1.0.1",

@@ -67,0 +68,0 @@ "curri": "^1.0.1",

@@ -0,2 +1,4 @@

// TODO: to remove when https://github.com/acornjs/acorn/pull/834 will be merged
import {Parser} from 'acorn'
import dynamicImport from 'acorn-dynamic-import'
import {parse} from 'recast'

@@ -14,3 +16,3 @@

parse(source, opts) {
return Parser.parse(source, {
return Parser.extend(dynamicImport).parse(source, {
...opts,

@@ -17,0 +19,0 @@ ecmaVersion: 2019

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