refactor: major package updates

This commit is contained in:
鲁树人
2025-10-16 01:00:38 +09:00
parent 2e52c67533
commit a11caaae92
34 changed files with 373 additions and 240 deletions
@@ -26,17 +26,17 @@ export class NetEaseCloudMusicDecipher implements DecipherInstance {
for (const [block, offset] of chunkBuffer(audioBuffer)) {
ncm.decrypt(block, offset);
}
return {
return Promise.resolve({
status: Status.OK,
cipherName: this.cipherName,
data: audioBuffer,
};
});
} finally {
ncm.free();
}
}
public static make() {
public static make(this: void) {
return new NetEaseCloudMusicDecipher();
}
}