Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

build(wasm): strip = true in release profile

bernie-g14d0f89a70e4
diff --git a/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder.d.ts b/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder.d.ts
index cba7901eff..0eb3e15012 100644
--- a/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder.d.ts
+++ b/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder.d.ts
@@ -92,9 +92,7 @@ export interface InitOutput {
readonly rdpdecoder_new: (a: number, b: number) => number;
readonly rdpdecoder_stride: (a: number) => number;
readonly rdpdecoder_width: (a: number) => number;
- readonly __wbindgen_externrefs: WebAssembly.Table;
- readonly __wbindgen_malloc: (a: number, b: number) => number;
- readonly __wbindgen_start: () => void;
+ readonly __wbindgen_export: (a: number, b: number) => number;
}
export type SyncInitInput = BufferSource | WebAssembly.Module;
diff --git a/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder.js b/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder.js
index 30572ad1cc..3f33c97b79 100644
--- a/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder.js
+++ b/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder.js
@@ -133,7 +133,7 @@ export class RdpDecoder {
* @returns {number}
*/
feed(action, bytes) {
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
const len0 = WASM_VECTOR_LEN;
const ret = wasm.rdpdecoder_feed(this.__wbg_ptr, action, ptr0, len0);
return ret >>> 0;
@@ -199,15 +199,6 @@ function __wbg_get_imports() {
__wbg___wbindgen_throw_9c31b086c2b26051: function(arg0, arg1) {
throw new Error(getStringFromWasm0(arg0, arg1));
},
- __wbindgen_init_externref_table: function() {
- const table = wasm.__wbindgen_externrefs;
- const offset = table.grow(4);
- table.set(0, undefined);
- table.set(offset + 0, undefined);
- table.set(offset + 1, null);
- table.set(offset + 2, true);
- table.set(offset + 3, false);
- },
};
return {
__proto__: null,
@@ -263,7 +254,6 @@ function __wbg_finalize_init(instance, module) {
wasm = instance.exports;
wasmModule = module;
cachedUint8ArrayMemory0 = null;
- wasm.__wbindgen_start();
return wasm;
}
diff --git a/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder_bg.wasm b/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder_bg.wasm
index 2e17217021..45e06b8b66 100644
Binary files a/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder_bg.wasm and b/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder_bg.wasm differ
diff --git a/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder_bg.wasm.d.ts b/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder_bg.wasm.d.ts
index ec0a321903..d1552d8640 100644
--- a/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder_bg.wasm.d.ts
+++ b/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder_bg.wasm.d.ts
@@ -20,6 +20,4 @@ export const rdpdecoder_move_pointer: (a: number, b: number, c: number) => numbe
export const rdpdecoder_new: (a: number, b: number) => number;
export const rdpdecoder_stride: (a: number) => number;
export const rdpdecoder_width: (a: number) => number;
-export const __wbindgen_externrefs: WebAssembly.Table;
-export const __wbindgen_malloc: (a: number, b: number) => number;
-export const __wbindgen_start: () => void;
+export const __wbindgen_export: (a: number, b: number) => number;
diff --git a/wasm/ironrdp-decoder/Cargo.toml b/wasm/ironrdp-decoder/Cargo.toml
index b6d73cfc6f..7ba48ced69 100644
--- a/wasm/ironrdp-decoder/Cargo.toml
+++ b/wasm/ironrdp-decoder/Cargo.toml
@@ -22,3 +22,7 @@ wasm-bindgen = "0.2"
opt-level = "s"
lto = true
codegen-units = 1
+strip = true
+
+[package.metadata.wasm-pack.profile.release]
+wasm-opt = ["-O", "--enable-bulk-memory"]