This commit is contained in:
oitsjustjose 2017-02-26 17:06:42 -05:00
commit 6b60015c02
9588 changed files with 1149251 additions and 49 deletions

34
node_modules/accord/lib/sourcemaps.js generated vendored Normal file
View file

@ -0,0 +1,34 @@
// Generated by CoffeeScript 1.12.1
(function() {
var W, fs, node;
W = require('when');
node = require('when/node');
fs = require('fs');
/**
* Reads a source map's sources and inlines them in the `sourcesContents` key,
* returning the full map.
*
* @param {Object} map - source map v3
* @return {Promise} a promise for the sourcemap updated with contents
*/
exports.inline_sources = function(map) {
if (map.sourcesContent) {
return W.resolve(map);
}
return W.map(map.sources, function(source) {
return node.call(fs.readFile.bind(fs), source, 'utf8');
}).then(function(contents) {
map.sourcesContent = contents;
return map;
})["catch"](function() {
return map;
});
};
}).call(this);