chore: Update pretendonetwork/boss-crypto to 1.2.2

Plus some other fixes.
This commit is contained in:
Daniel López Guimaraes
2025-11-11 11:53:08 +00:00
parent ce8f6a1356
commit 17bdbb2751
4 changed files with 13 additions and 11 deletions

View File

@@ -84,7 +84,8 @@ const downloadCmd = new Command('download')
const ctx = getCliContext();
const { files } = await ctx.grpc.listFilesCTR({
bossAppId: appId,
taskId: taskId
taskId: taskId,
any: true
});
const file = files.find(v => v.dataId === dataId);
if (!file) {
@@ -94,7 +95,7 @@ const downloadCmd = new Command('download')
const npdl = ctx.getNpdlUrl();
const country = file.supportedCountries.length > 0 ? '/' + file.supportedCountries[0] : '';
const language = file.supportedLanguages.length > 0 ? '/' + file.supportedCountries[0] : '';
const language = file.supportedLanguages.length > 0 ? '/' + file.supportedLanguages[0] : '';
const { body, statusCode } = await request(`${npdl.url}/p01/nsa/${file.bossAppId}/${file.taskId}${country}${language}/${file.name}`, {
headers: {
Host: npdl.host

View File

@@ -87,7 +87,8 @@ const downloadCmd = new Command('download')
const ctx = getCliContext();
const { files } = await ctx.grpc.listFilesWUP({
bossAppId: appId,
taskId: taskId
taskId: taskId,
any: true
});
const file = files.find(v => v.dataId === dataId);
if (!file) {