mirror of
https://github.com/langgenius/dify.git
synced 2026-09-19 10:11:30 +08:00
chore: upgrade Vite+ to 0.2.9 (#40762)
This commit is contained in:
@@ -12,7 +12,7 @@ import net from 'node:net'
|
||||
import os from 'node:os'
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, describe, expect, it } from 'vite-plus/test'
|
||||
|
||||
const tempDirs: string[] = []
|
||||
type DevProxyCliProcess = ChildProcessByStdio<null, Readable, Readable>
|
||||
@@ -99,7 +99,9 @@ const fetchTextWithRetry = async (url: string) => {
|
||||
}
|
||||
}
|
||||
|
||||
throw lastError
|
||||
throw lastError instanceof Error
|
||||
? lastError
|
||||
: new Error('Fetching the proxy response failed with a non-Error value.', { cause: lastError })
|
||||
}
|
||||
|
||||
const spawnCli = (args: readonly string[], cwd: string) => {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import fs from 'node:fs/promises'
|
||||
import os from 'node:os'
|
||||
import path from 'node:path'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { loadDevProxyConfig, parseDevProxyCliArgs, resolveDevProxyServerOptions } from './config'
|
||||
|
||||
const tempDirs: string[] = []
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @vitest-environment node
|
||||
*/
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import {
|
||||
getCookieHeaderValue,
|
||||
rewriteCookieHeaderForUpstream,
|
||||
|
||||
@@ -5,7 +5,7 @@ import { Buffer } from 'node:buffer'
|
||||
import http from 'node:http'
|
||||
import net from 'node:net'
|
||||
import { PassThrough } from 'node:stream'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { resolveCookieRewriteLocalScopeKey, toScopedLocalCookieName } from './cookies'
|
||||
import {
|
||||
buildUpstreamUrl,
|
||||
|
||||
Reference in New Issue
Block a user