diff --git a/.vscode/settings.json b/.vscode/settings.json index 8b6e817..a09493f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,7 +14,6 @@ "inlines", "jsonic", "martypdx", - "maya", "nsbsp", "onattribute", "onclosetag", diff --git a/core/compiler/index.js b/core/compiler/index.js index 73a0223..76250b1 100644 --- a/core/compiler/index.js +++ b/core/compiler/index.js @@ -1,7 +1,7 @@ import { Parser } from 'acorn'; import acornJsx from 'acorn-jsx'; import { generate as astring } from 'astring'; -import { TemplateGenerator } from './TemplateGenerator.js'; +import { TemplateGenerator } from './transform/TemplateGenerator.js'; import { SourceMapGenerator } from 'source-map'; // compile = parse + generate diff --git a/core/compiler/package.json b/core/compiler/package.json index cddea9c..c129bb5 100644 --- a/core/compiler/package.json +++ b/core/compiler/package.json @@ -13,17 +13,17 @@ "repository": { "type": "git", "url": "git+https://github.com/azoth-web/azoth.git", - "directory": "aetheria-core/thoth-compiler" + "directory": "core/compiler" }, "type": "module", - "main": "./src/index.js", + "main": "./index.js", "files": [ - "src/!(*test*).js" + "!(*test*).js" ], "exports": { ".": { "import": { - "default": "./src/index.js" + "default": "./index.js" } } }, diff --git a/core/compiler/source-maps.test.js b/core/compiler/source-maps.test.js index 4496a66..4bfcd70 100644 --- a/core/compiler/source-maps.test.js +++ b/core/compiler/source-maps.test.js @@ -3,51 +3,63 @@ import { compile as _compile } from './index.js'; import { test } from 'vitest'; const compile = input => { - return _compile(input, { - generate: { indent: ' ' } - }); + return _compile(input); }; - test('static one line', ({ expect }) => { const input = `const t =
Hello World
`; - const { map, code } = compile(input); + const { code, _sourceMap } = compile(input); expect(code).toMatchInlineSnapshot(` "const t = tbc5b60ab9f()[0]; " `); - expect(map).toMatchInlineSnapshot(` - { - "file": "module.jsx", - "mappings": "MAAMA,IAAI,aAAA", - "names": [ - "t", - ], - "sources": [ - "module.jsx", - ], - "version": 3, - } + expect(_sourceMap._mappings._array).toMatchInlineSnapshot(` + [ + { + "generatedColumn": 6, + "generatedLine": 1, + "name": "t", + "originalColumn": 6, + "originalLine": 1, + "source": "module.jsx", + }, + { + "generatedColumn": 10, + "generatedLine": 1, + "name": undefined, + "originalColumn": 10, + "originalLine": 1, + "source": "module.jsx", + }, + { + "generatedColumn": 23, + "generatedLine": 1, + "name": undefined, + "originalColumn": 10, + "originalLine": 1, + "source": "module.jsx", + }, + ] `); }); -test.skip('{...} one line', ({ expect }) => { +test('{...} one line', ({ expect }) => { const input = `
Hello {place}
`; const { _sourceMap, code } = compile(input); expect(code).toMatchInlineSnapshot(` "(() => { - const __root = ta94b210052()[0]; - const __child0 = __root.childNodes[1]; - __compose(__child0, place); - return __root; + const __root = ta94b210052()[0]; + const __child0 = __root.childNodes[1]; + __compose(__child0, place); + return __root; })(); " `); expect(_sourceMap._mappings._array).toMatchInlineSnapshot(` [ { - "generatedColumn": 19, + "generatedColumn": 17, "generatedLine": 2, "name": undefined, "originalColumn": 0, @@ -55,7 +67,7 @@ test.skip('{...} one line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 32, + "generatedColumn": 30, "generatedLine": 2, "name": undefined, "originalColumn": 0, @@ -63,7 +75,7 @@ test.skip('{...} one line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 21, + "generatedColumn": 19, "generatedLine": 3, "name": "div", "originalColumn": 1, @@ -71,7 +83,7 @@ test.skip('{...} one line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 38, + "generatedColumn": 36, "generatedLine": 3, "name": undefined, "originalColumn": 11, @@ -79,7 +91,7 @@ test.skip('{...} one line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 4, + "generatedColumn": 2, "generatedLine": 4, "name": undefined, "originalColumn": 11, @@ -87,7 +99,7 @@ test.skip('{...} one line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 14, + "generatedColumn": 12, "generatedLine": 4, "name": undefined, "originalColumn": 11, @@ -95,7 +107,7 @@ test.skip('{...} one line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 24, + "generatedColumn": 22, "generatedLine": 4, "name": "place", "originalColumn": 12, @@ -103,7 +115,7 @@ test.skip('{...} one line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 11, + "generatedColumn": 9, "generatedLine": 5, "name": undefined, "originalColumn": 0, @@ -160,10 +172,10 @@ test('{...} three line', ({ expect }) => { const { _sourceMap, code } = compile(input); expect(code).toMatchInlineSnapshot(` "const t = (() => { - const __root = tf2d718c3f5()[0]; - const __child0 = __root.childNodes[1]; - __compose(__child0, place); - return __root; + const __root = tf2d718c3f5()[0]; + const __child0 = __root.childNodes[1]; + __compose(__child0, place); + return __root; })(); " `); @@ -178,7 +190,7 @@ test('{...} three line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 19, + "generatedColumn": 17, "generatedLine": 2, "name": undefined, "originalColumn": 10, @@ -186,7 +198,7 @@ test('{...} three line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 32, + "generatedColumn": 30, "generatedLine": 2, "name": undefined, "originalColumn": 10, @@ -194,7 +206,7 @@ test('{...} three line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 21, + "generatedColumn": 19, "generatedLine": 3, "name": "div", "originalColumn": 11, @@ -202,7 +214,7 @@ test('{...} three line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 38, + "generatedColumn": 36, "generatedLine": 3, "name": undefined, "originalColumn": 14, @@ -210,7 +222,7 @@ test('{...} three line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 4, + "generatedColumn": 2, "generatedLine": 4, "name": undefined, "originalColumn": 14, @@ -218,7 +230,7 @@ test('{...} three line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 14, + "generatedColumn": 12, "generatedLine": 4, "name": undefined, "originalColumn": 14, @@ -226,7 +238,7 @@ test('{...} three line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 24, + "generatedColumn": 22, "generatedLine": 4, "name": "place", "originalColumn": 15, @@ -234,7 +246,7 @@ test('{...} three line', ({ expect }) => { "source": "module.jsx", }, { - "generatedColumn": 11, + "generatedColumn": 9, "generatedLine": 5, "name": undefined, "originalColumn": 10, diff --git a/core/compiler/Analyzer.js b/core/compiler/transform/Analyzer.js similarity index 100% rename from core/compiler/Analyzer.js rename to core/compiler/transform/Analyzer.js diff --git a/core/compiler/GeneratorBase.js b/core/compiler/transform/GeneratorBase.js similarity index 88% rename from core/compiler/GeneratorBase.js rename to core/compiler/transform/GeneratorBase.js index dc16a40..e756c0b 100644 --- a/core/compiler/GeneratorBase.js +++ b/core/compiler/transform/GeneratorBase.js @@ -1,9 +1,7 @@ import { GENERATOR } from 'astring'; // enable extending as es6 class -export function Generator() { - -} +export function Generator() { } Generator.prototype = GENERATOR; export function writeNextLine(state) { diff --git a/core/compiler/HtmlGenerator.js b/core/compiler/transform/HtmlGenerator.js similarity index 100% rename from core/compiler/HtmlGenerator.js rename to core/compiler/transform/HtmlGenerator.js diff --git a/core/compiler/Stack.js b/core/compiler/transform/Stack.js similarity index 100% rename from core/compiler/Stack.js rename to core/compiler/transform/Stack.js diff --git a/core/compiler/Template.js b/core/compiler/transform/Template.js similarity index 100% rename from core/compiler/Template.js rename to core/compiler/transform/Template.js diff --git a/core/compiler/TemplateGenerator.js b/core/compiler/transform/TemplateGenerator.js similarity index 100% rename from core/compiler/TemplateGenerator.js rename to core/compiler/transform/TemplateGenerator.js diff --git a/core/compiler/html.js b/core/compiler/transform/html.js similarity index 100% rename from core/compiler/html.js rename to core/compiler/transform/html.js diff --git a/core/runtime/README.md b/core/runtime/README.md index 6773037..5f173d6 100644 --- a/core/runtime/README.md +++ b/core/runtime/README.md @@ -2,7 +2,5 @@ **Azoth Runtime** -The ancient Egyptian goddess Maat is the counterpart -to Thoth. She is the force which maintains the universe as the unification of matter and spirit. The azoth runtime orchestrates the actualization of the compiled creations of thoth. Invisible and unseen, maya performs the rendering magic in the browser \ No newline at end of file diff --git a/core/runtime/index.js b/core/runtime/index.js index 44ea1e3..9ac19a3 100644 --- a/core/runtime/index.js +++ b/core/runtime/index.js @@ -7,4 +7,4 @@ export { export { makeRenderer as __makeRenderer, rendererById as __rendererById, -} from './dom/index.js'; \ No newline at end of file +} from './renderer/index.js'; \ No newline at end of file diff --git a/core/runtime/package.json b/core/runtime/package.json index 60c873d..e3495a8 100644 --- a/core/runtime/package.json +++ b/core/runtime/package.json @@ -19,7 +19,7 @@ "repository": { "type": "git", "url": "git+https://github.com/azoth-web/azoth.git", - "directory": "aetheria-core/maya-runtime" + "directory": "core/runtime" }, "type": "module", "main": "./src/index.js", @@ -38,7 +38,7 @@ "@testing-library/dom": "^9.3.4", "@vitest/browser": "^1.3.1", "@vitest/ui": "^1.3.1", - "happy-dom": "^13.5.3", + "happy-dom": "^13.6.0", "jsdom": "^24.0.0", "test-utils": "workspace:^", "vitest": "^1.3.1" diff --git a/core/runtime/pnpm-lock.yaml b/core/runtime/pnpm-lock.yaml index a6f3444..949a6c5 100644 --- a/core/runtime/pnpm-lock.yaml +++ b/core/runtime/pnpm-lock.yaml @@ -15,8 +15,8 @@ devDependencies: specifier: ^1.3.1 version: 1.3.1(vitest@1.3.1) happy-dom: - specifier: ^13.5.3 - version: 13.5.3 + specifier: ^13.6.0 + version: 13.6.0 jsdom: specifier: ^24.0.0 version: 24.0.0 @@ -25,7 +25,7 @@ devDependencies: version: link:../../test-utils vitest: specifier: ^1.3.1 - version: 1.3.1(@vitest/browser@1.3.1)(@vitest/ui@1.3.1)(happy-dom@13.5.3)(jsdom@24.0.0) + version: 1.3.1(@vitest/browser@1.3.1)(@vitest/ui@1.3.1)(happy-dom@13.6.0)(jsdom@24.0.0) packages: @@ -449,7 +449,7 @@ packages: '@vitest/utils': 1.3.1 magic-string: 0.30.7 sirv: 2.0.4 - vitest: 1.3.1(@vitest/browser@1.3.1)(@vitest/ui@1.3.1)(happy-dom@13.5.3)(jsdom@24.0.0) + vitest: 1.3.1(@vitest/browser@1.3.1)(@vitest/ui@1.3.1)(happy-dom@13.6.0)(jsdom@24.0.0) dev: true /@vitest/expect@1.3.1: @@ -494,7 +494,7 @@ packages: pathe: 1.1.2 picocolors: 1.0.0 sirv: 2.0.4 - vitest: 1.3.1(@vitest/browser@1.3.1)(@vitest/ui@1.3.1)(happy-dom@13.5.3)(jsdom@24.0.0) + vitest: 1.3.1(@vitest/browser@1.3.1)(@vitest/ui@1.3.1)(happy-dom@13.6.0)(jsdom@24.0.0) dev: true /@vitest/utils@1.3.1: @@ -953,8 +953,8 @@ packages: get-intrinsic: 1.2.4 dev: true - /happy-dom@13.5.3: - resolution: {integrity: sha512-0JLyo8j0weBc+neK+KlHIOPlprVmWPwbYqwhCgKEQrC+twLFhz2PXul3Cnn1e9HjHIECN8EoTJ1ksRYansRdjQ==} + /happy-dom@13.6.0: + resolution: {integrity: sha512-4sVRENyxCSqAiOzAfPiohU56/D5bcLJmyT3WGoqjVX1IXq+ScTsrLR98RUODHz0nVvSLNW86CJzRXdPoSdw/yg==} engines: {node: '>=16.0.0'} dependencies: entities: 4.5.0 @@ -1765,7 +1765,7 @@ packages: fsevents: 2.3.3 dev: true - /vitest@1.3.1(@vitest/browser@1.3.1)(@vitest/ui@1.3.1)(happy-dom@13.5.3)(jsdom@24.0.0): + /vitest@1.3.1(@vitest/browser@1.3.1)(@vitest/ui@1.3.1)(happy-dom@13.6.0)(jsdom@24.0.0): resolution: {integrity: sha512-/1QJqXs8YbCrfv/GPQ05wAZf2eakUPLPa18vkJAKE7RXOKfVHqMZZ1WlTjiwl6Gcn65M5vpNUB6EFLnEdRdEXQ==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -1801,7 +1801,7 @@ packages: chai: 4.4.1 debug: 4.3.4 execa: 8.0.1 - happy-dom: 13.5.3 + happy-dom: 13.6.0 jsdom: 24.0.0 local-pkg: 0.5.0 magic-string: 0.30.7 diff --git a/core/runtime/dom/index.js b/core/runtime/renderer/index.js similarity index 100% rename from core/runtime/dom/index.js rename to core/runtime/renderer/index.js diff --git a/core/runtime/dom/dom.test.js b/core/runtime/renderer/renderer.test.js similarity index 100% rename from core/runtime/dom/dom.test.js rename to core/runtime/renderer/renderer.test.js diff --git a/core/vite-plugin/index.js b/core/vite-plugin/index.js index 751ed86..c4e233f 100644 --- a/core/vite-plugin/index.js +++ b/core/vite-plugin/index.js @@ -1,4 +1,4 @@ -import { compile } from 'thoth'; +import { compile } from 'compiler'; import { createFilter } from '@rollup/pluginutils'; import { SourceNode, SourceMapConsumer } from 'source-map'; import path from 'node:path'; @@ -35,7 +35,7 @@ export default function azothPlugin(options) { const isBuild = command === 'build'; const renderer = isBuild ? '__rendererById' : '__makeRenderer'; - const importRenderer = `import { ${renderer} } from 'maya';\n`; + const importRenderer = `import { ${renderer} } from 'azoth/runtime';\n`; const exports = new URLSearchParams(ids) .getAll('id') @@ -88,27 +88,27 @@ export default function azothPlugin(options) { programTemplates.set(id, template); } - const maatImports = []; + const runtimeImports = []; if(importSet.size) { - maatImports.push(`import { ${[...importSet].join(', ')} } from 'maya';\n`); + runtimeImports.push(`import { ${[...importSet].join(', ')} } from 'azoth/runtime';\n`); } if(moduleTemplates.size) { const uniqueIds = [...moduleTemplates]; const params = new URLSearchParams(uniqueIds.map(id => ['id', id])); const names = uniqueIds.map(id => `t${id}`).join(', '); - maatImports.push(`import { ${names} } from '${templateModule}?${params.toString()}';\n`); + runtimeImports.push(`import { ${names} } from '${templateModule}?${params.toString()}';\n`); } // TODO: find a better way to add imports while maintaining sourcemaps, // it shouldn't need to be async... - if(maatImports.length) { + if(runtimeImports.length) { return SourceMapConsumer.with( map, null, async consumer => { const node = SourceNode.fromStringWithSourceMap(code, consumer); - node.prepend(maatImports); + node.prepend(runtimeImports); const { map, code: newCode } = node.toStringWithSourceMap(); return { code: newCode, diff --git a/core/vite-plugin/package.json b/core/vite-plugin/package.json index 0525d4c..6aab583 100644 --- a/core/vite-plugin/package.json +++ b/core/vite-plugin/package.json @@ -21,10 +21,7 @@ }, "type": "module", "scripts": { - "test": "pnpm run test:build && vitest -w false ", - "test:build": "vite build -c ./test/vite.config.js", - "test:update": "rm -rf ./test/expected-out && cp -R ./test/out ./test/expected-out", - "build": "vite build" + "test": "exit 0" }, "files": [ "index.js", @@ -38,15 +35,13 @@ } }, "devDependencies": { - "maya": "workspace:^", - "vite": "^5.1.4", "vitest": "^1.3.1" }, "peerDependencies": { "vite": "^5.0.12" }, "dependencies": { - "thoth": "workspace:^", + "compiler": "workspace:^", "@rollup/pluginutils": "^5.1.0", "source-map": "^0.7.4" } diff --git a/core/vite-plugin/pnpm-lock.yaml b/core/vite-plugin/pnpm-lock.yaml index 7b6b18e..3aac1fc 100644 --- a/core/vite-plugin/pnpm-lock.yaml +++ b/core/vite-plugin/pnpm-lock.yaml @@ -8,20 +8,17 @@ dependencies: '@rollup/pluginutils': specifier: ^5.1.0 version: 5.1.0 + compiler: + specifier: workspace:^ + version: link:../compiler source-map: specifier: ^0.7.4 version: 0.7.4 - thoth: - specifier: workspace:^ - version: link:../thoth-compiler - -devDependencies: - maya: - specifier: workspace:^ - version: link:../maya-runtime vite: - specifier: ^5.1.4 + specifier: ^5.0.12 version: 5.1.4 + +devDependencies: vitest: specifier: ^1.3.1 version: 1.3.1 @@ -34,7 +31,6 @@ packages: cpu: [ppc64] os: [aix] requiresBuild: true - dev: true optional: true /@esbuild/android-arm64@0.19.12: @@ -43,7 +39,6 @@ packages: cpu: [arm64] os: [android] requiresBuild: true - dev: true optional: true /@esbuild/android-arm@0.19.12: @@ -52,7 +47,6 @@ packages: cpu: [arm] os: [android] requiresBuild: true - dev: true optional: true /@esbuild/android-x64@0.19.12: @@ -61,7 +55,6 @@ packages: cpu: [x64] os: [android] requiresBuild: true - dev: true optional: true /@esbuild/darwin-arm64@0.19.12: @@ -70,7 +63,6 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true - dev: true optional: true /@esbuild/darwin-x64@0.19.12: @@ -79,7 +71,6 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true - dev: true optional: true /@esbuild/freebsd-arm64@0.19.12: @@ -88,7 +79,6 @@ packages: cpu: [arm64] os: [freebsd] requiresBuild: true - dev: true optional: true /@esbuild/freebsd-x64@0.19.12: @@ -97,7 +87,6 @@ packages: cpu: [x64] os: [freebsd] requiresBuild: true - dev: true optional: true /@esbuild/linux-arm64@0.19.12: @@ -106,7 +95,6 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-arm@0.19.12: @@ -115,7 +103,6 @@ packages: cpu: [arm] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-ia32@0.19.12: @@ -124,7 +111,6 @@ packages: cpu: [ia32] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-loong64@0.19.12: @@ -133,7 +119,6 @@ packages: cpu: [loong64] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-mips64el@0.19.12: @@ -142,7 +127,6 @@ packages: cpu: [mips64el] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-ppc64@0.19.12: @@ -151,7 +135,6 @@ packages: cpu: [ppc64] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-riscv64@0.19.12: @@ -160,7 +143,6 @@ packages: cpu: [riscv64] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-s390x@0.19.12: @@ -169,7 +151,6 @@ packages: cpu: [s390x] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-x64@0.19.12: @@ -178,7 +159,6 @@ packages: cpu: [x64] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/netbsd-x64@0.19.12: @@ -187,7 +167,6 @@ packages: cpu: [x64] os: [netbsd] requiresBuild: true - dev: true optional: true /@esbuild/openbsd-x64@0.19.12: @@ -196,7 +175,6 @@ packages: cpu: [x64] os: [openbsd] requiresBuild: true - dev: true optional: true /@esbuild/sunos-x64@0.19.12: @@ -205,7 +183,6 @@ packages: cpu: [x64] os: [sunos] requiresBuild: true - dev: true optional: true /@esbuild/win32-arm64@0.19.12: @@ -214,7 +191,6 @@ packages: cpu: [arm64] os: [win32] requiresBuild: true - dev: true optional: true /@esbuild/win32-ia32@0.19.12: @@ -223,7 +199,6 @@ packages: cpu: [ia32] os: [win32] requiresBuild: true - dev: true optional: true /@esbuild/win32-x64@0.19.12: @@ -232,7 +207,6 @@ packages: cpu: [x64] os: [win32] requiresBuild: true - dev: true optional: true /@jest/schemas@29.6.3: @@ -265,7 +239,6 @@ packages: cpu: [arm] os: [android] requiresBuild: true - dev: true optional: true /@rollup/rollup-android-arm64@4.12.0: @@ -273,7 +246,6 @@ packages: cpu: [arm64] os: [android] requiresBuild: true - dev: true optional: true /@rollup/rollup-darwin-arm64@4.12.0: @@ -281,7 +253,6 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true - dev: true optional: true /@rollup/rollup-darwin-x64@4.12.0: @@ -289,7 +260,6 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true - dev: true optional: true /@rollup/rollup-linux-arm-gnueabihf@4.12.0: @@ -297,7 +267,6 @@ packages: cpu: [arm] os: [linux] requiresBuild: true - dev: true optional: true /@rollup/rollup-linux-arm64-gnu@4.12.0: @@ -305,7 +274,6 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true - dev: true optional: true /@rollup/rollup-linux-arm64-musl@4.12.0: @@ -313,7 +281,6 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true - dev: true optional: true /@rollup/rollup-linux-riscv64-gnu@4.12.0: @@ -321,7 +288,6 @@ packages: cpu: [riscv64] os: [linux] requiresBuild: true - dev: true optional: true /@rollup/rollup-linux-x64-gnu@4.12.0: @@ -329,7 +295,6 @@ packages: cpu: [x64] os: [linux] requiresBuild: true - dev: true optional: true /@rollup/rollup-linux-x64-musl@4.12.0: @@ -337,7 +302,6 @@ packages: cpu: [x64] os: [linux] requiresBuild: true - dev: true optional: true /@rollup/rollup-win32-arm64-msvc@4.12.0: @@ -345,7 +309,6 @@ packages: cpu: [arm64] os: [win32] requiresBuild: true - dev: true optional: true /@rollup/rollup-win32-ia32-msvc@4.12.0: @@ -353,7 +316,6 @@ packages: cpu: [ia32] os: [win32] requiresBuild: true - dev: true optional: true /@rollup/rollup-win32-x64-msvc@4.12.0: @@ -361,7 +323,6 @@ packages: cpu: [x64] os: [win32] requiresBuild: true - dev: true optional: true /@sinclair/typebox@0.27.8: @@ -516,7 +477,6 @@ packages: '@esbuild/win32-arm64': 0.19.12 '@esbuild/win32-ia32': 0.19.12 '@esbuild/win32-x64': 0.19.12 - dev: true /estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} @@ -548,7 +508,6 @@ packages: engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] requiresBuild: true - dev: true optional: true /get-func-name@2.0.2: @@ -629,7 +588,6 @@ packages: resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - dev: true /npm-run-path@5.3.0: resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} @@ -672,7 +630,6 @@ packages: /picocolors@1.0.0: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} - dev: true /picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} @@ -694,7 +651,6 @@ packages: nanoid: 3.3.7 picocolors: 1.0.0 source-map-js: 1.0.2 - dev: true /pretty-format@29.7.0: resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} @@ -730,7 +686,6 @@ packages: '@rollup/rollup-win32-ia32-msvc': 4.12.0 '@rollup/rollup-win32-x64-msvc': 4.12.0 fsevents: 2.3.3 - dev: true /shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} @@ -756,7 +711,6 @@ packages: /source-map-js@1.0.2: resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} engines: {node: '>=0.10.0'} - dev: true /source-map@0.7.4: resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==} @@ -859,7 +813,6 @@ packages: rollup: 4.12.0 optionalDependencies: fsevents: 2.3.3 - dev: true /vitest@1.3.1: resolution: {integrity: sha512-/1QJqXs8YbCrfv/GPQ05wAZf2eakUPLPa18vkJAKE7RXOKfVHqMZZ1WlTjiwl6Gcn65M5vpNUB6EFLnEdRdEXQ==} diff --git a/core/test/expected-out/index-ChYuNxMM.js b/core/vite-test/expected-out/index-ChYuNxMM.js similarity index 100% rename from core/test/expected-out/index-ChYuNxMM.js rename to core/vite-test/expected-out/index-ChYuNxMM.js diff --git a/core/test/expected-out/index-DDapMaSx.css b/core/vite-test/expected-out/index-DDapMaSx.css similarity index 100% rename from core/test/expected-out/index-DDapMaSx.css rename to core/vite-test/expected-out/index-DDapMaSx.css diff --git a/core/test/expected-out/index.html b/core/vite-test/expected-out/index.html similarity index 100% rename from core/test/expected-out/index.html rename to core/vite-test/expected-out/index.html diff --git a/core/test/index.html b/core/vite-test/index.html similarity index 100% rename from core/test/index.html rename to core/vite-test/index.html diff --git a/core/test/out/index-ChYuNxMM.js b/core/vite-test/out/index-ChYuNxMM.js similarity index 100% rename from core/test/out/index-ChYuNxMM.js rename to core/vite-test/out/index-ChYuNxMM.js diff --git a/core/test/out/index-DDapMaSx.css b/core/vite-test/out/index-DDapMaSx.css similarity index 100% rename from core/test/out/index-DDapMaSx.css rename to core/vite-test/out/index-DDapMaSx.css diff --git a/core/test/out/index.html b/core/vite-test/out/index.html similarity index 100% rename from core/test/out/index.html rename to core/vite-test/out/index.html diff --git a/core/vite-test/package.json b/core/vite-test/package.json new file mode 100644 index 0000000..5229e15 --- /dev/null +++ b/core/vite-test/package.json @@ -0,0 +1,53 @@ +{ + "name": "vite-test", + "version": "0.0.0", + "description": "azoth plugins for vite", + "author": "martypdx", + "license": "MIT", + "keywords": [ + "vite-plugin", + "vite plugin", + "vite", + "azoth", + "azoth plugins" + ], + "engines": { + "node": "^18.0.0 || >=20" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/azoth-web/azoth.git", + "directory": "aetheria-core/vite-plugin" + }, + "type": "module", + "scripts": { + "test": "pnpm run test:build && vitest -w false ", + "test:build": "vite build -c ./test/vite.config.js", + "test:update": "rm -rf ./test/expected-out && cp -R ./test/out ./test/expected-out", + "build": "vite build" + }, + "files": [ + "index.js", + "dist" + ], + "exports": { + ".": { + "import": { + "default": "./index.js" + } + } + }, + "devDependencies": { + "runtime": "workspace:^", + "vite": "^5.1.4", + "vitest": "^1.3.1" + }, + "peerDependencies": { + "vite": "^5.0.12" + }, + "dependencies": { + "compiler": "workspace:^", + "@rollup/pluginutils": "^5.1.0", + "source-map": "^0.7.4" + } +} \ No newline at end of file diff --git a/core/test/plugin.test.js b/core/vite-test/plugin.test.js similarity index 100% rename from core/test/plugin.test.js rename to core/vite-test/plugin.test.js diff --git a/core/vite-test/pnpm-lock.yaml b/core/vite-test/pnpm-lock.yaml new file mode 100644 index 0000000..f8e24a5 --- /dev/null +++ b/core/vite-test/pnpm-lock.yaml @@ -0,0 +1,939 @@ +lockfileVersion: '6.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +dependencies: + '@rollup/pluginutils': + specifier: ^5.1.0 + version: 5.1.0 + compiler: + specifier: workspace:^ + version: link:../compiler + source-map: + specifier: ^0.7.4 + version: 0.7.4 + +devDependencies: + runtime: + specifier: workspace:^ + version: link:../runtime + vite: + specifier: ^5.1.4 + version: 5.1.4 + vitest: + specifier: ^1.3.1 + version: 1.3.1 + +packages: + + /@esbuild/aix-ppc64@0.19.12: + resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + requiresBuild: true + dev: true + optional: true + + /@esbuild/android-arm64@0.19.12: + resolution: {integrity: sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@esbuild/android-arm@0.19.12: + resolution: {integrity: sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@esbuild/android-x64@0.19.12: + resolution: {integrity: sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@esbuild/darwin-arm64@0.19.12: + resolution: {integrity: sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@esbuild/darwin-x64@0.19.12: + resolution: {integrity: sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@esbuild/freebsd-arm64@0.19.12: + resolution: {integrity: sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/freebsd-x64@0.19.12: + resolution: {integrity: sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-arm64@0.19.12: + resolution: {integrity: sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-arm@0.19.12: + resolution: {integrity: sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-ia32@0.19.12: + resolution: {integrity: sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-loong64@0.19.12: + resolution: {integrity: sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-mips64el@0.19.12: + resolution: {integrity: sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-ppc64@0.19.12: + resolution: {integrity: sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-riscv64@0.19.12: + resolution: {integrity: sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-s390x@0.19.12: + resolution: {integrity: sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-x64@0.19.12: + resolution: {integrity: sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/netbsd-x64@0.19.12: + resolution: {integrity: sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/openbsd-x64@0.19.12: + resolution: {integrity: sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/sunos-x64@0.19.12: + resolution: {integrity: sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-arm64@0.19.12: + resolution: {integrity: sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-ia32@0.19.12: + resolution: {integrity: sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-x64@0.19.12: + resolution: {integrity: sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@jest/schemas@29.6.3: + resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@sinclair/typebox': 0.27.8 + dev: true + + /@jridgewell/sourcemap-codec@1.4.15: + resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} + dev: true + + /@rollup/pluginutils@5.1.0: + resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@types/estree': 1.0.5 + estree-walker: 2.0.2 + picomatch: 2.3.1 + dev: false + + /@rollup/rollup-android-arm-eabi@4.12.0: + resolution: {integrity: sha512-+ac02NL/2TCKRrJu2wffk1kZ+RyqxVUlbjSagNgPm94frxtr+XDL12E5Ll1enWskLrtrZ2r8L3wED1orIibV/w==} + cpu: [arm] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-android-arm64@4.12.0: + resolution: {integrity: sha512-OBqcX2BMe6nvjQ0Nyp7cC90cnumt8PXmO7Dp3gfAju/6YwG0Tj74z1vKrfRz7qAv23nBcYM8BCbhrsWqO7PzQQ==} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-darwin-arm64@4.12.0: + resolution: {integrity: sha512-X64tZd8dRE/QTrBIEs63kaOBG0b5GVEd3ccoLtyf6IdXtHdh8h+I56C2yC3PtC9Ucnv0CpNFJLqKFVgCYe0lOQ==} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-darwin-x64@4.12.0: + resolution: {integrity: sha512-cc71KUZoVbUJmGP2cOuiZ9HSOP14AzBAThn3OU+9LcA1+IUqswJyR1cAJj3Mg55HbjZP6OLAIscbQsQLrpgTOg==} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-arm-gnueabihf@4.12.0: + resolution: {integrity: sha512-a6w/Y3hyyO6GlpKL2xJ4IOh/7d+APaqLYdMf86xnczU3nurFTaVN9s9jOXQg97BE4nYm/7Ga51rjec5nfRdrvA==} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-arm64-gnu@4.12.0: + resolution: {integrity: sha512-0fZBq27b+D7Ar5CQMofVN8sggOVhEtzFUwOwPppQt0k+VR+7UHMZZY4y+64WJ06XOhBTKXtQB/Sv0NwQMXyNAA==} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-arm64-musl@4.12.0: + resolution: {integrity: sha512-eTvzUS3hhhlgeAv6bfigekzWZjaEX9xP9HhxB0Dvrdbkk5w/b+1Sxct2ZuDxNJKzsRStSq1EaEkVSEe7A7ipgQ==} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-riscv64-gnu@4.12.0: + resolution: {integrity: sha512-ix+qAB9qmrCRiaO71VFfY8rkiAZJL8zQRXveS27HS+pKdjwUfEhqo2+YF2oI+H/22Xsiski+qqwIBxVewLK7sw==} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-x64-gnu@4.12.0: + resolution: {integrity: sha512-TenQhZVOtw/3qKOPa7d+QgkeM6xY0LtwzR8OplmyL5LrgTWIXpTQg2Q2ycBf8jm+SFW2Wt/DTn1gf7nFp3ssVA==} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-x64-musl@4.12.0: + resolution: {integrity: sha512-LfFdRhNnW0zdMvdCb5FNuWlls2WbbSridJvxOvYWgSBOYZtgBfW9UGNJG//rwMqTX1xQE9BAodvMH9tAusKDUw==} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-win32-arm64-msvc@4.12.0: + resolution: {integrity: sha512-JPDxovheWNp6d7AHCgsUlkuCKvtu3RB55iNEkaQcf0ttsDU/JZF+iQnYcQJSk/7PtT4mjjVG8N1kpwnI9SLYaw==} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-win32-ia32-msvc@4.12.0: + resolution: {integrity: sha512-fjtuvMWRGJn1oZacG8IPnzIV6GF2/XG+h71FKn76OYFqySXInJtseAqdprVTDTyqPxQOG9Exak5/E9Z3+EJ8ZA==} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-win32-x64-msvc@4.12.0: + resolution: {integrity: sha512-ZYmr5mS2wd4Dew/JjT0Fqi2NPB/ZhZ2VvPp7SmvPZb4Y1CG/LRcS6tcRo2cYU7zLK5A7cdbhWnnWmUjoI4qapg==} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@sinclair/typebox@0.27.8: + resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} + dev: true + + /@types/estree@1.0.5: + resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} + + /@vitest/expect@1.3.1: + resolution: {integrity: sha512-xofQFwIzfdmLLlHa6ag0dPV8YsnKOCP1KdAeVVh34vSjN2dcUiXYCD9htu/9eM7t8Xln4v03U9HLxLpPlsXdZw==} + dependencies: + '@vitest/spy': 1.3.1 + '@vitest/utils': 1.3.1 + chai: 4.4.1 + dev: true + + /@vitest/runner@1.3.1: + resolution: {integrity: sha512-5FzF9c3jG/z5bgCnjr8j9LNq/9OxV2uEBAITOXfoe3rdZJTdO7jzThth7FXv/6b+kdY65tpRQB7WaKhNZwX+Kg==} + dependencies: + '@vitest/utils': 1.3.1 + p-limit: 5.0.0 + pathe: 1.1.2 + dev: true + + /@vitest/snapshot@1.3.1: + resolution: {integrity: sha512-EF++BZbt6RZmOlE3SuTPu/NfwBF6q4ABS37HHXzs2LUVPBLx2QoY/K0fKpRChSo8eLiuxcbCVfqKgx/dplCDuQ==} + dependencies: + magic-string: 0.30.7 + pathe: 1.1.2 + pretty-format: 29.7.0 + dev: true + + /@vitest/spy@1.3.1: + resolution: {integrity: sha512-xAcW+S099ylC9VLU7eZfdT9myV67Nor9w9zhf0mGCYJSO+zM2839tOeROTdikOi/8Qeusffvxb/MyBSOja1Uig==} + dependencies: + tinyspy: 2.2.1 + dev: true + + /@vitest/utils@1.3.1: + resolution: {integrity: sha512-d3Waie/299qqRyHTm2DjADeTaNdNSVsnwHPWrs20JMpjh6eiVq7ggggweO8rc4arhf6rRkWuHKwvxGvejUXZZQ==} + dependencies: + diff-sequences: 29.6.3 + estree-walker: 3.0.3 + loupe: 2.3.7 + pretty-format: 29.7.0 + dev: true + + /acorn-walk@8.3.2: + resolution: {integrity: sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==} + engines: {node: '>=0.4.0'} + dev: true + + /acorn@8.11.3: + resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==} + engines: {node: '>=0.4.0'} + hasBin: true + dev: true + + /ansi-styles@5.2.0: + resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} + engines: {node: '>=10'} + dev: true + + /assertion-error@1.1.0: + resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} + dev: true + + /cac@6.7.14: + resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} + engines: {node: '>=8'} + dev: true + + /chai@4.4.1: + resolution: {integrity: sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==} + engines: {node: '>=4'} + dependencies: + assertion-error: 1.1.0 + check-error: 1.0.3 + deep-eql: 4.1.3 + get-func-name: 2.0.2 + loupe: 2.3.7 + pathval: 1.1.1 + type-detect: 4.0.8 + dev: true + + /check-error@1.0.3: + resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==} + dependencies: + get-func-name: 2.0.2 + dev: true + + /cross-spawn@7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + engines: {node: '>= 8'} + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + dev: true + + /debug@4.3.4: + resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.2 + dev: true + + /deep-eql@4.1.3: + resolution: {integrity: sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==} + engines: {node: '>=6'} + dependencies: + type-detect: 4.0.8 + dev: true + + /diff-sequences@29.6.3: + resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dev: true + + /esbuild@0.19.12: + resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/aix-ppc64': 0.19.12 + '@esbuild/android-arm': 0.19.12 + '@esbuild/android-arm64': 0.19.12 + '@esbuild/android-x64': 0.19.12 + '@esbuild/darwin-arm64': 0.19.12 + '@esbuild/darwin-x64': 0.19.12 + '@esbuild/freebsd-arm64': 0.19.12 + '@esbuild/freebsd-x64': 0.19.12 + '@esbuild/linux-arm': 0.19.12 + '@esbuild/linux-arm64': 0.19.12 + '@esbuild/linux-ia32': 0.19.12 + '@esbuild/linux-loong64': 0.19.12 + '@esbuild/linux-mips64el': 0.19.12 + '@esbuild/linux-ppc64': 0.19.12 + '@esbuild/linux-riscv64': 0.19.12 + '@esbuild/linux-s390x': 0.19.12 + '@esbuild/linux-x64': 0.19.12 + '@esbuild/netbsd-x64': 0.19.12 + '@esbuild/openbsd-x64': 0.19.12 + '@esbuild/sunos-x64': 0.19.12 + '@esbuild/win32-arm64': 0.19.12 + '@esbuild/win32-ia32': 0.19.12 + '@esbuild/win32-x64': 0.19.12 + dev: true + + /estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + dev: false + + /estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + dependencies: + '@types/estree': 1.0.5 + dev: true + + /execa@8.0.1: + resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} + engines: {node: '>=16.17'} + dependencies: + cross-spawn: 7.0.3 + get-stream: 8.0.1 + human-signals: 5.0.0 + is-stream: 3.0.0 + merge-stream: 2.0.0 + npm-run-path: 5.3.0 + onetime: 6.0.0 + signal-exit: 4.1.0 + strip-final-newline: 3.0.0 + dev: true + + /fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /get-func-name@2.0.2: + resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} + dev: true + + /get-stream@8.0.1: + resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} + engines: {node: '>=16'} + dev: true + + /human-signals@5.0.0: + resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} + engines: {node: '>=16.17.0'} + dev: true + + /is-stream@3.0.0: + resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dev: true + + /isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + dev: true + + /js-tokens@8.0.3: + resolution: {integrity: sha512-UfJMcSJc+SEXEl9lH/VLHSZbThQyLpw1vLO1Lb+j4RWDvG3N2f7yj3PVQA3cmkTBNldJ9eFnM+xEXxHIXrYiJw==} + dev: true + + /jsonc-parser@3.2.1: + resolution: {integrity: sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==} + dev: true + + /local-pkg@0.5.0: + resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==} + engines: {node: '>=14'} + dependencies: + mlly: 1.6.1 + pkg-types: 1.0.3 + dev: true + + /loupe@2.3.7: + resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==} + dependencies: + get-func-name: 2.0.2 + dev: true + + /magic-string@0.30.7: + resolution: {integrity: sha512-8vBuFF/I/+OSLRmdf2wwFCJCz+nSn0m6DPvGH1fS/KiQoSaR+sETbov0eIk9KhEKy8CYqIkIAnbohxT/4H0kuA==} + engines: {node: '>=12'} + dependencies: + '@jridgewell/sourcemap-codec': 1.4.15 + dev: true + + /merge-stream@2.0.0: + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} + dev: true + + /mimic-fn@4.0.0: + resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} + engines: {node: '>=12'} + dev: true + + /mlly@1.6.1: + resolution: {integrity: sha512-vLgaHvaeunuOXHSmEbZ9izxPx3USsk8KCQ8iC+aTlp5sKRSoZvwhHh5L9VbKSaVC6sJDqbyohIS76E2VmHIPAA==} + dependencies: + acorn: 8.11.3 + pathe: 1.1.2 + pkg-types: 1.0.3 + ufo: 1.4.0 + dev: true + + /ms@2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + dev: true + + /nanoid@3.3.7: + resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + dev: true + + /npm-run-path@5.3.0: + resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + path-key: 4.0.0 + dev: true + + /onetime@6.0.0: + resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} + engines: {node: '>=12'} + dependencies: + mimic-fn: 4.0.0 + dev: true + + /p-limit@5.0.0: + resolution: {integrity: sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==} + engines: {node: '>=18'} + dependencies: + yocto-queue: 1.0.0 + dev: true + + /path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + dev: true + + /path-key@4.0.0: + resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} + engines: {node: '>=12'} + dev: true + + /pathe@1.1.2: + resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} + dev: true + + /pathval@1.1.1: + resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} + dev: true + + /picocolors@1.0.0: + resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} + dev: true + + /picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + dev: false + + /pkg-types@1.0.3: + resolution: {integrity: sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==} + dependencies: + jsonc-parser: 3.2.1 + mlly: 1.6.1 + pathe: 1.1.2 + dev: true + + /postcss@8.4.35: + resolution: {integrity: sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.7 + picocolors: 1.0.0 + source-map-js: 1.0.2 + dev: true + + /pretty-format@29.7.0: + resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/schemas': 29.6.3 + ansi-styles: 5.2.0 + react-is: 18.2.0 + dev: true + + /react-is@18.2.0: + resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} + dev: true + + /rollup@4.12.0: + resolution: {integrity: sha512-wz66wn4t1OHIJw3+XU7mJJQV/2NAfw5OAk6G6Hoo3zcvz/XOfQ52Vgi+AN4Uxoxi0KBBwk2g8zPrTDA4btSB/Q==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + dependencies: + '@types/estree': 1.0.5 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.12.0 + '@rollup/rollup-android-arm64': 4.12.0 + '@rollup/rollup-darwin-arm64': 4.12.0 + '@rollup/rollup-darwin-x64': 4.12.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.12.0 + '@rollup/rollup-linux-arm64-gnu': 4.12.0 + '@rollup/rollup-linux-arm64-musl': 4.12.0 + '@rollup/rollup-linux-riscv64-gnu': 4.12.0 + '@rollup/rollup-linux-x64-gnu': 4.12.0 + '@rollup/rollup-linux-x64-musl': 4.12.0 + '@rollup/rollup-win32-arm64-msvc': 4.12.0 + '@rollup/rollup-win32-ia32-msvc': 4.12.0 + '@rollup/rollup-win32-x64-msvc': 4.12.0 + fsevents: 2.3.3 + dev: true + + /shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + dependencies: + shebang-regex: 3.0.0 + dev: true + + /shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + dev: true + + /siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + dev: true + + /signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + dev: true + + /source-map-js@1.0.2: + resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} + engines: {node: '>=0.10.0'} + dev: true + + /source-map@0.7.4: + resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==} + engines: {node: '>= 8'} + dev: false + + /stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + dev: true + + /std-env@3.7.0: + resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==} + dev: true + + /strip-final-newline@3.0.0: + resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} + engines: {node: '>=12'} + dev: true + + /strip-literal@2.0.0: + resolution: {integrity: sha512-f9vHgsCWBq2ugHAkGMiiYY+AYG0D/cbloKKg0nhaaaSNsujdGIpVXCNsrJpCKr5M0f4aI31mr13UjY6GAuXCKA==} + dependencies: + js-tokens: 8.0.3 + dev: true + + /tinybench@2.6.0: + resolution: {integrity: sha512-N8hW3PG/3aOoZAN5V/NSAEDz0ZixDSSt5b/a05iqtpgfLWMSVuCo7w0k2vVvEjdrIoeGqZzweX2WlyioNIHchA==} + dev: true + + /tinypool@0.8.2: + resolution: {integrity: sha512-SUszKYe5wgsxnNOVlBYO6IC+8VGWdVGZWAqUxp3UErNBtptZvWbwyUOyzNL59zigz2rCA92QiL3wvG+JDSdJdQ==} + engines: {node: '>=14.0.0'} + dev: true + + /tinyspy@2.2.1: + resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==} + engines: {node: '>=14.0.0'} + dev: true + + /type-detect@4.0.8: + resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} + engines: {node: '>=4'} + dev: true + + /ufo@1.4.0: + resolution: {integrity: sha512-Hhy+BhRBleFjpJ2vchUNN40qgkh0366FWJGqVLYBHev0vpHTrXSA0ryT+74UiW6KWsldNurQMKGqCm1M2zBciQ==} + dev: true + + /vite-node@1.3.1: + resolution: {integrity: sha512-azbRrqRxlWTJEVbzInZCTchx0X69M/XPTCz4H+TLvlTcR/xH/3hkRqhOakT41fMJCMzXTu4UvegkZiEoJAWvng==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + dependencies: + cac: 6.7.14 + debug: 4.3.4 + pathe: 1.1.2 + picocolors: 1.0.0 + vite: 5.1.4 + transitivePeerDependencies: + - '@types/node' + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser + dev: true + + /vite@5.1.4: + resolution: {integrity: sha512-n+MPqzq+d9nMVTKyewqw6kSt+R3CkvF9QAKY8obiQn8g1fwTscKxyfaYnC632HtBXAQGc1Yjomphwn1dtwGAHg==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + esbuild: 0.19.12 + postcss: 8.4.35 + rollup: 4.12.0 + optionalDependencies: + fsevents: 2.3.3 + dev: true + + /vitest@1.3.1: + resolution: {integrity: sha512-/1QJqXs8YbCrfv/GPQ05wAZf2eakUPLPa18vkJAKE7RXOKfVHqMZZ1WlTjiwl6Gcn65M5vpNUB6EFLnEdRdEXQ==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@types/node': ^18.0.0 || >=20.0.0 + '@vitest/browser': 1.3.1 + '@vitest/ui': 1.3.1 + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@types/node': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + dependencies: + '@vitest/expect': 1.3.1 + '@vitest/runner': 1.3.1 + '@vitest/snapshot': 1.3.1 + '@vitest/spy': 1.3.1 + '@vitest/utils': 1.3.1 + acorn-walk: 8.3.2 + chai: 4.4.1 + debug: 4.3.4 + execa: 8.0.1 + local-pkg: 0.5.0 + magic-string: 0.30.7 + pathe: 1.1.2 + picocolors: 1.0.0 + std-env: 3.7.0 + strip-literal: 2.0.0 + tinybench: 2.6.0 + tinypool: 0.8.2 + vite: 5.1.4 + vite-node: 1.3.1 + why-is-node-running: 2.2.2 + transitivePeerDependencies: + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser + dev: true + + /which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: true + + /why-is-node-running@2.2.2: + resolution: {integrity: sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==} + engines: {node: '>=8'} + hasBin: true + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + dev: true + + /yocto-queue@1.0.0: + resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==} + engines: {node: '>=12.20'} + dev: true diff --git a/core/test/src/fetchEmojis.js b/core/vite-test/src/fetchEmojis.js similarity index 100% rename from core/test/src/fetchEmojis.js rename to core/vite-test/src/fetchEmojis.js diff --git a/core/test/src/main.jsx b/core/vite-test/src/main.jsx similarity index 100% rename from core/test/src/main.jsx rename to core/vite-test/src/main.jsx diff --git a/core/test/src/style.css b/core/vite-test/src/style.css similarity index 100% rename from core/test/src/style.css rename to core/vite-test/src/style.css diff --git a/core/test/vite.config.js b/core/vite-test/vite.config.js similarity index 100% rename from core/test/vite.config.js rename to core/vite-test/vite.config.js diff --git a/package.json b/package.json index f2d4bec..52756c6 100644 --- a/package.json +++ b/package.json @@ -41,14 +41,14 @@ "test:runtime": "pnpm -F runtime test", "test:compiler": "pnpm -F compiler test", "test:test-utils": "pnpm -F test-utils test", - "test:plugin": "pnpm -F vite-plugin-azoth test", + "test:plugin": "pnpm -F vite-plugin test", "lint": "eslint ." }, "devDependencies": { "@vitest/browser": "^1.3.1", "eslint": "^8.57.0", "globals": "^13.24.0", - "happy-dom": "^13.5.3", + "happy-dom": "^13.6.0", "vite": "^5.1.4", "vite-plugin-inspect": "^0.8.3", "vitest": "^1.3.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index be1e711..9dace6e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,45 +4,28 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false -importers: - - .: - devDependencies: - '@vitest/browser': - specifier: ^1.3.1 - version: 1.3.1(vitest@1.3.1) - eslint: - specifier: ^8.57.0 - version: 8.57.0 - globals: - specifier: ^13.24.0 - version: 13.24.0 - happy-dom: - specifier: ^13.5.3 - version: 13.5.3 - vite: - specifier: ^5.1.4 - version: 5.1.4 - vite-plugin-inspect: - specifier: ^0.8.3 - version: 0.8.3(vite@5.1.4) - vitest: - specifier: ^1.3.1 - version: 1.3.1(@vitest/browser@1.3.1)(happy-dom@13.5.3) - - core/compiler: {} - - core/runtime: {} - - core/vite-plugin: {} - - docs: {} - - jsonic: {} - - sandbox: {} - - test-utils: {} +devDependencies: + '@vitest/browser': + specifier: ^1.3.1 + version: 1.3.1(vitest@1.3.1) + eslint: + specifier: ^8.57.0 + version: 8.57.0 + globals: + specifier: ^13.24.0 + version: 13.24.0 + happy-dom: + specifier: ^13.6.0 + version: 13.6.0 + vite: + specifier: ^5.1.4 + version: 5.1.4 + vite-plugin-inspect: + specifier: ^0.8.3 + version: 0.8.3(vite@5.1.4) + vitest: + specifier: ^1.3.1 + version: 1.3.1(@vitest/browser@1.3.1)(happy-dom@13.6.0) packages: @@ -503,7 +486,7 @@ packages: '@vitest/utils': 1.3.1 magic-string: 0.30.7 sirv: 2.0.4 - vitest: 1.3.1(@vitest/browser@1.3.1)(happy-dom@13.5.3) + vitest: 1.3.1(@vitest/browser@1.3.1)(happy-dom@13.6.0) dev: true /@vitest/expect@1.3.1: @@ -1002,8 +985,8 @@ packages: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} dev: true - /happy-dom@13.5.3: - resolution: {integrity: sha512-0JLyo8j0weBc+neK+KlHIOPlprVmWPwbYqwhCgKEQrC+twLFhz2PXul3Cnn1e9HjHIECN8EoTJ1ksRYansRdjQ==} + /happy-dom@13.6.0: + resolution: {integrity: sha512-4sVRENyxCSqAiOzAfPiohU56/D5bcLJmyT3WGoqjVX1IXq+ScTsrLR98RUODHz0nVvSLNW86CJzRXdPoSdw/yg==} engines: {node: '>=16.0.0'} dependencies: entities: 4.5.0 @@ -1636,7 +1619,7 @@ packages: fsevents: 2.3.3 dev: true - /vitest@1.3.1(@vitest/browser@1.3.1)(happy-dom@13.5.3): + /vitest@1.3.1(@vitest/browser@1.3.1)(happy-dom@13.6.0): resolution: {integrity: sha512-/1QJqXs8YbCrfv/GPQ05wAZf2eakUPLPa18vkJAKE7RXOKfVHqMZZ1WlTjiwl6Gcn65M5vpNUB6EFLnEdRdEXQ==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -1671,7 +1654,7 @@ packages: chai: 4.4.1 debug: 4.3.4 execa: 8.0.1 - happy-dom: 13.5.3 + happy-dom: 13.6.0 local-pkg: 0.5.0 magic-string: 0.30.7 pathe: 1.1.2 diff --git a/sandbox/package.json b/sandbox/package.json index 654a4d1..c77779e 100644 --- a/sandbox/package.json +++ b/sandbox/package.json @@ -14,7 +14,7 @@ "author": "", "license": "ISC", "dependencies": { - "maya": "workspace:^", + "azoth": "workspace:^", "npm": "^10.4.0", "page": "^1.11.6" }, diff --git a/sandbox/pnpm-lock.yaml b/sandbox/pnpm-lock.yaml index c24ee00..978345c 100644 --- a/sandbox/pnpm-lock.yaml +++ b/sandbox/pnpm-lock.yaml @@ -5,9 +5,9 @@ settings: excludeLinksFromLockfile: false dependencies: - maya: + azoth: specifier: workspace:^ - version: link:../aetheria-core/maya-runtime + version: link:.. npm: specifier: ^10.4.0 version: 10.4.0 @@ -21,7 +21,7 @@ devDependencies: version: 5.1.4 vite-plugin: specifier: workspace:^ - version: link:../aetheria-core/vite-plugin + version: link:../core/vite-plugin vite-plugin-inspect: specifier: ^0.8.3 version: 0.8.3(vite@5.1.4)