Comparing version 0.5.3 to 0.5.4
# buble changelog | ||
## 0.5.4 | ||
* Install missing `chalk` dependency | ||
* Informative error messages when `buble/register` fails | ||
## 0.5.3 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "buble", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "The blazing fast, batteries-included ES2015 compiler", | ||
@@ -60,2 +60,3 @@ "main": "dist/buble.umd.js", | ||
"acorn": "^3.0.4", | ||
"chalk": "^1.1.3", | ||
"magic-string": "^0.11.2", | ||
@@ -62,0 +63,0 @@ "minimist": "^1.2.0" |
@@ -29,5 +29,18 @@ var fs = require( 'fs' ); | ||
var source = fs.readFileSync( filename, 'utf-8' ); | ||
var compiled = buble.transform( source, options ); | ||
try { | ||
var compiled = buble.transform( source, options ); | ||
} catch ( err ) { | ||
if ( err.snippet ) { | ||
console.log( 'Error compiling ' + filename + ':\n---' ); | ||
console.log( err.snippet ); | ||
console.log( err.message ); | ||
console.log( '' ) | ||
process.exit( 1 ); | ||
} | ||
throw err; | ||
} | ||
m._compile( '"use strict";\n' + compiled.code, filename ); | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10076
1105202
4
+ Addedchalk@^1.1.3
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)