fixed dynamic loader bug

This commit is contained in:
Samuel Andert 2023-07-29 13:21:53 +02:00
parent bdc3445a67
commit 414705e0b4
6 changed files with 157 additions and 157 deletions

View File

@ -16,44 +16,44 @@
},
"devDependencies": {
"@iconify/svelte": "^3.1.4",
"@playwright/test": "^1.28.1",
"@playwright/test": "^1.36.2",
"@skeletonlabs/skeleton": "^1.10.0",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.20.4",
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/kit": "^1.22.3",
"@tailwindcss/forms": "^0.5.4",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"autoprefixer": "^10.4.14",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.30.0",
"postcss": "^8.4.26",
"prettier": "^2.8.0",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.9.0",
"eslint-plugin-svelte": "^2.32.4",
"postcss": "^8.4.27",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"svelte": "^4.0.5",
"svelte-check": "^3.4.3",
"svelte": "^4.1.1",
"svelte-check": "^3.4.6",
"sveltekit-superforms": "^1.5.0",
"tailwindcss": "^3.3.3",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.4.2",
"vitest": "^0.32.2",
"tslib": "^2.6.1",
"typescript": "^5.1.6",
"vite": "^4.4.7",
"vitest": "^0.32.4",
"zod": "^3.21.4"
},
"type": "module",
"dependencies": {
"@lit-protocol/auth-helpers": "^2.2.45",
"@lit-protocol/constants": "^2.2.41",
"@lit-protocol/lit-auth-client": "^2.2.45",
"@lit-protocol/lit-node-client": "^2.2.41",
"@lit-protocol/pkp-client": "^2.2.41",
"@lit-protocol/pkp-ethers": "^2.2.41",
"@lit-protocol/pkp-walletconnect": "^2.2.41",
"@lit-protocol/types": "^2.2.41",
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@lit-protocol/auth-helpers": "^2.2.47",
"@lit-protocol/constants": "^2.2.47",
"@lit-protocol/lit-auth-client": "^2.2.47",
"@lit-protocol/lit-node-client": "^2.2.47",
"@lit-protocol/pkp-client": "^2.2.47",
"@lit-protocol/pkp-ethers": "^2.2.47",
"@lit-protocol/pkp-walletconnect": "^2.2.47",
"@lit-protocol/types": "^2.2.47",
"@sveltejs/vite-plugin-svelte": "^2.4.3",
"@wagmi/core": "^1.3.8",
"@xstate/svelte": "^2.1.0",
"viem": "^1.3.0",
"viem": "^1.4.2",
"xstate": "^4.38.2"
}
}

View File

@ -2,41 +2,41 @@ lockfileVersion: '6.0'
dependencies:
'@lit-protocol/auth-helpers':
specifier: ^2.2.45
specifier: ^2.2.47
version: 2.2.47(ethers@5.7.2)
'@lit-protocol/constants':
specifier: ^2.2.41
specifier: ^2.2.47
version: 2.2.47
'@lit-protocol/lit-auth-client':
specifier: ^2.2.45
specifier: ^2.2.47
version: 2.2.47(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(react@18.2.0)
'@lit-protocol/lit-node-client':
specifier: ^2.2.41
specifier: ^2.2.47
version: 2.2.47(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(react@18.2.0)
'@lit-protocol/pkp-client':
specifier: ^2.2.41
specifier: ^2.2.47
version: 2.2.47(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(react@18.2.0)
'@lit-protocol/pkp-ethers':
specifier: ^2.2.41
specifier: ^2.2.47
version: 2.2.47(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(react@18.2.0)
'@lit-protocol/pkp-walletconnect':
specifier: ^2.2.41
specifier: ^2.2.47
version: 2.2.47(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(react@18.2.0)
'@lit-protocol/types':
specifier: ^2.2.41
specifier: ^2.2.47
version: 2.2.47
'@sveltejs/vite-plugin-svelte':
specifier: ^2.4.2
specifier: ^2.4.3
version: 2.4.3(svelte@4.1.1)(vite@4.4.7)
'@wagmi/core':
specifier: ^1.3.8
version: 1.3.8(react@18.2.0)(typescript@5.1.6)(viem@1.4.1)(zod@3.21.4)
version: 1.3.8(react@18.2.0)(typescript@5.1.6)(viem@1.4.2)(zod@3.21.4)
'@xstate/svelte':
specifier: ^2.1.0
version: 2.1.0(svelte@4.1.1)(xstate@4.38.2)
viem:
specifier: ^1.3.0
version: 1.4.1(typescript@5.1.6)(zod@3.21.4)
specifier: ^1.4.2
version: 1.4.2(typescript@5.1.6)(zod@3.21.4)
xstate:
specifier: ^4.38.2
version: 4.38.2
@ -46,52 +46,52 @@ devDependencies:
specifier: ^3.1.4
version: 3.1.4(svelte@4.1.1)
'@playwright/test':
specifier: ^1.28.1
specifier: ^1.36.2
version: 1.36.2
'@skeletonlabs/skeleton':
specifier: ^1.10.0
version: 1.10.0(svelte@4.1.1)
'@sveltejs/adapter-auto':
specifier: ^2.0.0
specifier: ^2.1.0
version: 2.1.0(@sveltejs/kit@1.22.3)
'@sveltejs/kit':
specifier: ^1.20.4
specifier: ^1.22.3
version: 1.22.3(svelte@4.1.1)(vite@4.4.7)
'@tailwindcss/forms':
specifier: ^0.5.4
version: 0.5.4(tailwindcss@3.3.3)
'@typescript-eslint/eslint-plugin':
specifier: ^5.45.0
version: 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.45.0)(typescript@5.1.6)
specifier: ^5.62.0
version: 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.46.0)(typescript@5.1.6)
'@typescript-eslint/parser':
specifier: ^5.45.0
version: 5.62.0(eslint@8.45.0)(typescript@5.1.6)
specifier: ^5.62.0
version: 5.62.0(eslint@8.46.0)(typescript@5.1.6)
autoprefixer:
specifier: ^10.4.14
version: 10.4.14(postcss@8.4.27)
eslint:
specifier: ^8.28.0
version: 8.45.0
specifier: ^8.46.0
version: 8.46.0
eslint-config-prettier:
specifier: ^8.5.0
version: 8.8.0(eslint@8.45.0)
specifier: ^8.9.0
version: 8.9.0(eslint@8.46.0)
eslint-plugin-svelte:
specifier: ^2.30.0
version: 2.32.4(eslint@8.45.0)(svelte@4.1.1)
specifier: ^2.32.4
version: 2.32.4(eslint@8.46.0)(svelte@4.1.1)
postcss:
specifier: ^8.4.26
specifier: ^8.4.27
version: 8.4.27
prettier:
specifier: ^2.8.0
specifier: ^2.8.8
version: 2.8.8
prettier-plugin-svelte:
specifier: ^2.10.1
version: 2.10.1(prettier@2.8.8)(svelte@4.1.1)
svelte:
specifier: ^4.0.5
specifier: ^4.1.1
version: 4.1.1
svelte-check:
specifier: ^3.4.3
specifier: ^3.4.6
version: 3.4.6(postcss@8.4.27)(svelte@4.1.1)
sveltekit-superforms:
specifier: ^1.5.0
@ -100,16 +100,16 @@ devDependencies:
specifier: ^3.3.3
version: 3.3.3
tslib:
specifier: ^2.4.1
specifier: ^2.6.1
version: 2.6.1
typescript:
specifier: ^5.0.0
specifier: ^5.1.6
version: 5.1.6
vite:
specifier: ^4.4.2
specifier: ^4.4.7
version: 4.4.7(@types/node@20.4.5)
vitest:
specifier: ^0.32.2
specifier: ^0.32.4
version: 0.32.4
zod:
specifier: ^3.21.4
@ -154,7 +154,7 @@ packages:
engines: {node: '>= 10.0.0'}
dependencies:
'@metamask/safe-event-emitter': 2.0.0
'@solana/web3.js': 1.78.0
'@solana/web3.js': 1.78.1
bind-decorator: 1.0.11
bn.js: 5.2.1
buffer: 6.0.3
@ -476,14 +476,14 @@ packages:
requiresBuild: true
optional: true
/@eslint-community/eslint-utils@4.4.0(eslint@8.45.0):
/@eslint-community/eslint-utils@4.4.0(eslint@8.46.0):
resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
dependencies:
eslint: 8.45.0
eslint-visitor-keys: 3.4.1
eslint: 8.46.0
eslint-visitor-keys: 3.4.2
dev: true
/@eslint-community/regexpp@4.6.2:
@ -491,8 +491,8 @@ packages:
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
dev: true
/@eslint/eslintrc@2.1.0:
resolution: {integrity: sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==}
/@eslint/eslintrc@2.1.1:
resolution: {integrity: sha512-9t7ZA7NGGK8ckelF0PQCfcxIUzs1Md5rrO6U/c+FIQNanea5UZC0wqKXH4vHBccmu4ZJgZ2idtPeW7+Q2npOEA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dependencies:
ajv: 6.12.6
@ -508,8 +508,8 @@ packages:
- supports-color
dev: true
/@eslint/js@8.44.0:
resolution: {integrity: sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==}
/@eslint/js@8.46.0:
resolution: {integrity: sha512-a8TLtmPi8xzPkCbp/OGFUo5yhRkHM2Ko9kOWP4znJr0WAhWyThaw3PnwX4vOTWOAMsV2uRt32PPDcEz63esSaA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
@ -1161,8 +1161,8 @@ packages:
'@lit-protocol/nacl': 2.2.47
'@lit-protocol/types': 2.2.47
'@lit-protocol/uint8arrays': 2.2.47
'@simplewebauthn/browser': 7.2.0
'@simplewebauthn/typescript-types': 7.0.0
'@simplewebauthn/browser': 7.4.0
'@simplewebauthn/typescript-types': 7.4.0
'@walletconnect/ethereum-provider': 2.7.0(@web3modal/standalone@2.4.3)
'@web3modal/standalone': 2.4.3(react@18.2.0)
base64url: 3.0.1
@ -1876,8 +1876,8 @@ packages:
/@safe-global/safe-apps-sdk@8.0.0(typescript@5.1.6)(zod@3.21.4):
resolution: {integrity: sha512-gYw0ki/EAuV1oSyMxpqandHjnthZjYYy+YWpTAzf8BqfXM3ItcZLpjxfg+3+mXW8HIO+3jw6T9iiqEXsqHaMMw==}
dependencies:
'@safe-global/safe-gateway-typescript-sdk': 3.7.3
viem: 1.4.1(typescript@5.1.6)(zod@3.21.4)
'@safe-global/safe-gateway-typescript-sdk': 3.8.0
viem: 1.4.2(typescript@5.1.6)(zod@3.21.4)
transitivePeerDependencies:
- bufferutil
- encoding
@ -1886,8 +1886,8 @@ packages:
- zod
dev: false
/@safe-global/safe-gateway-typescript-sdk@3.7.3:
resolution: {integrity: sha512-O6JCgXNZWG0Vv8FnOEjKfcbsP0WxGvoPJk5ufqUrsyBlHup16It6oaLnn+25nXFLBZOHI1bz8429JlqAc2t2hg==}
/@safe-global/safe-gateway-typescript-sdk@3.8.0:
resolution: {integrity: sha512-CiGWIHgIaOdICpDxp05Jw3OPslWTu8AnL0PhrCT1xZgIO86NlMMLzkGbeycJ4FHpTjA999O791Oxp4bZPIjgHA==}
dependencies:
cross-fetch: 3.1.8
transitivePeerDependencies:
@ -1943,14 +1943,14 @@ packages:
'@scure/base': 1.1.1
dev: false
/@simplewebauthn/browser@7.2.0:
resolution: {integrity: sha512-HHIvRPpqKy0UV/BsGAmx4rQRZuZTUFYLLH65FwpSOslqHruiHx3Ql/bq7A75bjWuJ296a+4BIAq3+SPaII01TQ==}
/@simplewebauthn/browser@7.4.0:
resolution: {integrity: sha512-qqCZ99lFWjtyza8NCtCpRm3GU5u8/QFeBfMgW5+U/E8Qyc4lvUcuJ8JTbrhksVQLZWSY1c/6Xw11QZ5e+D1hNw==}
dependencies:
'@simplewebauthn/typescript-types': 7.0.0
'@simplewebauthn/typescript-types': 7.4.0
dev: false
/@simplewebauthn/typescript-types@7.0.0:
resolution: {integrity: sha512-bV+xACCFTsrLR/23ozHO06ZllHZaxC8LlI5YCo79GvU2BrN+rePDU2yXwZIYndNWcMQwRdndRdAhpafOh9AC/g==}
/@simplewebauthn/typescript-types@7.4.0:
resolution: {integrity: sha512-8/ZjHeUPe210Bt5oyaOIGx4h8lHdsQs19BiOT44gi/jBEgK7uBGA0Fy7NRsyh777al3m6WM0mBf0UR7xd4R7WQ==}
dev: false
/@sinclair/typebox@0.27.8:
@ -1973,8 +1973,8 @@ packages:
buffer: 6.0.3
dev: false
/@solana/web3.js@1.78.0:
resolution: {integrity: sha512-CSjCjo+RELJ5puoZALfznN5EF0YvL1V8NQrQYovsdjE1lCV6SqbKAIZD0+9LlqCBoa1ibuUaR7G2SooYzvzmug==}
/@solana/web3.js@1.78.1:
resolution: {integrity: sha512-r0WZAYwCfVElfONP/dmWkEfw6wufL+u7lWojEsNecn9PyIIYq+r4eb0h2MRiJ3xkctvTN76G0T6FTGcTJhXh3Q==}
dependencies:
'@babel/runtime': 7.22.6
'@noble/curves': 1.1.0
@ -2153,7 +2153,7 @@ packages:
devalue: 4.3.2
esm-env: 1.0.0
kleur: 4.1.5
magic-string: 0.30.1
magic-string: 0.30.2
mime: 3.0.0
sade: 1.8.1
set-cookie-parser: 2.6.0
@ -2191,7 +2191,7 @@ packages:
debug: 4.3.4
deepmerge: 4.3.1
kleur: 4.1.5
magic-string: 0.30.1
magic-string: 0.30.2
svelte: 4.1.1
svelte-hmr: 0.15.2(svelte@4.1.1)
vite: 4.4.7(@types/node@20.4.5)
@ -2278,7 +2278,7 @@ packages:
'@types/node': 12.20.55
dev: false
/@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.45.0)(typescript@5.1.6):
/@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.46.0)(typescript@5.1.6):
resolution: {integrity: sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
@ -2290,12 +2290,12 @@ packages:
optional: true
dependencies:
'@eslint-community/regexpp': 4.6.2
'@typescript-eslint/parser': 5.62.0(eslint@8.45.0)(typescript@5.1.6)
'@typescript-eslint/parser': 5.62.0(eslint@8.46.0)(typescript@5.1.6)
'@typescript-eslint/scope-manager': 5.62.0
'@typescript-eslint/type-utils': 5.62.0(eslint@8.45.0)(typescript@5.1.6)
'@typescript-eslint/utils': 5.62.0(eslint@8.45.0)(typescript@5.1.6)
'@typescript-eslint/type-utils': 5.62.0(eslint@8.46.0)(typescript@5.1.6)
'@typescript-eslint/utils': 5.62.0(eslint@8.46.0)(typescript@5.1.6)
debug: 4.3.4
eslint: 8.45.0
eslint: 8.46.0
graphemer: 1.4.0
ignore: 5.2.4
natural-compare-lite: 1.4.0
@ -2306,7 +2306,7 @@ packages:
- supports-color
dev: true
/@typescript-eslint/parser@5.62.0(eslint@8.45.0)(typescript@5.1.6):
/@typescript-eslint/parser@5.62.0(eslint@8.46.0)(typescript@5.1.6):
resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
@ -2320,7 +2320,7 @@ packages:
'@typescript-eslint/types': 5.62.0
'@typescript-eslint/typescript-estree': 5.62.0(typescript@5.1.6)
debug: 4.3.4
eslint: 8.45.0
eslint: 8.46.0
typescript: 5.1.6
transitivePeerDependencies:
- supports-color
@ -2334,7 +2334,7 @@ packages:
'@typescript-eslint/visitor-keys': 5.62.0
dev: true
/@typescript-eslint/type-utils@5.62.0(eslint@8.45.0)(typescript@5.1.6):
/@typescript-eslint/type-utils@5.62.0(eslint@8.46.0)(typescript@5.1.6):
resolution: {integrity: sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
@ -2345,9 +2345,9 @@ packages:
optional: true
dependencies:
'@typescript-eslint/typescript-estree': 5.62.0(typescript@5.1.6)
'@typescript-eslint/utils': 5.62.0(eslint@8.45.0)(typescript@5.1.6)
'@typescript-eslint/utils': 5.62.0(eslint@8.46.0)(typescript@5.1.6)
debug: 4.3.4
eslint: 8.45.0
eslint: 8.46.0
tsutils: 3.21.0(typescript@5.1.6)
typescript: 5.1.6
transitivePeerDependencies:
@ -2380,19 +2380,19 @@ packages:
- supports-color
dev: true
/@typescript-eslint/utils@5.62.0(eslint@8.45.0)(typescript@5.1.6):
/@typescript-eslint/utils@5.62.0(eslint@8.46.0)(typescript@5.1.6):
resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
dependencies:
'@eslint-community/eslint-utils': 4.4.0(eslint@8.45.0)
'@eslint-community/eslint-utils': 4.4.0(eslint@8.46.0)
'@types/json-schema': 7.0.12
'@types/semver': 7.5.0
'@typescript-eslint/scope-manager': 5.62.0
'@typescript-eslint/types': 5.62.0
'@typescript-eslint/typescript-estree': 5.62.0(typescript@5.1.6)
eslint: 8.45.0
eslint: 8.46.0
eslint-scope: 5.1.1
semver: 7.5.4
transitivePeerDependencies:
@ -2405,7 +2405,7 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dependencies:
'@typescript-eslint/types': 5.62.0
eslint-visitor-keys: 3.4.1
eslint-visitor-keys: 3.4.2
dev: true
/@vitest/expect@0.32.4:
@ -2427,9 +2427,9 @@ packages:
/@vitest/snapshot@0.32.4:
resolution: {integrity: sha512-IRpyqn9t14uqsFlVI2d7DFMImGMs1Q9218of40bdQQgMePwVdmix33yMNnebXcTzDU5eiV3eUsoxxH5v0x/IQA==}
dependencies:
magic-string: 0.30.1
magic-string: 0.30.2
pathe: 1.1.1
pretty-format: 29.6.1
pretty-format: 29.6.2
dev: true
/@vitest/spy@0.32.4:
@ -2443,7 +2443,7 @@ packages:
dependencies:
diff-sequences: 29.4.3
loupe: 2.3.6
pretty-format: 29.6.1
pretty-format: 29.6.2
dev: true
/@wagmi/chains@1.6.0(typescript@5.1.6):
@ -2457,7 +2457,7 @@ packages:
typescript: 5.1.6
dev: false
/@wagmi/connectors@2.6.6(@wagmi/chains@1.6.0)(react@18.2.0)(typescript@5.1.6)(viem@1.4.1)(zod@3.21.4):
/@wagmi/connectors@2.6.6(@wagmi/chains@1.6.0)(react@18.2.0)(typescript@5.1.6)(viem@1.4.2)(zod@3.21.4):
resolution: {integrity: sha512-/o1c/TCivQs8DOAUOcQvY2UIt3p2mWOAHi39D0LC74+ncpXzLC5/gyaWU38qnTxPM8s/PmTmaWDgz+VhICXrag==}
peerDependencies:
'@wagmi/chains': '>=1.3.0'
@ -2481,7 +2481,7 @@ packages:
abitype: 0.8.7(typescript@5.1.6)(zod@3.21.4)
eventemitter3: 4.0.7
typescript: 5.1.6
viem: 1.4.1(typescript@5.1.6)(zod@3.21.4)
viem: 1.4.2(typescript@5.1.6)(zod@3.21.4)
transitivePeerDependencies:
- '@react-native-async-storage/async-storage'
- bufferutil
@ -2493,7 +2493,7 @@ packages:
- zod
dev: false
/@wagmi/core@1.3.8(react@18.2.0)(typescript@5.1.6)(viem@1.4.1)(zod@3.21.4):
/@wagmi/core@1.3.8(react@18.2.0)(typescript@5.1.6)(viem@1.4.2)(zod@3.21.4):
resolution: {integrity: sha512-OYSxikoMizqVnpSkFTwGE7PwFaz2k0PXteSiI0W2Mtk4j4sZzRFdP+9AWeDB6AYm0yU3WvgN1IATx0EEBKUe3w==}
peerDependencies:
typescript: '>=5.0.4'
@ -2503,11 +2503,11 @@ packages:
optional: true
dependencies:
'@wagmi/chains': 1.6.0(typescript@5.1.6)
'@wagmi/connectors': 2.6.6(@wagmi/chains@1.6.0)(react@18.2.0)(typescript@5.1.6)(viem@1.4.1)(zod@3.21.4)
'@wagmi/connectors': 2.6.6(@wagmi/chains@1.6.0)(react@18.2.0)(typescript@5.1.6)(viem@1.4.2)(zod@3.21.4)
abitype: 0.8.7(typescript@5.1.6)(zod@3.21.4)
eventemitter3: 4.0.7
typescript: 5.1.6
viem: 1.4.1(typescript@5.1.6)(zod@3.21.4)
viem: 1.4.2(typescript@5.1.6)(zod@3.21.4)
zustand: 4.3.9(react@18.2.0)
transitivePeerDependencies:
- '@react-native-async-storage/async-storage'
@ -3582,7 +3582,7 @@ packages:
hasBin: true
dependencies:
caniuse-lite: 1.0.30001517
electron-to-chromium: 1.4.473
electron-to-chromium: 1.4.477
node-releases: 2.0.13
update-browserslist-db: 1.0.11(browserslist@4.21.9)
dev: true
@ -3941,8 +3941,8 @@ packages:
encoding: 0.1.13
dev: false
/electron-to-chromium@1.4.473:
resolution: {integrity: sha512-aVfC8+440vGfl06l8HKKn8/PD5jRfSnLkTTD65EFvU46igbpQRri1gxSzW9/+TeUlwYzrXk1sw867T96zlyECA==}
/electron-to-chromium@1.4.477:
resolution: {integrity: sha512-shUVy6Eawp33dFBFIoYbIwLHrX0IZ857AlH9ug2o4rvbWmpaCUdBpQ5Zw39HRrfzAFm4APJE9V+E2A/WB0YqJw==}
dev: true
/elliptic@6.5.4:
@ -4034,16 +4034,16 @@ packages:
engines: {node: '>=10'}
dev: true
/eslint-config-prettier@8.8.0(eslint@8.45.0):
resolution: {integrity: sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==}
/eslint-config-prettier@8.9.0(eslint@8.46.0):
resolution: {integrity: sha512-+sbni7NfVXnOpnRadUA8S28AUlsZt9GjgFvABIRL9Hkn8KqNzOp+7Lw4QWtrwn20KzU3wqu1QoOj2m+7rKRqkA==}
hasBin: true
peerDependencies:
eslint: '>=7.0.0'
dependencies:
eslint: 8.45.0
eslint: 8.46.0
dev: true
/eslint-plugin-svelte@2.32.4(eslint@8.45.0)(svelte@4.1.1):
/eslint-plugin-svelte@2.32.4(eslint@8.46.0)(svelte@4.1.1):
resolution: {integrity: sha512-VJ12i2Iogug1jvhwxSlognnfGj76P5gks/V4pUD4SCSVQOp14u47MNP0zAG8AQR3LT0Fi1iUvIFnY4l9z5Rwbg==}
engines: {node: ^14.17.0 || >=16.0.0}
peerDependencies:
@ -4053,10 +4053,10 @@ packages:
svelte:
optional: true
dependencies:
'@eslint-community/eslint-utils': 4.4.0(eslint@8.45.0)
'@eslint-community/eslint-utils': 4.4.0(eslint@8.46.0)
'@jridgewell/sourcemap-codec': 1.4.15
debug: 4.3.4
eslint: 8.45.0
eslint: 8.46.0
esutils: 2.0.3
known-css-properties: 0.28.0
postcss: 8.4.27
@ -4079,28 +4079,28 @@ packages:
estraverse: 4.3.0
dev: true
/eslint-scope@7.2.1:
resolution: {integrity: sha512-CvefSOsDdaYYvxChovdrPo/ZGt8d5lrJWleAc1diXRKhHGiTYEI26cvo8Kle/wGnsizoCJjK73FMg1/IkIwiNA==}
/eslint-scope@7.2.2:
resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dependencies:
esrecurse: 4.3.0
estraverse: 5.3.0
dev: true
/eslint-visitor-keys@3.4.1:
resolution: {integrity: sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==}
/eslint-visitor-keys@3.4.2:
resolution: {integrity: sha512-8drBzUEyZ2llkpCA67iYrgEssKDUu68V8ChqqOfFupIaG/LCVPUT+CoGJpT77zJprs4T/W7p07LP7zAIMuweVw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
/eslint@8.45.0:
resolution: {integrity: sha512-pd8KSxiQpdYRfYa9Wufvdoct3ZPQQuVuU5O6scNgMuOMYuxvH0IGaYK0wUFjo4UYYQQCUndlXiMbnxopwvvTiw==}
/eslint@8.46.0:
resolution: {integrity: sha512-cIO74PvbW0qU8e0mIvk5IV3ToWdCq5FYG6gWPHHkx6gNdjlbAYvtfHmlCMXxjcoVaIdwy/IAt3+mDkZkfvb2Dg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
hasBin: true
dependencies:
'@eslint-community/eslint-utils': 4.4.0(eslint@8.45.0)
'@eslint-community/eslint-utils': 4.4.0(eslint@8.46.0)
'@eslint-community/regexpp': 4.6.2
'@eslint/eslintrc': 2.1.0
'@eslint/js': 8.44.0
'@eslint/eslintrc': 2.1.1
'@eslint/js': 8.46.0
'@humanwhocodes/config-array': 0.11.10
'@humanwhocodes/module-importer': 1.0.1
'@nodelib/fs.walk': 1.2.8
@ -4110,8 +4110,8 @@ packages:
debug: 4.3.4
doctrine: 3.0.0
escape-string-regexp: 4.0.0
eslint-scope: 7.2.1
eslint-visitor-keys: 3.4.1
eslint-scope: 7.2.2
eslint-visitor-keys: 3.4.2
espree: 9.6.1
esquery: 1.5.0
esutils: 2.0.3
@ -4148,7 +4148,7 @@ packages:
dependencies:
acorn: 8.10.0
acorn-jsx: 5.3.2(acorn@8.10.0)
eslint-visitor-keys: 3.4.1
eslint-visitor-keys: 3.4.2
dev: true
/esquery@1.5.0:
@ -4326,8 +4326,8 @@ packages:
resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
dev: true
/fast-redact@3.2.0:
resolution: {integrity: sha512-zaTadChr+NekyzallAMXATXLOR8MNx3zqpZ0MUF2aGf4EathnG0f32VLODNlY8IuGY3HoRO2L6/6fSzNsLaHIw==}
/fast-redact@3.3.0:
resolution: {integrity: sha512-6T5V1QK1u4oF+ATxs1lWUmlEk6P2T9HqJG3e2DnHOdVgZy2rFJBoEnrIedcTXlkAHU/zKC+7KETJ+KGGKwxgMQ==}
engines: {node: '>=6'}
dev: false
@ -4719,6 +4719,7 @@ packages:
/ipfs-http-client@56.0.0(node-fetch@2.6.12):
resolution: {integrity: sha512-JF3on9c0hB9XHk/UCxbyC6rSpERuj8F/0QcN/HImZoHNUKZ0/T8DpgVopocKdmGi1gr3Izlop7poaXomSt8Nug==}
engines: {node: '>=15.0.0', npm: '>=3.0.0'}
deprecated: js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details
dependencies:
'@ipld/dag-cbor': 7.0.3
'@ipld/dag-json': 8.0.11
@ -5274,8 +5275,8 @@ packages:
'@jridgewell/sourcemap-codec': 1.4.15
dev: true
/magic-string@0.30.1:
resolution: {integrity: sha512-mbVKXPmS0z0G4XqFDCTllmDQ6coZzn94aMlb0o/A4HEHJCKcanlDZwYJgwnkmgD3jyWhUgj9VsPrfd972yPffA==}
/magic-string@0.30.2:
resolution: {integrity: sha512-lNZdu7pewtq/ZvWUp9Wpf/x7WzMTsR26TWV03BRZrXFsv+BI6dy8RAiKgm1uM/kyR0rCfUcqvOlXKG66KhIGug==}
engines: {node: '>=12'}
dependencies:
'@jridgewell/sourcemap-codec': 1.4.15
@ -5357,7 +5358,7 @@ packages:
acorn: 8.10.0
pathe: 1.1.1
pkg-types: 1.0.3
ufo: 1.1.2
ufo: 1.2.0
dev: true
/motion@10.15.5:
@ -5705,7 +5706,7 @@ packages:
hasBin: true
dependencies:
atomic-sleep: 1.0.0
fast-redact: 3.2.0
fast-redact: 3.3.0
on-exit-leak-free: 0.2.0
pino-abstract-transport: 0.5.0
pino-std-serializers: 4.0.0
@ -5870,8 +5871,8 @@ packages:
hasBin: true
dev: true
/pretty-format@29.6.1:
resolution: {integrity: sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==}
/pretty-format@29.6.2:
resolution: {integrity: sha512-1q0oC8eRveTg5nnBEWMXAU2qpv65Gnuf2eCQzSjxpWFkPaPARwqZZDGuNE0zPAZfTCHzIk3A8dIjwlQKKLphyg==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
dependencies:
'@jest/schemas': 29.6.0
@ -6142,8 +6143,8 @@ packages:
glob: 7.2.3
dev: true
/rollup@3.26.3:
resolution: {integrity: sha512-7Tin0C8l86TkpcMtXvQu6saWH93nhG3dGQ1/+l5V2TDMceTxO7kDiK6GzbfLWNNxqJXm591PcEZUozZm51ogwQ==}
/rollup@3.27.0:
resolution: {integrity: sha512-aOltLCrYZ0FhJDm7fCqwTjIUEVjWjcydKBV/Zeid6Mn8BWgDCUBBWT5beM5ieForYNo/1ZHuGJdka26kvQ3Gzg==}
engines: {node: '>=14.18.0', npm: '>=8.0.0'}
hasBin: true
optionalDependencies:
@ -6505,8 +6506,8 @@ packages:
svelte:
optional: true
dependencies:
eslint-scope: 7.2.1
eslint-visitor-keys: 3.4.1
eslint-scope: 7.2.2
eslint-visitor-keys: 3.4.2
espree: 9.6.1
postcss: 8.4.27
postcss-scss: 4.0.6(postcss@8.4.27)
@ -6584,7 +6585,7 @@ packages:
estree-walker: 3.0.3
is-reference: 3.0.1
locate-character: 3.0.0
magic-string: 0.30.1
magic-string: 0.30.2
periscopic: 3.1.0
/sveltekit-superforms@1.5.0(@sveltejs/kit@1.22.3)(svelte@4.1.1)(zod@3.21.4):
@ -6766,8 +6767,8 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
/ufo@1.1.2:
resolution: {integrity: sha512-TrY6DsjTQQgyS3E3dBaOXf0TpPD8u9FVrVYmKVegJuFw51n/YB9XPt+U6ydzFG5ZIN7+DIjPbNmXoBj9esYhgQ==}
/ufo@1.2.0:
resolution: {integrity: sha512-RsPyTbqORDNDxqAdQPQBpgqhWle1VcTSou/FraClYlHf6TZnQcGslpLcAphNR+sQW4q5lLWLbOsRlh9j24baQg==}
dev: true
/uint8arraylist@2.4.3:
@ -6900,8 +6901,8 @@ packages:
resolution: {integrity: sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==}
dev: false
/viem@1.4.1(typescript@5.1.6)(zod@3.21.4):
resolution: {integrity: sha512-MtaoBHDSJDqa+QyXKG5d+S6EQSebRO0tzw6anSP4zC7AbC614vMeg9Y8LbkmEkWCw8swFYkort+H9l7GkWB0uA==}
/viem@1.4.2(typescript@5.1.6)(zod@3.21.4):
resolution: {integrity: sha512-125E7HoOr5PrL+Iwt8853dQexwRoiPpLwPsrRvlDX94su2xoe7AYqrdfR6N9nmy6vd6mt8eQy8+LWiP3A+1dqw==}
peerDependencies:
typescript: '>=5.0.4'
peerDependenciesMeta:
@ -6977,7 +6978,7 @@ packages:
'@types/node': 20.4.5
esbuild: 0.18.17
postcss: 8.4.27
rollup: 3.26.3
rollup: 3.27.0
optionalDependencies:
fsevents: 2.3.2
@ -7036,7 +7037,7 @@ packages:
chai: 4.3.7
debug: 4.3.4
local-pkg: 0.4.3
magic-string: 0.30.1
magic-string: 0.30.2
pathe: 1.1.1
picocolors: 1.0.0
std-env: 3.3.3
@ -7256,3 +7257,7 @@ packages:
react: 18.2.0
use-sync-external-store: 1.2.0(react@18.2.0)
dev: false
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false

View File

@ -3,12 +3,8 @@ import componentNames from 'virtual:components-list';
const components = {};
componentNames.forEach(path => {
// Ensure imports start with ./ or ../ and end with a file extension
const name = path.split('/').pop(); // Extract just the file name from the path
const componentPath = `../components/${path}.svelte`; // Update the path as per your file structure
// Suppress warning for dynamic import
components[name] = () => import(/* @vite-ignore */ componentPath);
const name = path.split('/').pop(); // Extract just the file name from the path
components[name] = () => import( /* @vite-ignore */ `/src/lib/components/${path}.svelte`);
});
export default components;
export default components;

View File

@ -7,10 +7,10 @@ export const dataStore = writable({});
// Dynamically import the data modules and assign them to the store
dataSources.forEach(src => {
import(/* @vite-ignore */ `../data/${src}.ts`).then(module => {
import(`/src/lib/data/${src}.ts`).then(module => {
// Here, explicitly extract the required data or function from the module
const moduleData = module[src] || module.default;
dataStore.update(store => ({ ...store, [src]: moduleData }));
});
});
});

View File

@ -1,11 +1,10 @@
// servicesLoader.ts
import serviceNames from 'virtual:services-list';
const services: { [key: string]: Function } = {};
serviceNames.forEach(path => {
const serviceName = path.split('/').pop().replace('.ts', '');
services[serviceName] = () => import(/* @vite-ignore */ `../services/${path}.ts`)
services[serviceName] = () => import(/* @vite-ignore */ `/src/lib/services/${path}`)
.then(mod => {
console.log(`Loaded service ${serviceName} with the following properties:`, Object.keys(mod));
if (mod.default) return mod.default;
@ -13,4 +12,4 @@ serviceNames.forEach(path => {
});
});
export default services;
export default services;

View File

@ -129,4 +129,4 @@ export default defineConfig({
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
}
});
});