@stryker-mutator/util
Advanced tools
Comparing version 6.2.0-beta.0 to 6.2.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [6.2.0](https://github.com/stryker-mutator/stryker-js/compare/v6.1.2...v6.2.0) (2022-09-06) | ||
### Bug Fixes | ||
* **json-report:** make all file paths relative in report ([#3617](https://github.com/stryker-mutator/stryker-js/issues/3617)) ([d51f1a9](https://github.com/stryker-mutator/stryker-js/commit/d51f1a9d0e7cc705f6938fe509411623958210e9)) | ||
### Features | ||
* **incremental:** add incremental mode ([#3609](https://github.com/stryker-mutator/stryker-js/issues/3609)) ([82bea56](https://github.com/stryker-mutator/stryker-js/commit/82bea5604c81c1ccf76d44827ad3922cfb61463b)) | ||
# [6.2.0-beta.0](https://github.com/stryker-mutator/stryker-js/compare/v6.1.2...v6.2.0-beta.0) (2022-06-28) | ||
@@ -8,0 +24,0 @@ |
@@ -9,2 +9,6 @@ import { KnownKeys } from './known-keys'; | ||
export declare function normalizeWhitespaces(str: string): string; | ||
/** | ||
* Normalizes line endings as unix style. | ||
*/ | ||
export declare function normalizeLineEndings(text: string): string; | ||
export interface PropertyPathOverloads<T> { | ||
@@ -28,3 +32,7 @@ (key: KnownKeys<T>): string; | ||
export declare function escapeRegExp(input: string): string; | ||
/** | ||
* Normalizes relative or absolute file names to be in posix format (forward slashes '/') | ||
*/ | ||
export declare function normalizeFileName(fileName: string): string; | ||
export {}; | ||
//# sourceMappingURL=string-utils.d.ts.map |
@@ -9,2 +9,8 @@ /** | ||
/** | ||
* Normalizes line endings as unix style. | ||
*/ | ||
export function normalizeLineEndings(text) { | ||
return text.replace(/\r\n/g, '\n'); | ||
} | ||
/** | ||
* Given a base type, allows type safe access to the name of a property. | ||
@@ -29,2 +35,8 @@ * @param prop The property name | ||
} | ||
/** | ||
* Normalizes relative or absolute file names to be in posix format (forward slashes '/') | ||
*/ | ||
export function normalizeFileName(fileName) { | ||
return fileName.replace(/\\/g, '/'); | ||
} | ||
//# sourceMappingURL=string-utils.js.map |
{ | ||
"name": "@stryker-mutator/util", | ||
"version": "6.2.0-beta.0", | ||
"version": "6.2.0", | ||
"description": "Contains utilities for Stryker, the mutation testing framework for JavaScript and friends", | ||
@@ -33,3 +33,3 @@ "main": "dist/src/index.js", | ||
"devDependencies": { | ||
"@stryker-mutator/test-helpers": "6.2.0-beta.0", | ||
"@stryker-mutator/test-helpers": "6.2.0", | ||
"@types/lodash.flatmap": "4.5.7", | ||
@@ -41,3 +41,3 @@ "@types/node": "17.0.31" | ||
}, | ||
"gitHead": "2e485b9fb5dff078a702643a7e9b6380fdd3e90f" | ||
"gitHead": "238e5a219d0095826168782c9dfc13e3791c031c" | ||
} |
@@ -14,2 +14,9 @@ import { KnownKeys } from './known-keys'; | ||
/** | ||
* Normalizes line endings as unix style. | ||
*/ | ||
export function normalizeLineEndings(text: string): string { | ||
return text.replace(/\r\n/g, '\n'); | ||
} | ||
export interface PropertyPathOverloads<T> { | ||
@@ -47,1 +54,8 @@ (key: KnownKeys<T>): string; | ||
} | ||
/** | ||
* Normalizes relative or absolute file names to be in posix format (forward slashes '/') | ||
*/ | ||
export function normalizeFileName(fileName: string): string { | ||
return fileName.replace(/\\/g, '/'); | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
79026
837
0