chore: rename wiiu in variable names to wiiU

This commit is contained in:
mrjvs 2025-09-15 18:45:43 +02:00
parent 303ef570f5
commit f5672f7b75
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ export async function uploadFileIfChanged(ops: UploadFileOptions): Promise<void>
if (newTaskFileName.startsWith(`${ops.dataId}.enc.`)) {
// File is encrypted, let's decrypt before processing
console.log(`${ops.dataId}: File is encrypted, decrypting...`);
const keys = ops.ctx.getWiiuKeys();
const keys = ops.ctx.getWiiUKeys();
const decryptedContents = BOSS.decryptWiiU(fileContents, keys.aesKey, keys.hmacKey);
fileContents = decryptedContents.content;
}

View File

@ -2,11 +2,11 @@ import { BOSSDefinition } from '@pretendonetwork/grpc/boss/boss_service';
import { createChannel, createClient, Metadata } from 'nice-grpc';
import type { BOSSClient } from '@pretendonetwork/grpc/boss/boss_service';
export type WiiuKeys = { aesKey: string; hmacKey: string };
export type WiiUKeys = { aesKey: string; hmacKey: string };
export type CliContext = {
grpc: BOSSClient;
getWiiuKeys: () => WiiuKeys;
getWiiUKeys: () => WiiUKeys;
};
export function getCliContext(): CliContext {
@ -31,7 +31,7 @@ export function getCliContext(): CliContext {
return {
grpc: client,
getWiiuKeys(): WiiuKeys {
getWiiUKeys(): WiiUKeys {
const aesKey = process.env.PN_BOSS_CLI_WIIU_AES_KEY ?? '';
const hmacKey = process.env.PN_BOSS_CLI_WIIU_HMAC_KEY ?? '';