6to5-brunch
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -9,5 +9,6 @@ var to5 = require('6to5'); | ||
Object.keys(options).forEach(function (key) { | ||
if (key === 'sourceMap') return; | ||
_this.options[key] = options[key]; | ||
}); | ||
this.options.sourceMap = !!config.sourceMaps; | ||
this.options.sourceMapObject = !!config.sourceMaps; | ||
} | ||
@@ -28,3 +29,3 @@ | ||
if (this.options.sourceMap) { | ||
lines = compiled.split('\n'); | ||
lines = compiled.code.split('\n'); | ||
mapComment = lines.splice(-2, 1)[0]; | ||
@@ -35,6 +36,8 @@ if (mapComment.slice(0, 26) === '//# sourceMappingURL=data:') { | ||
} | ||
} else { | ||
compiled = {code: compiled}; | ||
} | ||
return callback(null, {data: compiled, map: map}); | ||
return callback(null, {data: compiled.code, map: compiled.map}); | ||
}; | ||
module.exports = ES6to5Compiler; |
{ | ||
"name": "6to5-brunch", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "Brunch plugin to turn ES6 code into vanilla ES5 with no runtime required.", | ||
@@ -24,3 +24,3 @@ "author": "Elan Shanker", | ||
"dependencies": { | ||
"6to5": "https://github.com/sebmck/6to5/tarball/a2f2811200ba1fb7751dd8b1cb7bd5d1f0d1c4ec" | ||
"6to5": "0.0.8" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
HTTP dependency
Supply chain riskContains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.
Found 1 instance in 1 package
3238
36
0
+ Added6to5@0.0.8(transitive)
+ Addedast-types@0.4.13(transitive)
+ Addedcommander@2.3.0(transitive)
+ Addeddepd@1.0.1(transitive)
+ Addedestraverse@1.5.1(transitive)
+ Addedfs-readdir-recursive@0.0.2(transitive)
+ Addedlodash@2.4.1(transitive)
+ Addedminimist@0.0.8(transitive)
+ Addedmkdirp@0.5.0(transitive)
+ Addedthrough@2.3.4(transitive)
Updated6to5@0.0.8