@ferrflow/wasm 7.3.2 → 7.4.1
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/ferrflow_wasm.d.ts +1 -1
- package/ferrflow_wasm_bg.js +14 -11
- package/ferrflow_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/ferrflow_wasm.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
export function build_changelog_section(version: string, commits_json: string): string;
|
|
5
5
|
|
|
6
|
-
export function compute_next_version(current: string, bump: string, strategy: string): string;
|
|
6
|
+
export function compute_next_version(current: string, bump: string, strategy: string, version_template?: string | null): string;
|
|
7
7
|
|
|
8
8
|
export function determine_bump(message: string, formats_json?: string | null): string;
|
|
9
9
|
|
package/ferrflow_wasm_bg.js
CHANGED
|
@@ -36,11 +36,12 @@ export function build_changelog_section(version, commits_json) {
|
|
|
36
36
|
* @param {string} current
|
|
37
37
|
* @param {string} bump
|
|
38
38
|
* @param {string} strategy
|
|
39
|
+
* @param {string | null} [version_template]
|
|
39
40
|
* @returns {string}
|
|
40
41
|
*/
|
|
41
|
-
export function compute_next_version(current, bump, strategy) {
|
|
42
|
-
let
|
|
43
|
-
let
|
|
42
|
+
export function compute_next_version(current, bump, strategy, version_template) {
|
|
43
|
+
let deferred6_0;
|
|
44
|
+
let deferred6_1;
|
|
44
45
|
try {
|
|
45
46
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
46
47
|
const ptr0 = passStringToWasm0(current, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -49,23 +50,25 @@ export function compute_next_version(current, bump, strategy) {
|
|
|
49
50
|
const len1 = WASM_VECTOR_LEN;
|
|
50
51
|
const ptr2 = passStringToWasm0(strategy, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
51
52
|
const len2 = WASM_VECTOR_LEN;
|
|
52
|
-
|
|
53
|
+
var ptr3 = isLikeNone(version_template) ? 0 : passStringToWasm0(version_template, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
54
|
+
var len3 = WASM_VECTOR_LEN;
|
|
55
|
+
wasm.compute_next_version(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
53
56
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
54
57
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
55
58
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
56
59
|
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
57
|
-
var
|
|
58
|
-
var
|
|
60
|
+
var ptr5 = r0;
|
|
61
|
+
var len5 = r1;
|
|
59
62
|
if (r3) {
|
|
60
|
-
|
|
63
|
+
ptr5 = 0; len5 = 0;
|
|
61
64
|
throw takeObject(r2);
|
|
62
65
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return getStringFromWasm0(
|
|
66
|
+
deferred6_0 = ptr5;
|
|
67
|
+
deferred6_1 = len5;
|
|
68
|
+
return getStringFromWasm0(ptr5, len5);
|
|
66
69
|
} finally {
|
|
67
70
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
68
|
-
wasm.__wbindgen_export3(
|
|
71
|
+
wasm.__wbindgen_export3(deferred6_0, deferred6_1, 1);
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
|
package/ferrflow_wasm_bg.wasm
CHANGED
|
Binary file
|