Skip to content

Commit

Permalink
update to uv v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Jul 11, 2024
1 parent dd2d9c1 commit f92ba67
Show file tree
Hide file tree
Showing 27 changed files with 17 additions and 988 deletions.
661 changes: 0 additions & 661 deletions bin/LICENSE

This file was deleted.

61 changes: 0 additions & 61 deletions bin/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions bin/client.d.ts

This file was deleted.

23 changes: 0 additions & 23 deletions bin/dist/sw.js

This file was deleted.

26 changes: 0 additions & 26 deletions bin/dist/uv.bundle.js

This file was deleted.

7 changes: 0 additions & 7 deletions bin/dist/uv.bundle.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions bin/dist/uv.client.js

This file was deleted.

7 changes: 0 additions & 7 deletions bin/dist/uv.client.js.map

This file was deleted.

11 changes: 0 additions & 11 deletions bin/dist/uv.config.js

This file was deleted.

2 changes: 0 additions & 2 deletions bin/dist/uv.handler.js

This file was deleted.

7 changes: 0 additions & 7 deletions bin/dist/uv.handler.js.map

This file was deleted.

3 changes: 0 additions & 3 deletions bin/dist/uv.sw.js

This file was deleted.

7 changes: 0 additions & 7 deletions bin/dist/uv.sw.js.map

This file was deleted.

7 changes: 0 additions & 7 deletions bin/lib/index.cjs

This file was deleted.

5 changes: 0 additions & 5 deletions bin/lib/index.d.cts

This file was deleted.

39 changes: 0 additions & 39 deletions bin/package.json

This file was deleted.

91 changes: 0 additions & 91 deletions bin/uv.d.ts

This file was deleted.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@
"author": "Titanium Network",
"license": "GNU AFFERO",
"dependencies": {
"@mercuryworkshop/bare-mux": "^1.1.0",
"@mercuryworkshop/epoxy-transport": "^1.1.0",
"@mercuryworkshop/bare-mux": "^2.0.1",
"@mercuryworkshop/epoxy-transport": "^2.1.2",
"@titaniumnetwork-dev/ultraviolet": "3.2.1",
"@tomphttp/bare-server-node": "^2.0.3",
"axios": "^1.7.2",
"express": "^4.19.2",
"helmet": "^7.1.0",
"mime-types": "^2.1.35",
"puppeteer": "^22.12.1",
"rammerhead": "https://github.com/NebulaServices/rammerhead/releases/download/rammerhead-1.2.41-nebula.8/rammerhead-1.2.41-nebula.7.tgz",
"wisp-server-node": "^1.0.6",
"wisp-server-node": "^1.1.0",
"ws": "^8.18.0"
}
}
5 changes: 3 additions & 2 deletions proxyServiceValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ const testServerResponse = async () => {
"http://localhost:8080/assets/js/links-1644738239.js",
"http://localhost:8080/assets/js/csel.js",
"http://localhost:8080/assets/js/particlesjs/particles.js",
"http://localhost:8080/baremux/bare.cjs",
"http://localhost:8080/epoxy/index.js",
"http://localhost:8080/baremux/index.js",
"http://localhost:8080/baremux/worker.mjs",
"http://localhost:8080/epoxy/index.mjs",
"http://localhost:8080/uv/uv.bundle.js",
"http://localhost:8080/uv/uv.config.js",
"http://localhost:8080/assets/js/register-sw.js",
Expand Down
7 changes: 1 addition & 6 deletions src/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { createBareServer } from "@tomphttp/bare-server-node";
import wisp from "wisp-server-node";
import { epoxyPath } from "@mercuryworkshop/epoxy-transport";
import { baremuxPath } from "@mercuryworkshop/bare-mux/node";
import { uvPath } from "../bin/lib/index.cjs";
import { uvPath } from "@titaniumnetwork-dev/ultraviolet";

const config = JSON.parse(
await readFile(new URL("./config.json", import.meta.url))
Expand All @@ -24,11 +24,6 @@ router = express.Router(),
bare = createBareServer("/bare/"),
rh = createRammerhead();

app.get("/baremux/bare.cjs", (req, res) => {
res.setHeader("Content-Type", "application/javascript");
res.sendFile(path.join(baremuxPath, "bare.cjs"));
});

const rammerheadScopes = [
"/rammerhead.js",
"/hammerhead.js",
Expand Down
Loading

0 comments on commit f92ba67

Please sign in to comment.