Skip to content

Commit ae07edf

Browse files
committed
V5.2.1 - Downgraded UV + Load URL Faster
1 parent 8f3483e commit ae07edf

File tree

24 files changed

+340
-1349
lines changed

24 files changed

+340
-1349
lines changed

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dist/
22
node_modules
33
package-lock.json
44
package.json
5-
/static/assets/y/
5+
/static/assets/-/
66
/static/dy/
77
**/*.min.*
88
prettierrc

index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
// @ts-check
21
import http from "node:http"
32
import path from "node:path"
43
import { createBareServer } from "@tomphttp/bare-server-node"
54
import cors from "cors"
65
import express from "express"
76
import basicAuth from "express-basic-auth"
8-
import wisp from "wisp-server-node"
9-
import { libcurlPath } from "@mercuryworkshop/libcurl-transport"
107
import config from "./config.js"
118

129
const __dirname = process.cwd()
@@ -31,7 +28,6 @@ app.use(express.json())
3128
app.use(express.urlencoded({ extended: true }))
3229
app.use(cors())
3330
app.use(express.static(path.join(__dirname, "static")))
34-
app.use("/libcurl/", express.static(libcurlPath))
3531

3632
const routes = [
3733
{ path: "/as", file: "apps.html" },
@@ -98,8 +94,6 @@ server.on("request", (req, res) => {
9894
server.on("upgrade", (req, socket, head) => {
9995
if (bareServer.shouldRoute(req)) {
10096
bareServer.routeUpgrade(req, socket, head)
101-
} else if (req.url?.endsWith("/u/")) {
102-
wisp.routeRequest(req, socket, head)
10397
} else {
10498
socket.end()
10599
}

0 commit comments

Comments
 (0)