mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-07-10 14:26:58 -05:00
chore: rename wiiu in variable names to wiiU
This commit is contained in:
parent
303ef570f5
commit
f5672f7b75
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 ?? '';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user