@india-boundary-corrector/data 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -3
- package/india_boundary_corrections.pmtiles.gz +0 -0
- package/package.json +5 -3
- package/version.js +1 -1
package/index.js
CHANGED
|
@@ -3,14 +3,18 @@ import { packageVersion } from './version.js';
|
|
|
3
3
|
|
|
4
4
|
// Package info for CDN URL construction
|
|
5
5
|
const PACKAGE_NAME = '@india-boundary-corrector/data';
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
// Use .gz suffix for CDN to work around transparent compression issues
|
|
8
|
+
// See pmtiles-filename-note.md for details
|
|
9
|
+
const PMTILES_FILENAME = 'india_boundary_corrections.pmtiles.gz';
|
|
10
|
+
// Original filename (for local use where CDN issues don't apply):
|
|
11
|
+
// const PMTILES_FILENAME = 'india_boundary_corrections.pmtiles';
|
|
7
12
|
|
|
8
13
|
/**
|
|
9
14
|
* CDNs that need fallback to jsDelivr:
|
|
10
15
|
* - esm.sh, skypack: JS module transformers only, don't serve static files
|
|
11
|
-
* - unpkg.com: Has issues serving PMTiles files (incorrect content-type, range request problems)
|
|
12
16
|
*/
|
|
13
|
-
const FALLBACK_CDNS = new Set(['esm.sh', 'skypack.dev', 'cdn.skypack.dev'
|
|
17
|
+
const FALLBACK_CDNS = new Set(['esm.sh', 'skypack.dev', 'cdn.skypack.dev']);
|
|
14
18
|
|
|
15
19
|
// Default fallback CDN (jsDelivr has multi-CDN architecture, more reliable)
|
|
16
20
|
export const DEFAULT_CDN_URL = `https://cdn.jsdelivr.net/npm/${PACKAGE_NAME}@${packageVersion}/${PMTILES_FILENAME}`;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@india-boundary-corrector/data",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "PMTiles data for India boundary corrections (NE and OSM layers)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -10,14 +10,16 @@
|
|
|
10
10
|
"import": "./index.js",
|
|
11
11
|
"types": "./index.d.ts"
|
|
12
12
|
},
|
|
13
|
-
"./pmtiles": "./india_boundary_corrections.pmtiles"
|
|
13
|
+
"./pmtiles": "./india_boundary_corrections.pmtiles",
|
|
14
|
+
"./pmtiles-gz": "./india_boundary_corrections.pmtiles.gz"
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
16
17
|
"index.js",
|
|
17
18
|
"index.d.ts",
|
|
18
19
|
"version.js",
|
|
19
20
|
"data_version.js",
|
|
20
|
-
"india_boundary_corrections.pmtiles"
|
|
21
|
+
"india_boundary_corrections.pmtiles",
|
|
22
|
+
"india_boundary_corrections.pmtiles.gz"
|
|
21
23
|
],
|
|
22
24
|
"scripts": {
|
|
23
25
|
"build": "node scripts/generate-version.js",
|
package/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Auto-generated by scripts/generate-version.js - DO NOT EDIT
|
|
2
|
-
export const packageVersion = '0.0.
|
|
2
|
+
export const packageVersion = '0.0.5';
|