From ccce77ddcc160bed67ffe1cf96019e49ba02eba8 Mon Sep 17 00:00:00 2001 From: ZacharyZcR Date: Mon, 13 Jul 2026 22:59:47 +0800 Subject: [PATCH] Fix OPKSSH js-yaml ESM import (#1031) --- src/backend/ssh/opkssh-auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/ssh/opkssh-auth.ts b/src/backend/ssh/opkssh-auth.ts index b2890dc0..575b3bf0 100644 --- a/src/backend/ssh/opkssh-auth.ts +++ b/src/backend/ssh/opkssh-auth.ts @@ -11,7 +11,7 @@ import { FieldCrypto } from "../utils/field-crypto.js"; import { promises as fs } from "fs"; import path from "path"; import axios from "axios"; -import yaml from "js-yaml"; +import { load as loadYaml } from "js-yaml"; const AUTH_TIMEOUT = 60 * 1000; @@ -131,7 +131,7 @@ async function checkOPKConfigExists(): Promise<{ let providers: ProviderRedirectInfo[] = []; try { - const parsed = yaml.load(content) as { + const parsed = loadYaml(content) as { providers?: Array<{ alias?: string; issuer?: string;