@likec4/core
Advanced tools
Comparing version 0.57.1 to 0.58.0
@@ -23,2 +23,3 @@ import type { NonEmptyArray } from './_common'; | ||
readonly tail?: RelationshipArrowType; | ||
readonly links?: NonEmptyArray<string>; | ||
} |
import type { NonEmptyArray } from '../types'; | ||
export { hasAtLeast } from 'remeda'; | ||
export declare function isString(value: unknown): value is string; | ||
export declare function isNonEmptyArray<A>(arr: ArrayLike<A>): arr is NonEmptyArray<A>; | ||
export declare function isNonEmptyArray<A>(arr: ArrayLike<A> | undefined): arr is NonEmptyArray<A>; |
@@ -19,3 +19,3 @@ "use strict"; | ||
function isNonEmptyArray(arr) { | ||
return arr.length > 0; | ||
return !!arr && Array.isArray(arr) && arr.length > 0; | ||
} |
@@ -23,2 +23,3 @@ import type { NonEmptyArray } from './_common'; | ||
readonly tail?: RelationshipArrowType; | ||
readonly links?: NonEmptyArray<string>; | ||
} |
import type { NonEmptyArray } from '../types'; | ||
export { hasAtLeast } from 'remeda'; | ||
export declare function isString(value: unknown): value is string; | ||
export declare function isNonEmptyArray<A>(arr: ArrayLike<A>): arr is NonEmptyArray<A>; | ||
export declare function isNonEmptyArray<A>(arr: ArrayLike<A> | undefined): arr is NonEmptyArray<A>; |
@@ -6,3 +6,3 @@ export { hasAtLeast } from "remeda"; | ||
export function isNonEmptyArray(arr) { | ||
return arr.length > 0; | ||
return !!arr && Array.isArray(arr) && arr.length > 0; | ||
} |
{ | ||
"name": "@likec4/core", | ||
"version": "0.57.1", | ||
"version": "0.58.0", | ||
"license": "MIT", | ||
@@ -89,3 +89,3 @@ "homepage": "https://likec4.dev", | ||
"unbuild": "^2.0.0", | ||
"vitest": "^1.2.2" | ||
"vitest": "^1.3.1" | ||
}, | ||
@@ -92,0 +92,0 @@ "packageManager": "yarn@4.1.0", |
93211
2795