Sha256: 86f28634a6469b49ef9f7b44e9f21e7c17297aee9cbfbb6fb8f347a49d0d3674

Contents?: true

Size: 500 Bytes

Versions: 3

Compression:

Stored size: 500 Bytes

Contents

import btoa from './btoa.js';

export default function SourceMap ( properties ) {
	this.version = 3;

	this.file           = properties.file;
	this.sources        = properties.sources;
	this.sourcesContent = properties.sourcesContent;
	this.names          = properties.names;
	this.mappings       = properties.mappings;
}

SourceMap.prototype = {
	toString () {
		return JSON.stringify( this );
	},

	toUrl () {
		return 'data:application/json;charset=utf-8;base64,' + btoa( this.toString() );
	}
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jass-vue-0.4.0 vendor/node_modules/magic-string/src/utils/SourceMap.js
jass-vue-0.3.0 vendor/node_modules/magic-string/src/utils/SourceMap.js
jass-vue-0.2.1 vendor/node_modules/magic-string/src/utils/SourceMap.js