convert-source-map
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -69,5 +69,6 @@ 'use strict'; | ||
Converter.prototype.toComment = function () { | ||
Converter.prototype.toComment = function (options) { | ||
var base64 = this.toBase64(); | ||
return '//# sourceMappingURL=data:application/json;base64,' + base64; | ||
var data = 'sourceMappingURL=data:application/json;base64,' + base64; | ||
return options && options.multiline ? '/*# ' + data + ' */' : '//# ' + data; | ||
}; | ||
@@ -74,0 +75,0 @@ |
{ | ||
"name": "convert-source-map", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Converts a source-map from/to different formats and allows adding/changing properties.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -44,2 +44,9 @@ 'use strict'; | ||
test('to multi-line map', function (t) { | ||
var c = convert.fromObject(obj); | ||
var s = c.toComment({ multiline: true }); | ||
t.similar(s, /^\/\*# sourceMappingURL=.+ \*\/$/); | ||
t.end(); | ||
}) | ||
test('from source', function (t) { | ||
@@ -46,0 +53,0 @@ var foo = [ |
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
28963
526