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
No known key found for this signature in database
GPG Key ID: 6AC74DE3DEF050E0
4 changed files with 13 additions and 11 deletions

14
package-lock.json generated
View File

@ -10,7 +10,7 @@
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "^3.723.0", "@aws-sdk/client-s3": "^3.723.0",
"@pretendonetwork/boss-crypto": "^1.1.3", "@pretendonetwork/boss-crypto": "^1.2.2",
"@pretendonetwork/grpc": "^2.3.5", "@pretendonetwork/grpc": "^2.3.5",
"@typegoose/auto-increment": "^4.13.1", "@typegoose/auto-increment": "^4.13.1",
"commander": "^14.0.0", "commander": "^14.0.0",
@ -2047,9 +2047,9 @@
} }
}, },
"node_modules/@pretendonetwork/boss-crypto": { "node_modules/@pretendonetwork/boss-crypto": {
"version": "1.1.3", "version": "1.2.2",
"resolved": "https://registry.npmjs.org/@pretendonetwork/boss-crypto/-/boss-crypto-1.1.3.tgz", "resolved": "https://registry.npmjs.org/@pretendonetwork/boss-crypto/-/boss-crypto-1.2.2.tgz",
"integrity": "sha512-7SJFgpR7RVsfhWL9SGMbChYrE/IOU5PmO1kWIifXSX5H6GEAIvpdV9HV1werru/pA6DyWJw0dGWlPmHvT3AWnA==", "integrity": "sha512-sGlMiXGIThWfbs85xdWuJdgmW6YV6aQ8znh3vWWwG08BwpzzqgflluFYKhy6P0rpiMUJQuDAWK1IcVIsjD1lhw==",
"license": "LGPL-3.0-only" "license": "LGPL-3.0-only"
}, },
"node_modules/@pretendonetwork/eslint-config": { "node_modules/@pretendonetwork/eslint-config": {
@ -11299,9 +11299,9 @@
"optional": true "optional": true
}, },
"@pretendonetwork/boss-crypto": { "@pretendonetwork/boss-crypto": {
"version": "1.1.3", "version": "1.2.2",
"resolved": "https://registry.npmjs.org/@pretendonetwork/boss-crypto/-/boss-crypto-1.1.3.tgz", "resolved": "https://registry.npmjs.org/@pretendonetwork/boss-crypto/-/boss-crypto-1.2.2.tgz",
"integrity": "sha512-7SJFgpR7RVsfhWL9SGMbChYrE/IOU5PmO1kWIifXSX5H6GEAIvpdV9HV1werru/pA6DyWJw0dGWlPmHvT3AWnA==" "integrity": "sha512-sGlMiXGIThWfbs85xdWuJdgmW6YV6aQ8znh3vWWwG08BwpzzqgflluFYKhy6P0rpiMUJQuDAWK1IcVIsjD1lhw=="
}, },
"@pretendonetwork/eslint-config": { "@pretendonetwork/eslint-config": {
"version": "0.1.1", "version": "0.1.1",

View File

@ -14,7 +14,7 @@
}, },
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "^3.723.0", "@aws-sdk/client-s3": "^3.723.0",
"@pretendonetwork/boss-crypto": "^1.1.3", "@pretendonetwork/boss-crypto": "^1.2.2",
"@pretendonetwork/grpc": "^2.3.5", "@pretendonetwork/grpc": "^2.3.5",
"@typegoose/auto-increment": "^4.13.1", "@typegoose/auto-increment": "^4.13.1",
"commander": "^14.0.0", "commander": "^14.0.0",

View File

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

View File

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