From f5672f7b75f0ddced343dfcf37c65247b9479f35 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Mon, 15 Sep 2025 18:45:43 +0200 Subject: [PATCH] chore: rename wiiu in variable names to wiiU --- src/cli/seed.cmd.ts | 2 +- src/cli/utils.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cli/seed.cmd.ts b/src/cli/seed.cmd.ts index 02ac12a..9594bdb 100644 --- a/src/cli/seed.cmd.ts +++ b/src/cli/seed.cmd.ts @@ -26,7 +26,7 @@ export async function uploadFileIfChanged(ops: UploadFileOptions): Promise 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; } diff --git a/src/cli/utils.ts b/src/cli/utils.ts index fbefbd1..a0d0e5d 100644 --- a/src/cli/utils.ts +++ b/src/cli/utils.ts @@ -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 ?? '';