Compare commits
No commits in common. "f5e3a251972b9f345b68628a5c4b3e8f72b8309f" and "c5aef7dd13b9498707a690d2f9c7f73dae0f670e" have entirely different histories.
f5e3a25197
...
c5aef7dd13
@ -3,7 +3,7 @@ use umc_ncm::NetEaseCryptoError;
|
||||
use wasm_bindgen::prelude::wasm_bindgen;
|
||||
use wasm_bindgen::JsError;
|
||||
|
||||
/// NCMFile
|
||||
/// QMC Footer.
|
||||
#[wasm_bindgen(js_name=NCMFile)]
|
||||
pub struct JsNCMFile {
|
||||
ncm: Option<NCMFile>,
|
||||
@ -11,12 +11,6 @@ pub struct JsNCMFile {
|
||||
|
||||
#[wasm_bindgen(js_class=NCMFile)]
|
||||
impl JsNCMFile {
|
||||
/// Create a NCMFile instance
|
||||
#[wasm_bindgen(constructor)]
|
||||
pub fn new() -> Result<JsNCMFile, JsError> {
|
||||
Ok(JsNCMFile { ncm: None })
|
||||
}
|
||||
|
||||
/// Open NCM file.
|
||||
/// If everything is ok, return `0`.
|
||||
///
|
||||
|
@ -1,2 +1 @@
|
||||
@um:registry=https://git.unlock-music.dev/api/packages/um/npm/
|
||||
@unlock-music:registry=https://git.unlock-music.dev/api/packages/um/npm/
|
||||
|
@ -1,4 +1,4 @@
|
||||
# @unlock-music/crypto
|
||||
# @um/crypto
|
||||
|
||||
用于 Unlock Music 的加解密支持库。
|
||||
|
||||
@ -9,17 +9,17 @@
|
||||
在项目根目录下,建立或更改 `.npmrc` 文件,确保下述行存在:
|
||||
|
||||
```
|
||||
@unlock-music:registry=https://git.unlock-music.dev/api/packages/um/npm/
|
||||
@um:registry=https://git.unlock-music.dev/api/packages/um/npm/
|
||||
```
|
||||
|
||||
使用你喜欢的包管理器安装,例如 `npm` 或 `pnpm`:
|
||||
|
||||
```sh
|
||||
# 使用 npm
|
||||
npm install @unlock-music/crypto
|
||||
npm install @um/crypto
|
||||
|
||||
# 使用 pnpm
|
||||
pnpm install @unlock-music/crypto
|
||||
pnpm install @um/crypto
|
||||
```
|
||||
|
||||
具体能干啥… 参考源码吧。
|
||||
|
@ -92,9 +92,6 @@ async function main() {
|
||||
// Ask rollup to build bundles.
|
||||
await run(['pnpm', 'build:bundle']);
|
||||
await run(['pnpm', 'exec', 'prettier', '--ignore-path', '', '-w', 'dist/loader.d.ts']);
|
||||
await replaceFileByRegex(path.join(wasmDistDir, 'loader.mjs'), [
|
||||
['fetch(filepath)', 'fetch(new URL(filepath, import.meta.url))'],
|
||||
]);
|
||||
}
|
||||
|
||||
main()
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@unlock-music/crypto",
|
||||
"name": "@um/crypto",
|
||||
"version": "0.0.0-alpha.2",
|
||||
"description": "Project Unlock Music: 加解密支持库",
|
||||
"scripts": {
|
||||
|
Loading…
Reference in New Issue
Block a user