@loaders.gl/geopackage 4.0.4 → 4.1.0-alpha.10

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.
@@ -1 +1 @@
1
- {"version":3,"file":"geopackage-loader.d.ts","sourceRoot":"","sources":["../src/geopackage-loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAC,MAAM,EAAE,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAQxD,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG;IACpD,wCAAwC;IACxC,UAAU,CAAC,EAAE;QACX,6BAA6B;QAC7B,KAAK,CAAC,EAAE,eAAe,GAAG,QAAQ,CAAC;QACnC,+EAA+E;QAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,uBAAuB;QACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B,CAAC;IACF,GAAG,CAAC,EAAE;QACJ,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,gBAAgB,CAC7C,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,EACnC,KAAK,EACL,uBAAuB,CAiBxB,CAAC;AAEF;;;;;;;;;;;;;;;;;;EAkBE"}
1
+ {"version":3,"file":"geopackage-loader.d.ts","sourceRoot":"","sources":["../src/geopackage-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAC,MAAM,EAAE,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAQxD,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG;IACpD,wCAAwC;IACxC,UAAU,CAAC,EAAE;QACX,6BAA6B;QAC7B,KAAK,CAAC,EAAE,eAAe,GAAG,QAAQ,CAAC;QACnC,+EAA+E;QAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,uBAAuB;QACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B,CAAC;IACF,GAAG,CAAC,EAAE;QACJ,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,gBAAgB,CAC7C,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,EACnC,KAAK,EACL,uBAAuB,CAiBxB,CAAC;AAEF;;;;;;;;;;;;;;;;;;EAkBE"}
@@ -1 +1 @@
1
- {"version":3,"file":"geopackage-loader.js","names":["parseGeoPackage","DEFAULT_SQLJS_CDN","VERSION","GeoPackageLoader","id","name","module","version","extensions","mimeTypes","category","parse","options","geopackage","sqlJsCDN","shape","gis"],"sources":["../src/geopackage-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n// Copyright (c) vis.gl contributors\n\nimport type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport {Tables, GeoJSONTable} from '@loaders.gl/schema';\nimport {parseGeoPackage, DEFAULT_SQLJS_CDN} from './lib/parse-geopackage';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\n// const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\nconst VERSION = 'latest';\n\nexport type GeoPackageLoaderOptions = LoaderOptions & {\n /** Options for the geopackage loader */\n geopackage?: {\n /** Shape of returned data */\n shape?: 'geojson-table' | 'tables';\n /** Name of table to load (defaults to first table), unless shape==='tables' */\n table?: string;\n /** Use null in Node */\n sqlJsCDN?: string | null;\n };\n gis?: {\n reproject?: boolean;\n _targetCrs?: string;\n };\n};\n\nexport const GeoPackageLoader: LoaderWithParser<\n GeoJSONTable | Tables<GeoJSONTable>,\n never,\n GeoPackageLoaderOptions\n> = {\n id: 'geopackage',\n name: 'GeoPackage',\n module: 'geopackage',\n version: VERSION,\n extensions: ['gpkg'],\n mimeTypes: ['application/geopackage+sqlite3'],\n category: 'geometry',\n parse: parseGeoPackage,\n options: {\n geopackage: {\n sqlJsCDN: DEFAULT_SQLJS_CDN,\n shape: 'tables'\n },\n gis: {}\n }\n};\n\n/** Geopackage loader *\nexport const GeoPackageTableLoader: LoaderWithParser<Record<string, Feature[]>, never, GeoPackageLoaderOptions> = {\n id: 'geopackage',\n name: 'GeoPackage',\n module: 'geopackage',\n version: VERSION,\n extensions: ['gpkg'],\n mimeTypes: ['application/geopackage+sqlite3'],\n category: 'geometry',\n parse: parseGeoPackage,\n options: {\n geopackage: {\n sqlJsCDN: DEFAULT_SQLJS_CDN,\n },\n gis: {\n }\n }\n};\n*/\n"],"mappings":"SAKQA,eAAe,EAAEC,iBAAiB;AAK1C,MAAMC,OAAO,GAAG,QAAQ;AAkBxB,OAAO,MAAMC,gBAIZ,GAAG;EACFC,EAAE,EAAE,YAAY;EAChBC,IAAI,EAAE,YAAY;EAClBC,MAAM,EAAE,YAAY;EACpBC,OAAO,EAAEL,OAAO;EAChBM,UAAU,EAAE,CAAC,MAAM,CAAC;EACpBC,SAAS,EAAE,CAAC,gCAAgC,CAAC;EAC7CC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAEX,eAAe;EACtBY,OAAO,EAAE;IACPC,UAAU,EAAE;MACVC,QAAQ,EAAEb,iBAAiB;MAC3Bc,KAAK,EAAE;IACT,CAAC;IACDC,GAAG,EAAE,CAAC;EACR;AACF,CAAC"}
1
+ {"version":3,"file":"geopackage-loader.js","names":["parseGeoPackage","DEFAULT_SQLJS_CDN","VERSION","GeoPackageLoader","id","name","module","version","extensions","mimeTypes","category","parse","options","geopackage","sqlJsCDN","shape","gis"],"sources":["../src/geopackage-loader.ts"],"sourcesContent":["// loaders.gl\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n\nimport type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport {Tables, GeoJSONTable} from '@loaders.gl/schema';\nimport {parseGeoPackage, DEFAULT_SQLJS_CDN} from './lib/parse-geopackage';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\n// const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\nconst VERSION = 'latest';\n\nexport type GeoPackageLoaderOptions = LoaderOptions & {\n /** Options for the geopackage loader */\n geopackage?: {\n /** Shape of returned data */\n shape?: 'geojson-table' | 'tables';\n /** Name of table to load (defaults to first table), unless shape==='tables' */\n table?: string;\n /** Use null in Node */\n sqlJsCDN?: string | null;\n };\n gis?: {\n reproject?: boolean;\n _targetCrs?: string;\n };\n};\n\nexport const GeoPackageLoader: LoaderWithParser<\n GeoJSONTable | Tables<GeoJSONTable>,\n never,\n GeoPackageLoaderOptions\n> = {\n id: 'geopackage',\n name: 'GeoPackage',\n module: 'geopackage',\n version: VERSION,\n extensions: ['gpkg'],\n mimeTypes: ['application/geopackage+sqlite3'],\n category: 'geometry',\n parse: parseGeoPackage,\n options: {\n geopackage: {\n sqlJsCDN: DEFAULT_SQLJS_CDN,\n shape: 'tables'\n },\n gis: {}\n }\n};\n\n/** Geopackage loader *\nexport const GeoPackageTableLoader: LoaderWithParser<Record<string, Feature[]>, never, GeoPackageLoaderOptions> = {\n id: 'geopackage',\n name: 'GeoPackage',\n module: 'geopackage',\n version: VERSION,\n extensions: ['gpkg'],\n mimeTypes: ['application/geopackage+sqlite3'],\n category: 'geometry',\n parse: parseGeoPackage,\n options: {\n geopackage: {\n sqlJsCDN: DEFAULT_SQLJS_CDN,\n },\n gis: {\n }\n }\n};\n*/\n"],"mappings":"SAMQA,eAAe,EAAEC,iBAAiB;AAK1C,MAAMC,OAAO,GAAG,QAAQ;AAkBxB,OAAO,MAAMC,gBAIZ,GAAG;EACFC,EAAE,EAAE,YAAY;EAChBC,IAAI,EAAE,YAAY;EAClBC,MAAM,EAAE,YAAY;EACpBC,OAAO,EAAEL,OAAO;EAChBM,UAAU,EAAE,CAAC,MAAM,CAAC;EACpBC,SAAS,EAAE,CAAC,gCAAgC,CAAC;EAC7CC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAEX,eAAe;EACtBY,OAAO,EAAE;IACPC,UAAU,EAAE;MACVC,QAAQ,EAAEb,iBAAiB;MAC3Bc,KAAK,EAAE;IACT,CAAC;IACDC,GAAG,EAAE,CAAC;EACR;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["GeoPackageLoader"],"sources":["../src/index.ts"],"sourcesContent":["// loaders.gl, MIT license\n// Copyright (c) vis.gl contributors\n\nexport {GeoPackageLoader} from './geopackage-loader';\n"],"mappings":"SAGQA,gBAAgB"}
1
+ {"version":3,"file":"index.js","names":["GeoPackageLoader"],"sources":["../src/index.ts"],"sourcesContent":["// loaders.gl\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n\nexport {GeoPackageLoader} from './geopackage-loader';\n"],"mappings":"SAIQA,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"geopackage-worker.js","names":["createLoaderWorker","GeoPackageLoader"],"sources":["../../src/workers/geopackage-worker.ts"],"sourcesContent":["// loaders.gl, MIT license\n// Copyright (c) vis.gl contributors\n\nimport {createLoaderWorker} from '@loaders.gl/loader-utils';\nimport {GeoPackageLoader} from '../geopackage-loader';\n\ncreateLoaderWorker(GeoPackageLoader);\n"],"mappings":"AAGA,SAAQA,kBAAkB,QAAO,0BAA0B;AAAC,SACpDC,gBAAgB;AAExBD,kBAAkB,CAACC,gBAAgB,CAAC"}
1
+ {"version":3,"file":"geopackage-worker.js","names":["createLoaderWorker","GeoPackageLoader"],"sources":["../../src/workers/geopackage-worker.ts"],"sourcesContent":["// loaders.gl\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n\nimport {createLoaderWorker} from '@loaders.gl/loader-utils';\nimport {GeoPackageLoader} from '../geopackage-loader';\n\ncreateLoaderWorker(GeoPackageLoader);\n"],"mappings":"AAIA,SAAQA,kBAAkB,QAAO,0BAA0B;AAAC,SACpDC,gBAAgB;AAExBD,kBAAkB,CAACC,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loaders.gl/geopackage",
3
3
  "description": "GeoPackage data loaders",
4
- "version": "4.0.4",
4
+ "version": "4.1.0-alpha.10",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "publishConfig": {
@@ -20,9 +20,9 @@
20
20
  "module": "dist/index.js",
21
21
  "exports": {
22
22
  ".": {
23
+ "types": "./dist/index.d.ts",
23
24
  "import": "./dist/index.js",
24
- "require": "./dist/index.cjs",
25
- "types": "./dist/index.d.ts"
25
+ "require": "./dist/index.cjs"
26
26
  }
27
27
  },
28
28
  "sideEffects": false,
@@ -44,14 +44,14 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@babel/runtime": "^7.3.1",
47
- "@loaders.gl/gis": "4.0.4",
48
- "@loaders.gl/schema": "4.0.4",
49
- "@loaders.gl/wkt": "4.0.4",
47
+ "@loaders.gl/gis": "4.1.0-alpha.10",
48
+ "@loaders.gl/schema": "4.1.0-alpha.10",
49
+ "@loaders.gl/wkt": "4.1.0-alpha.10",
50
50
  "@math.gl/proj4": "^4.0.0",
51
51
  "@types/sql.js": "^1.4.5",
52
52
  "fs": "^0.0.1-security",
53
53
  "path": "^0.12.7",
54
54
  "sql.js": "1.8.0"
55
55
  },
56
- "gitHead": "4dc810fa04bb400f4aedfef98a83c7ef882ed3d7"
56
+ "gitHead": "19f43c2d90d8b50860c3f8e487429779a386287d"
57
57
  }
@@ -1,4 +1,5 @@
1
- // loaders.gl, MIT license
1
+ // loaders.gl
2
+ // SPDX-License-Identifier: MIT
2
3
  // Copyright (c) vis.gl contributors
3
4
 
4
5
  import type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
- // loaders.gl, MIT license
1
+ // loaders.gl
2
+ // SPDX-License-Identifier: MIT
2
3
  // Copyright (c) vis.gl contributors
3
4
 
4
5
  export {GeoPackageLoader} from './geopackage-loader';
@@ -1,4 +1,5 @@
1
- // loaders.gl, MIT license
1
+ // loaders.gl
2
+ // SPDX-License-Identifier: MIT
2
3
  // Copyright (c) vis.gl contributors
3
4
 
4
5
  import {createLoaderWorker} from '@loaders.gl/loader-utils';