Socket
Socket
Sign inDemoInstall

lebab

Package Overview
Dependencies
52
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.0 to 3.2.1

35

lib/Cli.js

@@ -56,19 +56,24 @@ "use strict";

value: function transformFile(inFile, outFile) {
var _this$transformer$run = this.transformer.run(_io["default"].read(inFile)),
code = _this$transformer$run.code,
warnings = _this$transformer$run.warnings;
try {
var _this$transformer$run = this.transformer.run(_io["default"].read(inFile)),
code = _this$transformer$run.code,
warnings = _this$transformer$run.warnings;
// Log warnings if there are any
if (warnings.length > 0 && inFile) {
console.error("".concat(inFile, ":")); // eslint-disable-line no-console
// Log warnings if there are any
if (warnings.length > 0 && inFile) {
console.error("".concat(inFile, ":")); // eslint-disable-line no-console
}
warnings.forEach(function (_ref) {
var line = _ref.line,
msg = _ref.msg,
type = _ref.type;
console.error( // eslint-disable-line no-console
"".concat(line, ": warning ").concat(msg, " (").concat(type, ")"));
});
_io["default"].write(outFile, code);
} catch (e) {
console.error("Error transforming: ".concat(inFile, "\n")); // eslint-disable-line no-console
throw e;
}
warnings.forEach(function (_ref) {
var line = _ref.line,
msg = _ref.msg,
type = _ref.type;
console.error( // eslint-disable-line no-console
"".concat(line, ": warning ").concat(msg, " (").concat(type, ")"));
});
_io["default"].write(outFile, code);
}

@@ -75,0 +80,0 @@ }]);

{
"name": "lebab",
"version": "3.2.0",
"version": "3.2.1",
"description": "Turn your ES5 code into readable ES6/ES7",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,3 +13,3 @@ [![Build Status](https://img.shields.io/travis/lebab/lebab.svg)](https://travis-ci.org/lebab/lebab)

It does exactly the opposite of what [Babel](https://babeljs.io/) does.
If you want to understand what Lebab exactly does, **[try the live demo](https://lebabjs.com/).**
If you want to understand what Lebab exactly does, **[try the live demo](https://lebab.github.io/).**

@@ -16,0 +16,0 @@

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