diff --git a/.changeset/silver-eels-own.md b/.changeset/silver-eels-own.md new file mode 100644 index 0000000..76e1863 --- /dev/null +++ b/.changeset/silver-eels-own.md @@ -0,0 +1,5 @@ +--- +"astro-tunnel": minor +--- + +Update untun to 0.1.3 and add acceptCloudflareNotice option diff --git a/README.md b/README.md index fd5bdf0..fa73725 100644 --- a/README.md +++ b/README.md @@ -44,5 +44,7 @@ tunnel({ protocol: 'http', // Whether to verify the local server TLS certificate. Defaults to false. verifyTLS: false, + // Whether to accept the Cloudflare terms of service. Defaults to false. + acceptCloudflareNotice: false, }); ``` diff --git a/package.json b/package.json index 15f3a98..0011170 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "untun": "0.1.2" + "untun": "0.1.3" }, "devDependencies": { "@biomejs/biome": "1.4.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e7b51bb..daeb2e0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: untun: - specifier: 0.1.2 - version: 0.1.2 + specifier: 0.1.3 + version: 0.1.3 devDependencies: '@biomejs/biome': @@ -4625,8 +4625,8 @@ packages: engines: {node: '>= 4.0.0'} dev: true - /untun@0.1.2: - resolution: {integrity: sha512-wLAMWvxfqyTiBODA1lg3IXHQtjggYLeTK7RnSfqtOXixWJ3bAa2kK/HHmOOg19upteqO3muLvN6O/icbyQY33Q==} + /untun@0.1.3: + resolution: {integrity: sha512-4luGP9LMYszMRZwsvyUd9MrxgEGZdZuZgpVQHEEX0lCYFESasVRvZd0EYpCkOIbJKHMuv0LskpXc/8Un+MJzEQ==} hasBin: true dependencies: citty: 0.1.5 diff --git a/src/index.ts b/src/index.ts index ce48c76..6f37742 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,6 +12,7 @@ export default function createAstroTunnelIntegration( hostname: "localhost", protocol: "http", verifyTLS: false, + acceptCloudflareNotice: false, }, ): AstroIntegration { return {