@ferscloud/fers-calculation 0.2.49 → 0.2.51
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/fers_calculations.d.ts +7 -0
- package/fers_calculations.js +20 -0
- package/fers_calculations_bg.wasm +0 -0
- package/package.json +1 -1
package/fers_calculations.d.ts
CHANGED
|
@@ -28,6 +28,13 @@ export function load_fers_from_file(path: string): string;
|
|
|
28
28
|
*/
|
|
29
29
|
export function render_reports_from_json(json_data: string): string;
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* The engine version, queryable without solving anything. The npm package
|
|
33
|
+
* version is set from the same `Cargo.toml` at build time, but a caller
|
|
34
|
+
* holding only the module needs a way to ask the engine which features it has.
|
|
35
|
+
*/
|
|
36
|
+
export function version(): string;
|
|
37
|
+
|
|
31
38
|
/**
|
|
32
39
|
* Route panic messages to the browser console. wasm32-unknown-unknown does
|
|
33
40
|
* not unwind, so `run_enveloped`'s catch_unwind never fires in the browser —
|
package/fers_calculations.js
CHANGED
|
@@ -94,6 +94,26 @@ function render_reports_from_json(json_data) {
|
|
|
94
94
|
}
|
|
95
95
|
exports.render_reports_from_json = render_reports_from_json;
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* The engine version, queryable without solving anything. The npm package
|
|
99
|
+
* version is set from the same `Cargo.toml` at build time, but a caller
|
|
100
|
+
* holding only the module needs a way to ask the engine which features it has.
|
|
101
|
+
* @returns {string}
|
|
102
|
+
*/
|
|
103
|
+
function version() {
|
|
104
|
+
let deferred1_0;
|
|
105
|
+
let deferred1_1;
|
|
106
|
+
try {
|
|
107
|
+
const ret = wasm.version();
|
|
108
|
+
deferred1_0 = ret[0];
|
|
109
|
+
deferred1_1 = ret[1];
|
|
110
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
111
|
+
} finally {
|
|
112
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.version = version;
|
|
116
|
+
|
|
97
117
|
/**
|
|
98
118
|
* Route panic messages to the browser console. wasm32-unknown-unknown does
|
|
99
119
|
* not unwind, so `run_enveloped`'s catch_unwind never fires in the browser —
|
|
Binary file
|