@code-pushup/utils
Advanced tools
Comparing version 0.29.0 to 0.30.0-alpha
{ | ||
"name": "@code-pushup/utils", | ||
"version": "0.29.0", | ||
"version": "0.30.0-alpha", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "@code-pushup/models": "*", |
@@ -22,3 +22,3 @@ export { exists } from '@code-pushup/models'; | ||
export { calcDuration, compareIssueSeverity, loadReport, } from './lib/reports/utils'; | ||
export { CliArgsObject, capitalize, countOccurrences, distinct, factorOf, objectToCliArgs, objectToEntries, objectToKeys, toArray, toNumberPrecision, toOrdinal, toUnixNewlines, toUnixPath, } from './lib/transform'; | ||
export { CliArgsObject, apostrophize, capitalize, countOccurrences, distinct, factorOf, fromJsonLines, objectFromEntries, objectToCliArgs, objectToEntries, objectToKeys, toArray, toJsonLines, toNumberPrecision, toOrdinal, toUnixNewlines, toUnixPath, } from './lib/transform'; | ||
export { verboseUtils } from './lib/verbose-utils'; |
@@ -74,3 +74,3 @@ /** | ||
observer?: ProcessObserver; | ||
alwaysResolve?: boolean; | ||
ignoreExitCode?: boolean; | ||
}; | ||
@@ -77,0 +77,0 @@ /** |
export declare function toArray<T>(val: T | T[]): T[]; | ||
export declare function objectToKeys<T extends object>(obj: T): (keyof T)[]; | ||
export declare function objectToEntries<T extends object>(obj: T): [keyof T, T[keyof T]][]; | ||
export declare function objectFromEntries<K extends PropertyKey, V>(entries: [K, V][]): Record<K, V>; | ||
export declare function countOccurrences<T extends PropertyKey>(values: T[]): Partial<Record<T, number>>; | ||
@@ -27,5 +28,8 @@ export declare function exists<T>(value: T): value is NonNullable<T>; | ||
export declare function toUnixNewlines(text: string): string; | ||
export declare function fromJsonLines<T = unknown>(jsonLines: string): T; | ||
export declare function toJsonLines<T>(json: T[]): string; | ||
export declare function capitalize<T extends string>(text: T): Capitalize<T>; | ||
export declare function apostrophize(text: string, upperCase?: boolean): string; | ||
export declare function toNumberPrecision(value: number, decimalPlaces: number): number; | ||
export declare function toOrdinal(value: number): string; | ||
export {}; |
Sorry, the diff of this file is too big to display
101230
2683