Comparing version 0.6.2 to 0.6.3
@@ -5,2 +5,3 @@ var fs = require( 'fs' ); | ||
var handleError = require( './handleError.js' ); | ||
var EOL = require('os').EOL; | ||
@@ -48,3 +49,3 @@ function compile ( from, to, command, options ) { | ||
if ( command.sourcemap === 'inline' ) { | ||
result.code += '\n//# sourceMappingURL=' + result.map.toUrl(); | ||
result.code += EOL + '//# sourceMappingURL=' + result.map.toUrl(); | ||
} else if ( command.sourcemap ) { | ||
@@ -55,3 +56,3 @@ if ( !to ) { | ||
result.code += '\n//# sourceMappingURL=' + path.basename( to ) + '.map'; | ||
result.code += EOL + '//# sourceMappingURL=' + path.basename( to ) + '.map'; | ||
fs.writeFileSync( to + '.map', result.map.toString() ); | ||
@@ -58,0 +59,0 @@ } |
# buble changelog | ||
## 0.6.3 | ||
* Handle empty template strings ([#28](https://gitlab.com/Rich-Harris/buble/issues/28)) | ||
## 0.6.2 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "buble", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "The blazing fast, batteries-included ES2015 compiler", | ||
@@ -5,0 +5,0 @@ "main": "dist/buble.umd.js", |
@@ -6,5 +6,2 @@ import Node from '../Node.js'; | ||
if ( transforms.templateString && this.parent.type !== 'TaggedTemplateExpression' ) { | ||
code.remove( this.start, this.start + 1 ); | ||
code.remove( this.end - 1, this.end ); | ||
let ordered = this.expressions.concat( this.quasis ) | ||
@@ -47,6 +44,4 @@ .sort( ( a, b ) => a.start - b.start || a.end - b.end ) | ||
if ( closeParens ) replacement += ')'; | ||
if ( !node.tail || node.value.cooked.length ) { | ||
if ( i ) replacement += ' + '; | ||
replacement += JSON.stringify( node.value.cooked ); | ||
} | ||
if ( i ) replacement += ' + '; | ||
replacement += JSON.stringify( node.value.cooked ); | ||
@@ -53,0 +48,0 @@ code.overwrite( lastIndex, node.end, replacement ); |
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
1201588
10902