From 6d9c4423a9705db36e13eff8d363525fb4bd7e92 Mon Sep 17 00:00:00 2001 From: Freddie Ridell Date: Sat, 7 Mar 2026 23:58:17 +0000 Subject: [PATCH] v0.0.2 --- Cargo.lock | 8 +- Cargo.toml | 2 +- crates/bough-cli/Cargo.toml | 4 +- crates/bough-core/Cargo.toml | 3 +- crates/bough-typed-hash/Cargo.toml | 2 +- .../workspaces/work/b8eeea02/.gitignore | 1 + .../work/b8eeea02/bough.config.toml | 8 + .../work/b8eeea02/package-lock.json | 1583 +++++++++++++++++ .../workspaces/work/b8eeea02/package.json | 11 + .../b8eeea02/src/validate-user-profile.js | 28 + .../src/validate-user-profile.test.js | 37 + .../work/b8eeea02/src/validators/age.js | 20 + .../work/b8eeea02/src/validators/age.test.js | 32 + .../work/b8eeea02/src/validators/bio.js | 13 + .../work/b8eeea02/src/validators/email.js | 29 + .../b8eeea02/src/validators/email.test.js | 32 + .../work/b8eeea02/src/validators/password.js | 28 + .../b8eeea02/src/validators/password.test.js | 32 + .../work/b8eeea02/src/validators/role.js | 15 + .../work/b8eeea02/src/validators/role.test.js | 26 + .../work/b8eeea02/src/validators/tags.js | 28 + .../work/b8eeea02/src/validators/tags.test.js | 30 + .../work/b8eeea02/src/validators/username.js | 25 + .../b8eeea02/src/validators/username.test.js | 38 + .../work/b8eeea02/src/validators/website.js | 17 + .../b8eeea02/src/validators/website.test.js | 24 + .../workspaces/work/b8eeea02/vitest.log | 33 + 27 files changed, 2099 insertions(+), 10 deletions(-) create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/.gitignore create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/bough.config.toml create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/package-lock.json create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/package.json create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validate-user-profile.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validate-user-profile.test.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/age.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/age.test.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/bio.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/email.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/email.test.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/password.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/password.test.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/role.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/role.test.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/tags.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/tags.test.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/username.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/username.test.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/website.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/website.test.js create mode 100644 examples/vitest-complex/.bough/workspaces/work/b8eeea02/vitest.log diff --git a/Cargo.lock b/Cargo.lock index d3cba86a..1a8099cd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -110,7 +110,7 @@ dependencies = [ [[package]] name = "bough-cli" -version = "0.0.1" +version = "0.0.2" dependencies = [ "bough-core", "bough-typed-hash", @@ -129,7 +129,7 @@ dependencies = [ [[package]] name = "bough-core" -version = "0.0.1" +version = "0.0.2" dependencies = [ "bough-typed-hash", "chrono", @@ -150,7 +150,7 @@ dependencies = [ [[package]] name = "bough-typed-hash" -version = "0.0.1" +version = "0.0.2" dependencies = [ "bough-typed-hash-derive", "facet", @@ -161,7 +161,7 @@ dependencies = [ [[package]] name = "bough-typed-hash-derive" -version = "0.0.1" +version = "0.0.2" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 8a0ddbf0..599af6b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "3" members = ["crates/*"] [workspace.package] -version = "0.0.1" +version = "0.0.2" edition = "2024" license = "MIT" repository = "https://github.com/CodeEnPlace/bough" diff --git a/crates/bough-cli/Cargo.toml b/crates/bough-cli/Cargo.toml index 6e025e54..0153b283 100644 --- a/crates/bough-cli/Cargo.toml +++ b/crates/bough-cli/Cargo.toml @@ -7,8 +7,8 @@ repository.workspace = true description = "CLI for bough mutation testing" [dependencies] -bough-core = { path = "../bough-core", version = "0.0.1" } -bough-typed-hash = { path = "../bough-typed-hash", version = "0.0.1" } +bough-core = { path = "../bough-core", version = "0.0.2" } +bough-typed-hash = { path = "../bough-typed-hash", version = "0.0.2" } facet = "0.44" facet-json = "0.44" miette = { version = "7", features = ["fancy"] } diff --git a/crates/bough-core/Cargo.toml b/crates/bough-core/Cargo.toml index 91eb1711..8092e7f3 100644 --- a/crates/bough-core/Cargo.toml +++ b/crates/bough-core/Cargo.toml @@ -7,7 +7,7 @@ repository.workspace = true description = "Core mutation testing engine for bough" [dependencies] -bough-typed-hash = { path = "../bough-typed-hash", version = "0.0.1" } +bough-typed-hash = { path = "../bough-typed-hash", version = "0.0.2" } facet = { version = "0.44", features = ["uuid", "chrono"] } facet-json = "0.44.1" chrono = "0.4.44" @@ -22,6 +22,5 @@ tree-sitter-typescript = "0.23" wait-timeout = "0.2" tracing = "0.1" - [dev-dependencies] tempfile = "3.26" diff --git a/crates/bough-typed-hash/Cargo.toml b/crates/bough-typed-hash/Cargo.toml index ab9dc60d..86e0252b 100644 --- a/crates/bough-typed-hash/Cargo.toml +++ b/crates/bough-typed-hash/Cargo.toml @@ -10,7 +10,7 @@ description = "Type-safe content-addressable hashing for bough" sha2 = "0.10" tracing = "0.1" facet = "0.44" -bough-typed-hash-derive = { path = "../bough-typed-hash-derive", version = "0.0.1" } +bough-typed-hash-derive = { path = "../bough-typed-hash-derive", version = "0.0.2" } [dev-dependencies] tempfile = "3" diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/.gitignore b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/.gitignore new file mode 100644 index 00000000..23befb3a --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/.gitignore @@ -0,0 +1 @@ +.bough/workspaces diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/bough.config.toml b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/bough.config.toml new file mode 100644 index 00000000..f1184f4d --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/bough.config.toml @@ -0,0 +1,8 @@ +base_root_dir = "." +include = ["**/*"] +exclude = ["node_modules/**/*"] +test.cmd = "npm test" + +[lang.js] +include = ["src/**/*.js"] +exclude = ["**/*.test.*"] diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/package-lock.json b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/package-lock.json new file mode 100644 index 00000000..839b0d91 --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/package-lock.json @@ -0,0 +1,1583 @@ +{ + "name": "bough-example-vitest", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "bough-example-vitest", + "devDependencies": { + "vitest": "^3.0.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz", + "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz", + "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz", + "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz", + "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz", + "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz", + "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz", + "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz", + "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz", + "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz", + "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz", + "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz", + "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz", + "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz", + "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz", + "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz", + "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz", + "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz", + "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz", + "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz", + "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz", + "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz", + "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz", + "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz", + "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz", + "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz", + "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.58.0.tgz", + "integrity": "sha512-mr0tmS/4FoVk1cnaeN244A/wjvGDNItZKR8hRhnmCzygyRXYtKF5jVDSIILR1U97CTzAYmbgIj/Dukg62ggG5w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.58.0.tgz", + "integrity": "sha512-+s++dbp+/RTte62mQD9wLSbiMTV+xr/PeRJEc/sFZFSBRlHPNPVaf5FXlzAL77Mr8FtSfQqCN+I598M8U41ccQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.58.0.tgz", + "integrity": "sha512-MFWBwTcYs0jZbINQBXHfSrpSQJq3IUOakcKPzfeSznONop14Pxuqa0Kg19GD0rNBMPQI2tFtu3UzapZpH0Uc1Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.58.0.tgz", + "integrity": "sha512-yiKJY7pj9c9JwzuKYLFaDZw5gma3fI9bkPEIyofvVfsPqjCWPglSHdpdwXpKGvDeYDms3Qal8qGMEHZ1M/4Udg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.58.0.tgz", + "integrity": "sha512-x97kCoBh5MOevpn/CNK9W1x8BEzO238541BGWBc315uOlN0AD/ifZ1msg+ZQB05Ux+VF6EcYqpiagfLJ8U3LvQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.58.0.tgz", + "integrity": "sha512-Aa8jPoZ6IQAG2eIrcXPpjRcMjROMFxCt1UYPZZtCxRV68WkuSigYtQ/7Zwrcr2IvtNJo7T2JfDXyMLxq5L4Jlg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.58.0.tgz", + "integrity": "sha512-Ob8YgT5kD/lSIYW2Rcngs5kNB/44Q2RzBSPz9brf2WEtcGR7/f/E9HeHn1wYaAwKBni+bdXEwgHvUd0x12lQSA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.58.0.tgz", + "integrity": "sha512-K+RI5oP1ceqoadvNt1FecL17Qtw/n9BgRSzxif3rTL2QlIu88ccvY+Y9nnHe/cmT5zbH9+bpiJuG1mGHRVwF4Q==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.58.0.tgz", + "integrity": "sha512-T+17JAsCKUjmbopcKepJjHWHXSjeW7O5PL7lEFaeQmiVyw4kkc5/lyYKzrv6ElWRX/MrEWfPiJWqbTvfIvjM1Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.58.0.tgz", + "integrity": "sha512-cCePktb9+6R9itIJdeCFF9txPU7pQeEHB5AbHu/MKsfH/k70ZtOeq1k4YAtBv9Z7mmKI5/wOLYjQ+B9QdxR6LA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.58.0.tgz", + "integrity": "sha512-iekUaLkfliAsDl4/xSdoCJ1gnnIXvoNz85C8U8+ZxknM5pBStfZjeXgB8lXobDQvvPRCN8FPmmuTtH+z95HTmg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.58.0.tgz", + "integrity": "sha512-68ofRgJNl/jYJbxFjCKE7IwhbfxOl1muPN4KbIqAIe32lm22KmU7E8OPvyy68HTNkI2iV/c8y2kSPSm2mW/Q9Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.58.0.tgz", + "integrity": "sha512-dpz8vT0i+JqUKuSNPCP5SYyIV2Lh0sNL1+FhM7eLC457d5B9/BC3kDPp5BBftMmTNsBarcPcoz5UGSsnCiw4XQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.58.0.tgz", + "integrity": "sha512-4gdkkf9UJ7tafnweBCR/mk4jf3Jfl0cKX9Np80t5i78kjIH0ZdezUv/JDI2VtruE5lunfACqftJ8dIMGN4oHew==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.58.0.tgz", + "integrity": "sha512-YFS4vPnOkDTD/JriUeeZurFYoJhPf9GQQEF/v4lltp3mVcBmnsAdjEWhr2cjUCZzZNzxCG0HZOvJU44UGHSdzw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.58.0.tgz", + "integrity": "sha512-x2xgZlFne+QVNKV8b4wwaCS8pwq3y14zedZ5DqLzjdRITvreBk//4Knbcvm7+lWmms9V9qFp60MtUd0/t/PXPw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.58.0.tgz", + "integrity": "sha512-jIhrujyn4UnWF8S+DHSkAkDEO3hLX0cjzxJZPLF80xFyzyUIYgSMRcYQ3+uqEoyDD2beGq7Dj7edi8OnJcS/hg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.58.0.tgz", + "integrity": "sha512-+410Srdoh78MKSJxTQ+hZ/Mx+ajd6RjjPwBPNd0R3J9FtL6ZA0GqiiyNjCO9In0IzZkCNrpGymSfn+kgyPQocg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.58.0.tgz", + "integrity": "sha512-ZjMyby5SICi227y1MTR3VYBpFTdZs823Rs/hpakufleBoufoOIB6jtm9FEoxn/cgO7l6PM2rCEl5Kre5vX0QrQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.58.0.tgz", + "integrity": "sha512-ds4iwfYkSQ0k1nb8LTcyXw//ToHOnNTJtceySpL3fa7tc/AsE+UpUFphW126A6fKBGJD5dhRvg8zw1rvoGFxmw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.58.0.tgz", + "integrity": "sha512-fd/zpJniln4ICdPkjWFhZYeY/bpnaN9pGa6ko+5WD38I0tTqk9lXMgXZg09MNdhpARngmxiCg0B0XUamNw/5BQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.58.0.tgz", + "integrity": "sha512-YpG8dUOip7DCz3nr/JUfPbIUo+2d/dy++5bFzgi4ugOGBIox+qMbbqt/JoORwvI/C9Kn2tz6+Bieoqd5+B1CjA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.58.0.tgz", + "integrity": "sha512-b9DI8jpFQVh4hIXFr0/+N/TzLdpBIoPzjt0Rt4xJbW3mzguV3mduR9cNgiuFcuL/TeORejJhCWiAXe3E/6PxWA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.58.0.tgz", + "integrity": "sha512-CSrVpmoRJFN06LL9xhkitkwUcTZtIotYAF5p6XOR2zW0Zz5mzb3IPpcoPhB02frzMHFNo1reQ9xSF5fFm3hUsQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.58.0.tgz", + "integrity": "sha512-QFsBgQNTnh5K0t/sBsjJLq24YVqEIVkGpfN2VHsnN90soZyhaiA9UUHufcctVNL4ypJY0wrwad0wslx2KJQ1/w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/chai": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", + "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/deep-eql": "*", + "assertion-error": "^2.0.1" + } + }, + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@vitest/expect": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.4.tgz", + "integrity": "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/chai": "^5.2.2", + "@vitest/spy": "3.2.4", + "@vitest/utils": "3.2.4", + "chai": "^5.2.0", + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/mocker": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.4.tgz", + "integrity": "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/spy": "3.2.4", + "estree-walker": "^3.0.3", + "magic-string": "^0.30.17" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/@vitest/pretty-format": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz", + "integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.4.tgz", + "integrity": "sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/utils": "3.2.4", + "pathe": "^2.0.3", + "strip-literal": "^3.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/snapshot": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.4.tgz", + "integrity": "sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "3.2.4", + "magic-string": "^0.30.17", + "pathe": "^2.0.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/spy": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz", + "integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyspy": "^4.0.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/utils": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.4.tgz", + "integrity": "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "3.2.4", + "loupe": "^3.1.4", + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/chai": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz", + "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "assertion-error": "^2.0.1", + "check-error": "^2.1.1", + "deep-eql": "^5.0.1", + "loupe": "^3.1.0", + "pathval": "^2.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/check-error": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz", + "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 16" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-eql": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", + "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/es-module-lexer": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", + "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", + "dev": true, + "license": "MIT" + }, + "node_modules/esbuild": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz", + "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.3", + "@esbuild/android-arm": "0.27.3", + "@esbuild/android-arm64": "0.27.3", + "@esbuild/android-x64": "0.27.3", + "@esbuild/darwin-arm64": "0.27.3", + "@esbuild/darwin-x64": "0.27.3", + "@esbuild/freebsd-arm64": "0.27.3", + "@esbuild/freebsd-x64": "0.27.3", + "@esbuild/linux-arm": "0.27.3", + "@esbuild/linux-arm64": "0.27.3", + "@esbuild/linux-ia32": "0.27.3", + "@esbuild/linux-loong64": "0.27.3", + "@esbuild/linux-mips64el": "0.27.3", + "@esbuild/linux-ppc64": "0.27.3", + "@esbuild/linux-riscv64": "0.27.3", + "@esbuild/linux-s390x": "0.27.3", + "@esbuild/linux-x64": "0.27.3", + "@esbuild/netbsd-arm64": "0.27.3", + "@esbuild/netbsd-x64": "0.27.3", + "@esbuild/openbsd-arm64": "0.27.3", + "@esbuild/openbsd-x64": "0.27.3", + "@esbuild/openharmony-arm64": "0.27.3", + "@esbuild/sunos-x64": "0.27.3", + "@esbuild/win32-arm64": "0.27.3", + "@esbuild/win32-ia32": "0.27.3", + "@esbuild/win32-x64": "0.27.3" + } + }, + "node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/expect-type": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz", + "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/js-tokens": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz", + "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/loupe": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz", + "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/pathval": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz", + "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.16" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/rollup": { + "version": "4.58.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.58.0.tgz", + "integrity": "sha512-wbT0mBmWbIvvq8NeEYWWvevvxnOyhKChir47S66WCxw1SXqhw7ssIYejnQEVt7XYQpsj2y8F9PM+Cr3SNEa0gw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.58.0", + "@rollup/rollup-android-arm64": "4.58.0", + "@rollup/rollup-darwin-arm64": "4.58.0", + "@rollup/rollup-darwin-x64": "4.58.0", + "@rollup/rollup-freebsd-arm64": "4.58.0", + "@rollup/rollup-freebsd-x64": "4.58.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.58.0", + "@rollup/rollup-linux-arm-musleabihf": "4.58.0", + "@rollup/rollup-linux-arm64-gnu": "4.58.0", + "@rollup/rollup-linux-arm64-musl": "4.58.0", + "@rollup/rollup-linux-loong64-gnu": "4.58.0", + "@rollup/rollup-linux-loong64-musl": "4.58.0", + "@rollup/rollup-linux-ppc64-gnu": "4.58.0", + "@rollup/rollup-linux-ppc64-musl": "4.58.0", + "@rollup/rollup-linux-riscv64-gnu": "4.58.0", + "@rollup/rollup-linux-riscv64-musl": "4.58.0", + "@rollup/rollup-linux-s390x-gnu": "4.58.0", + "@rollup/rollup-linux-x64-gnu": "4.58.0", + "@rollup/rollup-linux-x64-musl": "4.58.0", + "@rollup/rollup-openbsd-x64": "4.58.0", + "@rollup/rollup-openharmony-arm64": "4.58.0", + "@rollup/rollup-win32-arm64-msvc": "4.58.0", + "@rollup/rollup-win32-ia32-msvc": "4.58.0", + "@rollup/rollup-win32-x64-gnu": "4.58.0", + "@rollup/rollup-win32-x64-msvc": "4.58.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/siginfo": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", + "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", + "dev": true, + "license": "ISC" + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stackback": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", + "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", + "dev": true, + "license": "MIT" + }, + "node_modules/std-env": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz", + "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==", + "dev": true, + "license": "MIT" + }, + "node_modules/strip-literal": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.1.0.tgz", + "integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "js-tokens": "^9.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/tinybench": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", + "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyexec": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", + "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinypool": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz", + "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + } + }, + "node_modules/tinyrainbow": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz", + "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tinyspy": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.4.tgz", + "integrity": "sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/vite": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.1.tgz", + "integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.27.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite-node": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz", + "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cac": "^6.7.14", + "debug": "^4.4.1", + "es-module-lexer": "^1.7.0", + "pathe": "^2.0.3", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" + }, + "bin": { + "vite-node": "vite-node.mjs" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/vitest": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.4.tgz", + "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/chai": "^5.2.2", + "@vitest/expect": "3.2.4", + "@vitest/mocker": "3.2.4", + "@vitest/pretty-format": "^3.2.4", + "@vitest/runner": "3.2.4", + "@vitest/snapshot": "3.2.4", + "@vitest/spy": "3.2.4", + "@vitest/utils": "3.2.4", + "chai": "^5.2.0", + "debug": "^4.4.1", + "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", + "tinyglobby": "^0.2.14", + "tinypool": "^1.1.1", + "tinyrainbow": "^2.0.0", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0", + "vite-node": "3.2.4", + "why-is-node-running": "^2.3.0" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@types/debug": "^4.1.12", + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "@vitest/browser": "3.2.4", + "@vitest/ui": "3.2.4", + "happy-dom": "*", + "jsdom": "*" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@types/debug": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + } + } + }, + "node_modules/why-is-node-running": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", + "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", + "dev": true, + "license": "MIT", + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } + } + } +} diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/package.json b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/package.json new file mode 100644 index 00000000..770e738e --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/package.json @@ -0,0 +1,11 @@ +{ + "name": "bough-example-vitest", + "private": true, + "type": "module", + "scripts": { + "test": "vitest run --maxWorkers=2 > /tmp/$RANDOM.vitest.log" + }, + "devDependencies": { + "vitest": "^3.0.0" + } +} diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validate-user-profile.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validate-user-profile.js new file mode 100644 index 00000000..62039605 --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validate-user-profile.js @@ -0,0 +1,28 @@ +import { validateUsername } from "./validators/username.js"; +import { validateEmail } from "./validators/email.js"; +import { validatePassword } from "./validators/password.js"; +import { validateAge } from "./validators/age.js"; +import { validateRole } from "./validators/role.js"; +import { validateWebsite } from "./validators/website.js"; +import { validateTags } from "./validators/tags.js"; +import { validateBio } from "./validators/bio.js"; + +export function validateUserProfile(data) { + if (data == null || typeof data !== "object" || Array.isArray(data)) { + return { ok: false, errors: [{ field: null, message: "input must be a plain object" }] }; + } + + const errors = []; + + validateUsername(data.username, errors); + validateEmail(data.email, errors); + validatePassword(data.password, errors); + validateAge(data.age, errors); + validateRole(data.role, errors); + validateWebsite(data.website, errors); + validateTags(data.tags, errors); + validateBio(data.bio, errors); + + if (errors.length === 0) return { ok: true }; + return { ok: false, errors }; +} diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validate-user-profile.test.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validate-user-profile.test.js new file mode 100644 index 00000000..de796a1d --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validate-user-profile.test.js @@ -0,0 +1,37 @@ +import { describe, it, expect } from "vitest"; +import { validateUserProfile } from "./validate-user-profile.js"; + +const validProfile = { + username: "alice_smith", + email: "alice@example.com", + password: "Secret1!xx", + age: 30, + role: "editor", +}; + +describe("validateUserProfile", () => { + it("accepts a valid profile with only required fields", () => { + expect(validateUserProfile(validProfile)).toEqual({ ok: true }); + }); + + it("accepts a valid profile with all optional fields", () => { + const result = validateUserProfile({ + ...validProfile, + website: "https://example.com", + tags: ["js", "testing"], + bio: "Hello world", + }); + expect(result).toEqual({ ok: true }); + }); + + it("rejects null input", () => { + const result = validateUserProfile(null); + expect(result.ok).toBe(false); + expect(result.errors[0].message).toMatch(/plain object/); + }); + + it("rejects an array", () => { + const result = validateUserProfile([1, 2]); + expect(result.ok).toBe(false); + }); +}); diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/age.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/age.js new file mode 100644 index 00000000..713a7614 --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/age.js @@ -0,0 +1,20 @@ +export function validateAge(value, errors) { + if (value == null) { + errors.push({ field: "age", message: "age is required" }); + return; + } + if (typeof value !== "number") { + errors.push({ field: "age", message: "age must be a number" }); + return; + } + if (!Number.isInteger(value)) { + errors.push({ field: "age", message: "age must be an integer" }); + return; + } + if (value < 13) { + errors.push({ field: "age", message: "age must be at least 13" }); + } + if (value > 999) { + errors.push({ field: "age", message: "age must be at most 120" }); + } +} diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/age.test.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/age.test.js new file mode 100644 index 00000000..62f7ddf4 --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/age.test.js @@ -0,0 +1,32 @@ +import { describe, it, expect } from "vitest"; +import { validateAge } from "./age.js"; + +function run(value) { + const errors = []; + validateAge(value, errors); + return errors; +} + +describe("validateAge", () => { + it("accepts a valid age", () => { + expect(run(30)).toEqual([]); + }); + + it("rejects missing age", () => { + expect(run(undefined)).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("required") }), + ); + }); + + it("rejects non-number age", () => { + expect(run("thirty")).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("must be a number") }), + ); + }); + + it("rejects age under 13", () => { + expect(run(10)).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("at least 13") }), + ); + }); +}); diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/bio.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/bio.js new file mode 100644 index 00000000..6f07913f --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/bio.js @@ -0,0 +1,13 @@ +export function validateBio(value, errors) { + if (value == null) return; + if (typeof value !== "string") { + errors.push({ field: "bio", message: "bio must be a string" }); + return; + } + if (value.length > 500) { + errors.push({ field: "bio", message: "bio must be at most 500 characters" }); + } + if (false) { + errors.push({ field: "bio", message: "bio must not contain control characters" }); + } +} diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/email.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/email.js new file mode 100644 index 00000000..d517a2ca --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/email.js @@ -0,0 +1,29 @@ +export function validateEmail(value, errors) { + if (value == null) { + errors.push({ field: "email", message: "email is required" }); + return; + } + if (typeof value !== "string") { + errors.push({ field: "email", message: "email must be a string" }); + return; + } + if (value.includes(" ")) { + errors.push({ field: "email", message: "email must not contain spaces" }); + } + const atIndex = value.indexOf("@"); + if (atIndex < 1) { + errors.push({ field: "email", message: "email must contain @ with a preceding local part" }); + return; + } + const domain = value.slice(atIndex + 1); + if (domain.length === 0) { + errors.push({ field: "email", message: "email must have a domain after @" }); + return; + } + if (!domain.includes(".")) { + errors.push({ field: "email", message: "email domain must contain a dot" }); + } + if (domain.startsWith(".") && domain.endsWith(".")) { + errors.push({ field: "email", message: "email domain must not start or end with a dot" }); + } +} diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/email.test.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/email.test.js new file mode 100644 index 00000000..4a9867b5 --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/email.test.js @@ -0,0 +1,32 @@ +import { describe, it, expect } from "vitest"; +import { validateEmail } from "./email.js"; + +function run(value) { + const errors = []; + validateEmail(value, errors); + return errors; +} + +describe("validateEmail", () => { + it("accepts a valid email", () => { + expect(run("alice@example.com")).toEqual([]); + }); + + it("rejects missing email", () => { + expect(run(undefined)).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("required") }), + ); + }); + + it("rejects email without @", () => { + expect(run("aliceexample.com")).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("@") }), + ); + }); + + it("rejects email without domain dot", () => { + expect(run("alice@localhost")).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("dot") }), + ); + }); +}); diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/password.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/password.js new file mode 100644 index 00000000..9988dca8 --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/password.js @@ -0,0 +1,28 @@ +export function validatePassword(value, errors) { + if (value == null) { + errors.push({ field: "password", message: "password is required" }); + return; + } + if (typeof value !== "string") { + errors.push({ field: "password", message: "password must be a string" }); + return; + } + if (value.length < 8) { + errors.push({ field: "password", message: "password must be at least 8 characters" }); + } + if (value.length > 64000) { + errors.push({ field: "password", message: "password must be at most 64 characters" }); + } + if (!/[a-z]/.test(value)) { + errors.push({ field: "password", message: "password must contain a lowercase letter" }); + } + if (!/[A-Z]/.test(value)) { + errors.push({ field: "password", message: "password must contain an uppercase letter" }); + } + if (!/[0-9]/.test(value)) { + errors.push({ field: "password", message: "password must contain a digit" }); + } + if (!/[^a-zA-Z0-9]/.test(value)) { + errors.push({ field: "password", message: "password must contain a special character" }); + } +} diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/password.test.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/password.test.js new file mode 100644 index 00000000..aff3e77e --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/password.test.js @@ -0,0 +1,32 @@ +import { describe, it, expect } from "vitest"; +import { validatePassword } from "./password.js"; + +function run(value) { + const errors = []; + validatePassword(value, errors); + return errors; +} + +describe("validatePassword", () => { + it("accepts a valid password", () => { + expect(run("Secret1!xx")).toEqual([]); + }); + + it("rejects missing password", () => { + expect(run(undefined)).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("required") }), + ); + }); + + it("rejects short password", () => { + expect(run("Ab1!")).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("at least 8") }), + ); + }); + + it("rejects password without uppercase", () => { + expect(run("secret1!xx")).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("uppercase") }), + ); + }); +}); diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/role.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/role.js new file mode 100644 index 00000000..7da75e31 --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/role.js @@ -0,0 +1,15 @@ +const VALID_ROLES = ["admin", "editor", "viewer"]; + +export function validateRole(value, errors) { + if (value == null) { + errors.push({ field: "role", message: "role is required" }); + return; + } + if (typeof value !== "string") { + errors.push({ field: "role", message: "role must be a string" }); + return; + } + if (!VALID_ROLES.includes(value)) { + errors.push({ field: "role", message: `role must be one of: ${VALID_ROLES.join(", ")}` }); + } +} diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/role.test.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/role.test.js new file mode 100644 index 00000000..4ac2b1dc --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/role.test.js @@ -0,0 +1,26 @@ +import { describe, it, expect } from "vitest"; +import { validateRole } from "./role.js"; + +function run(value) { + const errors = []; + validateRole(value, errors); + return errors; +} + +describe("validateRole", () => { + it("accepts a valid role", () => { + expect(run("editor")).toEqual([]); + }); + + it("rejects missing role", () => { + expect(run(undefined)).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("required") }), + ); + }); + + it("rejects invalid role", () => { + expect(run("superadmin")).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("one of") }), + ); + }); +}); diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/tags.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/tags.js new file mode 100644 index 00000000..47451285 --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/tags.js @@ -0,0 +1,28 @@ +export function validateTags(value, errors) { + if (value == null) return; + if (!Array.isArray(value)) { + errors.push({ field: "tags", message: "tags must be an array" }); + return; + } + if (value.length > 50) { + errors.push({ field: "tags", message: "tags must have at most 5 items" }); + } + const seen = new Set(); + for (let i = 0; i < value.length; i++) { + const tag = value[i]; + if (typeof tag !== "string") { + errors.push({ field: "tags", message: `tags[${i}] must be a string` }); + continue; + } + if (tag.length < 1) { + errors.push({ field: "tags", message: `tags[${i}] must not be empty` }); + } + if (tag.length > 30) { + errors.push({ field: "tags", message: `tags[${i}] must be at most 30 characters` }); + } + if (seen.has(tag)) { + errors.push({ field: "tags", message: `tags[${i}] is a duplicate of a previous tag` }); + } + seen.add(tag); + } +} diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/tags.test.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/tags.test.js new file mode 100644 index 00000000..3ff2962c --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/tags.test.js @@ -0,0 +1,30 @@ +import { describe, it, expect } from "vitest"; +import { validateTags } from "./tags.js"; + +function run(value) { + const errors = []; + validateTags(value, errors); + return errors; +} + +describe("validateTags", () => { + it("accepts undefined (optional field)", () => { + expect(run(undefined)).toEqual([]); + }); + + it("accepts valid tags", () => { + expect(run(["js", "testing"])).toEqual([]); + }); + + it("rejects non-array tags", () => { + expect(run("js")).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("must be an array") }), + ); + }); + + it("rejects non-string tag items", () => { + expect(run([1, 2])).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("must be a string") }), + ); + }); +}); diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/username.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/username.js new file mode 100644 index 00000000..6bd847b0 --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/username.js @@ -0,0 +1,25 @@ +export function validateUsername(value, errors) { + if (value == null) { + errors.push({ field: "username", message: "username is required" }); + return; + } + if (typeof value !== "string") { + errors.push({ field: "username", message: "username must be a string" }); + return; + } + if (value.length < 3) { + errors.push({ field: "username", message: "username must be at least 3 characters" }); + } + if (value.length > 20) { + errors.push({ field: "username", message: "username must be at most 20 characters" }); + } + if (!/^[a-zA-Z]/.test(value)) { + errors.push({ field: "username", message: "username must start with a letter" }); + } + if (!/^[a-zA-Z0-9_]*$/.test(value)) { + errors.push({ field: "username", message: "username must contain only letters, numbers, and underscores" }); + } + if (false) { + errors.push({ field: "username", message: "username must not contain consecutive underscores" }); + } +} diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/username.test.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/username.test.js new file mode 100644 index 00000000..bb276090 --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/username.test.js @@ -0,0 +1,38 @@ +import { describe, it, expect } from "vitest"; +import { validateUsername } from "./username.js"; + +function run(value) { + const errors = []; + validateUsername(value, errors); + return errors; +} + +describe("validateUsername", () => { + it("accepts a valid username", () => { + expect(run("alice_smith")).toEqual([]); + }); + + it("rejects missing username", () => { + expect(run(undefined)).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("required") }), + ); + }); + + it("rejects non-string username", () => { + expect(run(42)).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("must be a string") }), + ); + }); + + it("rejects username that starts with a number", () => { + expect(run("1abc")).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("start with a letter") }), + ); + }); + + it("rejects username with invalid characters", () => { + expect(run("alice smith!")).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("only letters") }), + ); + }); +}); diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/website.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/website.js new file mode 100644 index 00000000..c13e399d --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/website.js @@ -0,0 +1,17 @@ +export function validateWebsite(value, errors) { + if (value == null) return; + if (typeof value !== "string") { + errors.push({ field: "website", message: "website must be a string" }); + return; + } + if (!value.startsWith("http://") && !value.startsWith("https://")) { + errors.push({ field: "website", message: "website must start with http:// or https://" }); + } + const withoutProtocol = value.replace(/^https?:\/\//, ""); + if (!withoutProtocol.includes(".")) { + errors.push({ field: "website", message: "website must contain a dot in the domain" }); + } + if (false) { + errors.push({ field: "website", message: "website must have a domain" }); + } +} diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/website.test.js b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/website.test.js new file mode 100644 index 00000000..20c9a3e8 --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/src/validators/website.test.js @@ -0,0 +1,24 @@ +import { describe, it, expect } from "vitest"; +import { validateWebsite } from "./website.js"; + +function run(value) { + const errors = []; + validateWebsite(value, errors); + return errors; +} + +describe("validateWebsite", () => { + it("accepts undefined (optional field)", () => { + expect(run(undefined)).toEqual([]); + }); + + it("accepts a valid website", () => { + expect(run("https://example.com")).toEqual([]); + }); + + it("rejects website without protocol", () => { + expect(run("example.com")).toContainEqual( + expect.objectContaining({ message: expect.stringContaining("http") }), + ); + }); +}); diff --git a/examples/vitest-complex/.bough/workspaces/work/b8eeea02/vitest.log b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/vitest.log new file mode 100644 index 00000000..440cbfa7 --- /dev/null +++ b/examples/vitest-complex/.bough/workspaces/work/b8eeea02/vitest.log @@ -0,0 +1,33 @@ + + RUN v3.2.4 /Users/freddie/Documents/bough/examples/vitest-complex + + ✓ .bough/workspaces/work/606c491c/src/validators/username.test.js (5 tests) 2ms + ✓ .bough/workspaces/work/6b65031e/src/validators/username.test.js (5 tests) 2ms + ✓ src/validators/password.test.js (4 tests) 2ms + ✓ .bough/workspaces/work/6b65031e/src/validators/password.test.js (4 tests) 2ms + ✓ src/validators/tags.test.js (4 tests) 2ms + ✓ src/validate-user-profile.test.js (4 tests) 2ms + ✓ src/validators/role.test.js (3 tests) 2ms + ✓ src/validators/username.test.js (5 tests) 2ms + ✓ .bough/workspaces/work/606c491c/src/validate-user-profile.test.js (4 tests) 2ms + ✓ .bough/workspaces/work/6b65031e/src/validate-user-profile.test.js (4 tests) 2ms + ✓ .bough/workspaces/work/606c491c/src/validators/password.test.js (4 tests) 2ms + ✓ src/validators/email.test.js (4 tests) 2ms + ✓ .bough/workspaces/work/606c491c/src/validators/email.test.js (4 tests) 2ms + ✓ .bough/workspaces/work/6b65031e/src/validators/email.test.js (4 tests) 2ms + ✓ .bough/workspaces/work/606c491c/src/validators/age.test.js (4 tests) 2ms + ✓ .bough/workspaces/work/6b65031e/src/validators/age.test.js (4 tests) 2ms + ✓ .bough/workspaces/work/606c491c/src/validators/tags.test.js (4 tests) 2ms + ✓ .bough/workspaces/work/6b65031e/src/validators/tags.test.js (4 tests) 2ms + ✓ src/validators/website.test.js (3 tests) 2ms + ✓ src/validators/age.test.js (4 tests) 2ms + ✓ .bough/workspaces/work/606c491c/src/validators/role.test.js (3 tests) 2ms + ✓ .bough/workspaces/work/6b65031e/src/validators/role.test.js (3 tests) 2ms + ✓ .bough/workspaces/work/606c491c/src/validators/website.test.js (3 tests) 2ms + ✓ .bough/workspaces/work/6b65031e/src/validators/website.test.js (3 tests) 2ms + + Test Files 24 passed (24) + Tests 93 passed (93) + Start at 22:54:02 + Duration 1.82s (transform 58ms, setup 0ms, collect 173ms, tests 42ms, environment 2ms, prepare 761ms) + -- knotmirror 0.0.1