Socket
Socket
Sign inDemoInstall

riot-compiler

Package Overview
Dependencies
0
Maintainers
4
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.2 to 3.1.3

3

CHANGELOG.md
# Compiler Changes
### v3.1.3
- Fix babel in browser runtime parser https://github.com/riot/examples/issues/51
### v3.1.2

@@ -4,0 +7,0 @@ - Fix [riot#2210](https://github.com/riot/riot/issues/2210) : Style tag get stripped from riot tag even if it's in a javascript string.

/**
* Compiler for riot custom tags
* @version v3.1.2
* @version v3.1.3
*/

@@ -99,4 +99,34 @@

_p.js = {
es6: function (js, opts, url) {
return _r('babel').transform(js, extend({ filename: url }, opts)).code
return _r('Babel').transform( // eslint-disable-line
js,
extend({
filename: url,
plugins: [
['transform-es2015-template-literals', { loose: true }],
'transform-es2015-literals',
'transform-es2015-function-name',
'transform-es2015-arrow-functions',
'transform-es2015-block-scoped-functions',
['transform-es2015-classes', { loose: true }],
'transform-es2015-object-super',
'transform-es2015-shorthand-properties',
'transform-es2015-duplicate-keys',
['transform-es2015-computed-properties', { loose: true }],
['transform-es2015-for-of', { loose: true }],
'transform-es2015-sticky-regex',
'transform-es2015-unicode-regex',
'check-es2015-constants',
['transform-es2015-spread', { loose: true }],
'transform-es2015-parameters',
['transform-es2015-destructuring', { loose: true }],
'transform-es2015-block-scoping',
'transform-es2015-typeof-symbol',
['transform-es2015-modules-commonjs', { allowTopLevelThis: true }],
['transform-regenerator', { async: false, asyncGenerators: false }]
]
},
opts
)).code
},

@@ -699,3 +729,3 @@ buble: function (js, opts, url) {

var version = 'v3.1.2'
var version = 'v3.1.3'

@@ -702,0 +732,0 @@ export default {

@@ -93,4 +93,34 @@

_p.js = {
es6: function (js, opts, url) {
return _r('babel').transform(js, extend({ filename: url }, opts)).code
return _r('Babel').transform( // eslint-disable-line
js,
extend({
filename: url,
plugins: [
['transform-es2015-template-literals', { loose: true }],
'transform-es2015-literals',
'transform-es2015-function-name',
'transform-es2015-arrow-functions',
'transform-es2015-block-scoped-functions',
['transform-es2015-classes', { loose: true }],
'transform-es2015-object-super',
'transform-es2015-shorthand-properties',
'transform-es2015-duplicate-keys',
['transform-es2015-computed-properties', { loose: true }],
['transform-es2015-for-of', { loose: true }],
'transform-es2015-sticky-regex',
'transform-es2015-unicode-regex',
'check-es2015-constants',
['transform-es2015-spread', { loose: true }],
'transform-es2015-parameters',
['transform-es2015-destructuring', { loose: true }],
'transform-es2015-block-scoping',
'transform-es2015-typeof-symbol',
['transform-es2015-modules-commonjs', { allowTopLevelThis: true }],
['transform-regenerator', { async: false, asyncGenerators: false }]
]
},
opts
)).code
},

@@ -132,3 +162,3 @@ buble: function (js, opts, url) {

* Compiler for riot custom tags
* @version v3.1.2
* @version v3.1.3
*/

@@ -703,3 +733,3 @@ var compile = (function () {

js: compileJS,
version: 'v3.1.2'
version: 'v3.1.3'
}

@@ -706,0 +736,0 @@ return compile

6

lib/compiler.js
/**
* The riot-compiler v3.1.2
* The riot-compiler v3.1.3
*
* @module compiler
* @version v3.1.2
* @version v3.1.3
* @license MIT

@@ -1000,3 +1000,3 @@ * @copyright Muut Inc. + contributors

parsers: parsers,
version: 'v3.1.2'
version: 'v3.1.3'
}
{
"name": "riot-compiler",
"version": "3.1.2",
"version": "3.1.3",
"description": "Compiler for riot .tag files",

@@ -5,0 +5,0 @@ "main": "lib/compiler.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc