Skip to content

Commit

Permalink
update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Sep 14, 2024
1 parent 0818364 commit 061ca18
Show file tree
Hide file tree
Showing 23 changed files with 111 additions and 150 deletions.
21 changes: 21 additions & 0 deletions dist/dist/monero.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/dist/monero.worker.js.map

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions dist/dist/monero_wallet_full.js

This file was deleted.

Binary file removed dist/dist/monero_wallet_full.wasm
Binary file not shown.
21 changes: 0 additions & 21 deletions dist/dist/monero_wallet_keys.js

This file was deleted.

Binary file removed dist/dist/monero_wallet_keys.wasm
Binary file not shown.
1 change: 0 additions & 1 deletion dist/dist/monero_web_worker.js.map

This file was deleted.

21 changes: 21 additions & 0 deletions dist/monero.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/monero.worker.js

Large diffs are not rendered by default.

File renamed without changes.
1 change: 1 addition & 0 deletions dist/monero.worker.js.map

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions dist/monero_wallet_full.js

This file was deleted.

Binary file removed dist/monero_wallet_full.wasm
Binary file not shown.
21 changes: 0 additions & 21 deletions dist/monero_wallet_keys.js

This file was deleted.

Binary file removed dist/monero_wallet_keys.wasm
Binary file not shown.
3 changes: 0 additions & 3 deletions dist/monero_web_worker.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/monero_web_worker.js.map

This file was deleted.

20 changes: 12 additions & 8 deletions dist/src/main/ts/common/LibraryUtils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default class LibraryUtils {
static readonly MUTEX: ThreadPool;
static WORKER_DIST_PATH_DEFAULT: any;
static WORKER_DIST_PATH: any;
static WORKER_LOADER?: () => Worker;
/**
* Log a message.
*
Expand Down Expand Up @@ -41,18 +42,12 @@ export default class LibraryUtils {
* Get the WebAssembly module in the current context (nodejs, browser main thread or worker).
*/
static getWasmModule(): any;
/**
* Load the WebAssembly keys module with caching.
*/
static loadKeysModule(): Promise<any>;
/**
* Load the WebAssembly full module with caching.
*
* The full module is a superset of the keys module and overrides it.
*
* TODO: this is separate static function from loadKeysModule() because webpack cannot bundle worker using runtime param for conditional import
*/
static loadFullModule(): Promise<any>;
static loadWasmModule(): Promise<any>;
/**
* Register a function by id which informs if unauthorized requests (e.g.
* self-signed certificates) should be rejected.
Expand All @@ -68,12 +63,21 @@ export default class LibraryUtils {
*/
static isRejectUnauthorized(fnId: any): any;
/**
* Set the path to load the worker. Defaults to "/monero_web_worker.js" in the browser
* Set the path to load the worker. Defaults to "/monero.worker.js" in the browser
* and "./MoneroWebWorker.js" in node.
*
* @param {string} workerDistPath - path to load the worker
*/
static setWorkerDistPath(workerDistPath: any): void;
/**
* Set the worker loader closure to customize worker loading.
* Takes precedence over default loading mechanisms.
*
* Could be as simple as `() => new Worker(new URL("monero-ts/dist/monero.worker.js", import.meta.url));` for browsers.
*
* @param {function} loader - loader function which instantiates a worker
*/
static setWorkerLoader(loader?: () => Worker): void;
/**
* Get a singleton instance of a worker to share.
*
Expand Down
62 changes: 31 additions & 31 deletions dist/src/main/ts/common/LibraryUtils.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/src/main/ts/common/MoneroRpcConnection.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/src/main/ts/common/MoneroUtils.js

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions dist/src/main/ts/wallet/MoneroWalletFull.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/src/main/ts/wallet/MoneroWalletKeys.js

Large diffs are not rendered by default.

0 comments on commit 061ca18

Please sign in to comment.