From c7ab5e6b6e2dafd73a21e241a38345bd880d4821 Mon Sep 17 00:00:00 2001 From: Cloyd Lau <253055734@qq.com> Date: Sun, 24 Sep 2023 13:19:57 +0800 Subject: [PATCH] types: fix error "Don't use `Object` as a type" --- package.json | 6 +- pnpm-lock.yaml | 203 +++++++++++++++++++++++++++++-------------------- src/install.ts | 2 +- 3 files changed, 126 insertions(+), 85 deletions(-) diff --git a/package.json b/package.json index c471d5d..c3857ad 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,9 @@ "license": "MIT", "repository": "https://github.com/cloydlau/json-editor-vue", "keywords": [ + "editor", "json", "jsoneditor", - "json-editor", "nuxt", "nuxtjs", "ssr", @@ -62,7 +62,7 @@ "vue-demi": "latest" }, "devDependencies": { - "@antfu/eslint-config": "0.42.1", + "@antfu/eslint-config": "latest", "@commitlint/cli": "latest", "@commitlint/config-conventional": "latest", "@types/cross-spawn": "latest", @@ -79,7 +79,7 @@ "cross-spawn": "latest", "eslint": "latest", "esno": "latest", - "happy-dom": "^11.2.0", + "happy-dom": "latest", "json-editor-vue": "workspace:*", "kolorist": "latest", "lint-staged": "latest", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8bff88f..c56ccfa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,9 +1,5 @@ lockfileVersion: '6.0' -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - importers: .: @@ -13,8 +9,8 @@ importers: version: 0.14.6(@vue/composition-api@1.7.2)(vue@3.3.4) devDependencies: '@antfu/eslint-config': - specifier: 0.42.1 - version: 0.42.1(eslint@8.49.0)(typescript@5.2.2) + specifier: latest + version: 0.42.0(eslint@8.49.0)(typescript@5.2.2) '@commitlint/cli': specifier: latest version: 17.7.1 @@ -29,7 +25,7 @@ importers: version: 4.17.9 '@types/node': specifier: latest - version: 20.6.3 + version: 20.6.1 '@types/prompts': specifier: latest version: 2.4.4 @@ -64,8 +60,8 @@ importers: specifier: latest version: 0.17.0 happy-dom: - specifier: ^11.2.0 - version: 11.2.0 + specifier: latest + version: 12.0.0 json-editor-vue: specifier: workspace:* version: 'link:' @@ -101,22 +97,22 @@ importers: version: 0.16.6 unplugin-vue-components: specifier: latest - version: 0.25.2(vue@3.3.4) + version: 0.24.1(vue@3.3.4) vanilla-jsoneditor: specifier: latest - version: 0.18.4 + version: 0.18.3 vite: specifier: latest - version: 4.4.9(@types/node@20.6.3) + version: 4.4.9(@types/node@20.6.1) vite-plugin-dts: specifier: latest - version: 3.5.3(@types/node@20.6.3)(typescript@5.2.2)(vite@4.4.9) + version: 3.5.3(@types/node@20.6.1)(typescript@5.2.2)(vite@4.4.9) vitepress: specifier: latest - version: 1.0.0-rc.14(@algolia/client-search@4.20.0)(@types/node@20.6.3)(@vue/composition-api@1.7.2)(search-insights@2.8.2) + version: 1.0.0-rc.13(@algolia/client-search@4.20.0)(@types/node@20.6.1)(@vue/composition-api@1.7.2)(search-insights@2.8.2) vitest: specifier: latest - version: 0.34.4(@vitest/ui@0.34.4)(happy-dom@11.2.0) + version: 0.34.4(@vitest/ui@0.34.4)(happy-dom@12.0.0) vue: specifier: latest version: 3.3.4 @@ -125,7 +121,7 @@ importers: version: 0.4.0(@vue/composition-api@1.7.2)(vue@3.3.4) zhlint: specifier: latest - version: 0.7.1(@vitest/ui@0.34.4)(happy-dom@11.2.0) + version: 0.7.1(@vitest/ui@0.34.4)(happy-dom@12.0.0) packages: @@ -276,13 +272,13 @@ packages: '@jridgewell/trace-mapping': 0.3.19 dev: true - /@antfu/eslint-config-basic@0.42.1(@typescript-eslint/eslint-plugin@6.7.2)(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-VYcWpDXAYytrYNH4LjNy42t0d/fq1dFOsnIs6DyqDKdvMAlXN7ScksFAgm/NBaTnBcaBrySCIG+cLQPk5wLTIg==} + /@antfu/eslint-config-basic@0.42.0(@typescript-eslint/eslint-plugin@6.7.2)(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-vPy2qYCc8G8nd7RuHV4z05RUhvFOwtulcBwzEYPQTbd4IqbqJ9UA8ISgp1qYcJvbz74eR3mUl8r4b0OzxngPkg==} peerDependencies: eslint: '>=7.4.0' dependencies: eslint: 8.49.0 - eslint-plugin-antfu: 0.42.1(eslint@8.49.0)(typescript@5.2.2) + eslint-plugin-antfu: 0.42.0(eslint@8.49.0)(typescript@5.2.2) eslint-plugin-eslint-comments: 3.2.0(eslint@8.49.0) eslint-plugin-html: 7.1.0 eslint-plugin-import: /eslint-plugin-i@2.28.1(@typescript-eslint/parser@6.7.2)(eslint@8.49.0) @@ -306,13 +302,13 @@ packages: - typescript dev: true - /@antfu/eslint-config-ts@0.42.1(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-gCz6sapcwZIsXu8LB9THR0r4hHKnNY7HZe4op0AwlK/lA5dO4sSLk68M9ig3CdaRkIW8LTC/sAKyQhX7md6++w==} + /@antfu/eslint-config-ts@0.42.0(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-XYnWaNYhGeSgXZLpgPUsn0qHaBCJoNJVPD712fwLEGTJ5a5QctT5v04TRERJmeqfk67EaVMlsuDveLx3fqVuyQ==} peerDependencies: eslint: '>=7.4.0' typescript: '>=3.9' dependencies: - '@antfu/eslint-config-basic': 0.42.1(@typescript-eslint/eslint-plugin@6.7.2)(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2) + '@antfu/eslint-config-basic': 0.42.0(@typescript-eslint/eslint-plugin@6.7.2)(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2) '@typescript-eslint/eslint-plugin': 6.7.2(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2) '@typescript-eslint/parser': 6.7.2(eslint@8.49.0)(typescript@5.2.2) eslint: 8.49.0 @@ -325,13 +321,13 @@ packages: - supports-color dev: true - /@antfu/eslint-config-vue@0.42.1(@typescript-eslint/eslint-plugin@6.7.2)(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-9F+AyDHw9exEcg1RNhDoTyHgsanBkKE2kZ8Atadn2O8EMbrFE383tETxO+VTv1Dr71z9qaVA2SVQjesPzctQVg==} + /@antfu/eslint-config-vue@0.42.0(@typescript-eslint/eslint-plugin@6.7.2)(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-QiD16D5bk99EImRc/z0mnO4TeP0cMMPIOMO8RamJ1ChD/lIluEZFjBTRykTesRyc7+YsdJYit4M/t6hu8YeSww==} peerDependencies: eslint: '>=7.4.0' dependencies: - '@antfu/eslint-config-basic': 0.42.1(@typescript-eslint/eslint-plugin@6.7.2)(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2) - '@antfu/eslint-config-ts': 0.42.1(eslint@8.49.0)(typescript@5.2.2) + '@antfu/eslint-config-basic': 0.42.0(@typescript-eslint/eslint-plugin@6.7.2)(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2) + '@antfu/eslint-config-ts': 0.42.0(eslint@8.49.0)(typescript@5.2.2) eslint: 8.49.0 eslint-plugin-vue: 9.17.0(eslint@8.49.0) local-pkg: 0.4.3 @@ -345,12 +341,12 @@ packages: - typescript dev: true - /@antfu/eslint-config@0.42.1(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-/U5PRCTPUI5khNMl4jBw1tLii7biJcrgD3yJEnxCQiTOjkfuVJeESSZieI5Qlu0zVXuudpq8R5VApCKjH4TpsA==} + /@antfu/eslint-config@0.42.0(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-RdTn+ggGF/mctHjnzLvImx/+RV18HwVTvC/jeHSF4bKBTA3eTftq+FrxWuCpmrEQRIb+J/tn2gmNpzizUo1PLQ==} peerDependencies: eslint: '>=7.4.0' dependencies: - '@antfu/eslint-config-vue': 0.42.1(@typescript-eslint/eslint-plugin@6.7.2)(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2) + '@antfu/eslint-config-vue': 0.42.0(@typescript-eslint/eslint-plugin@6.7.2)(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2) '@typescript-eslint/eslint-plugin': 6.7.2(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2) '@typescript-eslint/parser': 6.7.2(eslint@8.49.0)(typescript@5.2.2) eslint: 8.49.0 @@ -511,7 +507,7 @@ packages: lodash.merge: 4.6.2 lodash.uniq: 4.5.0 resolve-from: 5.0.0 - ts-node: 10.9.1(@types/node@20.6.3)(typescript@5.2.2) + ts-node: 10.9.1(@types/node@20.6.1)(typescript@5.2.2) typescript: 5.2.2 transitivePeerDependencies: - '@swc/core' @@ -995,24 +991,24 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: true - /@microsoft/api-extractor-model@7.28.0(@types/node@20.6.3): + /@microsoft/api-extractor-model@7.28.0(@types/node@20.6.1): resolution: {integrity: sha512-QIMtUVm1tqiKG+M6ciFgRShcDoovyltaeg+CbyOnyr7SMrp6gg0ojK5/nToMqR9kAvsTS4QVgW4Twl50EoAjcw==} dependencies: '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 3.60.0(@types/node@20.6.3) + '@rushstack/node-core-library': 3.60.0(@types/node@20.6.1) transitivePeerDependencies: - '@types/node' dev: true - /@microsoft/api-extractor@7.37.0(@types/node@20.6.3): + /@microsoft/api-extractor@7.37.0(@types/node@20.6.1): resolution: {integrity: sha512-df/wffWpDhYRw7kzdxeHGsCpim+dC8aFiZlsJb4uFvVPWhBZpDzOhQxSUTFx3Df1ORY+/JjuPR3fDE9Hq+PHzQ==} hasBin: true dependencies: - '@microsoft/api-extractor-model': 7.28.0(@types/node@20.6.3) + '@microsoft/api-extractor-model': 7.28.0(@types/node@20.6.1) '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 3.60.0(@types/node@20.6.3) + '@rushstack/node-core-library': 3.60.0(@types/node@20.6.1) '@rushstack/rig-package': 0.5.0 '@rushstack/ts-command-line': 4.16.0 colors: 1.2.5 @@ -1081,7 +1077,7 @@ packages: picomatch: 2.3.1 dev: true - /@rushstack/node-core-library@3.60.0(@types/node@20.6.3): + /@rushstack/node-core-library@3.60.0(@types/node@20.6.1): resolution: {integrity: sha512-PcyrqhILvzU+65wMFybQ2VeGNnU5JzhDq2OvUi3j6jPUxyllM7b2hrRUwCuVaYboewYzIbpzXFzgxe2K7ii1nw==} peerDependencies: '@types/node': '*' @@ -1089,7 +1085,7 @@ packages: '@types/node': optional: true dependencies: - '@types/node': 20.6.3 + '@types/node': 20.6.1 colors: 1.2.5 fs-extra: 7.0.1 import-lazy: 4.0.0 @@ -1152,7 +1148,7 @@ packages: /@types/cross-spawn@6.0.3: resolution: {integrity: sha512-BDAkU7WHHRHnvBf5z89lcvACsvkz/n7Tv+HyD/uW76O29HoH1Tk/W6iQrepaZVbisvlEek4ygwT8IW7ow9XLAA==} dependencies: - '@types/node': 20.6.3 + '@types/node': 20.6.4 dev: true /@types/estree@1.0.1: @@ -1187,8 +1183,12 @@ packages: resolution: {integrity: sha512-bUBrPjEry2QUTsnuEjzjbS7voGWCc30W0qzgMf90GPeDGFRakvrz47ju+oqDAKCXLUCe39u57/ORMl/O/04/9g==} dev: true - /@types/node@20.6.3: - resolution: {integrity: sha512-HksnYH4Ljr4VQgEy2lTStbCKv/P590tmPe5HqOnv9Gprffgv5WXAY+Y5Gqniu0GGqeTCUdBnzC3QSrzPkBkAMA==} + /@types/node@20.6.1: + resolution: {integrity: sha512-4LcJvuXQlv4lTHnxwyHQZ3uR9Zw2j7m1C9DfuwoTFQQP4Pmu04O6IfLYgMmHoOCt0nosItLLZAH+sOrRE0Bo8g==} + dev: true + + /@types/node@20.6.4: + resolution: {integrity: sha512-nU6d9MPY0NBUMiE/nXd2IIoC4OLvsLpwAjheoAeuzgvDZA1Cb10QYg+91AF6zQiKWRN5i1m07x6sMe0niBznoQ==} dev: true /@types/normalize-package-data@2.4.1: @@ -1198,7 +1198,7 @@ packages: /@types/prompts@2.4.4: resolution: {integrity: sha512-p5N9uoTH76lLvSAaYSZtBCdEXzpOOufsRjnhjVSrZGXikVGHX9+cc9ERtHRV4hvBKHyZb1bg4K+56Bd2TqUn4A==} dependencies: - '@types/node': 20.6.3 + '@types/node': 20.6.4 kleur: 3.0.3 dev: true @@ -1414,7 +1414,7 @@ packages: vite: ^4.0.0 vue: ^3.2.25 dependencies: - vite: 4.4.9(@types/node@20.6.3) + vite: 4.4.9(@types/node@20.6.1) vue: 3.3.4 dev: true @@ -1460,7 +1460,7 @@ packages: pathe: 1.1.1 picocolors: 1.0.0 sirv: 2.0.3 - vitest: 0.34.4(@vitest/ui@0.34.4)(happy-dom@11.2.0) + vitest: 0.34.4(@vitest/ui@0.34.4)(happy-dom@12.0.0) dev: true /@vitest/utils@0.34.4: @@ -2341,7 +2341,7 @@ packages: dependencies: '@types/node': 20.4.7 cosmiconfig: 8.3.6(typescript@5.2.2) - ts-node: 10.9.1(@types/node@20.6.3)(typescript@5.2.2) + ts-node: 10.9.1(@types/node@20.6.1)(typescript@5.2.2) typescript: 5.2.2 dev: true @@ -2955,8 +2955,8 @@ packages: - supports-color dev: true - /eslint-plugin-antfu@0.42.1(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-uW4Z/j3RSzwloR0Ym4f1rY/ZLrodSC7kd6XTLQccYdhNBgNswTzqPyfPtIeFV0XnlLp/B6AeXfOWcK4c5ZyFkg==} + /eslint-plugin-antfu@0.42.0(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-Oztd2iw0SiwqCLyy9vygQycITIpH4VTtglUKbPvr6bMs5DfEZE8qpFihcHVyUjAVKJAjzMl+Pkz1hm+HVwT+2g==} dependencies: '@typescript-eslint/utils': 6.7.2(eslint@8.49.0)(typescript@5.2.2) transitivePeerDependencies: @@ -3611,8 +3611,8 @@ packages: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} dev: true - /happy-dom@11.2.0: - resolution: {integrity: sha512-z4PshcYIIH6SkymSNRcDFwYUJOENe+FOQDx5BbHgg/wQUgxF5p9I9/BN45Jff34bbhXV8yJgkC5N99eyOzXK3w==} + /happy-dom@12.0.0: + resolution: {integrity: sha512-F4VAYlTNIWNWR5MXlHRioMlBjThHsJoXKgJOye9q6rUocioRZKTiL0OYHgi3zhnZtComaTKjHwh5hlLD3HpGCA==} dependencies: css.escape: 1.5.1 entities: 4.5.0 @@ -4398,6 +4398,13 @@ packages: brace-expansion: 2.0.1 dev: true + /minimatch@7.4.6: + resolution: {integrity: sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==} + engines: {node: '>=10'} + dependencies: + brace-expansion: 2.0.1 + dev: true + /minimatch@9.0.1: resolution: {integrity: sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==} engines: {node: '>=16 || 14 >=14.17'} @@ -5514,7 +5521,6 @@ packages: /trim@0.0.1: resolution: {integrity: sha512-YzQV+TZg4AxpKxaTHK3c3D+kRDCGVEE7LemdlQZoQXn0iennk10RsIoY6ikzAqJTc9Xjl9C1/waHom/J86ziAQ==} - deprecated: Use String.prototype.trim() instead dev: true /trough@1.0.5: @@ -5530,7 +5536,7 @@ packages: typescript: 5.2.2 dev: true - /ts-node@10.9.1(@types/node@20.6.3)(typescript@5.2.2): + /ts-node@10.9.1(@types/node@20.6.1)(typescript@5.2.2): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -5549,7 +5555,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.6.3 + '@types/node': 20.6.1 acorn: 8.10.0 acorn-walk: 8.2.0 arg: 4.1.3 @@ -5745,8 +5751,8 @@ packages: - rollup dev: true - /unplugin-vue-components@0.25.2(vue@3.3.4): - resolution: {integrity: sha512-OVmLFqILH6w+eM8fyt/d/eoJT9A6WO51NZLf1vC5c1FZ4rmq2bbGxTy8WP2Jm7xwFdukaIdv819+UI7RClPyCA==} + /unplugin-vue-components@0.24.1(vue@3.3.4): + resolution: {integrity: sha512-T3A8HkZoIE1Cja95xNqolwza0yD5IVlgZZ1PVAGvVCx8xthmjsv38xWRCtHtwl+rvZyL9uif42SRkDGw9aCfMA==} engines: {node: '>=14'} peerDependencies: '@babel/parser': ^7.15.8 @@ -5765,7 +5771,7 @@ packages: fast-glob: 3.3.1 local-pkg: 0.4.3 magic-string: 0.30.3 - minimatch: 9.0.3 + minimatch: 7.4.6 resolve: 1.22.6 unplugin: 1.5.0 vue: 3.3.4 @@ -5838,8 +5844,8 @@ packages: engines: {node: '>= 0.10'} dev: true - /vanilla-jsoneditor@0.18.4: - resolution: {integrity: sha512-KakTd2zF2jaQOxYbBgWVwPPCkvGDa68MTxSeTF0uUWwOR5wFjHPqDEix7VRbnrSh1DADdafIN/wn2MWSr3MNFg==} + /vanilla-jsoneditor@0.18.3: + resolution: {integrity: sha512-T3noS1HVVLEhuNgVmk9/FJFhxfv9TO736UBPuj9laMqq9ywinb09VDF5isQmY5hB7a6erg2GdaUrRUEcLmZrzw==} dependencies: '@fortawesome/free-solid-svg-icons': 6.4.2 ajv: 8.12.0 @@ -5867,7 +5873,7 @@ packages: vfile-message: 2.0.4 dev: true - /vite-node@0.34.4(@types/node@20.6.3): + /vite-node@0.34.4(@types/node@20.6.4): resolution: {integrity: sha512-ho8HtiLc+nsmbwZMw8SlghESEE3KxJNp04F/jPUCLVvaURwt0d+r9LxEqCX5hvrrOQ0GSyxbYr5ZfRYhQ0yVKQ==} engines: {node: '>=v14.18.0'} hasBin: true @@ -5877,7 +5883,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.4.9(@types/node@20.6.3) + vite: 4.4.9(@types/node@20.6.4) transitivePeerDependencies: - '@types/node' - less @@ -5889,7 +5895,7 @@ packages: - terser dev: true - /vite-plugin-dts@3.5.3(@types/node@20.6.3)(typescript@5.2.2)(vite@4.4.9): + /vite-plugin-dts@3.5.3(@types/node@20.6.1)(typescript@5.2.2)(vite@4.4.9): resolution: {integrity: sha512-h94j/+SR1PhLR9jnEtcjZILagE2QZBAV8V1y3T2Ujcet1VI0Et4dZSU1W8fbnp6obB7B3/b8hArqdi2/9HuH+w==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -5899,13 +5905,13 @@ packages: vite: optional: true dependencies: - '@microsoft/api-extractor': 7.37.0(@types/node@20.6.3) + '@microsoft/api-extractor': 7.37.0(@types/node@20.6.1) '@rollup/pluginutils': 5.0.4 '@vue/language-core': 1.8.11(typescript@5.2.2) debug: 4.3.4 kolorist: 1.8.0 typescript: 5.2.2 - vite: 4.4.9(@types/node@20.6.3) + vite: 4.4.9(@types/node@20.6.1) vue-tsc: 1.8.11(typescript@5.2.2) transitivePeerDependencies: - '@types/node' @@ -5913,7 +5919,7 @@ packages: - supports-color dev: true - /vite@3.2.7(@types/node@20.6.3): + /vite@3.2.7(@types/node@20.6.4): resolution: {integrity: sha512-29pdXjk49xAP0QBr0xXqu2s5jiQIXNvE/xwd0vUizYT2Hzqe4BksNNoWllFVXJf4eLZ+UlVQmXfB4lWrc+t18g==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -5938,7 +5944,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.6.3 + '@types/node': 20.6.4 esbuild: 0.15.18 postcss: 8.4.30 resolve: 1.22.6 @@ -5947,7 +5953,7 @@ packages: fsevents: 2.3.3 dev: true - /vite@4.4.9(@types/node@20.6.3): + /vite@4.4.9(@types/node@20.6.1): resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -5975,7 +5981,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.6.3 + '@types/node': 20.6.1 esbuild: 0.18.20 postcss: 8.4.30 rollup: 3.29.2 @@ -5983,14 +5989,45 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-rc.14(@algolia/client-search@4.20.0)(@types/node@20.6.3)(@vue/composition-api@1.7.2)(search-insights@2.8.2): - resolution: {integrity: sha512-yChIeXOAcNvVnSVjhziH1vte0uhKb00PuZf7KdIMfx3ixTMAz73Nn+6gREvCv0SdH+anteGUKz5eljv0ygcgGQ==} + /vite@4.4.9(@types/node@20.6.4): + resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} + engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: - markdown-it-mathjax3: ^4.3.2 + '@types/node': '>= 14' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 peerDependenciesMeta: - markdown-it-mathjax3: + '@types/node': optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + '@types/node': 20.6.4 + esbuild: 0.18.20 + postcss: 8.4.30 + rollup: 3.29.2 + optionalDependencies: + fsevents: 2.3.3 + dev: true + + /vitepress@1.0.0-rc.13(@algolia/client-search@4.20.0)(@types/node@20.6.1)(@vue/composition-api@1.7.2)(search-insights@2.8.2): + resolution: {integrity: sha512-TnVydQOZE38rtXu9gHCb7EGdN03jTcmYkDdhCqox6+pfKYgiyfm1qk2Uy8BZatnM9wXpa64f+T5p30R8P/9Z+A==} + hasBin: true dependencies: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.20.0)(search-insights@2.8.2) @@ -6001,7 +6038,7 @@ packages: mark.js: 8.11.1 minisearch: 6.1.0 shiki: 0.14.4 - vite: 4.4.9(@types/node@20.6.3) + vite: 4.4.9(@types/node@20.6.1) vue: 3.3.4 transitivePeerDependencies: - '@algolia/client-search' @@ -6030,7 +6067,7 @@ packages: - universal-cookie dev: true - /vitest@0.21.1(@vitest/ui@0.34.4)(happy-dom@11.2.0): + /vitest@0.21.1(@vitest/ui@0.34.4)(happy-dom@12.0.0): resolution: {integrity: sha512-WBIxuFmIDPuK47GO6Lu9eNeRMqHj/FWL3dk73OHH3eyPPWPiu+UB3QHLkLK2PEggCqJW4FaWoWg8R68S7p9+9Q==} engines: {node: '>=v14.16.0'} hasBin: true @@ -6057,15 +6094,15 @@ packages: dependencies: '@types/chai': 4.3.6 '@types/chai-subset': 1.3.3 - '@types/node': 20.6.3 + '@types/node': 20.6.4 '@vitest/ui': 0.34.4(vitest@0.34.4) chai: 4.3.8 debug: 4.3.4 - happy-dom: 11.2.0 + happy-dom: 12.0.0 local-pkg: 0.4.3 tinypool: 0.2.4 tinyspy: 1.1.1 - vite: 3.2.7(@types/node@20.6.3) + vite: 3.2.7(@types/node@20.6.4) transitivePeerDependencies: - less - sass @@ -6075,7 +6112,7 @@ packages: - terser dev: true - /vitest@0.34.4(@vitest/ui@0.34.4)(happy-dom@11.2.0): + /vitest@0.34.4(@vitest/ui@0.34.4)(happy-dom@12.0.0): resolution: {integrity: sha512-SE/laOsB6995QlbSE6BtkpXDeVNLJc1u2LHRG/OpnN4RsRzM3GQm4nm3PQCK5OBtrsUqnhzLdnT7se3aeNGdlw==} engines: {node: '>=v14.18.0'} hasBin: true @@ -6108,7 +6145,7 @@ packages: dependencies: '@types/chai': 4.3.6 '@types/chai-subset': 1.3.3 - '@types/node': 20.6.3 + '@types/node': 20.6.4 '@vitest/expect': 0.34.4 '@vitest/runner': 0.34.4 '@vitest/snapshot': 0.34.4 @@ -6120,7 +6157,7 @@ packages: cac: 6.7.14 chai: 4.3.8 debug: 4.3.4 - happy-dom: 11.2.0 + happy-dom: 12.0.0 local-pkg: 0.4.3 magic-string: 0.30.3 pathe: 1.1.1 @@ -6129,8 +6166,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.4.9(@types/node@20.6.3) - vite-node: 0.34.4(@types/node@20.6.3) + vite: 4.4.9(@types/node@20.6.4) + vite-node: 0.34.4(@types/node@20.6.4) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -6415,7 +6452,7 @@ packages: commander: 9.5.0 dev: true - /zhlint@0.7.1(@vitest/ui@0.34.4)(happy-dom@11.2.0): + /zhlint@0.7.1(@vitest/ui@0.34.4)(happy-dom@12.0.0): resolution: {integrity: sha512-FwwBm1JKyvIBm16exTqyG5gfnvp1fCKn9hIkjXj3cmbCn3aWE6FQaPTkmJfrLR0JNP1CIZjBDdD5Wkbts2r8PA==} hasBin: true dependencies: @@ -6426,7 +6463,7 @@ packages: remark-frontmatter: 1.3.3 remark-parse: 7.0.2 unified: 8.4.2 - vitest: 0.21.1(@vitest/ui@0.34.4)(happy-dom@11.2.0) + vitest: 0.21.1(@vitest/ui@0.34.4)(happy-dom@12.0.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/browser' @@ -6441,3 +6478,7 @@ packages: - supports-color - terser dev: true + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false diff --git a/src/install.ts b/src/install.ts index 51e4e2b..8296207 100644 --- a/src/install.ts +++ b/src/install.ts @@ -15,7 +15,7 @@ function withInstall(sfc: typeof Component): SFCWithInstall { const { props, attrs } = resolveConfig(options, Component.props) Object.assign(globalProps, props) Object.assign(globalAttrs, attrs) - app.component(sfc.name as string, sfc as Object) + app.component(sfc.name as string, sfc as object) } return sfc as SFCWithInstall