js decoder 1.1.0

adds fflate dependency; maplibre decoder can read gzipped tiles [#41]
This commit is contained in:
Brandon Liu
2022-07-07 12:36:16 +08:00
parent abf1dd9372
commit 3811ff9b1b
5 changed files with 31 additions and 9 deletions

View File

@@ -1,19 +1,19 @@
{
"name": "pmtiles",
"version": "1.0.4",
"version": "1.1.0",
"description": "PMTiles archive decoder for browsers",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types":"dist/index.d.ts",
"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 --format=iife",
"build-esm": "esbuild index.ts --outfile=dist/index.mjs --target=es6 --global-name=pmtiles --format=esm",
"build-cjs": "esbuild index.ts --outfile=dist/index.cjs --target=es6 --global-name=pmtiles --format=cjs",
"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-cjs": "esbuild index.ts --outfile=dist/index.cjs --target=es6 --global-name=pmtiles --bundle --format=cjs",
"build-tsc": "tsc --declaration --emitDeclarationOnly --outdir dist",
"build": "npm run build-iife && npm run build-esm && npm run build-cjs && npm run build-tsc",
"test": "node -r esbuild-runner/register index.test.ts",
@@ -28,5 +28,8 @@
"esbuild-runner": "^2.2.1",
"typescript": "^4.5.5",
"zora": "^5.0.2"
},
"dependencies": {
"fflate": "^0.7.3"
}
}