mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 02:44:45 +00:00
Merge pull request #77 from robonen/refactor/template
Refactor template
This commit is contained in:
34
core/stdlib/src/collections/get/index.ts
Normal file
34
core/stdlib/src/collections/get/index.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import { type Collection, type Path } from '../../types';
|
||||
|
||||
export type ExtractFromObject<O extends Record<PropertyKey, unknown>, K> =
|
||||
K extends keyof O
|
||||
? O[K]
|
||||
: K extends keyof NonNullable<O>
|
||||
? NonNullable<O>[K]
|
||||
: never;
|
||||
|
||||
export type ExtractFromArray<A extends readonly any[], K> =
|
||||
any[] extends A
|
||||
? A extends readonly (infer T)[]
|
||||
? T | undefined
|
||||
: undefined
|
||||
: K extends keyof A
|
||||
? A[K]
|
||||
: undefined;
|
||||
|
||||
export type ExtractFromCollection<O, K> =
|
||||
K extends []
|
||||
? O
|
||||
: K extends [infer Key, ...infer Rest]
|
||||
? O extends Record<PropertyKey, unknown>
|
||||
? ExtractFromCollection<ExtractFromObject<O, Key>, Rest>
|
||||
: O extends readonly any[]
|
||||
? ExtractFromCollection<ExtractFromArray<O, Key>, Rest>
|
||||
: never
|
||||
: never;
|
||||
|
||||
type Get<O, K> = ExtractFromCollection<O, Path<K>>;
|
||||
|
||||
export function get<O extends Collection, K extends string>(obj: O, path: K) {
|
||||
return path.split('.').reduce((acc, key) => (acc as any)?.[key], obj) as Get<O, K> | undefined;
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
type Exist<T> = T extends undefined | null ? never : T;
|
||||
|
||||
type ExtractFromObject<O extends Record<PropertyKey, unknown>, K> =
|
||||
K extends keyof O
|
||||
? O[K]
|
||||
: K extends keyof Exist<O>
|
||||
? Exist<O>[K]
|
||||
: never;
|
||||
|
||||
type ExtractFromArray<A extends readonly any[], K> = any[] extends A
|
||||
? A extends readonly (infer T)[]
|
||||
? T | undefined
|
||||
: undefined
|
||||
: K extends keyof A
|
||||
? A[K]
|
||||
: undefined;
|
||||
|
||||
type GetWithArray<O, K> = K extends []
|
||||
? O
|
||||
: K extends [infer Key, ...infer Rest]
|
||||
? O extends Record<PropertyKey, unknown>
|
||||
? GetWithArray<ExtractFromObject<O, Key>, Rest>
|
||||
: O extends readonly any[]
|
||||
? GetWithArray<ExtractFromArray<O, Key>, Rest>
|
||||
: never
|
||||
: never;
|
||||
|
||||
type Path<T> = T extends `${infer Key}.${infer Rest}`
|
||||
? [Key, ...Path<Rest>]
|
||||
: T extends `${infer Key}`
|
||||
? [Key]
|
||||
: [];
|
||||
|
||||
// Type that generate a type of a value by a path;
|
||||
// e.g. ['a', 'b', 'c'] => { a: { b: { c: PropertyKey } } }
|
||||
// e.g. ['a', 'b', 'c', 'd'] => { a: { b: { c: { d: PropertyKey } } } }
|
||||
// e.g. ['a'] => { a: PropertyKey }
|
||||
// e.g. ['a', '0'], => { a: [PropertyKey] }
|
||||
// e.g. ['a', '0', 'b'] => { a: [{ b: PropertyKey }] }
|
||||
// e.g. ['a', '0', 'b', '0'] => { a: [{ b: [PropertyKey] }] }
|
||||
// e/g/ ['0', 'a'] => [{ a: PropertyKey }]
|
||||
//
|
||||
// Input: ['a', 'b', 'c'], constrain: PropertyKey
|
||||
// Output: { a: { b: { c: PropertyKey } } }
|
||||
|
||||
export type UnionToIntersection<Union> = (
|
||||
Union extends unknown
|
||||
? (distributedUnion: Union) => void
|
||||
: never
|
||||
) extends ((mergedIntersection: infer Intersection) => void)
|
||||
? Intersection & Union
|
||||
: never;
|
||||
|
||||
|
||||
type PathToType<T extends string[]> = T extends [infer Head, ...infer Rest]
|
||||
? Head extends string
|
||||
? Head extends `${number}`
|
||||
? Rest extends string[]
|
||||
? PathToType<Rest>[]
|
||||
: never
|
||||
: Rest extends string[]
|
||||
? { [K in Head & string]: PathToType<Rest> }
|
||||
: never
|
||||
: never
|
||||
: string;
|
||||
|
||||
export type Generate<T extends string> = UnionToIntersection<PathToType<Path<T>>>;
|
||||
type Get<O, K> = GetWithArray<O, Path<K>>;
|
||||
|
||||
export function getByPath<O, K extends string>(obj: O, path: K): Get<O, K>;
|
||||
export function getByPath(obj: Record<string, unknown>, path: string): unknown {
|
||||
const keys = path.split('.');
|
||||
let currentObj = obj;
|
||||
|
||||
for (const key of keys) {
|
||||
const value = currentObj[key];
|
||||
|
||||
if (value === undefined || value === null) return undefined;
|
||||
|
||||
currentObj = value as Record<string, unknown>;
|
||||
}
|
||||
|
||||
return currentObj;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
export * from './getByPath';
|
||||
export * from './get';
|
||||
@@ -1,7 +1,7 @@
|
||||
import { describe, expectTypeOf, it } from "vitest";
|
||||
import type { ClearPlaceholder, ExtractPlaceholders } from "./index";
|
||||
import { describe, expectTypeOf, it } from 'vitest';
|
||||
import type { ClearPlaceholder, ExtractPlaceholders } from './index';
|
||||
|
||||
describe('template', () => {
|
||||
describe.skip('template', () => {
|
||||
describe('ClearPlaceholder', () => {
|
||||
it('ignores strings without braces', () => {
|
||||
type actual = ClearPlaceholder<'name'>;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { templateObject } from '.';
|
||||
|
||||
describe.todo('templateObject', () => {
|
||||
describe.skip('templateObject', () => {
|
||||
it('replace template placeholders with corresponding values from args', () => {
|
||||
const template = 'Hello, {names.0}!';
|
||||
const args = { names: ['John'] };
|
||||
|
||||
@@ -1,25 +1,20 @@
|
||||
import { getByPath, type Generate } from '../../collections';
|
||||
import { isFunction } from '../../types';
|
||||
import { get } from '../../collections';
|
||||
import { isFunction, type Path, type PathToType, type Stringable, type Trim, type UnionToIntersection } from '../../types';
|
||||
|
||||
/**
|
||||
* Type of a value that will be used to replace a placeholder in a template.
|
||||
*/
|
||||
type StringPrimitive = string | number | bigint | null | undefined;
|
||||
export type TemplateValue = Stringable | string;
|
||||
|
||||
/**
|
||||
* Type of a fallback value when a template key is not found.
|
||||
*/
|
||||
type TemplateFallback = string | ((key: string) => string);
|
||||
|
||||
/**
|
||||
* Type of an object that will be used to replace placeholders in a template.
|
||||
*/
|
||||
type TemplateArgsObject = StringPrimitive[] | { [key: string]: TemplateArgsObject | StringPrimitive };
|
||||
export type TemplateFallback = string | ((key: string) => string);
|
||||
|
||||
/**
|
||||
* Type of a template string with placeholders.
|
||||
*/
|
||||
const TEMPLATE_PLACEHOLDER = /{([^{}]+)}/gm;
|
||||
const TEMPLATE_PLACEHOLDER = /\{\s*([^{}]+?)\s*\}/gm;
|
||||
|
||||
/**
|
||||
* Removes the placeholder syntax from a template string.
|
||||
@@ -27,13 +22,14 @@ const TEMPLATE_PLACEHOLDER = /{([^{}]+)}/gm;
|
||||
* @example
|
||||
* type Base = ClearPlaceholder<'{user.name}'>; // 'user.name'
|
||||
* type Unbalanced = ClearPlaceholder<'{user.name'>; // 'user.name'
|
||||
* type Spaces = ClearPlaceholder<'{ user.name }'>; // 'user.name'
|
||||
*/
|
||||
export type ClearPlaceholder<T extends string> =
|
||||
T extends `${string}{${infer Template}`
|
||||
export type ClearPlaceholder<In extends string> =
|
||||
In extends `${string}{${infer Template}`
|
||||
? ClearPlaceholder<Template>
|
||||
: T extends `${infer Template}}${string}`
|
||||
: In extends `${infer Template}}${string}`
|
||||
? ClearPlaceholder<Template>
|
||||
: T;
|
||||
: Trim<In>;
|
||||
|
||||
/**
|
||||
* Extracts all placeholders from a template string.
|
||||
@@ -41,25 +37,37 @@ export type ClearPlaceholder<T extends string> =
|
||||
* @example
|
||||
* type Base = ExtractPlaceholders<'Hello {user.name}, {user.addresses.0.street}'>; // 'user.name' | 'user.addresses.0.street'
|
||||
*/
|
||||
export type ExtractPlaceholders<T extends string> =
|
||||
T extends `${infer Before}}${infer After}`
|
||||
export type ExtractPlaceholders<In extends string> =
|
||||
In extends `${infer Before}}${infer After}`
|
||||
? Before extends `${string}{${infer Placeholder}`
|
||||
? ClearPlaceholder<Placeholder> | ExtractPlaceholders<After>
|
||||
: ExtractPlaceholders<After>
|
||||
: never;
|
||||
|
||||
export function templateObject<T extends string, A extends Generate<ExtractPlaceholders<T>>>(template: T, args: A, fallback?: TemplateFallback): string {
|
||||
/**
|
||||
* Generates a type for a template string with placeholders.
|
||||
*
|
||||
* @example
|
||||
* type Base = GenerateTypes<'Hello {user.name}, your address {user.addresses.0.street}'>; // { user: { name: string; addresses: { 0: { street: string; }; }; }; }
|
||||
* type WithTarget = GenerateTypes<'Hello {user.age}', number>; // { user: { age: number; }; }
|
||||
*/
|
||||
export type GenerateTypes<T extends string, Target = string> = UnionToIntersection<PathToType<Path<T>, Target>>;
|
||||
|
||||
export function templateObject<
|
||||
T extends string,
|
||||
A extends GenerateTypes<ExtractPlaceholders<T>, TemplateValue>
|
||||
>(template: T, args: A, fallback?: TemplateFallback) {
|
||||
return template.replace(TEMPLATE_PLACEHOLDER, (_, key) => {
|
||||
const value = getByPath(args, key) as string;
|
||||
const value = get(args, key)?.toString();
|
||||
return value !== undefined ? value : (isFunction(fallback) ? fallback(key) : '');
|
||||
});
|
||||
}
|
||||
|
||||
// templateObject('Hello {user.name}, your address {user.addresses.0.street}', {
|
||||
// user: {
|
||||
// name: 'John',
|
||||
// addresses: [
|
||||
// { city: 'New York', street: '5th Avenue' },
|
||||
// ],
|
||||
// },
|
||||
// });
|
||||
templateObject('Hello {user.name}, your address {user.addresses.0.city}', {
|
||||
user: {
|
||||
name: 'John',
|
||||
addresses: [
|
||||
{ city: 'Kolpa' },
|
||||
],
|
||||
},
|
||||
});
|
||||
|
||||
71
core/stdlib/src/types/ts/collections.test-d.ts
Normal file
71
core/stdlib/src/types/ts/collections.test-d.ts
Normal file
@@ -0,0 +1,71 @@
|
||||
import { describe, expectTypeOf, it } from 'vitest';
|
||||
import type { Path, PathToType } from './collections';
|
||||
|
||||
describe('collections', () => {
|
||||
describe('Path', () => {
|
||||
it('parse simple object path', () => {
|
||||
type actual = Path<'user.name'>;
|
||||
type expected = ['user', 'name'];
|
||||
|
||||
expectTypeOf<actual>().toEqualTypeOf<expected>();
|
||||
});
|
||||
|
||||
it('parse simple array path', () => {
|
||||
type actual = Path<'user.0'>;
|
||||
type expected = ['user', '0'];
|
||||
|
||||
expectTypeOf<actual>().toEqualTypeOf<expected>();
|
||||
});
|
||||
|
||||
it('parse complex object path', () => {
|
||||
type actual = Path<'user.addresses.0.street'>;
|
||||
type expected = ['user', 'addresses', '0', 'street'];
|
||||
|
||||
expectTypeOf<actual>().toEqualTypeOf<expected>();
|
||||
});
|
||||
|
||||
it('parse double dot path', () => {
|
||||
type actual = Path<'user..name'>;
|
||||
type expected = ['user', '', 'name'];
|
||||
|
||||
expectTypeOf<actual>().toEqualTypeOf<expected>();
|
||||
});
|
||||
});
|
||||
|
||||
describe('PathToType', () => {
|
||||
it('convert simple object path', () => {
|
||||
type actual = PathToType<['user', 'name']>;
|
||||
type expected = { user: { name: unknown } };
|
||||
|
||||
expectTypeOf<actual>().toEqualTypeOf<expected>();
|
||||
});
|
||||
|
||||
it('convert simple array path', () => {
|
||||
type actual = PathToType<['user', '0']>;
|
||||
type expected = { user: unknown[] };
|
||||
|
||||
expectTypeOf<actual>().toEqualTypeOf<expected>();
|
||||
});
|
||||
|
||||
it('convert complex object path', () => {
|
||||
type actual = PathToType<['user', 'addresses', '0', 'street']>;
|
||||
type expected = { user: { addresses: { street: unknown }[] } };
|
||||
|
||||
expectTypeOf<actual>().toEqualTypeOf<expected>();
|
||||
});
|
||||
|
||||
it('convert double dot path', () => {
|
||||
type actual = PathToType<['user', '', 'name']>;
|
||||
type expected = { user: { '': { name: unknown } } };
|
||||
|
||||
expectTypeOf<actual>().toEqualTypeOf<expected>();
|
||||
});
|
||||
|
||||
it('convert to custom target', () => {
|
||||
type actual = PathToType<['user', 'name'], string>;
|
||||
type expected = { user: { name: string } };
|
||||
|
||||
expectTypeOf<actual>().toEqualTypeOf<expected>();
|
||||
});
|
||||
});
|
||||
});
|
||||
28
core/stdlib/src/types/ts/collections.ts
Normal file
28
core/stdlib/src/types/ts/collections.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* A collection definition
|
||||
*/
|
||||
export type Collection = Record<PropertyKey, any> | any[];
|
||||
|
||||
/**
|
||||
* Parse a collection path string into an array of keys
|
||||
*/
|
||||
export type Path<T> =
|
||||
T extends `${infer Key}.${infer Rest}`
|
||||
? [Key, ...Path<Rest>]
|
||||
: T extends `${infer Key}`
|
||||
? [Key]
|
||||
: [];
|
||||
|
||||
/**
|
||||
* Convert a collection path array into a Target type
|
||||
*/
|
||||
export type PathToType<T extends string[], Target = unknown> =
|
||||
T extends [infer Head, ...infer Rest]
|
||||
? Head extends `${number}`
|
||||
? Rest extends string[]
|
||||
? PathToType<Rest, Target>[]
|
||||
: never
|
||||
: Rest extends string[]
|
||||
? { [K in Head & string]: PathToType<Rest, Target> }
|
||||
: never
|
||||
: Target;
|
||||
@@ -1,4 +1,6 @@
|
||||
export * from './array';
|
||||
export * from './collections';
|
||||
export * from './function';
|
||||
export * from './promise';
|
||||
export * from './string';
|
||||
export * from './union';
|
||||
|
||||
@@ -1,7 +1,18 @@
|
||||
import { describe, expectTypeOf, it } from 'vitest';
|
||||
import type { HasSpaces, Trim } from './string';
|
||||
import type { HasSpaces, Trim, Stringable } from './string';
|
||||
|
||||
describe('string', () => {
|
||||
describe('Stringable', () => {
|
||||
it('should be a string', () => {
|
||||
expectTypeOf(Number(1)).toExtend<Stringable>();
|
||||
expectTypeOf(String(1)).toExtend<Stringable>();
|
||||
expectTypeOf(Symbol()).toExtend<Stringable>();
|
||||
expectTypeOf(new Array(1)).toExtend<Stringable>();
|
||||
expectTypeOf(new Object()).toExtend<Stringable>();
|
||||
expectTypeOf(new Date()).toExtend<Stringable>();
|
||||
});
|
||||
});
|
||||
|
||||
describe('Trim', () => {
|
||||
it('remove leading and trailing spaces from a string', () => {
|
||||
type actual = Trim<' hello '>;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/**
|
||||
* Stringable type
|
||||
*/
|
||||
export interface Stringable {
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trim leading and trailing whitespace from `S`
|
||||
*/
|
||||
|
||||
31
core/stdlib/src/types/ts/union.test-d.ts
Normal file
31
core/stdlib/src/types/ts/union.test-d.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import { describe, expectTypeOf, it } from 'vitest';
|
||||
import type { UnionToIntersection } from './union';
|
||||
|
||||
describe('union', () => {
|
||||
describe('UnionToIntersection', () => {
|
||||
it('convert a union type to an intersection type', () => {
|
||||
type actual = UnionToIntersection<{ a: string } | { b: number }>;
|
||||
type expected = { a: string } & { b: number };
|
||||
|
||||
expectTypeOf<actual>().toEqualTypeOf<expected>();
|
||||
});
|
||||
|
||||
it('convert a union type to an intersection type with more than two types', () => {
|
||||
type actual = UnionToIntersection<{ a: string } | { b: number } | { c: boolean }>;
|
||||
type expected = { a: string } & { b: number } & { c: boolean };
|
||||
|
||||
expectTypeOf<actual>().toEqualTypeOf<expected>();
|
||||
});
|
||||
|
||||
it('no change when the input is already an intersection type', () => {
|
||||
type actual = UnionToIntersection<{ a: string } & { b: number }>;
|
||||
type expected = { a: string } & { b: number };
|
||||
|
||||
expectTypeOf<actual>().toEqualTypeOf<expected>();
|
||||
});
|
||||
|
||||
it('never when union not possible', () => {
|
||||
expectTypeOf<UnionToIntersection<string | number>>().toEqualTypeOf<never>();
|
||||
});
|
||||
});
|
||||
});
|
||||
10
core/stdlib/src/types/ts/union.ts
Normal file
10
core/stdlib/src/types/ts/union.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Convert a union type to an intersection type
|
||||
*/
|
||||
export type UnionToIntersection<Union> = (
|
||||
Union extends unknown
|
||||
? (distributedUnion: Union) => void
|
||||
: never
|
||||
) extends ((mergedIntersection: infer Intersection) => void)
|
||||
? Intersection & Union
|
||||
: never;
|
||||
@@ -32,7 +32,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "pnpm -r build",
|
||||
"test": "vitest",
|
||||
"test": "vitest run",
|
||||
"test:ui": "vitest --ui",
|
||||
"create": "jiti ./bin/cli.ts"
|
||||
}
|
||||
}
|
||||
|
||||
202
pnpm-lock.yaml
generated
202
pnpm-lock.yaml
generated
@@ -7,11 +7,11 @@ settings:
|
||||
catalogs:
|
||||
default:
|
||||
'@vitest/coverage-v8':
|
||||
specifier: ^3.1.3
|
||||
version: 3.1.3
|
||||
specifier: ^3.2.0-beta.2
|
||||
version: 3.2.0-beta.2
|
||||
'@vitest/ui':
|
||||
specifier: ^3.1.3
|
||||
version: 3.1.3
|
||||
specifier: ^3.2.0-beta.2
|
||||
version: 3.2.0-beta.2
|
||||
'@vue/test-utils':
|
||||
specifier: ^2.4.6
|
||||
version: 2.4.6
|
||||
@@ -25,8 +25,8 @@ catalogs:
|
||||
specifier: 3.5.0
|
||||
version: 3.5.0
|
||||
vitest:
|
||||
specifier: ^3.1.3
|
||||
version: 3.1.3
|
||||
specifier: ^3.2.0-beta.2
|
||||
version: 3.2.0-beta.2
|
||||
vue:
|
||||
specifier: ^3.5.14
|
||||
version: 3.5.14
|
||||
@@ -40,10 +40,10 @@ importers:
|
||||
version: 22.15.18
|
||||
'@vitest/coverage-v8':
|
||||
specifier: 'catalog:'
|
||||
version: 3.1.3(vitest@3.1.3)
|
||||
version: 3.2.0-beta.2(vitest@3.2.0-beta.2)
|
||||
'@vitest/ui':
|
||||
specifier: 'catalog:'
|
||||
version: 3.1.3(vitest@3.1.3)
|
||||
version: 3.2.0-beta.2(vitest@3.2.0-beta.2)
|
||||
citty:
|
||||
specifier: ^0.1.6
|
||||
version: 0.1.6
|
||||
@@ -58,7 +58,7 @@ importers:
|
||||
version: 1.3.0
|
||||
vitest:
|
||||
specifier: 'catalog:'
|
||||
version: 3.1.3(@types/node@22.15.18)(@vitest/ui@3.1.3)(jiti@2.4.2)(jsdom@26.1.0)(yaml@2.7.1)
|
||||
version: 3.2.0-beta.2(@types/node@22.15.18)(@vitest/ui@3.2.0-beta.2)(jiti@2.4.2)(jsdom@26.1.0)(yaml@2.7.1)
|
||||
|
||||
configs/tsconfig: {}
|
||||
|
||||
@@ -69,7 +69,7 @@ importers:
|
||||
version: link:../../configs/tsconfig
|
||||
unbuild:
|
||||
specifier: 'catalog:'
|
||||
version: 3.5.0(typescript@5.4.4)(vue@3.5.14(typescript@5.4.4))
|
||||
version: 3.5.0(typescript@5.8.3)(vue@3.5.14(typescript@5.8.3))
|
||||
|
||||
core/stdlib:
|
||||
devDependencies:
|
||||
@@ -81,7 +81,7 @@ importers:
|
||||
version: 2.0.3
|
||||
unbuild:
|
||||
specifier: 'catalog:'
|
||||
version: 3.5.0(typescript@5.4.4)(vue@3.5.14(typescript@5.4.4))
|
||||
version: 3.5.0(typescript@5.8.3)(vue@3.5.14(typescript@5.8.3))
|
||||
|
||||
infra/renovate:
|
||||
devDependencies:
|
||||
@@ -93,7 +93,7 @@ importers:
|
||||
dependencies:
|
||||
vue:
|
||||
specifier: 'catalog:'
|
||||
version: 3.5.14(typescript@5.4.4)
|
||||
version: 3.5.14(typescript@5.8.3)
|
||||
devDependencies:
|
||||
'@robonen/platform':
|
||||
specifier: workspace:*
|
||||
@@ -109,7 +109,7 @@ importers:
|
||||
version: 2.4.6
|
||||
unbuild:
|
||||
specifier: 'catalog:'
|
||||
version: 3.5.0(typescript@5.4.4)(vue@3.5.14(typescript@5.4.4))
|
||||
version: 3.5.0(typescript@5.8.3)(vue@3.5.14(typescript@5.8.3))
|
||||
|
||||
packages:
|
||||
|
||||
@@ -1433,6 +1433,12 @@ packages:
|
||||
'@types/cacheable-request@6.0.3':
|
||||
resolution: {integrity: sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==}
|
||||
|
||||
'@types/chai@5.2.2':
|
||||
resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==}
|
||||
|
||||
'@types/deep-eql@4.0.2':
|
||||
resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}
|
||||
|
||||
'@types/emscripten@1.39.10':
|
||||
resolution: {integrity: sha512-TB/6hBkYQJxsZHSqyeuO1Jt0AB/bW6G7rHt9g7lML7SOF6lbgcHvw/Lr+69iqN0qxgXLhWKScAon73JNnptuDw==}
|
||||
|
||||
@@ -1487,20 +1493,20 @@ packages:
|
||||
'@types/yauzl@2.10.3':
|
||||
resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==}
|
||||
|
||||
'@vitest/coverage-v8@3.1.3':
|
||||
resolution: {integrity: sha512-cj76U5gXCl3g88KSnf80kof6+6w+K4BjOflCl7t6yRJPDuCrHtVu0SgNYOUARJOL5TI8RScDbm5x4s1/P9bvpw==}
|
||||
'@vitest/coverage-v8@3.2.0-beta.2':
|
||||
resolution: {integrity: sha512-qheMb66p36sfyT6nVlZw4WFukijH/wtZxLIYou74HQoJlfFtsy1gubgUSqZ+glQNrPs2V5A/xtH2nXY336zUuQ==}
|
||||
peerDependencies:
|
||||
'@vitest/browser': 3.1.3
|
||||
vitest: 3.1.3
|
||||
'@vitest/browser': 3.2.0-beta.2
|
||||
vitest: 3.2.0-beta.2
|
||||
peerDependenciesMeta:
|
||||
'@vitest/browser':
|
||||
optional: true
|
||||
|
||||
'@vitest/expect@3.1.3':
|
||||
resolution: {integrity: sha512-7FTQQuuLKmN1Ig/h+h/GO+44Q1IlglPlR2es4ab7Yvfx+Uk5xsv+Ykk+MEt/M2Yn/xGmzaLKxGw2lgy2bwuYqg==}
|
||||
'@vitest/expect@3.2.0-beta.2':
|
||||
resolution: {integrity: sha512-f79XIidYvXs0xGsmd9R9I+ljcLGa6doiJXsRQ2UC34ENLOstCM1YRI9M49Dhu88l/qouDCYCt1/0BCbhtB876g==}
|
||||
|
||||
'@vitest/mocker@3.1.3':
|
||||
resolution: {integrity: sha512-PJbLjonJK82uCWHjzgBJZuR7zmAOrSvKk1QBxrennDIgtH4uK0TB1PvYmc0XBCigxxtiAVPfWtAdy4lpz8SQGQ==}
|
||||
'@vitest/mocker@3.2.0-beta.2':
|
||||
resolution: {integrity: sha512-OF7nl0tmsB7nvMx7qlp32+uCgh7uXRRBKCZ0+2AAFnG/EXHrRGYVTQS4mCBZ/E/NC19TvKqm76Bt++2rd987Fg==}
|
||||
peerDependencies:
|
||||
msw: ^2.4.9
|
||||
vite: ^5.0.0 || ^6.0.0
|
||||
@@ -1510,25 +1516,25 @@ packages:
|
||||
vite:
|
||||
optional: true
|
||||
|
||||
'@vitest/pretty-format@3.1.3':
|
||||
resolution: {integrity: sha512-i6FDiBeJUGLDKADw2Gb01UtUNb12yyXAqC/mmRWuYl+m/U9GS7s8us5ONmGkGpUUo7/iAYzI2ePVfOZTYvUifA==}
|
||||
'@vitest/pretty-format@3.2.0-beta.2':
|
||||
resolution: {integrity: sha512-v/UTkqlCaLv8pq7Pcv3Fi6tPDs60Ft8aA/5gO3PbsyrlwUK45TiahYVlO7IWVOkMMm/4Y74LnCCbzEiy+b8ZKA==}
|
||||
|
||||
'@vitest/runner@3.1.3':
|
||||
resolution: {integrity: sha512-Tae+ogtlNfFei5DggOsSUvkIaSuVywujMj6HzR97AHK6XK8i3BuVyIifWAm/sE3a15lF5RH9yQIrbXYuo0IFyA==}
|
||||
'@vitest/runner@3.2.0-beta.2':
|
||||
resolution: {integrity: sha512-oAg359jc3N+ldM26SarVCLuxoR1Hafg+ZUkEE14Dz/w3YmROmIvpMvF8ZhQfEbAkshlT3onG8b80scjiXNPuiQ==}
|
||||
|
||||
'@vitest/snapshot@3.1.3':
|
||||
resolution: {integrity: sha512-XVa5OPNTYUsyqG9skuUkFzAeFnEzDp8hQu7kZ0N25B1+6KjGm4hWLtURyBbsIAOekfWQ7Wuz/N/XXzgYO3deWQ==}
|
||||
'@vitest/snapshot@3.2.0-beta.2':
|
||||
resolution: {integrity: sha512-UT//cec0kpLqzm2D0BhnI4FjMryHIlmewpX8fH7bQrmcSmco8/H7NwSxOI1rfjWeerLoIpUKlKbcEEvW0GqK2w==}
|
||||
|
||||
'@vitest/spy@3.1.3':
|
||||
resolution: {integrity: sha512-x6w+ctOEmEXdWaa6TO4ilb7l9DxPR5bwEb6hILKuxfU1NqWT2mpJD9NJN7t3OTfxmVlOMrvtoFJGdgyzZ605lQ==}
|
||||
'@vitest/spy@3.2.0-beta.2':
|
||||
resolution: {integrity: sha512-yMDJPMyiqs8bt/qSZ3qytK81twkBnT0qsSLWNAqhrzUpMwHZ9hNMJsXNDyjhDhTZ9fg/nczpoqYRfYYatfIImg==}
|
||||
|
||||
'@vitest/ui@3.1.3':
|
||||
resolution: {integrity: sha512-IipSzX+8DptUdXN/GWq3hq5z18MwnpphYdOMm0WndkRGYELzfq7NDP8dMpZT7JGW1uXFrIGxOW2D0Xi++ulByg==}
|
||||
'@vitest/ui@3.2.0-beta.2':
|
||||
resolution: {integrity: sha512-39iGcv9gBTPBa+T8gAt5uPYxWKJWo4errHpR7byZrYbYc+iqJZskeZYNDaUws6PfXgmiIbZknVj6TuY+C8McfQ==}
|
||||
peerDependencies:
|
||||
vitest: 3.1.3
|
||||
vitest: 3.2.0-beta.2
|
||||
|
||||
'@vitest/utils@3.1.3':
|
||||
resolution: {integrity: sha512-2Ltrpht4OmHO9+c/nmHtF09HWiyWdworqnHIwjfvDyWjuwKbdkcS9AnhsDn+8E2RM4x++foD1/tNuLPVvWG1Rg==}
|
||||
'@vitest/utils@3.2.0-beta.2':
|
||||
resolution: {integrity: sha512-4PlibaAmolorG1fmBCjmG4ul8+Rrzj2BbAZksannKZn0j/0gKvzjx6MFOdqZA31GqtoHxgKD6b4jO7V+agZS9w==}
|
||||
|
||||
'@vue/compiler-core@3.5.14':
|
||||
resolution: {integrity: sha512-k7qMHMbKvoCXIxPhquKQVw3Twid3Kg4s7+oYURxLGRd56LiuHJVrvFKI4fm2AM3c8apqODPfVJGoh8nePbXMRA==}
|
||||
@@ -1649,6 +1655,9 @@ packages:
|
||||
resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
|
||||
engines: {node: '>=12'}
|
||||
|
||||
ast-v8-to-istanbul@0.3.1:
|
||||
resolution: {integrity: sha512-JTXdVVvDN2GYU99F33hyGP1etlltAqV3bk6LRepl5twqAxGAL02VDAEKuckemYBxlND+Gic3Gf9sT3f8UxTPRw==}
|
||||
|
||||
async-mutex@0.5.0:
|
||||
resolution: {integrity: sha512-1A94B18jkJ3DYq284ohPxoXbfTA5HsQ7/Mf4DEhcyLx3Bz27Rh59iScbB6EPiP+B+joue6YCxcMXSbFC1tZKwA==}
|
||||
|
||||
@@ -2659,6 +2668,9 @@ packages:
|
||||
js-tokens@4.0.0:
|
||||
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
||||
|
||||
js-tokens@9.0.1:
|
||||
resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==}
|
||||
|
||||
js-yaml@3.14.1:
|
||||
resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==}
|
||||
hasBin: true
|
||||
@@ -3983,8 +3995,8 @@ packages:
|
||||
typedarray-to-buffer@3.1.5:
|
||||
resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==}
|
||||
|
||||
typescript@5.4.4:
|
||||
resolution: {integrity: sha512-dGE2Vv8cpVvw28v8HCPqyb08EzbBURxDpuhJvTrusShUfGnhHBafDsLdS1EhhxyL6BJQE+2cT3dDPAv+MQ6oLw==}
|
||||
typescript@5.8.3:
|
||||
resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==}
|
||||
engines: {node: '>=14.17'}
|
||||
hasBin: true
|
||||
|
||||
@@ -4093,8 +4105,8 @@ packages:
|
||||
vfile@4.2.1:
|
||||
resolution: {integrity: sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==}
|
||||
|
||||
vite-node@3.1.3:
|
||||
resolution: {integrity: sha512-uHV4plJ2IxCl4u1up1FQRrqclylKAogbtBfOTwcuJ28xFi+89PZ57BRh+naIRvH70HPwxy5QHYzg1OrEaC7AbA==}
|
||||
vite-node@3.2.0-beta.2:
|
||||
resolution: {integrity: sha512-RxuK906tG7TdovuXYj+cc0NVxGrvr5GAEpFCRyvDAuTyN8VDb+WYPi83/brSMML7PKp6GLz0oNIPEwfubWk3Hw==}
|
||||
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
||||
hasBin: true
|
||||
|
||||
@@ -4138,16 +4150,16 @@ packages:
|
||||
yaml:
|
||||
optional: true
|
||||
|
||||
vitest@3.1.3:
|
||||
resolution: {integrity: sha512-188iM4hAHQ0km23TN/adso1q5hhwKqUpv+Sd6p5sOuh6FhQnRNW3IsiIpvxqahtBabsJ2SLZgmGSpcYK4wQYJw==}
|
||||
vitest@3.2.0-beta.2:
|
||||
resolution: {integrity: sha512-gO6tV/ydvNaRwZv7tcaP7Vwx03kpD5vp2WwGyLgp0bBEcKK1G7kEX7Y0GLz/7wcgRzvtJO3sUb+TqViKXaYa5A==}
|
||||
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
'@edge-runtime/vm': '*'
|
||||
'@types/debug': ^4.1.12
|
||||
'@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0
|
||||
'@vitest/browser': 3.1.3
|
||||
'@vitest/ui': 3.1.3
|
||||
'@vitest/browser': 3.2.0-beta.2
|
||||
'@vitest/ui': 3.2.0-beta.2
|
||||
happy-dom: '*'
|
||||
jsdom: '*'
|
||||
peerDependenciesMeta:
|
||||
@@ -6202,6 +6214,12 @@ snapshots:
|
||||
'@types/node': 22.15.18
|
||||
'@types/responselike': 1.0.3
|
||||
|
||||
'@types/chai@5.2.2':
|
||||
dependencies:
|
||||
'@types/deep-eql': 4.0.2
|
||||
|
||||
'@types/deep-eql@4.0.2': {}
|
||||
|
||||
'@types/emscripten@1.39.10': {}
|
||||
|
||||
'@types/estree@1.0.6': {}
|
||||
@@ -6249,10 +6267,11 @@ snapshots:
|
||||
'@types/node': 22.15.18
|
||||
optional: true
|
||||
|
||||
'@vitest/coverage-v8@3.1.3(vitest@3.1.3)':
|
||||
'@vitest/coverage-v8@3.2.0-beta.2(vitest@3.2.0-beta.2)':
|
||||
dependencies:
|
||||
'@ampproject/remapping': 2.3.0
|
||||
'@bcoe/v8-coverage': 1.0.2
|
||||
ast-v8-to-istanbul: 0.3.1
|
||||
debug: 4.4.0
|
||||
istanbul-lib-coverage: 3.2.2
|
||||
istanbul-lib-report: 3.0.1
|
||||
@@ -6263,58 +6282,59 @@ snapshots:
|
||||
std-env: 3.9.0
|
||||
test-exclude: 7.0.1
|
||||
tinyrainbow: 2.0.0
|
||||
vitest: 3.1.3(@types/node@22.15.18)(@vitest/ui@3.1.3)(jiti@2.4.2)(jsdom@26.1.0)(yaml@2.7.1)
|
||||
vitest: 3.2.0-beta.2(@types/node@22.15.18)(@vitest/ui@3.2.0-beta.2)(jiti@2.4.2)(jsdom@26.1.0)(yaml@2.7.1)
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@vitest/expect@3.1.3':
|
||||
'@vitest/expect@3.2.0-beta.2':
|
||||
dependencies:
|
||||
'@vitest/spy': 3.1.3
|
||||
'@vitest/utils': 3.1.3
|
||||
'@types/chai': 5.2.2
|
||||
'@vitest/spy': 3.2.0-beta.2
|
||||
'@vitest/utils': 3.2.0-beta.2
|
||||
chai: 5.2.0
|
||||
tinyrainbow: 2.0.0
|
||||
|
||||
'@vitest/mocker@3.1.3(vite@6.0.11(@types/node@22.15.18)(jiti@2.4.2)(yaml@2.7.1))':
|
||||
'@vitest/mocker@3.2.0-beta.2(vite@6.0.11(@types/node@22.15.18)(jiti@2.4.2)(yaml@2.7.1))':
|
||||
dependencies:
|
||||
'@vitest/spy': 3.1.3
|
||||
'@vitest/spy': 3.2.0-beta.2
|
||||
estree-walker: 3.0.3
|
||||
magic-string: 0.30.17
|
||||
optionalDependencies:
|
||||
vite: 6.0.11(@types/node@22.15.18)(jiti@2.4.2)(yaml@2.7.1)
|
||||
|
||||
'@vitest/pretty-format@3.1.3':
|
||||
'@vitest/pretty-format@3.2.0-beta.2':
|
||||
dependencies:
|
||||
tinyrainbow: 2.0.0
|
||||
|
||||
'@vitest/runner@3.1.3':
|
||||
'@vitest/runner@3.2.0-beta.2':
|
||||
dependencies:
|
||||
'@vitest/utils': 3.1.3
|
||||
'@vitest/utils': 3.2.0-beta.2
|
||||
pathe: 2.0.3
|
||||
|
||||
'@vitest/snapshot@3.1.3':
|
||||
'@vitest/snapshot@3.2.0-beta.2':
|
||||
dependencies:
|
||||
'@vitest/pretty-format': 3.1.3
|
||||
'@vitest/pretty-format': 3.2.0-beta.2
|
||||
magic-string: 0.30.17
|
||||
pathe: 2.0.3
|
||||
|
||||
'@vitest/spy@3.1.3':
|
||||
'@vitest/spy@3.2.0-beta.2':
|
||||
dependencies:
|
||||
tinyspy: 3.0.2
|
||||
|
||||
'@vitest/ui@3.1.3(vitest@3.1.3)':
|
||||
'@vitest/ui@3.2.0-beta.2(vitest@3.2.0-beta.2)':
|
||||
dependencies:
|
||||
'@vitest/utils': 3.1.3
|
||||
'@vitest/utils': 3.2.0-beta.2
|
||||
fflate: 0.8.2
|
||||
flatted: 3.3.3
|
||||
pathe: 2.0.3
|
||||
sirv: 3.0.1
|
||||
tinyglobby: 0.2.13
|
||||
tinyrainbow: 2.0.0
|
||||
vitest: 3.1.3(@types/node@22.15.18)(@vitest/ui@3.1.3)(jiti@2.4.2)(jsdom@26.1.0)(yaml@2.7.1)
|
||||
vitest: 3.2.0-beta.2(@types/node@22.15.18)(@vitest/ui@3.2.0-beta.2)(jiti@2.4.2)(jsdom@26.1.0)(yaml@2.7.1)
|
||||
|
||||
'@vitest/utils@3.1.3':
|
||||
'@vitest/utils@3.2.0-beta.2':
|
||||
dependencies:
|
||||
'@vitest/pretty-format': 3.1.3
|
||||
'@vitest/pretty-format': 3.2.0-beta.2
|
||||
loupe: 3.1.3
|
||||
tinyrainbow: 2.0.0
|
||||
|
||||
@@ -6364,11 +6384,11 @@ snapshots:
|
||||
'@vue/shared': 3.5.14
|
||||
csstype: 3.1.3
|
||||
|
||||
'@vue/server-renderer@3.5.14(vue@3.5.14(typescript@5.4.4))':
|
||||
'@vue/server-renderer@3.5.14(vue@3.5.14(typescript@5.8.3))':
|
||||
dependencies:
|
||||
'@vue/compiler-ssr': 3.5.14
|
||||
'@vue/shared': 3.5.14
|
||||
vue: 3.5.14(typescript@5.4.4)
|
||||
vue: 3.5.14(typescript@5.8.3)
|
||||
|
||||
'@vue/shared@3.5.14': {}
|
||||
|
||||
@@ -6480,6 +6500,12 @@ snapshots:
|
||||
|
||||
assertion-error@2.0.1: {}
|
||||
|
||||
ast-v8-to-istanbul@0.3.1:
|
||||
dependencies:
|
||||
'@jridgewell/trace-mapping': 0.3.25
|
||||
estree-walker: 3.0.3
|
||||
js-tokens: 9.0.1
|
||||
|
||||
async-mutex@0.5.0:
|
||||
dependencies:
|
||||
tslib: 2.8.1
|
||||
@@ -7577,6 +7603,8 @@ snapshots:
|
||||
|
||||
js-tokens@4.0.0: {}
|
||||
|
||||
js-tokens@9.0.1: {}
|
||||
|
||||
js-yaml@3.14.1:
|
||||
dependencies:
|
||||
argparse: 1.0.10
|
||||
@@ -7939,7 +7967,7 @@ snapshots:
|
||||
|
||||
mkdirp@3.0.1: {}
|
||||
|
||||
mkdist@2.2.0(typescript@5.4.4)(vue@3.5.14(typescript@5.4.4)):
|
||||
mkdist@2.2.0(typescript@5.8.3)(vue@3.5.14(typescript@5.8.3)):
|
||||
dependencies:
|
||||
autoprefixer: 10.4.20(postcss@8.5.3)
|
||||
citty: 0.1.6
|
||||
@@ -7955,8 +7983,8 @@ snapshots:
|
||||
semver: 7.7.1
|
||||
tinyglobby: 0.2.13
|
||||
optionalDependencies:
|
||||
typescript: 5.4.4
|
||||
vue: 3.5.14(typescript@5.4.4)
|
||||
typescript: 5.8.3
|
||||
vue: 3.5.14(typescript@5.8.3)
|
||||
|
||||
mlly@1.7.4:
|
||||
dependencies:
|
||||
@@ -8732,11 +8760,11 @@ snapshots:
|
||||
semver-compare: 1.0.0
|
||||
sprintf-js: 1.1.3
|
||||
|
||||
rollup-plugin-dts@6.1.1(rollup@4.34.9)(typescript@5.4.4):
|
||||
rollup-plugin-dts@6.1.1(rollup@4.34.9)(typescript@5.8.3):
|
||||
dependencies:
|
||||
magic-string: 0.30.17
|
||||
rollup: 4.34.9
|
||||
typescript: 5.4.4
|
||||
typescript: 5.8.3
|
||||
optionalDependencies:
|
||||
'@babel/code-frame': 7.26.2
|
||||
|
||||
@@ -9139,7 +9167,7 @@ snapshots:
|
||||
dependencies:
|
||||
is-typedarray: 1.0.0
|
||||
|
||||
typescript@5.4.4: {}
|
||||
typescript@5.8.3: {}
|
||||
|
||||
uc.micro@2.1.0: {}
|
||||
|
||||
@@ -9149,7 +9177,7 @@ snapshots:
|
||||
|
||||
uint64be@1.0.1: {}
|
||||
|
||||
unbuild@3.5.0(typescript@5.4.4)(vue@3.5.14(typescript@5.4.4)):
|
||||
unbuild@3.5.0(typescript@5.8.3)(vue@3.5.14(typescript@5.8.3)):
|
||||
dependencies:
|
||||
'@rollup/plugin-alias': 5.1.1(rollup@4.34.9)
|
||||
'@rollup/plugin-commonjs': 28.0.2(rollup@4.34.9)
|
||||
@@ -9165,18 +9193,18 @@ snapshots:
|
||||
hookable: 5.5.3
|
||||
jiti: 2.4.2
|
||||
magic-string: 0.30.17
|
||||
mkdist: 2.2.0(typescript@5.4.4)(vue@3.5.14(typescript@5.4.4))
|
||||
mkdist: 2.2.0(typescript@5.8.3)(vue@3.5.14(typescript@5.8.3))
|
||||
mlly: 1.7.4
|
||||
pathe: 2.0.3
|
||||
pkg-types: 2.1.0
|
||||
pretty-bytes: 6.1.1
|
||||
rollup: 4.34.9
|
||||
rollup-plugin-dts: 6.1.1(rollup@4.34.9)(typescript@5.4.4)
|
||||
rollup-plugin-dts: 6.1.1(rollup@4.34.9)(typescript@5.8.3)
|
||||
scule: 1.3.0
|
||||
tinyglobby: 0.2.13
|
||||
untyped: 2.0.0
|
||||
optionalDependencies:
|
||||
typescript: 5.4.4
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- sass
|
||||
- vue
|
||||
@@ -9278,7 +9306,7 @@ snapshots:
|
||||
unist-util-stringify-position: 2.0.3
|
||||
vfile-message: 2.0.4
|
||||
|
||||
vite-node@3.1.3(@types/node@22.15.18)(jiti@2.4.2)(yaml@2.7.1):
|
||||
vite-node@3.2.0-beta.2(@types/node@22.15.18)(jiti@2.4.2)(yaml@2.7.1):
|
||||
dependencies:
|
||||
cac: 6.7.14
|
||||
debug: 4.4.0
|
||||
@@ -9310,20 +9338,22 @@ snapshots:
|
||||
jiti: 2.4.2
|
||||
yaml: 2.7.1
|
||||
|
||||
vitest@3.1.3(@types/node@22.15.18)(@vitest/ui@3.1.3)(jiti@2.4.2)(jsdom@26.1.0)(yaml@2.7.1):
|
||||
vitest@3.2.0-beta.2(@types/node@22.15.18)(@vitest/ui@3.2.0-beta.2)(jiti@2.4.2)(jsdom@26.1.0)(yaml@2.7.1):
|
||||
dependencies:
|
||||
'@vitest/expect': 3.1.3
|
||||
'@vitest/mocker': 3.1.3(vite@6.0.11(@types/node@22.15.18)(jiti@2.4.2)(yaml@2.7.1))
|
||||
'@vitest/pretty-format': 3.1.3
|
||||
'@vitest/runner': 3.1.3
|
||||
'@vitest/snapshot': 3.1.3
|
||||
'@vitest/spy': 3.1.3
|
||||
'@vitest/utils': 3.1.3
|
||||
'@types/chai': 5.2.2
|
||||
'@vitest/expect': 3.2.0-beta.2
|
||||
'@vitest/mocker': 3.2.0-beta.2(vite@6.0.11(@types/node@22.15.18)(jiti@2.4.2)(yaml@2.7.1))
|
||||
'@vitest/pretty-format': 3.2.0-beta.2
|
||||
'@vitest/runner': 3.2.0-beta.2
|
||||
'@vitest/snapshot': 3.2.0-beta.2
|
||||
'@vitest/spy': 3.2.0-beta.2
|
||||
'@vitest/utils': 3.2.0-beta.2
|
||||
chai: 5.2.0
|
||||
debug: 4.4.0
|
||||
expect-type: 1.2.1
|
||||
magic-string: 0.30.17
|
||||
pathe: 2.0.3
|
||||
picomatch: 4.0.2
|
||||
std-env: 3.9.0
|
||||
tinybench: 2.9.0
|
||||
tinyexec: 0.3.2
|
||||
@@ -9331,11 +9361,11 @@ snapshots:
|
||||
tinypool: 1.0.2
|
||||
tinyrainbow: 2.0.0
|
||||
vite: 6.0.11(@types/node@22.15.18)(jiti@2.4.2)(yaml@2.7.1)
|
||||
vite-node: 3.1.3(@types/node@22.15.18)(jiti@2.4.2)(yaml@2.7.1)
|
||||
vite-node: 3.2.0-beta.2(@types/node@22.15.18)(jiti@2.4.2)(yaml@2.7.1)
|
||||
why-is-node-running: 2.3.0
|
||||
optionalDependencies:
|
||||
'@types/node': 22.15.18
|
||||
'@vitest/ui': 3.1.3(vitest@3.1.3)
|
||||
'@vitest/ui': 3.2.0-beta.2(vitest@3.2.0-beta.2)
|
||||
jsdom: 26.1.0
|
||||
transitivePeerDependencies:
|
||||
- jiti
|
||||
@@ -9353,15 +9383,15 @@ snapshots:
|
||||
|
||||
vue-component-type-helpers@2.1.6: {}
|
||||
|
||||
vue@3.5.14(typescript@5.4.4):
|
||||
vue@3.5.14(typescript@5.8.3):
|
||||
dependencies:
|
||||
'@vue/compiler-dom': 3.5.14
|
||||
'@vue/compiler-sfc': 3.5.14
|
||||
'@vue/runtime-dom': 3.5.14
|
||||
'@vue/server-renderer': 3.5.14(vue@3.5.14(typescript@5.4.4))
|
||||
'@vue/server-renderer': 3.5.14(vue@3.5.14(typescript@5.8.3))
|
||||
'@vue/shared': 3.5.14
|
||||
optionalDependencies:
|
||||
typescript: 5.4.4
|
||||
typescript: 5.8.3
|
||||
|
||||
vuln-vects@1.1.0: {}
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@ packages:
|
||||
- web/*
|
||||
|
||||
catalog:
|
||||
'@vitest/coverage-v8': ^3.1.3
|
||||
'@vitest/coverage-v8': ^3.2.0-beta.2
|
||||
'@vue/test-utils': ^2.4.6
|
||||
jsdom: ^26.1.0
|
||||
pathe: ^2.0.3
|
||||
unbuild: 3.5.0
|
||||
vitest: ^3.1.3
|
||||
'@vitest/ui': ^3.1.3
|
||||
vitest: ^3.2.0-beta.2
|
||||
'@vitest/ui': ^3.2.0-beta.2
|
||||
vue: ^3.5.14
|
||||
|
||||
@@ -2,14 +2,17 @@ import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
workspace: [
|
||||
projects: [
|
||||
{
|
||||
extends: true,
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
typecheck: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
environment: 'jsdom',
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
include: ['core/*', 'web/*'],
|
||||
|
||||
Reference in New Issue
Block a user