Files
PMTiles/js/package.json
Brandon Liu 179b1590b1 JS: ETags logic as part of Sources [#90] (#341)
* Simplifies ETag logic into Source, making if-match conditional requests possible.
* Avoid if-match in FetchSource for latency reasons - use cache buster on ETag change
* handle weak ETags correctly
* add mock fetch server for testing ETags [#90]
2024-01-31 23:00:24 +08:00

39 lines
1.2 KiB
JSON

{
"name": "pmtiles",
"version": "3.0.0-alpha.1",
"description": "PMTiles archive decoder for browsers",
"type": "module",
"exports": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"source": "index.ts",
"files": [
"dist",
"index.ts"
],
"scripts": {
"build-iife": "esbuild index.ts --outfile=dist/index.js --target=es6 --global-name=pmtiles --bundle --format=iife",
"build-esm": "esbuild index.ts --outfile=dist/index.mjs --target=es6 --global-name=pmtiles --bundle --format=esm",
"build-tsc": "tsc --declaration --emitDeclarationOnly --outdir dist",
"build": "npm run build-iife && npm run build-esm && npm run build-tsc",
"test": "tsx test/index.test.ts",
"tsc": "tsc --noEmit --watch",
"biome": "biome check adapters.ts index.ts v2.ts test --apply",
"biome-check": "biome check adapters.ts index.ts v2.ts test"
},
"homepage": "https://github.com/protomaps/pmtiles",
"author": "Brandon Liu",
"license": "BSD-3-Clause",
"devDependencies": {
"@biomejs/biome": "^1.5.3",
"@types/node": "^18.11.9",
"esbuild": "^0.20.0",
"msw": "^2.1.5",
"tsx": "^4.7.0",
"typescript": "^4.5.5"
},
"dependencies": {
"@types/leaflet": "^1.9.8",
"fflate": "^0.8.0"
}
}