mirror of
https://git.um-react.app/um/lib_um_crypto_rust.git
synced 2026-03-08 04:29:54 +00:00
[wasm] fix: properly export function to fetch package version
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@unlock-music/crypto",
|
||||
"version": "0.0.0-alpha.14",
|
||||
"version": "0.0.0-alpha.15",
|
||||
"description": "Project Unlock Music: 加解密支持库",
|
||||
"scripts": {
|
||||
"build": "node build.js",
|
||||
|
||||
7
um_wasm_loader/src/loader.d.ts
vendored
7
um_wasm_loader/src/loader.d.ts
vendored
@@ -1,2 +1,9 @@
|
||||
export * from '../pkg/um_wasm';
|
||||
|
||||
/**
|
||||
* Get package version.
|
||||
* @returns {string}
|
||||
*/
|
||||
export function getUmcVersion(): string;
|
||||
|
||||
export const ready: Promise<void>;
|
||||
|
||||
@@ -21,10 +21,6 @@ function loader() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get package version.
|
||||
* @returns {string}
|
||||
*/
|
||||
export function getUmcVersion() {
|
||||
return process.env.UMC_VERSION;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user