jstransformer-webpack
Advanced tools
+4
-0
| # Changelog | ||
| ## v0.1.0: 2015-05-28 | ||
| - Updated depencies | ||
| ## v0.0.1: 2015-04-17 | ||
| - Initial release |
+13
-14
@@ -13,18 +13,17 @@ 'use strict'; | ||
| exports.renderFileAsync = function (filename, options, locals) { | ||
| // Parse the file path. | ||
| var file = path.parse(filename); | ||
| // Create the promise which compiles with Webpack. | ||
| return new Promise(function (resolve, reject) { | ||
| // Parse the file path. | ||
| var file = path.parse(filename); | ||
| // Construct the options array, cleansing the values. | ||
| options = options || {}; | ||
| options.context = options.context || file.dir; | ||
| options.context = fs.realpathSync(options.context); | ||
| options.entry = options.entry || './' + file.base; | ||
| // Construct the options array, cleansing the values. | ||
| options = options || {}; | ||
| options.context = options.context || file.dir; | ||
| options.context = fs.realpathSync(options.context); | ||
| options.entry = options.entry || './' + file.base; | ||
| // Merge locals into options. | ||
| if (locals) { | ||
| options = merge(options, locals); | ||
| } | ||
| // Create the promise which compiles with Webpack. | ||
| return new Promise(function (resolve, reject) { | ||
| // Merge locals into options. | ||
| if (locals) { | ||
| options = merge(options, locals); | ||
| } | ||
| // Compile with Webpack. | ||
@@ -31,0 +30,0 @@ webpack(options, function(error, stats) { |
+8
-4
| { | ||
| "name": "jstransformer-webpack", | ||
| "version": "0.0.1", | ||
| "version": "0.1.0", | ||
| "description": "Webpack support for JSTransformers.", | ||
| "keywords": [ | ||
| "jstransformer" | ||
| "jstransformer", | ||
| "webpack" | ||
| ], | ||
@@ -12,3 +13,3 @@ "files": [ | ||
| "devDependencies": { | ||
| "istanbul": "^0.3.5", | ||
| "istanbul": "^0.3.14", | ||
| "testit": "^2.0.2" | ||
@@ -29,4 +30,7 @@ }, | ||
| "promise": "^7.0.0", | ||
| "webpack": "^1.8.5" | ||
| "webpack": "^1.9.10" | ||
| }, | ||
| "engines": { | ||
| "node": ">=0.12" | ||
| } | ||
| } |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
4125
3.07%Updated