2016-10-10 03:43:44 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var convert = require('..');
|
|
|
|
|
|
|
|
var json = convert
|
2017-04-20 03:09:25 +02:00
|
|
|
.fromComment('//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQvZm9vLm1pbi5qcyIsInNvdXJjZXMiOlsic3JjL2Zvby5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
|
2016-10-10 03:43:44 +02:00
|
|
|
.toJSON();
|
|
|
|
|
|
|
|
var modified = convert
|
2017-04-20 03:09:25 +02:00
|
|
|
.fromComment('//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQvZm9vLm1pbi5qcyIsInNvdXJjZXMiOlsic3JjL2Zvby5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
|
|
|
|
.setProperty('sources', [ 'SRC/FOO.JS' ])
|
2016-10-10 03:43:44 +02:00
|
|
|
.toJSON();
|
|
|
|
|
|
|
|
console.log(json);
|
|
|
|
console.log(modified);
|