test
Some checks failed
Podman Rootless Demo / test-backend (push) Has been skipped
Podman Rootless Demo / test-frontend (push) Has been skipped
Podman Rootless Demo / build-backend (push) Has been skipped
Podman Rootless Demo / build-frontend (push) Failing after 8m16s
Podman Rootless Demo / deploy-prod (push) Has been skipped

This commit is contained in:
continuist 2025-10-26 00:00:10 -04:00
parent 33e5d8f5d8
commit ba89ea6271
3 changed files with 8 additions and 7 deletions

View file

@ -23,7 +23,7 @@ RUN echo 'git-fetch-with-cli = true' >> $CARGO_HOME/config.toml
# Copy WASM source and build # Copy WASM source and build
COPY wasm/Cargo.toml wasm/Cargo.lock ./wasm/ COPY wasm/Cargo.toml wasm/Cargo.lock ./wasm/
COPY wasm/src ./wasm/src/ COPY wasm/src ./wasm/src/
RUN cd wasm && wasm-pack build --target web --mode no-install RUN cd wasm && wasm-pack build --target web
# ---------- build ---------- # ---------- build ----------
FROM docker.io/node:20-slim AS builder FROM docker.io/node:20-slim AS builder

View file

@ -1,11 +1,11 @@
/** /**
* This file is part of Sharenet. * This file is part of Sharenet.
* *
* Sharenet is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. * Sharenet is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
* *
* You may obtain a copy of the license at: * You may obtain a copy of the license at:
* https://creativecommons.org/licenses/by-nc-sa/4.0/ * https://creativecommons.org/licenses/by-nc-sa/4.0/
* *
* Copyright (c) 2024 Continuist <continuist02@gmail.com> * Copyright (c) 2024 Continuist <continuist02@gmail.com>
*/ */

View file

@ -54,11 +54,12 @@ export class PassportWASMLoader {
} }
try { try {
// Dynamically import the WASM module // Dynamically import the WASM module - for sync WebAssembly
const wasm = await import('./wasm-pkg/sharenet_passport_wasm'); const wasm = await import('./wasm-pkg/sharenet_passport_wasm_bg');
const init = await import('./wasm-pkg/sharenet_passport_wasm');
// Initialize the WASM module // Initialize the WASM module
await wasm.default(); await init.default();
// Create wrapper functions with proper typing // Create wrapper functions with proper typing
const wasmModule: PassportWASM = { const wasmModule: PassportWASM = {