inline-source-map
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -104,3 +104,3 @@ 'use strict'; | ||
var charset = this.opts.charset || 'utf-8'; | ||
return '//# sourceMappingURL=data:application/json;charset:'+charset+';base64,' + this.base64Encode(); | ||
return '//# sourceMappingURL=data:application/json;charset:' + charset + ';base64,' + this.base64Encode(); | ||
}; | ||
@@ -107,0 +107,0 @@ |
{ | ||
"name": "inline-source-map", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Adds source mappings and base64 encodes them, so they can be inlined in your generated file.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,3 +8,4 @@ # inline-source-map [![build status](https://secure.travis-ci.org/thlorenz/inline-source-map.png)](http://travis-ci.org/thlorenz/inline-source-map) | ||
var gen = generator({charset: 'utf-8'}) //default charset is utf-8, you can change it for yourself | ||
// default charset 'utf-8' is configurable | ||
var gen = generator({ charset: 'utf-8' }) | ||
.addMappings('foo.js', [{ original: { line: 2, column: 3 } , generated: { line: 5, column: 10 } }], { line: 5 }) | ||
@@ -11,0 +12,0 @@ .addGeneratedMappings('bar.js', 'var a = 2;\nconsole.log(a)', { line: 23, column: 22 }); |
90
26634