Compare commits

...

2 Commits

2 changed files with 7 additions and 1 deletions

View File

@ -23,6 +23,12 @@ impl JsKuwoHeader {
pub fn quality_id(&self) -> u32 { pub fn quality_id(&self) -> u32 {
self.0.get_quality_id() self.0.get_quality_id()
} }
/// Get resource id
#[wasm_bindgen(getter, js_name=resourceId)]
pub fn resource_id(&self) -> u32 {
self.0.resource_id
}
} }
/// Create a decipher instance for "BoDian Music". /// Create a decipher instance for "BoDian Music".

View File

@ -1,6 +1,6 @@
{ {
"name": "@unlock-music/crypto", "name": "@unlock-music/crypto",
"version": "0.0.0-alpha.16", "version": "0.0.0-alpha.17",
"description": "Project Unlock Music: 加解密支持库", "description": "Project Unlock Music: 加解密支持库",
"scripts": { "scripts": {
"build": "node build.js", "build": "node build.js",