Vite + TypeScript PWA that mirrors the Android app's core features: - Pre-processed shelter data (build-time UTM33N→WGS84 conversion) - Leaflet map with shelter markers, user location, and offline tiles - Canvas compass arrow (ported from DirectionArrowView.kt) - IndexedDB shelter cache with 7-day staleness check - Service worker with CacheFirst tiles and precached app shell - i18n for en, nb, nn (ported from Android strings.xml) - iOS/Android compass handling with low-pass filter - Respects user map interaction (no auto-snap on pan/zoom) - Build revision cache-breaker for reliable SW updates Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
54 lines
1.5 KiB
JSON
54 lines
1.5 KiB
JSON
{
|
|
"name": "whatwg-url",
|
|
"version": "7.1.0",
|
|
"description": "An implementation of the WHATWG URL Standard's URL API and parsing machinery",
|
|
"main": "lib/public-api.js",
|
|
"files": [
|
|
"lib/"
|
|
],
|
|
"author": "Sebastian Mayr <github@smayr.name>",
|
|
"license": "MIT",
|
|
"repository": "jsdom/whatwg-url",
|
|
"dependencies": {
|
|
"lodash.sortby": "^4.7.0",
|
|
"tr46": "^1.0.1",
|
|
"webidl-conversions": "^4.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"browserify": "^16.2.2",
|
|
"domexception": "^1.0.1",
|
|
"eslint": "^5.4.0",
|
|
"got": "^9.2.2",
|
|
"jest": "^23.5.0",
|
|
"recast": "^0.15.3",
|
|
"webidl2js": "^9.0.1"
|
|
},
|
|
"scripts": {
|
|
"build": "node scripts/transform.js && node scripts/convert-idl.js",
|
|
"coverage": "jest --coverage",
|
|
"lint": "eslint .",
|
|
"prepublish": "node scripts/transform.js && node scripts/convert-idl.js",
|
|
"pretest": "node scripts/get-latest-platform-tests.js && node scripts/transform.js && node scripts/convert-idl.js",
|
|
"build-live-viewer": "browserify lib/public-api.js --standalone whatwgURL > live-viewer/whatwg-url.js",
|
|
"test": "jest"
|
|
},
|
|
"jest": {
|
|
"collectCoverageFrom": [
|
|
"lib/**/*.js",
|
|
"!lib/utils.js"
|
|
],
|
|
"coverageDirectory": "coverage",
|
|
"coverageReporters": [
|
|
"lcov",
|
|
"text-summary"
|
|
],
|
|
"testEnvironment": "node",
|
|
"testMatch": [
|
|
"<rootDir>/test/**/*.js"
|
|
],
|
|
"testPathIgnorePatterns": [
|
|
"^<rootDir>/test/testharness.js$",
|
|
"^<rootDir>/test/web-platform-tests/"
|
|
]
|
|
}
|
|
}
|