Socket
Socket
Sign inDemoInstall

mutation-testing-metrics

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mutation-testing-metrics - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

11

CHANGELOG.md

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

## [1.2.2](https://github.com/stryker-mutator/mutation-testing-elements/compare/v1.2.1...v1.2.2) (2019-12-04)
### Bug Fixes
* **metrics:** correct lodash import ([3c5d6d2](https://github.com/stryker-mutator/mutation-testing-elements/commit/3c5d6d28e33453801e1b137330f38b616e1910c7))
## [1.2.1](https://github.com/stryker-mutator/mutation-testing-elements/compare/v1.2.0...v1.2.1) (2019-11-24)

@@ -8,0 +19,0 @@

7

dist/src/calculateMetrics.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const helpers_1 = require("./helpers");
const lodash_1 = require("lodash");
const lodash_groupby_1 = __importDefault(require("lodash.groupby"));
const DEFAULT_SCORE = 100;

@@ -35,3 +38,3 @@ const ROOT_NAME = 'All files';

function toChildModels(files) {
const filesByDirectory = lodash_1.groupBy(Object.entries(files), namedFile => namedFile[0].split('/')[0]);
const filesByDirectory = lodash_groupby_1.default(Object.entries(files), namedFile => namedFile[0].split('/')[0]);
return Object.keys(filesByDirectory)

@@ -38,0 +41,0 @@ .map(directoryName => {

{
"name": "mutation-testing-metrics",
"version": "1.2.1",
"version": "1.2.2",
"description": "Utility functions to calculate mutation testing metrics.",

@@ -26,3 +26,3 @@ "main": "dist/src/index.js",

},
"gitHead": "393cbd8d528219e18231e868fb2f393aa3db5fde"
"gitHead": "bd51cab3afe3195bfeffe8af4a4bc8c50bda9c44"
}
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