@webdeveric/utils 0.67.0 → 0.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assertPathExists = assertPathExists;
4
+ const get_js_1 = require("../get.js");
5
+ const has_js_1 = require("../has.js");
6
+ function assertPathExists(input, path, predicate) {
7
+ if (!(0, has_js_1.has)(input, path)) {
8
+ throw new Error(`object path (${path}) does not exist on input`);
9
+ }
10
+ if (predicate && !predicate((0, get_js_1.get)(input, path))) {
11
+ throw new Error(`object path (${path}) failed predicate check`);
12
+ }
13
+ }
@@ -59,4 +59,5 @@ __exportStar(require("./assertIsSymbol.js"), exports);
59
59
  __exportStar(require("./assertIsSymbolArray.js"), exports);
60
60
  __exportStar(require("./assertIsUndefined.js"), exports);
61
61
  __exportStar(require("./assertIsUndefinedArray.js"), exports);
62
+ __exportStar(require("./assertPathExists.js"), exports);
62
63
  __exportStar(require("./assertPredicate.js"), exports);
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.get = get;
4
+ const pathParts_js_1 = require("./pathParts.js");
5
+ function get(input, path) {
6
+ if (path === '') {
7
+ return input;
8
+ }
9
+ let current = input;
10
+ for (const part of (0, pathParts_js_1.pathParts)(path)) {
11
+ if (typeof current === 'object' && current !== null && part in current) {
12
+ current = current[part];
13
+ }
14
+ else {
15
+ return;
16
+ }
17
+ }
18
+ return current;
19
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.has = has;
4
+ const pathParts_js_1 = require("./pathParts.js");
5
+ const isAnyObject_js_1 = require("./predicate/isAnyObject.js");
6
+ function has(input, path) {
7
+ if (!(0, isAnyObject_js_1.isAnyObject)(input)) {
8
+ return false;
9
+ }
10
+ if (path === '') {
11
+ return false;
12
+ }
13
+ let current = input;
14
+ for (const part of (0, pathParts_js_1.pathParts)(path)) {
15
+ if (typeof current === 'object' && current !== null && part in current) {
16
+ current = current[part];
17
+ }
18
+ else {
19
+ return false;
20
+ }
21
+ }
22
+ return true;
23
+ }
package/dist/cjs/index.js CHANGED
@@ -36,6 +36,7 @@ __exportStar(require("./delayAnimationFrame.js"), exports);
36
36
  __exportStar(require("./delayAnimationFrames.js"), exports);
37
37
  __exportStar(require("./describeInput.js"), exports);
38
38
  __exportStar(require("./escapeRegExp.js"), exports);
39
+ __exportStar(require("./get.js"), exports);
39
40
  __exportStar(require("./getDateString.js"), exports);
40
41
  __exportStar(require("./getISODateString.js"), exports);
41
42
  __exportStar(require("./getMaxValue.js"), exports);
@@ -48,6 +49,7 @@ __exportStar(require("./getPackageName.js"), exports);
48
49
  __exportStar(require("./getPaths.js"), exports);
49
50
  __exportStar(require("./getRandomItem.js"), exports);
50
51
  __exportStar(require("./getType.js"), exports);
52
+ __exportStar(require("./has.js"), exports);
51
53
  __exportStar(require("./hasAdditionalProperties.js"), exports);
52
54
  __exportStar(require("./inRange.js"), exports);
53
55
  __exportStar(require("./isEmpty.js"), exports);
@@ -57,11 +59,13 @@ __exportStar(require("./jsonParse.js"), exports);
57
59
  __exportStar(require("./looksLikeURL.js"), exports);
58
60
  __exportStar(require("./normalize.js"), exports);
59
61
  __exportStar(require("./parseNumber.js"), exports);
62
+ __exportStar(require("./pathParts.js"), exports);
60
63
  __exportStar(require("./prefix.js"), exports);
61
64
  __exportStar(require("./randomInt.js"), exports);
62
65
  __exportStar(require("./redactCredentialsInURL.js"), exports);
63
66
  __exportStar(require("./resultify.js"), exports);
64
67
  __exportStar(require("./secToString.js"), exports);
68
+ __exportStar(require("./set.js"), exports);
65
69
  __exportStar(require("./sort-factory.js"), exports);
66
70
  __exportStar(require("./sort.js"), exports);
67
71
  __exportStar(require("./stripWhitespace.js"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pathParts = pathParts;
4
+ function* pathParts(input) {
5
+ if (input === '') {
6
+ return;
7
+ }
8
+ if (typeof input !== 'string') {
9
+ yield input;
10
+ return;
11
+ }
12
+ const regexp = /\w+/g;
13
+ const iterator = input.matchAll(regexp);
14
+ for (const part of iterator) {
15
+ yield part[0];
16
+ }
17
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.set = set;
4
+ const pathParts_js_1 = require("./pathParts.js");
5
+ function set(input, path, value) {
6
+ if (path === '') {
7
+ throw new Error('Path cannot be an empty string');
8
+ }
9
+ if (typeof path === 'string' && /\b(__proto__|constructor|prototype)\b/.test(path)) {
10
+ throw new Error('Cannot pollute prototype');
11
+ }
12
+ const parts = Array.from((0, pathParts_js_1.pathParts)(path));
13
+ const lastPart = parts.pop();
14
+ if (typeof lastPart === 'undefined') {
15
+ throw new Error('Path must have at least one part');
16
+ }
17
+ let current = input;
18
+ const useParts = [];
19
+ for (const part of parts) {
20
+ useParts.push(part);
21
+ if (typeof current === 'object' && current !== null && part in current) {
22
+ current = current[part];
23
+ }
24
+ else {
25
+ throw new Error(`Path "${useParts.join('.')}" does not exist in the input object`);
26
+ }
27
+ }
28
+ return (current[lastPart] = value);
29
+ }
@@ -0,0 +1,10 @@
1
+ import { get } from '../get.js';
2
+ import { has } from '../has.js';
3
+ export function assertPathExists(input, path, predicate) {
4
+ if (!has(input, path)) {
5
+ throw new Error(`object path (${path}) does not exist on input`);
6
+ }
7
+ if (predicate && !predicate(get(input, path))) {
8
+ throw new Error(`object path (${path}) failed predicate check`);
9
+ }
10
+ }
@@ -43,4 +43,5 @@ export * from './assertIsSymbol.js';
43
43
  export * from './assertIsSymbolArray.js';
44
44
  export * from './assertIsUndefined.js';
45
45
  export * from './assertIsUndefinedArray.js';
46
+ export * from './assertPathExists.js';
46
47
  export * from './assertPredicate.js';
@@ -0,0 +1,16 @@
1
+ import { pathParts } from './pathParts.js';
2
+ export function get(input, path) {
3
+ if (path === '') {
4
+ return input;
5
+ }
6
+ let current = input;
7
+ for (const part of pathParts(path)) {
8
+ if (typeof current === 'object' && current !== null && part in current) {
9
+ current = current[part];
10
+ }
11
+ else {
12
+ return;
13
+ }
14
+ }
15
+ return current;
16
+ }
@@ -0,0 +1,20 @@
1
+ import { pathParts } from './pathParts.js';
2
+ import { isAnyObject } from './predicate/isAnyObject.js';
3
+ export function has(input, path) {
4
+ if (!isAnyObject(input)) {
5
+ return false;
6
+ }
7
+ if (path === '') {
8
+ return false;
9
+ }
10
+ let current = input;
11
+ for (const part of pathParts(path)) {
12
+ if (typeof current === 'object' && current !== null && part in current) {
13
+ current = current[part];
14
+ }
15
+ else {
16
+ return false;
17
+ }
18
+ }
19
+ return true;
20
+ }
package/dist/mjs/index.js CHANGED
@@ -20,6 +20,7 @@ export * from './delayAnimationFrame.js';
20
20
  export * from './delayAnimationFrames.js';
21
21
  export * from './describeInput.js';
22
22
  export * from './escapeRegExp.js';
23
+ export * from './get.js';
23
24
  export * from './getDateString.js';
24
25
  export * from './getISODateString.js';
25
26
  export * from './getMaxValue.js';
@@ -32,6 +33,7 @@ export * from './getPackageName.js';
32
33
  export * from './getPaths.js';
33
34
  export * from './getRandomItem.js';
34
35
  export * from './getType.js';
36
+ export * from './has.js';
35
37
  export * from './hasAdditionalProperties.js';
36
38
  export * from './inRange.js';
37
39
  export * from './isEmpty.js';
@@ -41,11 +43,13 @@ export * from './jsonParse.js';
41
43
  export * from './looksLikeURL.js';
42
44
  export * from './normalize.js';
43
45
  export * from './parseNumber.js';
46
+ export * from './pathParts.js';
44
47
  export * from './prefix.js';
45
48
  export * from './randomInt.js';
46
49
  export * from './redactCredentialsInURL.js';
47
50
  export * from './resultify.js';
48
51
  export * from './secToString.js';
52
+ export * from './set.js';
49
53
  export * from './sort-factory.js';
50
54
  export * from './sort.js';
51
55
  export * from './stripWhitespace.js';
@@ -0,0 +1,14 @@
1
+ export function* pathParts(input) {
2
+ if (input === '') {
3
+ return;
4
+ }
5
+ if (typeof input !== 'string') {
6
+ yield input;
7
+ return;
8
+ }
9
+ const regexp = /\w+/g;
10
+ const iterator = input.matchAll(regexp);
11
+ for (const part of iterator) {
12
+ yield part[0];
13
+ }
14
+ }
@@ -0,0 +1,26 @@
1
+ import { pathParts } from './pathParts.js';
2
+ export function set(input, path, value) {
3
+ if (path === '') {
4
+ throw new Error('Path cannot be an empty string');
5
+ }
6
+ if (typeof path === 'string' && /\b(__proto__|constructor|prototype)\b/.test(path)) {
7
+ throw new Error('Cannot pollute prototype');
8
+ }
9
+ const parts = Array.from(pathParts(path));
10
+ const lastPart = parts.pop();
11
+ if (typeof lastPart === 'undefined') {
12
+ throw new Error('Path must have at least one part');
13
+ }
14
+ let current = input;
15
+ const useParts = [];
16
+ for (const part of parts) {
17
+ useParts.push(part);
18
+ if (typeof current === 'object' && current !== null && part in current) {
19
+ current = current[part];
20
+ }
21
+ else {
22
+ throw new Error(`Path "${useParts.join('.')}" does not exist in the input object`);
23
+ }
24
+ }
25
+ return (current[lastPart] = value);
26
+ }
@@ -0,0 +1,4 @@
1
+ import type { TypePredicateFn } from '../types/functions.js';
2
+ import type { WithPath } from '../types/objects.js';
3
+ export declare function assertPathExists<Input extends object, InputPath extends string | number>(input: Input, path: InputPath): asserts input is Input & WithPath<Input, InputPath>;
4
+ export declare function assertPathExists<Input extends object, InputPath extends string | number, Value>(input: Input, path: InputPath, predicate: TypePredicateFn<Value>): asserts input is Input & WithPath<Input, InputPath, Value>;
@@ -43,4 +43,5 @@ export * from './assertIsSymbol.js';
43
43
  export * from './assertIsSymbolArray.js';
44
44
  export * from './assertIsUndefined.js';
45
45
  export * from './assertIsUndefinedArray.js';
46
+ export * from './assertPathExists.js';
46
47
  export * from './assertPredicate.js';
@@ -0,0 +1,4 @@
1
+ import type { Path, PathValue } from './types/objects.js';
2
+ export declare function get<Input extends object>(input: Input, path: ''): Input;
3
+ export declare function get<Input extends object, InputPath extends Path<Input>>(input: Input, path: InputPath): PathValue<Input, InputPath>;
4
+ export declare function get<Input extends object, InputPath extends PropertyKey>(input: Input, path: InputPath): unknown;
@@ -1,2 +1,3 @@
1
- export declare function getRandomItem(input: []): undefined;
2
- export declare function getRandomItem<T>(input: [T, ...T[]]): T;
1
+ import type { NonEmptyArray } from './types/arrays.js';
2
+ export declare function getRandomItem<Type>(input: NonEmptyArray<Type>): Type;
3
+ export declare function getRandomItem<Type>(input: Type[]): Type | undefined;
@@ -0,0 +1,5 @@
1
+ import type { FromPath, Merge, Path } from './types/objects.js';
2
+ import type { Pretty } from './types/utils.js';
3
+ export declare function has<Input extends object, InputPath extends Path<Input>>(input: Input, path: InputPath): input is Input;
4
+ export declare function has<Input extends object, InputPath extends string | number>(input: Input, path: InputPath): input is Pretty<Input & Merge<Input, FromPath<InputPath, unknown>>>;
5
+ export declare function has<InputPath extends string | number>(input: unknown, path: InputPath): input is FromPath<InputPath, unknown>;
@@ -20,6 +20,7 @@ export * from './delayAnimationFrame.js';
20
20
  export * from './delayAnimationFrames.js';
21
21
  export * from './describeInput.js';
22
22
  export * from './escapeRegExp.js';
23
+ export * from './get.js';
23
24
  export * from './getDateString.js';
24
25
  export * from './getISODateString.js';
25
26
  export * from './getMaxValue.js';
@@ -32,6 +33,7 @@ export * from './getPackageName.js';
32
33
  export * from './getPaths.js';
33
34
  export * from './getRandomItem.js';
34
35
  export * from './getType.js';
36
+ export * from './has.js';
35
37
  export * from './hasAdditionalProperties.js';
36
38
  export * from './inRange.js';
37
39
  export * from './isEmpty.js';
@@ -41,11 +43,13 @@ export * from './jsonParse.js';
41
43
  export * from './looksLikeURL.js';
42
44
  export * from './normalize.js';
43
45
  export * from './parseNumber.js';
46
+ export * from './pathParts.js';
44
47
  export * from './prefix.js';
45
48
  export * from './randomInt.js';
46
49
  export * from './redactCredentialsInURL.js';
47
50
  export * from './resultify.js';
48
51
  export * from './secToString.js';
52
+ export * from './set.js';
49
53
  export * from './sort-factory.js';
50
54
  export * from './sort.js';
51
55
  export * from './stripWhitespace.js';
@@ -0,0 +1 @@
1
+ export declare function pathParts(input: PropertyKey): Generator<PropertyKey>;
@@ -0,0 +1,3 @@
1
+ import type { Path, PathValue } from './types/objects.js';
2
+ export declare function set<Input extends object, InputPath extends Path<Input>, Value extends PathValue<Input, InputPath>>(input: Input, path: InputPath, value: Value): Value;
3
+ export declare function set<Input extends object, InputPath extends string, Value>(input: Input, path: InputPath, value: Value): Value;
@@ -7,5 +7,8 @@ export type GetLength<A extends any[]> = A extends {
7
7
  } ? L : never;
8
8
  export type IfLength<A extends any[], L extends number, T, F> = GetLength<A> extends L ? T : F;
9
9
  export type IfEmpty<A extends any[], T, F> = GetLength<A> extends 0 ? T : F;
10
- export type IfArray<Type, T, F> = Type extends unknown[] ? T : F;
10
+ export type IfArray<Type, T, F> = Type extends readonly unknown[] ? (number extends Type['length'] ? T : F) : F;
11
+ export type IsArray<Type> = IfArray<Type, true, false>;
11
12
  export type NonEmptyArray<Type> = [Type, ...Type[]];
13
+ export type IfArrayLike<Type, T, F> = Type extends readonly unknown[] ? T : F;
14
+ export type IsArrayLike<Type> = IfArrayLike<Type, true, false>;
@@ -1,7 +1,9 @@
1
+ import type { IfArray, IfArrayLike } from './arrays.js';
1
2
  import type { Primitive } from './common.js';
2
- import type { CamelCase } from './strings.js';
3
+ import type { UnknownRecord } from './records.js';
4
+ import type { AutoCompletableString, CamelCase } from './strings.js';
3
5
  import type { KeyValueTuple } from './tuples.js';
4
- import type { CanBeUndefined, IfNever } from './utils.js';
6
+ import type { CanBeUndefined, IfNever, Pretty } from './utils.js';
5
7
  export type Assign<Target, Source> = IfNever<Target, Source, Omit<Target, keyof (Target | Source)> & Source>;
6
8
  export type Entries<T extends object> = {
7
9
  [P in keyof T]: KeyValueTuple<P, T[P]>;
@@ -13,10 +15,26 @@ export type NonNullableProperties<Type> = {
13
15
  [Key in keyof Type]: NonNullable<Type[Key]>;
14
16
  };
15
17
  export type MethodNames<Type, Key extends keyof Type = keyof Type> = Key extends PropertyKey ? Type[Key] extends Function ? Key : never : never;
16
- export type ValidKeys<Type> = Type extends unknown[] ? number : `${Exclude<keyof NonNullable<Type>, symbol | MethodNames<NonNullable<Type>>>}`;
17
- export type PathDotNotation<Type, Key extends keyof Type = keyof Type> = Key extends ValidKeys<Type> ? Type[Key] extends Primitive ? Key : Key | `${Key}.${PathDotNotation<NonNullable<Type[Key]>>}` : never;
18
- export type Path<Type> = PathDotNotation<NonNullableProperties<Type>, keyof Type> | ValidKeys<Type>;
19
- export type PathValue<Type, TargetPath extends Path<Type>, Optional extends boolean = CanBeUndefined<Type, true, false>> = TargetPath extends `${infer Key}.${infer Rest}` ? Key extends keyof Type ? Rest extends Path<NonNullable<Type[Key]>> ? PathValue<NonNullable<Type[Key]>, Rest, CanBeUndefined<Type[Key], true, false>> : never : never : TargetPath extends keyof Type ? Optional extends true ? Type[TargetPath] | undefined : Type[TargetPath] : never;
20
- export type PathValues<Type, TargetPaths extends Path<Type>> = {
18
+ export type ValidKeys<Type extends object> = object extends Type ? never : Exclude<keyof Type, IfArrayLike<Type, symbol | MethodNames<Type>, symbol>>;
19
+ export type PathDotNotation<Type extends object, Key extends keyof Type = keyof Type> = Key extends ValidKeys<Type> ? Type[Key] extends Primitive ? Key : Key | `${Key}.${PathDotNotation<NonNullable<Type[Key]>>}` : never;
20
+ export type Path<Type extends object> = PathDotNotation<NonNullableProperties<Type>, keyof Type> | ValidKeys<Type>;
21
+ export type MaybeOptional<Type, Optional extends boolean> = Optional extends true ? Type | undefined : Type;
22
+ export type GetValueForKey<Type extends object, Key extends PropertyKey, Optional extends boolean = CanBeUndefined<Type, true, false>> = Key extends keyof Type ? MaybeOptional<Type[Key], IfArray<Type, true, Optional>> : Key extends `${infer Index extends number}` ? Index extends keyof Type ? MaybeOptional<Type[Index], IfArray<Type, true, Optional>> : never : never;
23
+ export type PathValue<Type extends object, TargetPath extends Path<Type> | AutoCompletableString | number, Optional extends boolean = CanBeUndefined<Type, true, false>> = TargetPath extends `${infer Key}.${infer Rest}` ? GetValueForKey<Type, Key, Optional> extends infer Value ? Rest extends Path<NonNullable<Value>> ? PathValue<NonNullable<Value>, Rest, CanBeUndefined<Value, true, false>> : never : never : GetValueForKey<Type, TargetPath, Optional>;
24
+ export type PathValues<Type extends object, TargetPaths extends Path<Type>> = {
21
25
  [TargetPath in TargetPaths as CamelCase<`${TargetPath}`, '.'>]: PathValue<Type, TargetPath>;
22
26
  };
27
+ export type FromPath<TargetPath extends PropertyKey, Value> = TargetPath extends `${infer Key}.${infer Rest}` ? {
28
+ [K in Key]: FromPath<Rest, Value>;
29
+ } : {
30
+ [K in TargetPath]: Value;
31
+ };
32
+ export type AllPaths<TargetPath extends PropertyKey> = TargetPath extends `${infer Head}.${infer Tail}` ? Head | `${Head}.${AllPaths<Tail>}` : TargetPath;
33
+ export type WithPath<Input extends object, InputPath extends PropertyKey, Value = unknown> = Pretty<Input & Merge<Input, FromPath<InputPath, Value>>>;
34
+ export type Merge<Left, Right> = Left extends unknown[] ? Right extends Record<number, unknown> ? MergeArrayWithObject<Left, Right> : Right : Left extends object ? Right extends object ? MergeObjects<Left, Right> : Right : Right;
35
+ export type MergeObjects<Left, Right> = {
36
+ [Key in keyof Left | keyof Right]: Key extends keyof Right ? Key extends keyof Left ? Merge<Left[Key], Right[Key]> : Right[Key] : Key extends keyof Left ? Left[Key] : never;
37
+ };
38
+ export type MergeArrayWithObject<Left extends unknown[], Right extends UnknownRecord> = Left & {
39
+ [Key in keyof Right]: Key extends keyof Left ? Merge<Left[Key & keyof Left], Right[Key]> : Key extends `${infer Index extends number}` ? Index extends keyof Left ? Merge<Left[Index], Right[Key]> : Right[Key] : Right[Key];
40
+ };
@@ -4,3 +4,5 @@ export type RangeTupleDistributive<T> = T extends any ? [min: T, max: T] : never
4
4
  export type NumberRangeTuple = RangeTuple<number>;
5
5
  export type KeyValueTuple<K extends PropertyKey = PropertyKey, V = unknown> = [key: K, value: V];
6
6
  export type TupleToArray<T extends any[]> = T[number][];
7
+ export type IfTuple<Type, T, F> = Type extends readonly [...infer _] ? (number extends Type['length'] ? F : T) : F;
8
+ export type IsTuple<Type> = IfTuple<Type, true, false>;
@@ -3,6 +3,7 @@ export type IfCommonKeys<Target, Source, T, F> = IfNever<keyof (Target | Source)
3
3
  export type IfDefined<Type, T, F> = undefined extends Type ? F : T;
4
4
  export type IfUnknown<Type, T, F> = unknown extends Type ? T : F;
5
5
  export type IfPromise<Type, T, F> = Type extends Promise<any> ? T : F;
6
+ export type IfSame<Left, Right, T, F> = [Left] extends [Right] ? ([Right] extends [Left] ? T : F) : F;
6
7
  export type NotPromise<Type> = Type extends Promise<any> ? never : Type;
7
8
  export type CanBeUndefined<Type, T, F> = Type | undefined extends Type ? T : F;
8
9
  export type ReturnTypeDefault<Func, Default = undefined> = Func extends (...args: any[]) => infer R ? R : Default;
@@ -48,3 +49,6 @@ export type Pretty<Type> = {
48
49
  export type Simplify<Type> = Type extends string ? string : Type extends number ? number : Type extends boolean ? boolean : Type extends bigint ? bigint : Type extends symbol ? symbol : Type extends undefined ? undefined : Type extends null ? null : Type extends Function ? Type : Type extends object ? {
49
50
  [Key in keyof Type]: Simplify<Type[Key]>;
50
51
  } : Type;
52
+ export type IfHasOnlyNumericKeys<Type, T, F> = `${Exclude<keyof Type, symbol>}` extends `${number}` ? T : F;
53
+ export type HasOnlyNumericKeys<Type> = IfHasOnlyNumericKeys<Type, true, false>;
54
+ export type ParseNumber<T extends string> = T extends `${infer N extends number}` ? N : never;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webdeveric/utils",
3
3
  "description": "Just another collection of utilities.",
4
- "version": "0.67.0",
4
+ "version": "0.69.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -66,7 +66,7 @@
66
66
  "url": "https://github.com/webdeveric/utils/issues"
67
67
  },
68
68
  "homepage": "https://github.com/webdeveric/utils/#readme",
69
- "packageManager": "pnpm@10.12.4+sha512.5ea8b0deed94ed68691c9bad4c955492705c5eeb8a87ef86bc62c74a26b037b08ff9570f108b2e4dbd1dd1a9186fea925e527f141c648e85af45631074680184",
69
+ "packageManager": "pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad",
70
70
  "scripts": {
71
71
  "clean": "rimraf ./dist/",
72
72
  "prebuild": "pnpm clean",
@@ -87,16 +87,16 @@
87
87
  "devDependencies": {
88
88
  "@commitlint/config-conventional": "^19.8.1",
89
89
  "@commitlint/types": "^19.8.1",
90
- "@types/node": "^22.16.0",
90
+ "@types/node": "^22.16.5",
91
91
  "@vitest/coverage-v8": "^3.2.4",
92
92
  "@webdeveric/eslint-config-ts": "^0.11.0",
93
93
  "@webdeveric/prettier-config": "^0.3.0",
94
94
  "commitlint": "^19.8.1",
95
- "commitlint-plugin-cspell": "^0.2.0",
96
- "conventional-changelog-conventionalcommits": "^9.0.0",
97
- "cspell": "^9.1.2",
95
+ "commitlint-plugin-cspell": "^0.3.0",
96
+ "conventional-changelog-conventionalcommits": "^9.1.0",
97
+ "cspell": "^9.2.0",
98
98
  "eslint": "^8.57.1",
99
- "eslint-config-prettier": "^10.1.5",
99
+ "eslint-config-prettier": "^10.1.8",
100
100
  "eslint-import-resolver-typescript": "^4.4.4",
101
101
  "eslint-plugin-import": "^2.32.0",
102
102
  "husky": "^9.1.7",
@@ -104,9 +104,9 @@
104
104
  "lint-staged": "^16.1.2",
105
105
  "prettier": "^3.6.2",
106
106
  "rimraf": "^6.0.1",
107
- "semantic-release": "^24.2.6",
107
+ "semantic-release": "^24.2.7",
108
108
  "typescript": "^5.8.3",
109
- "validate-package-exports": "^0.11.0",
109
+ "validate-package-exports": "^0.12.0",
110
110
  "vitest": "^3.2.4"
111
111
  },
112
112
  "pnpm": {