geolibre-wasm 1.6.0 → 1.7.0
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/geolibre-cli.wasm +0 -0
- package/geolibre_wasm.js +8 -4
- package/geolibre_wasm_bg.wasm +0 -0
- package/package.json +1 -1
- package/tools.d.ts +2 -0
package/geolibre-cli.wasm
CHANGED
|
Binary file
|
package/geolibre_wasm.js
CHANGED
|
@@ -2366,10 +2366,10 @@ export function version() {
|
|
|
2366
2366
|
function __wbg_get_imports() {
|
|
2367
2367
|
const import0 = {
|
|
2368
2368
|
__proto__: null,
|
|
2369
|
-
|
|
2369
|
+
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
2370
2370
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2371
2371
|
},
|
|
2372
|
-
|
|
2372
|
+
__wbg_error_757e9472f8410341: function(arg0, arg1) {
|
|
2373
2373
|
let deferred0_0;
|
|
2374
2374
|
let deferred0_1;
|
|
2375
2375
|
try {
|
|
@@ -2391,7 +2391,7 @@ function __wbg_get_imports() {
|
|
|
2391
2391
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2392
2392
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2393
2393
|
},
|
|
2394
|
-
|
|
2394
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
2395
2395
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2396
2396
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2397
2397
|
return addHeapObject(ret);
|
|
@@ -2680,11 +2680,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
2680
2680
|
|
|
2681
2681
|
async function __wbg_load(module, imports) {
|
|
2682
2682
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
2683
|
+
if (!module.ok) {
|
|
2684
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2683
2687
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
2684
2688
|
try {
|
|
2685
2689
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
2686
2690
|
} catch (e) {
|
|
2687
|
-
const validResponse =
|
|
2691
|
+
const validResponse = expectedResponseType(module.type);
|
|
2688
2692
|
|
|
2689
2693
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
2690
2694
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
package/geolibre_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geolibre-wasm",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"description": "Pure-Rust geospatial toolkit (whitebox_next_gen) compiled to WebAssembly (WASI) for GeoLibre's in-browser tool execution",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
package/tools.d.ts
CHANGED
|
@@ -104,6 +104,8 @@ export interface ToolManifest {
|
|
|
104
104
|
display_name: string;
|
|
105
105
|
summary: string;
|
|
106
106
|
params: ToolParam[];
|
|
107
|
+
/** Where the tool sits in a menu, e.g. `{category: "Terrain", subcategory: "Derivatives"}`. */
|
|
108
|
+
taxonomy?: { category: string; subcategory: string };
|
|
107
109
|
[key: string]: unknown;
|
|
108
110
|
}
|
|
109
111
|
|