mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-15 04:43:36 +00:00
Fix OPKSSH js-yaml ESM import (#1031)
This commit is contained in:
@@ -11,7 +11,7 @@ import { FieldCrypto } from "../utils/field-crypto.js";
|
|||||||
import { promises as fs } from "fs";
|
import { promises as fs } from "fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import yaml from "js-yaml";
|
import { load as loadYaml } from "js-yaml";
|
||||||
|
|
||||||
const AUTH_TIMEOUT = 60 * 1000;
|
const AUTH_TIMEOUT = 60 * 1000;
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ async function checkOPKConfigExists(): Promise<{
|
|||||||
|
|
||||||
let providers: ProviderRedirectInfo[] = [];
|
let providers: ProviderRedirectInfo[] = [];
|
||||||
try {
|
try {
|
||||||
const parsed = yaml.load(content) as {
|
const parsed = loadYaml(content) as {
|
||||||
providers?: Array<{
|
providers?: Array<{
|
||||||
alias?: string;
|
alias?: string;
|
||||||
issuer?: string;
|
issuer?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user