@ferscloud/fers-calculation 0.2.35 → 0.2.37

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.
@@ -15,3 +15,10 @@ export function calculate_from_json(json_data: string): string;
15
15
  export function calculate_from_json_with_token(json_data: string, solve_token: string): string;
16
16
 
17
17
  export function load_fers_from_file(path: string): string;
18
+
19
+ /**
20
+ * Re-render unity-check reports from already-solved results (no re-solve). Fills
21
+ * each `rendered_report` from its check's `report_template` and rebuilds
22
+ * `report_html`. Returns the error string on failure.
23
+ */
24
+ export function render_reports_from_json(json_data: string): string;
@@ -67,6 +67,29 @@ function load_fers_from_file(path) {
67
67
  }
68
68
  }
69
69
  exports.load_fers_from_file = load_fers_from_file;
70
+
71
+ /**
72
+ * Re-render unity-check reports from already-solved results (no re-solve). Fills
73
+ * each `rendered_report` from its check's `report_template` and rebuilds
74
+ * `report_html`. Returns the error string on failure.
75
+ * @param {string} json_data
76
+ * @returns {string}
77
+ */
78
+ function render_reports_from_json(json_data) {
79
+ let deferred2_0;
80
+ let deferred2_1;
81
+ try {
82
+ const ptr0 = passStringToWasm0(json_data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
83
+ const len0 = WASM_VECTOR_LEN;
84
+ const ret = wasm.render_reports_from_json(ptr0, len0);
85
+ deferred2_0 = ret[0];
86
+ deferred2_1 = ret[1];
87
+ return getStringFromWasm0(ret[0], ret[1]);
88
+ } finally {
89
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
90
+ }
91
+ }
92
+ exports.render_reports_from_json = render_reports_from_json;
70
93
  function __wbg_get_imports() {
71
94
  const import0 = {
72
95
  __proto__: null,
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ferscloud/fers-calculation",
3
- "version": "0.2.35",
3
+ "version": "0.2.37",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Jeroen124/FERS_calculations.git"