Comparing version 0.21.0 to 0.22.0
import type { GuardablePredicate } from "./functions.ts"; | ||
import type { anyOrNever, conform } from "./generics.ts"; | ||
import type { isDisjoint } from "./intersections.ts"; | ||
import type { parseNonNegativeInteger } from "./numericLiterals.ts"; | ||
import type { parseNonNegativeInteger } from "./numbers.ts"; | ||
export type pathToString<segments extends string[], delimiter extends string = "/"> = segments extends [] ? "/" : join<segments, delimiter>; | ||
@@ -6,0 +6,0 @@ export declare const join: <segments extends array<string>, delimiter extends string>(segments: segments, delimiter: delimiter) => join<segments, delimiter>; |
@@ -13,7 +13,9 @@ export * from "./arrays.ts"; | ||
export * from "./lazily.ts"; | ||
export * from "./numericLiterals.ts"; | ||
export * from "./numbers.ts"; | ||
export * from "./objectKinds.ts"; | ||
export * from "./path.ts"; | ||
export * from "./primitive.ts"; | ||
export * from "./records.ts"; | ||
export * from "./registry.ts"; | ||
export * from "./scanner.ts"; | ||
export * from "./serialize.ts"; | ||
@@ -20,0 +22,0 @@ export * from "./strings.ts"; |
@@ -13,7 +13,9 @@ export * from "./arrays.js"; | ||
export * from "./lazily.js"; | ||
export * from "./numericLiterals.js"; | ||
export * from "./numbers.js"; | ||
export * from "./objectKinds.js"; | ||
export * from "./path.js"; | ||
export * from "./primitive.js"; | ||
export * from "./records.js"; | ||
export * from "./registry.js"; | ||
export * from "./scanner.js"; | ||
export * from "./serialize.js"; | ||
@@ -20,0 +22,0 @@ export * from "./strings.js"; |
import type { array, join } from "./arrays.ts"; | ||
import type { NonNegativeIntegerLiteral } from "./numericLiterals.ts"; | ||
import type { NonNegativeIntegerLiteral } from "./numbers.ts"; | ||
export type Key = string | symbol; | ||
@@ -4,0 +4,0 @@ export type toArkKey<o, k extends keyof o> = k extends number ? [ |
import type { inferDomain } from "./domain.ts"; | ||
import type { BigintLiteral } from "./numericLiterals.ts"; | ||
import type { BigintLiteral } from "./numbers.ts"; | ||
type SerializedString<value extends string = string> = `"${value}"`; | ||
@@ -4,0 +4,0 @@ export type SerializedPrimitives = { |
@@ -37,6 +37,6 @@ import type { array } from "./arrays.ts"; | ||
} extends t ? true : false; | ||
export type keySet<key extends string = string> = { | ||
export type KeySet<key extends string = string> = { | ||
readonly [_ in key]?: 1; | ||
}; | ||
export type keySetOf<o extends object> = keySet<Extract<keyof o, string>>; | ||
export type keySetOf<o extends object> = KeySet<Extract<keyof o, string>>; | ||
export type mutable<o, maxDepth extends number = 1> = _mutable<o, [], maxDepth>; | ||
@@ -43,0 +43,0 @@ type _mutable<o, depth extends 1[], maxDepth extends number> = depth["length"] extends maxDepth ? o : o extends object ? o extends Fn ? o : { |
@@ -1,2 +0,2 @@ | ||
export declare const arkUtilVersion = "0.21.0"; | ||
export declare const arkUtilVersion = "0.22.0"; | ||
export declare const initialRegistryContents: { | ||
@@ -3,0 +3,0 @@ version: string; |
@@ -8,3 +8,3 @@ import { domainOf } from "./domain.js"; | ||
// For now, we assert this matches the package.json version via a unit test. | ||
export const arkUtilVersion = "0.21.0"; | ||
export const arkUtilVersion = "0.22.0"; | ||
export const initialRegistryContents = { | ||
@@ -11,0 +11,0 @@ version: arkUtilVersion, |
@@ -11,13 +11,13 @@ export declare const capitalize: <s extends string>(s: s) => Capitalize<s>; | ||
export declare const deanchoredSource: (regex: RegExp | string) => string; | ||
export declare const escapeToken = "\\"; | ||
export type EscapeToken = typeof escapeToken; | ||
export declare const whiteSpaceTokens: { | ||
readonly " ": true; | ||
readonly "\n": true; | ||
readonly "\t": true; | ||
export declare const escapeChar = "\\"; | ||
export type EscapeChar = typeof escapeChar; | ||
export declare const whitespaceChars: { | ||
readonly " ": 1; | ||
readonly "\n": 1; | ||
readonly "\t": 1; | ||
}; | ||
export type WhiteSpaceToken = keyof typeof whiteSpaceTokens; | ||
export type WhitespaceChar = keyof typeof whitespaceChars; | ||
export type trim<s extends string> = trimEnd<trimStart<s>>; | ||
export type trimStart<s extends string> = s extends `${WhiteSpaceToken}${infer tail}` ? trimEnd<tail> : s; | ||
export type trimEnd<s extends string> = s extends `${infer init}${WhiteSpaceToken}` ? trimEnd<init> : s; | ||
export type trimStart<s extends string> = s extends `${WhitespaceChar}${infer tail}` ? trimEnd<tail> : s; | ||
export type trimEnd<s extends string> = s extends `${infer init}${WhitespaceChar}` ? trimEnd<init> : s; | ||
export type isStringLiteral<t> = [ | ||
@@ -24,0 +24,0 @@ t |
@@ -15,7 +15,7 @@ export const capitalize = (s) => (s[0].toUpperCase() + s.slice(1)); | ||
}; | ||
export const escapeToken = "\\"; | ||
export const whiteSpaceTokens = { | ||
" ": true, | ||
"\n": true, | ||
"\t": true | ||
export const escapeChar = "\\"; | ||
export const whitespaceChars = { | ||
" ": 1, | ||
"\n": 1, | ||
"\t": 1 | ||
}; |
{ | ||
"name": "@ark/util", | ||
"version": "0.21.0", | ||
"version": "0.22.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": { |
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
101698
53
2231