Socket
Socket
Sign inDemoInstall

karma

Package Overview
Dependencies
Maintainers
1
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma - npm Package Compare versions

Comparing version 0.10.7 to 0.10.8

8

CHANGELOG.md

@@ -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)

9

lib/preprocessor.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc