mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-06 00:32:13 +08:00
Revert "fix: update js-yaml imports for v5"
This reverts commit250198d547. Revert "chore(deps): update dependency js-yaml to v5 (#7331)" This reverts commitb44f671fc2.
This commit is contained in:
@@ -33,7 +33,7 @@ import {
|
||||
Typography,
|
||||
useTheme,
|
||||
} from '@mui/material'
|
||||
import { load } from 'js-yaml'
|
||||
import yaml from 'js-yaml'
|
||||
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import {
|
||||
@@ -431,7 +431,7 @@ export const ProxyChain = ({
|
||||
if (chainConfigData) {
|
||||
try {
|
||||
// JSON is valid YAML, so one parser covers both persisted formats.
|
||||
const parsedConfig = load(chainConfigData) as ParsedChainConfig
|
||||
const parsedConfig = yaml.load(chainConfigData) as ParsedChainConfig
|
||||
const chainItems = toChainItems(parsedConfig)
|
||||
|
||||
if (chainItems.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user