Socket
Socket
Sign inDemoInstall

riot-cli

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

riot-cli - npm Package Compare versions

Comparing version 4.0.2 to 4.1.0

5

CHANGELOG.md
# riot-cli
### v4.1.0
- Add: the `esm` option https://github.com/riot/cli/pull/32
### v4.0.2
- avoid to set the `global.isSilent` flag to true if the cli will be imported via node
- Fix: avoid to set the `global.isSilent` flag to true if the cli will be imported via node

@@ -6,0 +9,0 @@ ### v4.0.1

2

lib/const.js

@@ -21,2 +21,4 @@ 'use strict'

MODULAR_END_FRAG: '});',
ES_MODULE_RIOT_IMPORT: `import riot from 'riot';
`,
TAG_CREATED_CORRECTLY: function(path) {

@@ -23,0 +25,0 @@ return `${path} created correctly!`

@@ -73,2 +73,7 @@ 'use strict'

{
option: 'esm',
type: 'Boolean',
description: 'es6 module'
},
{
option: 'silent',

@@ -75,0 +80,0 @@ alias: 's',

@@ -12,3 +12,4 @@ 'use strict'

START_FRAG = constants.MODULAR_START_FRAG,
END_FRAG = constants.MODULAR_END_FRAG
END_FRAG = constants.MODULAR_END_FRAG,
ES_MODULE_RIOT_IMPORT = constants.ES_MODULE_RIOT_IMPORT

@@ -154,5 +155,7 @@ /**

function encapsulate (from, opt) {
return !opt.compiler.modular ? from : `${START_FRAG}${from}${END_FRAG}`
if (opt.compiler.modular) return `${START_FRAG}${from}${END_FRAG}`
if (opt.compiler.esm) return `${ES_MODULE_RIOT_IMPORT}${from}`
return from
}
module.exports = Make
{
"name": "riot-cli",
"version": "4.0.2",
"version": "4.1.0",
"description": "Riot command line utility",

@@ -32,10 +32,11 @@ "main": "lib/index.js",

"devDependencies": {
"co-mocha": "^1.2.1",
"chai": "^4.1.2",
"co-mocha": "^1.2.2",
"coveralls": "^3.0.0",
"eslint": "^4.13.1",
"eslint": "^4.19.1",
"eslint-config-riot": "^1.0.0",
"expect.js": "^0.3.1",
"istanbul": "^0.4.5",
"mocha": "^4.0.1",
"shelljs": "^0.7.8"
"mocha": "^5.0.5",
"shelljs": "^0.8.2"
},

@@ -49,9 +50,9 @@ "license": "MIT",

"dependencies": {
"chalk": "^2.3.0",
"chokidar": "^1.7.0",
"chalk": "^2.3.2",
"chokidar": "^2.0.3",
"co": "^4.6.0",
"optionator": "^0.8.2",
"riot-compiler": "^3.4.0",
"rollup": "^0.52.1"
"riot-compiler": "^3.5.1",
"rollup": "^0.57.1"
}
}
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