@statoscope/helpers
Advanced tools
Comparing version 5.19.0 to 5.22.0
@@ -61,13 +61,13 @@ import { Range, SemVer } from 'semver'; | ||
useNotNullish<T>(values: readonly T[]): T | null; | ||
serializeStringOrRegexp(value?: string | RegExp | undefined): SerializedStringOrRegexp | null; | ||
deserializeStringOrRegexp(value?: SerializedStringOrRegexp | null | undefined): string | RegExp | null; | ||
serializeStringOrRegexp(value?: string | RegExp): SerializedStringOrRegexp | null; | ||
deserializeStringOrRegexp(value?: SerializedStringOrRegexp | null): string | RegExp | null; | ||
toNumber(str: string): number; | ||
formatSize(value: number): string; | ||
formatDate(ts: number, locale?: string | undefined): string; | ||
formatDate(ts: number, locale?: string): string; | ||
formatDuration(ms: number): string; | ||
percentFrom(a: number, b: number, toFixed?: number | undefined): number; | ||
percentFrom(a: number, b: number, toFixed?: number): number; | ||
toFixed(value: number, digits?: number): string; | ||
color: (value: string) => string; | ||
fileExt: (value?: string | undefined) => string; | ||
fileType: (value?: string | undefined) => string; | ||
fileExt: (value?: string) => string; | ||
fileType: (value?: string) => string; | ||
toMatchRegexp: (value: string, rx: RegExp) => boolean; | ||
@@ -89,6 +89,6 @@ toRegexp: (value: string) => RegExp; | ||
semverDiff(a: string, b: string): string | null; | ||
semverParse(version?: string | undefined): SemVer | null; | ||
semverParse(version?: string): SemVer | null; | ||
semverSatisfies(version: string | SemVer, range: string | Range): boolean; | ||
formatDiff(value: DiffItem): string; | ||
isMatch(a?: string | undefined, b?: string | RegExp | undefined): boolean; | ||
isMatch(a?: string, b?: string | RegExp): boolean; | ||
exclude<TItem>(items: readonly TItem[], params?: { | ||
@@ -98,6 +98,6 @@ exclude?: (string | RegExp)[] | undefined; | ||
} | undefined): TItem[]; | ||
graph_getNode<TData>(id?: string | undefined, graph?: Graph<TData> | undefined): GraphNode<TData> | null; | ||
graph_getNode<TData>(id?: string, graph?: Graph<TData> | undefined): GraphNode<TData> | null; | ||
graph_getPaths<TData_1>(from?: GraphNode<TData_1> | undefined, graph?: Graph<TData_1> | undefined, to?: GraphNode<TData_1> | undefined, max?: number): PathSolution<TData_1> | null; | ||
diff_normalizeLimit(limit?: number | Limit | null | undefined): Limit | null; | ||
diff_isLTETheLimit(valueDiff: ValueDiff, limit?: number | Limit | null | undefined): boolean; | ||
diff_normalizeLimit(limit?: number | Limit | null): Limit | null; | ||
diff_isLTETheLimit(valueDiff: ValueDiff, limit?: number | Limit | null): boolean; | ||
}; | ||
@@ -104,0 +104,0 @@ export declare type Prepared = { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
{ | ||
"name": "@statoscope/helpers", | ||
"version": "5.19.0", | ||
"version": "5.22.0", | ||
"description": "Statoscope utils", | ||
@@ -22,8 +22,8 @@ "main": "./dist/index.js", | ||
"@types/archy": "^0.0.32", | ||
"@types/semver": "^7.3.6", | ||
"@types/semver": "^7.3.10", | ||
"archy": "~1.0.0", | ||
"jora": "^1.0.0-beta.5", | ||
"semver": "^7.3.5" | ||
"jora": "^1.0.0-beta.6", | ||
"semver": "^7.3.7" | ||
}, | ||
"gitHead": "e18702f042e97b40aa41b9d4b8b8e2681846f431" | ||
"gitHead": "0d2e09d892c1bb6e019778e270079f99cb80d332" | ||
} |
36031
1022
Updated@types/semver@^7.3.10
Updatedjora@^1.0.0-beta.6
Updatedsemver@^7.3.7