Comparing version 0.10.7 to 0.10.8
@@ -0,1 +1,9 @@ | ||
<a name="v0.10.8"></a> | ||
### v0.10.8 (2013-12-04) | ||
#### Bug Fixes | ||
* **preprocess:** set correct extension for the preprocessed path ([69cd4ebc](http://github.com/karma-runner/karma/commit/69cd4ebc4c0d9b1ec31b71b0c1c554ea52e1aae7), closes [#843](http://github.com/karma-runner/karma/issues/843)) | ||
<a name="v0.10.7"></a> | ||
@@ -2,0 +10,0 @@ ### v0.10.7 (2013-12-01) |
@@ -0,1 +1,2 @@ | ||
var path = require('path'); | ||
var fs = require('graceful-fs'); | ||
@@ -7,2 +8,4 @@ var crypto = require('crypto'); | ||
// TODO(vojta): extract get/create temp dir somewhere else (use the same for launchers etc) | ||
var TMP = process.env.TMPDIR || process.env.TMP || process.env.TEMP || '/tmp'; | ||
@@ -24,2 +27,3 @@ var sha1 = function(data) { | ||
if (!preprocessors.length) { | ||
file.contentPath = path.normalize(TMP + '/' + sha1(file.path) + path.extname(file.path)); | ||
return fs.writeFile(file.contentPath, content, function() { | ||
@@ -61,7 +65,2 @@ done(); | ||
return fs.readFile(file.originalPath, function(err, buffer) { | ||
// TODO(vojta): extract get/create temp dir somewhere else (use the same for launchers etc) | ||
var env = process.env; | ||
var tmp = env.TMPDIR || env.TMP || env.TEMP || '/tmp'; | ||
file.contentPath = tmp + '/' + sha1(file.originalPath) + '.js'; | ||
nextPreprocessor(buffer.toString()); | ||
@@ -68,0 +67,0 @@ }); |
@@ -170,3 +170,3 @@ { | ||
}, | ||
"version": "0.10.7" | ||
"version": "0.10.8" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
858023
19