@ferscloud/fers-calculation-web 0.2.39 → 0.2.41
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/README.md +77 -11
- package/fers-models.d.ts +2500 -0
- package/fers_calculations.d.ts +7 -2
- package/fers_calculations_bg.js +7 -4
- package/fers_calculations_bg.wasm +0 -0
- package/package.json +3 -2
package/fers_calculations.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Free-tier solver (100-member limit). Used when no valid solve token is present.
|
|
6
|
+
* Returns the JSON envelope described above.
|
|
6
7
|
*/
|
|
7
8
|
export function calculate_from_json(json_data: string): string;
|
|
8
9
|
|
|
@@ -10,15 +11,19 @@ export function calculate_from_json(json_data: string): string;
|
|
|
10
11
|
* Tier-aware solver. Verifies the Ed25519-signed solve token issued by the
|
|
11
12
|
* FERS Cloud server; grants Premium limits (10 000 members) when the token
|
|
12
13
|
* is valid and contains `"tier":"premium"`. Falls back to Free on any
|
|
13
|
-
* failure — expired, malformed, or wrong signature.
|
|
14
|
+
* failure — expired, malformed, or wrong signature. Returns the JSON envelope.
|
|
14
15
|
*/
|
|
15
16
|
export function calculate_from_json_with_token(json_data: string, solve_token: string): string;
|
|
16
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Parse (without solving) a model from a file path and return it as the JSON
|
|
20
|
+
* envelope: `{"ok":true,"result": <FERS JSON> }` or an error envelope.
|
|
21
|
+
*/
|
|
17
22
|
export function load_fers_from_file(path: string): string;
|
|
18
23
|
|
|
19
24
|
/**
|
|
20
25
|
* Re-render unity-check reports from already-solved results (no re-solve). Fills
|
|
21
26
|
* each `rendered_report` from its check's `report_template` and rebuilds
|
|
22
|
-
* `report_html`. Returns the
|
|
27
|
+
* `report_html`. Returns the JSON envelope.
|
|
23
28
|
*/
|
|
24
29
|
export function render_reports_from_json(json_data: string): string;
|
package/fers_calculations_bg.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Free-tier solver (100-member limit). Used when no valid solve token is present.
|
|
3
|
+
* Returns the JSON envelope described above.
|
|
3
4
|
* @param {string} json_data
|
|
4
5
|
* @returns {string}
|
|
5
6
|
*/
|
|
@@ -22,7 +23,7 @@ export function calculate_from_json(json_data) {
|
|
|
22
23
|
* Tier-aware solver. Verifies the Ed25519-signed solve token issued by the
|
|
23
24
|
* FERS Cloud server; grants Premium limits (10 000 members) when the token
|
|
24
25
|
* is valid and contains `"tier":"premium"`. Falls back to Free on any
|
|
25
|
-
* failure — expired, malformed, or wrong signature.
|
|
26
|
+
* failure — expired, malformed, or wrong signature. Returns the JSON envelope.
|
|
26
27
|
* @param {string} json_data
|
|
27
28
|
* @param {string} solve_token
|
|
28
29
|
* @returns {string}
|
|
@@ -45,6 +46,8 @@ export function calculate_from_json_with_token(json_data, solve_token) {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
/**
|
|
49
|
+
* Parse (without solving) a model from a file path and return it as the JSON
|
|
50
|
+
* envelope: `{"ok":true,"result": <FERS JSON> }` or an error envelope.
|
|
48
51
|
* @param {string} path
|
|
49
52
|
* @returns {string}
|
|
50
53
|
*/
|
|
@@ -66,7 +69,7 @@ export function load_fers_from_file(path) {
|
|
|
66
69
|
/**
|
|
67
70
|
* Re-render unity-check reports from already-solved results (no re-solve). Fills
|
|
68
71
|
* each `rendered_report` from its check's `report_template` and rebuilds
|
|
69
|
-
* `report_html`. Returns the
|
|
72
|
+
* `report_html`. Returns the JSON envelope.
|
|
70
73
|
* @param {string} json_data
|
|
71
74
|
* @returns {string}
|
|
72
75
|
*/
|
|
@@ -84,10 +87,10 @@ export function render_reports_from_json(json_data) {
|
|
|
84
87
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
85
88
|
}
|
|
86
89
|
}
|
|
87
|
-
export function
|
|
90
|
+
export function __wbg___wbindgen_throw_344f42d3211c4765(arg0, arg1) {
|
|
88
91
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
89
92
|
}
|
|
90
|
-
export function
|
|
93
|
+
export function __wbg_now_86c0d4ba3fa605b8() {
|
|
91
94
|
const ret = Date.now();
|
|
92
95
|
return ret;
|
|
93
96
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ferscloud/fers-calculation-web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.41",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/Jeroen124/FERS_calculations.git"
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"fers_calculations_bg.wasm",
|
|
11
11
|
"fers_calculations.js",
|
|
12
12
|
"fers_calculations_bg.js",
|
|
13
|
-
"fers_calculations.d.ts"
|
|
13
|
+
"fers_calculations.d.ts",
|
|
14
|
+
"fers-models.d.ts"
|
|
14
15
|
],
|
|
15
16
|
"main": "fers_calculations.js",
|
|
16
17
|
"homepage": "https://ferscloud.com",
|