Add libcurl to dependencies

This commit is contained in:
MotorTruck1221 2024-03-09 02:07:12 -07:00
parent 7b0d3b710a
commit f7a49e47bf
No known key found for this signature in database
GPG key ID: 06901A625432AC21
5 changed files with 30 additions and 9 deletions

View file

@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="/epoxy/index.js" defer></script>
<script src="/libcurl/index.cjs" defer></script>
<script src="/uv/uv.bundle.js" defer></script>
<script src="/uv/uv.config.js" defer></script>
<script src="/dynamic/dynamic.config.js" defer></script>

View file

@ -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",

22
pnpm-lock.yaml generated
View file

@ -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:

BIN
public/libcurl.wasm Normal file

Binary file not shown.

View file

@ -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