mimosa-babel
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -7,3 +7,3 @@ 'use strict'; | ||
var _compile$extensions = require('./plugin'); | ||
var _plugin = require('./plugin'); | ||
@@ -13,3 +13,3 @@ Object.defineProperty(exports, 'compile', { | ||
get: function get() { | ||
return _compile$extensions.compile; | ||
return _plugin.compile; | ||
} | ||
@@ -20,7 +20,7 @@ }); | ||
get: function get() { | ||
return _compile$extensions.extensions; | ||
return _plugin.extensions; | ||
} | ||
}); | ||
var _defaults$validate = require('./config'); | ||
var _config = require('./config'); | ||
@@ -30,3 +30,3 @@ Object.defineProperty(exports, 'defaults', { | ||
get: function get() { | ||
return _defaults$validate.defaults; | ||
return _config.defaults; | ||
} | ||
@@ -37,3 +37,3 @@ }); | ||
get: function get() { | ||
return _defaults$validate.validate; | ||
return _config.validate; | ||
} | ||
@@ -40,0 +40,0 @@ }); |
@@ -47,2 +47,6 @@ 'use strict'; | ||
if (fOpts.plugins === null) { | ||
fOpts.plugins = []; | ||
} | ||
var result = localConfig.lib.transform(file.inputFileText, fOpts); | ||
@@ -57,5 +61,5 @@ | ||
// fix paths if Windows style paths | ||
map.file = map.file.replace(/\\/g, '/'); | ||
map.file = map.file.replace(/\\/g, "/"); | ||
map.sources = map.sources.map(function (p) { | ||
return p.replace(/\\/g, '/'); | ||
return p.replace(/\\/g, "/"); | ||
}); | ||
@@ -67,3 +71,3 @@ sourceMap = JSON.stringify(result.map); | ||
} catch (err) { | ||
logger.error('Error running es6 module transpiler on file [[ ' + file.inputFileName + ' ]]', err); | ||
logger.error('Error running babel on file [[ ' + file.inputFileName + ' ]]', err.stack); | ||
cb(err); | ||
@@ -70,0 +74,0 @@ } |
{ | ||
"name": "mimosa-babel", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "babel mimosa files", | ||
@@ -24,5 +24,5 @@ "main": "./lib/index", | ||
"dependencies": { | ||
"babel-core": "^5.0.0", | ||
"babel-core": "^5.8.0", | ||
"deepmerge": "^0.2.7" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
178
21068
1
Updatedbabel-core@^5.8.0