fix default import

This commit is contained in:
Niccolo Borgioli 2023-04-27 22:52:53 +02:00
parent 86cdb6d5da
commit 0ac151f42c
No known key found for this signature in database
GPG Key ID: D93C615F75EE4F0B
5 changed files with 25 additions and 24 deletions

View File

@ -5,7 +5,6 @@ RUN npm install -g pnpm@8
COPY . .
RUN pnpm install --frozen-lockfile
# WORKDIR /tmp/packages/frontend
# RUN pnpm exec svelte-kit sync
RUN pnpm run build

View File

@ -2,6 +2,7 @@
"private": true,
"name": "@cryptgeon/web",
"scripts": {
"postinstall": "svelte-kit sync",
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
@ -14,8 +15,8 @@
"devDependencies": {
"@lokalise/node-api": "^9.8.0",
"@sveltejs/adapter-static": "^1.0.6",
"@sveltejs/kit": "^1.15.8",
"@types/dompurify": "^2.4.0",
"@sveltejs/kit": "^1.15.9",
"@types/dompurify": "^3.0.2",
"@types/file-saver": "^2.0.5",
"@zerodevx/svelte-toast": "^0.7.2",
"adm-zip": "^0.5.10",
@ -32,7 +33,7 @@
"@cryptgeon/shared": "workspace:*",
"@fontsource/fira-mono": "^4.5.10",
"copy-to-clipboard": "^3.3.3",
"dompurify": "^2.4.5",
"dompurify": "^3.0.2",
"file-saver": "^2.0.5",
"occulto": "^2.0.1",
"pretty-bytes": "^6.1.0",

View File

@ -3,7 +3,7 @@
</script>
<script lang="ts">
import * as DOMPurify from 'dompurify'
import DOMPurify from 'dompurify'
import { saveAs } from 'file-saver'
import prettyBytes from 'pretty-bytes'
import { t } from 'svelte-intl-precompile'

View File

@ -1,6 +1,7 @@
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"strict": true
"strict": true,
"allowSyntheticDefaultImports": true
}
}

View File

@ -71,8 +71,8 @@ importers:
specifier: ^3.3.3
version: 3.3.3
dompurify:
specifier: ^2.4.5
version: 2.4.5
specifier: ^3.0.2
version: 3.0.2
file-saver:
specifier: ^2.0.5
version: 2.0.5
@ -91,13 +91,13 @@ importers:
version: 9.8.0
'@sveltejs/adapter-static':
specifier: ^1.0.6
version: 1.0.6(@sveltejs/kit@1.15.8)
version: 1.0.6(@sveltejs/kit@1.15.9)
'@sveltejs/kit':
specifier: ^1.15.8
version: 1.15.8(svelte@3.58.0)(vite@4.3.3)
specifier: ^1.15.9
version: 1.15.9(svelte@3.58.0)(vite@4.3.3)
'@types/dompurify':
specifier: ^2.4.0
version: 2.4.0
specifier: ^3.0.2
version: 3.0.2
'@types/file-saver':
specifier: ^2.0.5
version: 2.0.5
@ -704,16 +704,16 @@ packages:
engines: {node: '>=14.16'}
dev: true
/@sveltejs/adapter-static@1.0.6(@sveltejs/kit@1.15.8):
/@sveltejs/adapter-static@1.0.6(@sveltejs/kit@1.15.9):
resolution: {integrity: sha512-gTus2jW6bEQAZoT1MdmPHWZZmcb6dfLWc0r6dFHnbzSDZ68kifqQ1E+dZDOMF7aXeRV91sgnPuAn2MtpinVdlA==}
peerDependencies:
'@sveltejs/kit': ^1.0.0
dependencies:
'@sveltejs/kit': 1.15.8(svelte@3.58.0)(vite@4.3.3)
'@sveltejs/kit': 1.15.9(svelte@3.58.0)(vite@4.3.3)
dev: true
/@sveltejs/kit@1.15.8(svelte@3.58.0)(vite@4.3.3):
resolution: {integrity: sha512-xPIF3UbFEA5BBZWFTGGUtSZ0O3DAtmzIp/yZZVdLIfzZ9+geKG3iGSVFnOUdYstjU7JcvJg12UC5MD5xoED59A==}
/@sveltejs/kit@1.15.9(svelte@3.58.0)(vite@4.3.3):
resolution: {integrity: sha512-Og+4WlguPVPS0PmAHefp4KxvTVZfyDN09aORVXIdKSzqzodSJiLs7Fhi/Q0z0YjmcoNLWF24tI0a6mTusL6Yfg==}
engines: {node: ^16.14 || >=18}
hasBin: true
requiresBuild: true
@ -770,8 +770,8 @@ packages:
resolution: {integrity: sha512-COUnqfB2+ckwXXSFInsFdOAWQzCCx+a5hq2ruyj+Vjund94RJQd4LG2u9hnvJrTgunKAaax7ancBYlDrNYxA0g==}
dev: true
/@types/dompurify@2.4.0:
resolution: {integrity: sha512-IDBwO5IZhrKvHFUl+clZxgf3hn2b/lU6H1KaBShPkQyGJUQ0xwebezIPSuiyGwfz1UzJWQl4M7BDxtHtCCPlTg==}
/@types/dompurify@3.0.2:
resolution: {integrity: sha512-YBL4ziFebbbfQfH5mlC+QTJsvh0oJUrWbmxKMyEdL7emlHJqGR2Qb34TEFKj+VCayBvjKy3xczMFNhugThUsfQ==}
dependencies:
'@types/trusted-types': 2.0.3
dev: true
@ -966,7 +966,7 @@ packages:
hasBin: true
dependencies:
caniuse-lite: 1.0.30001481
electron-to-chromium: 1.4.372
electron-to-chromium: 1.4.375
node-releases: 2.0.10
update-browserslist-db: 1.0.11(browserslist@4.21.5)
dev: true
@ -1234,8 +1234,8 @@ packages:
path-type: 4.0.0
dev: true
/dompurify@2.4.5:
resolution: {integrity: sha512-jggCCd+8Iqp4Tsz0nIvpcb22InKEBrGz5dw3EQJMs8HPJDsKbFIO3STYtAvCfDx26Muevn1MHVI0XxjgFfmiSA==}
/dompurify@3.0.2:
resolution: {integrity: sha512-B8c6JdiEpxAKnd8Dm++QQxJL4lfuc757scZtcapj6qjTjrQzyq5iAyznLKVvK+77eYNiFblHBlt7MM0fOeqoKw==}
dev: false
/dotenv@16.0.3:
@ -1247,8 +1247,8 @@ packages:
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
dev: false
/electron-to-chromium@1.4.372:
resolution: {integrity: sha512-MrlFq/j+TYHOjeWsWGYfzevc25HNeJdsF6qaLFrqBTRWZQtWkb1myq/Q2veLWezVaa5OcSZ99CFwTT4aF4Mung==}
/electron-to-chromium@1.4.375:
resolution: {integrity: sha512-czSmDyWG5qmb4TcwD5lhVDP6viDPtHfrIzw0CnzisRpziiUaq+ffptBHs70d9YkFtrxzaDvOmFPeVRVNwMt2rQ==}
dev: true
/emoji-regex@8.0.0: