New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stryker

Package Overview
Dependencies
Maintainers
3
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stryker - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

<a name="0.9.3"></a>
## [0.9.3](https://github.com/stryker-mutator/stryker/compare/stryker@0.9.2...stryker@0.9.3) (2017-09-09)
### Bug Fixes
* **score-result:** Wrap single file reports ([#379](https://github.com/stryker-mutator/stryker/issues/379)) ([986eb6b](https://github.com/stryker-mutator/stryker/commit/986eb6b))
<a name="0.9.2"></a>

@@ -8,0 +19,0 @@ ## [0.9.2](https://github.com/stryker-mutator/stryker/compare/stryker@0.9.1...stryker@0.9.2) (2017-09-06)

2

package.json
{
"name": "stryker",
"version": "0.9.2",
"version": "0.9.3",
"description": "The extendable JavaScript mutation testing framework",

@@ -5,0 +5,0 @@ "main": "src/Stryker.js",

@@ -6,3 +6,5 @@ import { MutationScoreThresholds } from 'stryker-api/core';

static determineExitCode(score: ScoreResult, thresholds: MutationScoreThresholds | undefined): void;
private static wrapIfSingleFileScoreResult(scoreResult);
private static calculateScoreResult(results, basePath);
private static copy(defaults, overrides);
private static determineFacts(basePath, results);

@@ -9,0 +11,0 @@ private static compareScoreResults(a, b);

@@ -12,3 +12,4 @@ "use strict";

ScoreResultCalculator.calculate = function (results) {
return this.calculateScoreResult(results, '');
var scoreResult = this.calculateScoreResult(results, '');
return this.wrapIfSingleFileScoreResult(scoreResult);
};

@@ -32,2 +33,14 @@ ScoreResultCalculator.determineExitCode = function (score, thresholds) {

};
ScoreResultCalculator.wrapIfSingleFileScoreResult = function (scoreResult) {
if (scoreResult.representsFile) {
return this.copy(scoreResult, {
name: path.dirname(scoreResult.name), childResults: [
this.copy(scoreResult, { name: path.basename(scoreResult.name) })
]
});
}
else {
return scoreResult;
}
};
ScoreResultCalculator.calculateScoreResult = function (results, basePath) {

@@ -38,2 +51,5 @@ var numbers = this.countNumbers(results);

};
ScoreResultCalculator.copy = function (defaults, overrides) {
return Object.assign({}, defaults, overrides);
};
ScoreResultCalculator.determineFacts = function (basePath, results) {

@@ -46,3 +62,3 @@ var name = this.determineCommonBasePath(results, basePath);

childResults: childResults,
representsFile: childResults.length === 0
representsFile: childResults.length === 0 && results.length > 0
};

@@ -49,0 +65,0 @@ };

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