mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
32837afe2e
msw 3 renames onUnhandledRequest to onUnhandledFrame and reports every network frame there; the setup judges the HTTP frames as before (another origin is an error, the page's own a warning). It also resolves a relative handler, and its fetch interceptor a relative URL, against location.href at the time of the request, while jsdom's XHR sends to the document's own address. Tests that replaced window.location with a stand-in on http://localhost while the page runs on http://localhost:3000 sent their requests past every handler. tests/helpers/location.ts builds such stand-ins on the page's own origin (locationAt, pageUrl), and every one of them now uses it. msw no longer escapes fake timers, and responses are timed differently, which surfaced tests that ended with work still running: a held request answering in the next test, a lookup still out when the assertions ran, a reload switched by counting reads. Each of those now waits for, or releases, what it started, and answers by what happened rather than by a count. The day panel suites share their setup through tests/helpers/dayDetailPanel.ts instead of a copy each, which keeps the larger one under its size limit.
172 lines
6.4 KiB
JSON
172 lines
6.4 KiB
JSON
{
|
|
"name": "@trek/client",
|
|
"version": "5.2.1",
|
|
"engines": {
|
|
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
|
},
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"prebuild": "node scripts/generate-icons.mjs",
|
|
"icons:native": "node scripts/generate-native-icons.mjs",
|
|
"icons:app": "node scripts/generate-app-icons.mjs && npx @capacitor/assets generate --android --ios --iconBackgroundColor #09090b --iconBackgroundColorDark #09090b --splashBackgroundColor #09090b --splashBackgroundColorDark #09090b && node scripts/generate-adaptive-icons.mjs",
|
|
"build:native": "vite build --config vite.native.config.js",
|
|
"cap:sync": "npm run build:native && cap sync",
|
|
"store:shots": "playwright test --project=store",
|
|
"store:promote": "node scripts/store-screenshots.mjs",
|
|
"store:graphic": "node scripts/generate-feature-graphic.mjs",
|
|
"store:check": "node scripts/check-store-metadata.mjs",
|
|
"build": "vite build",
|
|
"postbuild": "node scripts/precompress.mjs",
|
|
"build:analyze": "vite build --mode analyze",
|
|
"preview": "vite preview",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:unit": "vitest run tests/unit",
|
|
"test:integration": "vitest run tests/integration src/**/*.test.{ts,tsx}",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"lint": "eslint .",
|
|
"lint:check": "eslint .",
|
|
"lint:warnings": "node scripts/eslint-ratchet.mjs",
|
|
"lint:pages": "node scripts/check-page-pattern.mjs",
|
|
"lint:rtl": "node scripts/rtl-lint.mjs",
|
|
"lint:size": "node scripts/size-lint.mjs",
|
|
"lint:format": "node scripts/format-lint.mjs",
|
|
"lint:layers": "node scripts/layer-lint.mjs",
|
|
"lint:offline": "node scripts/offline-lint.mjs",
|
|
"lint:dup": "node scripts/dup-lint.mjs",
|
|
"lint:pairs": "node scripts/pairs-lint.mjs",
|
|
"lint:skips": "node scripts/skip-lint.mjs",
|
|
"lint:strict": "node scripts/strict-lint.mjs",
|
|
"lint:i18n-keys": "node scripts/i18n-keys.mjs",
|
|
"check:gl-split": "node scripts/check-gl-split.mjs",
|
|
"theme:lint": "node scripts/theme-lint.mjs",
|
|
"e2e": "playwright test",
|
|
"shots": "playwright test --project=screenshots",
|
|
"help:media": "node e2e/help/run.mjs",
|
|
"help:media:promote": "node e2e/help/promote.mjs",
|
|
"shots:promote": "node e2e/screenshots/promote.mjs",
|
|
"e2e:report": "playwright show-report",
|
|
"format": "prettier --write \"src/**/*.tsx\" \"src/**/*.css\"",
|
|
"format:check": "prettier --check \"src/**/*.tsx\" \"src/**/*.css\""
|
|
},
|
|
"dependencies": {
|
|
"@assistant-ui/react": "0.15.37",
|
|
"@capacitor/action-sheet": "^8.1.1",
|
|
"@capacitor/android": "^8.6.2",
|
|
"@capacitor/app": "^8.1.1",
|
|
"@capacitor/core": "^8.6.2",
|
|
"@capacitor/dialog": "^8.0.1",
|
|
"@capacitor/filesystem": "^8.1.3",
|
|
"@capacitor/haptics": "^8.0.2",
|
|
"@capacitor/ios": "^8.6.2",
|
|
"@capacitor/keyboard": "^8.0.5",
|
|
"@capacitor/share": "^8.0.1",
|
|
"@capacitor/splash-screen": "^8.0.2",
|
|
"@capacitor/status-bar": "^8.0.3",
|
|
"@fontsource/abril-fatface": "^5.3.0",
|
|
"@fontsource/alfa-slab-one": "^5.3.0",
|
|
"@fontsource/allura": "^5.3.0",
|
|
"@fontsource/anton": "^5.3.0",
|
|
"@fontsource/archivo-black": "^5.3.0",
|
|
"@fontsource/bebas-neue": "^5.3.0",
|
|
"@fontsource/big-shoulders-display": "^5.3.0",
|
|
"@fontsource/bodoni-moda": "^5.3.0",
|
|
"@fontsource/bricolage-grotesque": "^5.3.0",
|
|
"@fontsource/caveat": "^5.3.0",
|
|
"@fontsource/cormorant-garamond": "^5.3.0",
|
|
"@fontsource/dancing-script": "^5.3.0",
|
|
"@fontsource/dm-mono": "^5.3.0",
|
|
"@fontsource/dm-serif-display": "^5.3.0",
|
|
"@fontsource/eb-garamond": "^5.3.0",
|
|
"@fontsource/fraunces": "^5.3.0",
|
|
"@fontsource/geist-sans": "^5.3.0",
|
|
"@fontsource/great-vibes": "^5.3.0",
|
|
"@fontsource/homemade-apple": "^5.3.0",
|
|
"@fontsource/inter": "^5.3.0",
|
|
"@fontsource/kaushan-script": "^5.3.0",
|
|
"@fontsource/league-gothic": "^5.3.0",
|
|
"@fontsource/lora": "^5.3.0",
|
|
"@fontsource/montserrat": "^5.3.0",
|
|
"@fontsource/museomoderno": "^5.3.0",
|
|
"@fontsource/oswald": "^5.3.0",
|
|
"@fontsource/pacifico": "^5.3.0",
|
|
"@fontsource/parisienne": "^5.3.0",
|
|
"@fontsource/permanent-marker": "^5.3.0",
|
|
"@fontsource/playfair-display": "^5.3.0",
|
|
"@fontsource/poppins": "^5.3.0",
|
|
"@fontsource/sacramento": "^5.3.0",
|
|
"@fontsource/satisfy": "^5.3.0",
|
|
"@fontsource/shrikhand": "^5.3.0",
|
|
"@fontsource/yellowtail": "^5.3.0",
|
|
"@maplibre/maplibre-gl-leaflet": "0.1.4",
|
|
"@noble/hashes": "^1.8.0",
|
|
"@simplewebauthn/browser": "^14.0.0",
|
|
"@trek/shared": "*",
|
|
"axios": "^1.21.0",
|
|
"dexie": "^4.4.7",
|
|
"drag-drop-touch": "^1.3.1",
|
|
"heic-to": "^1.6.7",
|
|
"iso-3166-2": "^1.0.0",
|
|
"leaflet": "^1.9.4",
|
|
"lucide-react": "^0.577.0",
|
|
"mapbox-gl": "3.32.0",
|
|
"maplibre-gl": "6.19.0",
|
|
"modern-screenshot": "4.7.0",
|
|
"plyr": "^3.8.5",
|
|
"react": "^19.3.1",
|
|
"react-dom": "^19.3.1",
|
|
"react-dropzone": "^20.2.1",
|
|
"react-leaflet": "^5.0.0",
|
|
"react-leaflet-cluster": "^4.1.3",
|
|
"react-markdown": "^10.1.0",
|
|
"react-router": "^7.18.4",
|
|
"rehype-sanitize": "^6.0.0",
|
|
"remark-breaks": "^4.0.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"tz-lookup": "^6.1.25",
|
|
"zod": "^4.6.7",
|
|
"zustand": "^5.0.15"
|
|
},
|
|
"devDependencies": {
|
|
"@capacitor/cli": "^8.6.2",
|
|
"@eslint/js": "^10.0.1",
|
|
"@jscpd/core": "^4.2.5",
|
|
"@jscpd/tokenizer": "^4.2.6",
|
|
"@playwright/test": "^1.65.1",
|
|
"@testing-library/jest-dom": "^6.10.0",
|
|
"@testing-library/react": "^16.3.3",
|
|
"@testing-library/user-event": "^14.6.13",
|
|
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
|
|
"@types/leaflet": "^1.9.22",
|
|
"@types/node": "^26.6.11",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@vitejs/plugin-react": "^6.2.1",
|
|
"@vitest/coverage-v8": "^4.1.12",
|
|
"autoprefixer": "^10.7.0",
|
|
"eslint": "^10.11.0",
|
|
"eslint-config-flat-gitignore": "^2.4.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.8",
|
|
"fake-indexeddb": "^6.2.7",
|
|
"jsdom": "^29.1.1",
|
|
"msw": "^3.0.8",
|
|
"postcss": "^8.5.33",
|
|
"prettier": "^3.10.1",
|
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
"rollup-plugin-visualizer": "^7.1.2",
|
|
"sharp": "^0.35.5",
|
|
"tailwindcss": "^3.4.19",
|
|
"typescript": "^6.0.3",
|
|
"typescript-eslint": "^8.73.0",
|
|
"vite": "8.3.8",
|
|
"vite-plugin-pwa": "^2.0.0",
|
|
"vitest": "^4.1.12"
|
|
}
|
|
}
|