ci: docker_tag=ext - Fix WebAssembly import paths
This commit is contained in:
parent
2bfee359e0
commit
ae58d95e39
@ -44,7 +44,7 @@ jobs:
|
|||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
source ~/.cargo/env
|
source ~/.cargo/env
|
||||||
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||||
|
|
||||||
# Build the WebAssembly package
|
# Build the WebAssembly package
|
||||||
npm run build_wasm
|
npm run build_wasm
|
||||||
|
|
||||||
|
3679
package-lock.json
generated
3679
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1038,18 +1038,18 @@ export function validate_merkle_proof(proof_result, hash) {
|
|||||||
return ret[0] !== 0;
|
return ret[0] !== 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function __wbg_adapter_8(arg0, arg1, arg2) {
|
function __wbg_adapter_12(arg0, arg1) {
|
||||||
_assertNum(arg0);
|
|
||||||
_assertNum(arg1);
|
|
||||||
wasm.closure681_externref_shim(arg0, arg1, arg2);
|
|
||||||
}
|
|
||||||
|
|
||||||
function __wbg_adapter_13(arg0, arg1) {
|
|
||||||
_assertNum(arg0);
|
_assertNum(arg0);
|
||||||
_assertNum(arg1);
|
_assertNum(arg1);
|
||||||
wasm.wasm_bindgen__convert__closures_____invoke__hc142e2252e76ee8b(arg0, arg1);
|
wasm.wasm_bindgen__convert__closures_____invoke__hc142e2252e76ee8b(arg0, arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function __wbg_adapter_17(arg0, arg1, arg2) {
|
||||||
|
_assertNum(arg0);
|
||||||
|
_assertNum(arg1);
|
||||||
|
wasm.closure681_externref_shim(arg0, arg1, arg2);
|
||||||
|
}
|
||||||
|
|
||||||
function __wbg_adapter_195(arg0, arg1, arg2, arg3) {
|
function __wbg_adapter_195(arg0, arg1, arg2, arg3) {
|
||||||
_assertNum(arg0);
|
_assertNum(arg0);
|
||||||
_assertNum(arg1);
|
_assertNum(arg1);
|
||||||
@ -1650,7 +1650,7 @@ export function __wbindgen_cast_4625c577ab2ec9ee() { return logError(function (a
|
|||||||
|
|
||||||
export function __wbindgen_cast_58494022e70f54b0() { return logError(function (arg0, arg1) {
|
export function __wbindgen_cast_58494022e70f54b0() { return logError(function (arg0, arg1) {
|
||||||
// Cast intrinsic for `Closure(Closure { dtor_idx: 680, function: Function { arguments: [Externref], shim_idx: 681, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 680, function: Function { arguments: [Externref], shim_idx: 681, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
||||||
const ret = makeMutClosure(arg0, arg1, 680, __wbg_adapter_8);
|
const ret = makeMutClosure(arg0, arg1, 680, __wbg_adapter_17);
|
||||||
return ret;
|
return ret;
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
|
|
||||||
@ -1674,7 +1674,7 @@ export function __wbindgen_cast_d6cd19b81560fd6e() { return logError(function (a
|
|||||||
|
|
||||||
export function __wbindgen_cast_e4869fcaa62df339() { return logError(function (arg0, arg1) {
|
export function __wbindgen_cast_e4869fcaa62df339() { return logError(function (arg0, arg1) {
|
||||||
// Cast intrinsic for `Closure(Closure { dtor_idx: 663, function: Function { arguments: [], shim_idx: 664, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 663, function: Function { arguments: [], shim_idx: 664, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
||||||
const ret = makeMutClosure(arg0, arg1, 663, __wbg_adapter_13);
|
const ret = makeMutClosure(arg0, arg1, 663, __wbg_adapter_12);
|
||||||
return ret;
|
return ret;
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
|
|
||||||
|
Binary file not shown.
2
pkg/sdk_client_bg.wasm.d.ts
vendored
2
pkg/sdk_client_bg.wasm.d.ts
vendored
@ -67,7 +67,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|||||||
export const __externref_table_dealloc: (a: number) => void;
|
export const __externref_table_dealloc: (a: number) => void;
|
||||||
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
||||||
export const __externref_drop_slice: (a: number, b: number) => void;
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
||||||
export const closure681_externref_shim: (a: number, b: number, c: any) => void;
|
|
||||||
export const wasm_bindgen__convert__closures_____invoke__hc142e2252e76ee8b: (a: number, b: number) => void;
|
export const wasm_bindgen__convert__closures_____invoke__hc142e2252e76ee8b: (a: number, b: number) => void;
|
||||||
|
export const closure681_externref_shim: (a: number, b: number, c: any) => void;
|
||||||
export const closure1281_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
export const closure1281_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
||||||
export const __wbindgen_start: () => void;
|
export const __wbindgen_start: () => void;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Device, Process, SecretsStore } from "../pkg/sdk_client.js";
|
import { Device, Process, SecretsStore } from "../../pkg/sdk_client.js";
|
||||||
|
|
||||||
export interface BackUp {
|
export interface BackUp {
|
||||||
device: Device,
|
device: Device,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { interpolate } from '../../utils/html.utils';
|
import { interpolate } from '../../utils/html.utils';
|
||||||
import Services from '../../services/service';
|
import Services from '../../services/service';
|
||||||
import { Process } from '../pkg/sdk_client.js';
|
import { Process } from '../../pkg/sdk_client.js';
|
||||||
import { getCorrectDOM } from '~/utils/document.utils';
|
import { getCorrectDOM } from '~/utils/document.utils';
|
||||||
|
|
||||||
let currentPageStyle: HTMLStyleElement | null = null;
|
let currentPageStyle: HTMLStyleElement | null = null;
|
||||||
|
@ -10,7 +10,7 @@ import { prepareAndSendPairingTx } from './utils/sp-address.utils';
|
|||||||
import ModalService from './services/modal.service';
|
import ModalService from './services/modal.service';
|
||||||
import { MessageType } from './models/process.model';
|
import { MessageType } from './models/process.model';
|
||||||
import { splitPrivateData, isValid32ByteHex } from './utils/service.utils';
|
import { splitPrivateData, isValid32ByteHex } from './utils/service.utils';
|
||||||
import { MerkleProofResult } from './pkg/sdk_client.js';
|
import { MerkleProofResult } from '../../pkg/sdk_client.js';
|
||||||
|
|
||||||
const routes: { [key: string]: string } = {
|
const routes: { [key: string]: string } = {
|
||||||
home: '/src/pages/home/home.html',
|
home: '/src/pages/home/home.html',
|
||||||
|
@ -4,7 +4,7 @@ import validationModalStyle from '../components/validation-modal/validation-moda
|
|||||||
import Services from './service';
|
import Services from './service';
|
||||||
import { init, navigate } from '../router';
|
import { init, navigate } from '../router';
|
||||||
import { addressToEmoji } from '../utils/sp-address.utils';
|
import { addressToEmoji } from '../utils/sp-address.utils';
|
||||||
import { RoleDefinition } from './pkg/sdk_client.js';
|
import { RoleDefinition } from '../../pkg/sdk_client.js';
|
||||||
import { initValidationModal } from '~/components/validation-modal/validation-modal';
|
import { initValidationModal } from '~/components/validation-modal/validation-modal';
|
||||||
import { interpolate } from '~/utils/html.utils';
|
import { interpolate } from '~/utils/html.utils';
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { INotification } from '~/models/notification.model';
|
import { INotification } from '~/models/notification.model';
|
||||||
import { IProcess } from '~/models/process.model';
|
import { IProcess } from '~/models/process.model';
|
||||||
import { initWebsocket, sendMessage } from '../websockets';
|
import { initWebsocket, sendMessage } from '../websockets';
|
||||||
import { ApiReturn, Device, HandshakeMessage, Member, MerkleProofResult, NewTxMessage, OutPointProcessMap, Process, ProcessState, RoleDefinition, SecretsStore, UserDiff } from '../pkg/sdk_client.js';
|
import { ApiReturn, Device, HandshakeMessage, Member, MerkleProofResult, NewTxMessage, OutPointProcessMap, Process, ProcessState, RoleDefinition, SecretsStore, UserDiff } from '../../pkg/sdk_client.js';
|
||||||
import ModalService from './modal.service';
|
import ModalService from './modal.service';
|
||||||
import Database from './database.service';
|
import Database from './database.service';
|
||||||
import { navigate } from '../router';
|
import { navigate } from '../router';
|
||||||
@ -60,7 +60,7 @@ export default class Services {
|
|||||||
public async init(): Promise<void> {
|
public async init(): Promise<void> {
|
||||||
this.notifications = this.getNotifications();
|
this.notifications = this.getNotifications();
|
||||||
// SDK ES module est déjà importé statiquement si nécessaire
|
// SDK ES module est déjà importé statiquement si nécessaire
|
||||||
this.sdkClient = await import('../pkg/sdk_client.js');
|
this.sdkClient = await import('../../pkg/sdk_client.js');
|
||||||
this.sdkClient.setup();
|
this.sdkClient.setup();
|
||||||
// Initialise la base locale (IndexedDB) avant toute utilisation
|
// Initialise la base locale (IndexedDB) avant toute utilisation
|
||||||
this.database = await Database.getInstance();
|
this.database = await Database.getInstance();
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { AnkFlag } from './pkg/sdk_client.js';
|
import { AnkFlag } from '../../pkg/sdk_client.js';
|
||||||
import Services from './services/service';
|
import Services from './services/service';
|
||||||
|
|
||||||
let ws: WebSocket;
|
let ws: WebSocket;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user