diff --git a/index.html b/index.html index be30e82..515b1b0 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ + diff --git a/package.json b/package.json index 963cc1c..8629647 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "@fastify/static": "^6.12.0", "@mercuryworkshop/bare-mux": "^1.0.4", "@mercuryworkshop/epoxy-transport": "^1.0.2", + "@mercuryworkshop/libcurl-transport": "^1.2.0", "@nebula-services/dynamic": "0.7.2-patch.2", "@titaniumnetwork-dev/ultraviolet": "^3.0.0", "@tomphttp/bare-server-node": "2.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6835ba6..9cf4954 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,9 @@ dependencies: '@mercuryworkshop/epoxy-transport': specifier: ^1.0.2 version: 1.0.2(typescript@5.4.2) + '@mercuryworkshop/libcurl-transport': + specifier: ^1.2.0 + version: 1.2.0(typescript@5.4.2) '@nebula-services/dynamic': specifier: 0.7.2-patch.2 version: 0.7.2-patch.2 @@ -851,6 +854,21 @@ packages: - utf-8-validate dev: false + /@mercuryworkshop/libcurl-transport@1.2.0(typescript@5.4.2): + resolution: {integrity: sha512-jONOZ/jbLAuSd+m0d1Z4JAnB08VbyYf1or8nKFdyNn4TudDnu0yDQnRYuD/nELUXnOJNT7WnjEGIpaeLcNdXCg==} + dependencies: + esbuild-plugin-umd-wrapper: 2.0.0 + libcurl.js: 0.4.2 + rollup: 4.12.1 + rollup-plugin-node-resolve: 5.2.0(rollup@4.12.1) + rollup-plugin-typescript2: 0.36.0(rollup@4.12.1)(typescript@5.4.2) + ws: 8.16.0 + transitivePeerDependencies: + - bufferutil + - typescript + - utf-8-validate + dev: false + /@nebula-services/dynamic@0.7.2-patch.2: resolution: {integrity: sha512-0g1ygwVNS0dmT38NIeZYc2Z5HiZKHT3tP7ZagIeWC/VlcZjINIPR4ThNndWVaGiZey2Y2JS2807ABb41OSYTrw==} dependencies: @@ -4170,6 +4188,10 @@ packages: type-check: 0.4.0 dev: true + /libcurl.js@0.4.2: + resolution: {integrity: sha512-WuL2EgeYVuSsHFeJhpq83pOMX8+ei1E4Vpym7SKz6vPvuOEK9TBDCZRXDN/zr9o4T9UIy0FXxwpIEyHvSBNGmA==} + dev: false + /lie@3.1.1: resolution: {integrity: sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==} dependencies: diff --git a/public/libcurl.wasm b/public/libcurl.wasm new file mode 100644 index 0000000..487884d Binary files /dev/null and b/public/libcurl.wasm differ diff --git a/vite.config.ts b/vite.config.ts index a479542..a52b6a3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,7 +5,7 @@ import { viteStaticCopy } from "vite-plugin-static-copy"; import { uvPath } from "@titaniumnetwork-dev/ultraviolet"; import { dynamicPath } from "@nebula-services/dynamic"; import { epoxyPath } from "@mercuryworkshop/epoxy-transport"; -import { baremuxPath } from "@mercuryworkshop/bare-mux"; +import { libcurlPath } from "@mercuryworkshop/libcurl-transport" import path from "path"; const __dirname = path.resolve(); @@ -14,24 +14,21 @@ export default defineConfig({ viteStaticCopy({ targets: [ { - // .replace fixes weird paths on Windows src: `${uvPath}/**/*`.replace(/\\/g, "/"), dest: "uv", overwrite: false }, - //{ - // src: `${baremuxPath}/**/*`.replace(/\\/g, "/"), - // dest: "mux", - // overwrite: false - //}, { - //include ALL files types src: `${epoxyPath}/**/*`.replace(/\\/g, "/"), dest: "epoxy", overwrite: false }, { - // .replace fixes weird paths on Windows + src: `${libcurlPath}/**/*`.replace(/\\/g, "/"), + dest: "libcurl", + overwrite: false + }, + { src: `${dynamicPath}/dynamic.*.js`.replace(/\\/g, "/"), dest: "dynamic", overwrite: false