From 880ca8990e83657b27817b76f66cd659af990685 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Wed, 24 Jul 2024 20:27:39 +0800 Subject: [PATCH] feat: add telemetry (#3) --- packages/telemetry/package.json | 16 ++ packages/telemetry/src/index.ts | 15 ++ packages/telemetry/tsconfig.json | 8 + packages/telemetry/worker-configuration.d.ts | 4 + packages/telemetry/wrangler.toml | 3 + pnpm-lock.yaml | 227 +++++++++++++------ 6 files changed, 206 insertions(+), 67 deletions(-) create mode 100644 packages/telemetry/package.json create mode 100644 packages/telemetry/src/index.ts create mode 100644 packages/telemetry/tsconfig.json create mode 100644 packages/telemetry/worker-configuration.d.ts create mode 100644 packages/telemetry/wrangler.toml diff --git a/packages/telemetry/package.json b/packages/telemetry/package.json new file mode 100644 index 0000000..fd56505 --- /dev/null +++ b/packages/telemetry/package.json @@ -0,0 +1,16 @@ +{ + "name": "telemetry", + "version": "0.0.0", + "private": true, + "scripts": { + "deploy": "wrangler deploy", + "dev": "wrangler dev", + "start": "wrangler dev", + "cf-typegen": "wrangler types" + }, + "devDependencies": { + "@cloudflare/workers-types": "^4.20231218.0", + "typescript": "^5.5.2", + "wrangler": "^3.60.3" + } +} diff --git a/packages/telemetry/src/index.ts b/packages/telemetry/src/index.ts new file mode 100644 index 0000000..70581ef --- /dev/null +++ b/packages/telemetry/src/index.ts @@ -0,0 +1,15 @@ +export default { + async fetch(request): Promise { + // https://github.com/mixpanel/tracking-proxy/blob/master/nginx.conf + const headers = new Headers(request.headers); + if (request.method !== 'POST' && request.method !== 'OPTIONS') { + console.log(request.headers.get('Origin')); + return new Response('Method Not Allowed', { status: 405 }); + } + headers.set('Host', 'api-eu.mixpanel.com'); + const res = await fetch(request, { + headers, + }); + return res; + }, +} satisfies ExportedHandler; diff --git a/packages/telemetry/tsconfig.json b/packages/telemetry/tsconfig.json new file mode 100644 index 0000000..aef3217 --- /dev/null +++ b/packages/telemetry/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "rootDir": "./src/" + }, + "include": ["./src", "worker-configuration.d.ts"], + "references": [] +} diff --git a/packages/telemetry/worker-configuration.d.ts b/packages/telemetry/worker-configuration.d.ts new file mode 100644 index 0000000..5b2319b --- /dev/null +++ b/packages/telemetry/worker-configuration.d.ts @@ -0,0 +1,4 @@ +// Generated by Wrangler +// After adding bindings to `wrangler.toml`, regenerate this interface via `npm run cf-typegen` +interface Env { +} diff --git a/packages/telemetry/wrangler.toml b/packages/telemetry/wrangler.toml new file mode 100644 index 0000000..a0b075b --- /dev/null +++ b/packages/telemetry/wrangler.toml @@ -0,0 +1,3 @@ +name = "telemetry" +main = "./src/index.ts" +compatibility_date = "2024-07-24" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8a09c4f..bff770c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,7 +22,7 @@ importers: version: 3.1.1 typescript: specifier: ^5.3.3 - version: 5.3.3 + version: 5.5.3 packages/image-proxy: devDependencies: @@ -43,7 +43,7 @@ importers: version: 6.1.1 typescript: specifier: ^5.3.3 - version: 5.3.3 + version: 5.5.3 packages/link-preview: devDependencies: @@ -58,7 +58,19 @@ importers: version: 20.10.5 typescript: specifier: ^5.3.3 - version: 5.3.3 + version: 5.5.3 + + packages/telemetry: + devDependencies: + '@cloudflare/workers-types': + specifier: ^4.20231218.0 + version: 4.20231218.0 + typescript: + specifier: ^5.5.2 + version: 5.5.3 + wrangler: + specifier: ^3.60.3 + version: 3.65.0(@cloudflare/workers-types@4.20231218.0) packages/utils: devDependencies: @@ -73,7 +85,7 @@ importers: version: 6.1.1 typescript: specifier: ^5.3.3 - version: 5.3.3 + version: 5.5.3 packages/worker: devDependencies: @@ -100,42 +112,43 @@ importers: version: 6.1.1 typescript: specifier: ^5.3.3 - version: 5.3.3 + version: 5.5.3 wrangler: specifier: ^3.22.1 - version: 3.22.1 + version: 3.65.0(@cloudflare/workers-types@4.20231218.0) packages: - '@cloudflare/kv-asset-handler@0.2.0': - resolution: {integrity: sha512-MVbXLbTcAotOPUj0pAMhVtJ+3/kFkwJqc5qNOleOZTv6QkZZABDMS21dSrSlVswEHwrpWC03e4fWytjqKvuE2A==} + '@cloudflare/kv-asset-handler@0.3.4': + resolution: {integrity: sha512-YLPHc8yASwjNkmcDMQMY35yiWjoKAKnhUbPRszBRS0YgH+IXtsMp61j+yTcnCE3oO2DgP0U3iejLC8FTtKDC8Q==} + engines: {node: '>=16.13'} - '@cloudflare/workerd-darwin-64@1.20231030.0': - resolution: {integrity: sha512-J4PQ9utPxLya9yHdMMx3AZeC5M/6FxcoYw6jo9jbDDFTy+a4Gslqf4Im9We3aeOEdPXa3tgQHVQOSelJSZLhIw==} + '@cloudflare/workerd-darwin-64@1.20240712.0': + resolution: {integrity: sha512-KB1vbOhr62BCAwVr3VaRcngzPeSCQ7zPA9VGrfwYXIxo0Y4zlW1z0EVtcewFSz5XXKr3BtNnJXxdjDPUNkguQw==} engines: {node: '>=16'} cpu: [x64] os: [darwin] - '@cloudflare/workerd-darwin-arm64@1.20231030.0': - resolution: {integrity: sha512-WSJJjm11Del4hSneiNB7wTXGtBXI4QMCH9l5qf4iT5PAW8cESGcCmdHtWDWDtGAAGcvmLT04KNvmum92vRKKQQ==} + '@cloudflare/workerd-darwin-arm64@1.20240712.0': + resolution: {integrity: sha512-UDwFnCfQGFVCNxOeHxKNEc1ANQk/3OIiFWpVsxgZqJqU/22XM88JHxJW+YcBKsaUGUlpLyImaYUn2/rG+i+9UQ==} engines: {node: '>=16'} cpu: [arm64] os: [darwin] - '@cloudflare/workerd-linux-64@1.20231030.0': - resolution: {integrity: sha512-2HUeRTvoCC17fxE0qdBeR7J9dO8j4A8ZbdcvY8pZxdk+zERU6+N03RTbk/dQMU488PwiDvcC3zZqS4gwLfVT8g==} + '@cloudflare/workerd-linux-64@1.20240712.0': + resolution: {integrity: sha512-MxpMHSJcZRUL66TO7BEnEim9WgZ8wJEVOB1Rq7a/IF2hI4/8f+N+02PChh62NkBlWxDfTXAtZy0tyQMm0EGjHg==} engines: {node: '>=16'} cpu: [x64] os: [linux] - '@cloudflare/workerd-linux-arm64@1.20231030.0': - resolution: {integrity: sha512-4/GK5zHh+9JbUI6Z5xTCM0ZmpKKHk7vu9thmHjUxtz+o8Ne9DoD7DlDvXQWgMF6XGaTubDWyp3ttn+Qv8jDFuQ==} + '@cloudflare/workerd-linux-arm64@1.20240712.0': + resolution: {integrity: sha512-DtLYZsFFFAMgn+6YCHoQS6nYY4nbdAtcAFa4PhWTjLJDbvQEn3IoK9Bi4ajCL7xG36FeuBdZliSbBiiv7CJjfQ==} engines: {node: '>=16'} cpu: [arm64] os: [linux] - '@cloudflare/workerd-windows-64@1.20231030.0': - resolution: {integrity: sha512-fb/Jgj8Yqy3PO1jLhk7mTrHMkR8jklpbQFud6rL/aMAn5d6MQbaSrYOCjzkKGp0Zng8D2LIzSl+Fc0C9Sggxjg==} + '@cloudflare/workerd-windows-64@1.20240712.0': + resolution: {integrity: sha512-u8zoT9PQiiwxuz9npquLBFWrC/RlBWGGZ1aylarZNFlM4sFrRm+bRr6i+KtS+fltHIVXj3teuoKYytA1ppf9Yw==} engines: {node: '>=16'} cpu: [x64] os: [win32] @@ -446,9 +459,6 @@ packages: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} engines: {node: '>=8'} - buffer-from@1.1.2: - resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - buffer@5.7.1: resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} @@ -462,6 +472,10 @@ packages: chownr@1.1.4: resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} + consola@3.2.3: + resolution: {integrity: sha512-I5qxpzLv+sJhTVEoLYNcTW+bThDCPsit0vLNKShZx6rLtpilNpmmeTPaeqJb9ZE9dV3DGaeby6Vuhrw38WjeyQ==} + engines: {node: ^14.18.0 || >=16.10.0} + cookie@0.5.0: resolution: {integrity: sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==} engines: {node: '>= 0.6'} @@ -469,6 +483,9 @@ packages: data-uri-to-buffer@2.0.2: resolution: {integrity: sha512-ND9qDTLc6diwj+Xe5cdAgVTbLVdXbtxTJRXRhli8Mowuaan+0EJOtdqJ0QCHNSSPyoXGx9HX2/VMnKeC34AChA==} + date-fns@3.6.0: + resolution: {integrity: sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==} + debug@4.3.4: resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} engines: {node: '>=6.0'} @@ -486,6 +503,9 @@ packages: resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==} engines: {node: '>=4.0.0'} + defu@6.1.4: + resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==} + detect-libc@2.0.2: resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==} engines: {node: '>=8'} @@ -528,6 +548,9 @@ packages: engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + get-source@2.0.12: resolution: {integrity: sha512-X5+4+iD+HoSeEED+uwrQ07BOQr0kEDFMVqqpBuI+RaZBpBpHCuXxo70bjar6f0b0u/DQJsJ7ssurpP0V60Az+w==} @@ -541,6 +564,10 @@ packages: glob-to-regexp@0.4.1: resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==} + hasown@2.0.2: + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} + engines: {node: '>= 0.4'} + ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} @@ -554,6 +581,10 @@ packages: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} + is-core-module@2.15.0: + resolution: {integrity: sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA==} + engines: {node: '>= 0.4'} + is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} @@ -585,8 +616,8 @@ packages: resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==} engines: {node: '>=10'} - miniflare@3.20231030.4: - resolution: {integrity: sha512-7MBz0ArLuDop1WJGZC6tFgN6c5MRyDOIlxbm3yp0TRBpvDS/KsTuWCQcCjsxN4QQ5zvL3JTkuIZbQzRRw/j6ow==} + miniflare@3.20240712.0: + resolution: {integrity: sha512-zVbsMX2phvJS1uTPmjK6CvVBq4ON2UkmvTw9IMfNPACsWJmHEdsBDxsYEG1vKAduJdI5gULLuJf7qpFxByDhGw==} engines: {node: '>=16.13'} hasBin: true @@ -615,6 +646,9 @@ packages: resolution: {integrity: sha512-JJ98b02z16ILv7859irtXn4oUaFWADtvkzy2c0IAatNVX2Mc9Yoh8z6hZInn3QwvMEYhHuQloYi+TTQy67SIdQ==} engines: {node: '>=10'} + node-fetch-native@1.6.4: + resolution: {integrity: sha512-IhOigYzAKHd244OC0JIMIUrjzctirCmPkaIfhDeGcEETWof5zKYUW7e7MYvChGWh/4CJeXEgsRyGzuF334rOOQ==} + node-forge@1.3.1: resolution: {integrity: sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==} engines: {node: '>= 6.13.0'} @@ -626,9 +660,15 @@ packages: once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + path-parse@1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + path-to-regexp@6.2.1: resolution: {integrity: sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==} + pathe@1.1.2: + resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} + picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} @@ -665,6 +705,10 @@ packages: resolution: {integrity: sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==} engines: {node: '>=10'} + resolve@1.22.8: + resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} + hasBin: true + rollup-plugin-inject@3.0.2: resolution: {integrity: sha512-ptg9PQwzs3orn4jkgXJ74bfs5vYz1NCZlSQMBUA0wKcGp5i5pA1AO3fOUEte8enhGUC+iapTCzEWw2jEFFUO/w==} deprecated: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject. @@ -693,9 +737,6 @@ packages: simple-get@4.0.1: resolution: {integrity: sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==} - source-map-support@0.5.21: - resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} - source-map@0.6.1: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} @@ -718,6 +759,10 @@ packages: resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==} engines: {node: '>=0.10.0'} + supports-preserve-symlinks-flag@1.0.0: + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} + tar-fs@2.1.1: resolution: {integrity: sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==} @@ -742,36 +787,47 @@ packages: tunnel-agent@0.6.0: resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==} - typescript@5.3.3: - resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} + typescript@5.5.3: + resolution: {integrity: sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==} engines: {node: '>=14.17'} hasBin: true + ufo@1.5.4: + resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==} + undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici@5.28.2: - resolution: {integrity: sha512-wh1pHJHnUeQV5Xa8/kyQhO7WFa8M34l026L5P/+2TYiakvGy5Rdc8jWZVyG7ieht/0WgJLEd3kcU5gKx+6GC8w==} + undici@5.28.4: + resolution: {integrity: sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==} engines: {node: '>=14.0'} + unenv-nightly@1.10.0-1717606461.a117952: + resolution: {integrity: sha512-u3TfBX02WzbHTpaEfWEKwDijDSFAHcgXkayUZ+MVDrjhLFvgAJzFGTSTmwlEhwWi2exyRQey23ah9wELMM6etg==} + util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - workerd@1.20231030.0: - resolution: {integrity: sha512-+FSW+d31f8RrjHanFf/R9A+Z0csf3OtsvzdPmAKuwuZm/5HrBv83cvG9fFeTxl7/nI6irUUXIRF9xcj/NomQzQ==} + workerd@1.20240712.0: + resolution: {integrity: sha512-hdIHZif82hBDy9YnMtcmDGgbLU5f2P2aGpi/X8EKhTSLDppVUGrkY3XB536J4jGjA2D5dS0FUEXCl5bAJEed8Q==} engines: {node: '>=16'} hasBin: true - wrangler@3.22.1: - resolution: {integrity: sha512-fN7WOF6Ono/TV5V90PuJQNf0azS7B+5C/N/KRjqhlAIQBz+c0yLOGkF6kC/akxjr1yIAC9AzcPk9+OuTSq0C+g==} + wrangler@3.65.0: + resolution: {integrity: sha512-IDy4ttyJZssazAd5CXHw4NWeZFGxngdNF5m2ogltdT3CV7uHfCvPVdMcr4uNMpRZd0toHmAE3LtQeXxDFFp88A==} engines: {node: '>=16.17.0'} hasBin: true + peerDependencies: + '@cloudflare/workers-types': ^4.20240712.0 + peerDependenciesMeta: + '@cloudflare/workers-types': + optional: true wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - ws@8.14.2: - resolution: {integrity: sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==} + ws@8.18.0: + resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 @@ -796,23 +852,23 @@ packages: snapshots: - '@cloudflare/kv-asset-handler@0.2.0': + '@cloudflare/kv-asset-handler@0.3.4': dependencies: mime: 3.0.0 - '@cloudflare/workerd-darwin-64@1.20231030.0': + '@cloudflare/workerd-darwin-64@1.20240712.0': optional: true - '@cloudflare/workerd-darwin-arm64@1.20231030.0': + '@cloudflare/workerd-darwin-arm64@1.20240712.0': optional: true - '@cloudflare/workerd-linux-64@1.20231030.0': + '@cloudflare/workerd-linux-64@1.20240712.0': optional: true - '@cloudflare/workerd-linux-arm64@1.20231030.0': + '@cloudflare/workerd-linux-arm64@1.20240712.0': optional: true - '@cloudflare/workerd-windows-64@1.20231030.0': + '@cloudflare/workerd-windows-64@1.20240712.0': optional: true '@cloudflare/workers-types@4.20231218.0': {} @@ -1051,8 +1107,6 @@ snapshots: dependencies: fill-range: 7.0.1 - buffer-from@1.1.2: {} - buffer@5.7.1: dependencies: base64-js: 1.5.1 @@ -1079,10 +1133,14 @@ snapshots: chownr@1.1.4: {} + consola@3.2.3: {} + cookie@0.5.0: {} data-uri-to-buffer@2.0.2: {} + date-fns@3.6.0: {} + debug@4.3.4: dependencies: ms: 2.1.2 @@ -1093,6 +1151,8 @@ snapshots: deep-extend@0.6.0: {} + defu@6.1.4: {} + detect-libc@2.0.2: {} end-of-stream@1.4.4: @@ -1143,6 +1203,8 @@ snapshots: fsevents@2.3.3: optional: true + function-bind@1.1.2: {} + get-source@2.0.12: dependencies: data-uri-to-buffer: 2.0.2 @@ -1156,6 +1218,10 @@ snapshots: glob-to-regexp@0.4.1: {} + hasown@2.0.2: + dependencies: + function-bind: 1.1.2 + ieee754@1.2.1: {} inherits@2.0.4: {} @@ -1166,6 +1232,10 @@ snapshots: dependencies: binary-extensions: 2.2.0 + is-core-module@2.15.0: + dependencies: + hasown: 2.0.2 + is-extglob@2.1.1: {} is-glob@4.0.3: @@ -1188,18 +1258,18 @@ snapshots: mimic-response@3.1.0: {} - miniflare@3.20231030.4: + miniflare@3.20240712.0: dependencies: + '@cspotcode/source-map-support': 0.8.1 acorn: 8.11.2 acorn-walk: 8.3.1 capnp-ts: 0.7.0 exit-hook: 2.2.1 glob-to-regexp: 0.4.1 - source-map-support: 0.5.21 stoppable: 1.1.0 - undici: 5.28.2 - workerd: 1.20231030.0 - ws: 8.14.2 + undici: 5.28.4 + workerd: 1.20240712.0 + ws: 8.18.0 youch: 3.3.3 zod: 3.22.4 transitivePeerDependencies: @@ -1223,6 +1293,8 @@ snapshots: dependencies: semver: 7.5.4 + node-fetch-native@1.6.4: {} + node-forge@1.3.1: {} normalize-path@3.0.0: {} @@ -1231,8 +1303,12 @@ snapshots: dependencies: wrappy: 1.0.2 + path-parse@1.0.7: {} + path-to-regexp@6.2.1: {} + pathe@1.1.2: {} + picomatch@2.3.1: {} prebuild-install@7.1.1: @@ -1278,6 +1354,12 @@ snapshots: resolve.exports@2.0.2: {} + resolve@1.22.8: + dependencies: + is-core-module: 2.15.0 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + rollup-plugin-inject@3.0.2: dependencies: estree-walker: 0.6.1 @@ -1311,11 +1393,6 @@ snapshots: once: 1.4.0 simple-concat: 1.0.1 - source-map-support@0.5.21: - dependencies: - buffer-from: 1.1.2 - source-map: 0.6.1 - source-map@0.6.1: {} sourcemap-codec@1.4.8: {} @@ -1333,6 +1410,8 @@ snapshots: strip-json-comments@2.0.1: {} + supports-preserve-symlinks-flag@1.0.0: {} + tar-fs@2.1.1: dependencies: chownr: 1.1.4 @@ -1364,41 +1443,55 @@ snapshots: dependencies: safe-buffer: 5.2.1 - typescript@5.3.3: {} + typescript@5.5.3: {} + + ufo@1.5.4: {} undici-types@5.26.5: {} - undici@5.28.2: + undici@5.28.4: dependencies: '@fastify/busboy': 2.1.0 + unenv-nightly@1.10.0-1717606461.a117952: + dependencies: + consola: 3.2.3 + defu: 6.1.4 + mime: 3.0.0 + node-fetch-native: 1.6.4 + pathe: 1.1.2 + ufo: 1.5.4 + util-deprecate@1.0.2: {} - workerd@1.20231030.0: + workerd@1.20240712.0: optionalDependencies: - '@cloudflare/workerd-darwin-64': 1.20231030.0 - '@cloudflare/workerd-darwin-arm64': 1.20231030.0 - '@cloudflare/workerd-linux-64': 1.20231030.0 - '@cloudflare/workerd-linux-arm64': 1.20231030.0 - '@cloudflare/workerd-windows-64': 1.20231030.0 + '@cloudflare/workerd-darwin-64': 1.20240712.0 + '@cloudflare/workerd-darwin-arm64': 1.20240712.0 + '@cloudflare/workerd-linux-64': 1.20240712.0 + '@cloudflare/workerd-linux-arm64': 1.20240712.0 + '@cloudflare/workerd-windows-64': 1.20240712.0 - wrangler@3.22.1: + wrangler@3.65.0(@cloudflare/workers-types@4.20231218.0): dependencies: - '@cloudflare/kv-asset-handler': 0.2.0 - '@cspotcode/source-map-support': 0.8.1 + '@cloudflare/kv-asset-handler': 0.3.4 '@esbuild-plugins/node-globals-polyfill': 0.2.3(esbuild@0.17.19) '@esbuild-plugins/node-modules-polyfill': 0.2.2(esbuild@0.17.19) blake3-wasm: 2.1.5 chokidar: 3.5.3 + date-fns: 3.6.0 esbuild: 0.17.19 - miniflare: 3.20231030.4 + miniflare: 3.20240712.0 nanoid: 3.3.7 path-to-regexp: 6.2.1 + resolve: 1.22.8 resolve.exports: 2.0.2 selfsigned: 2.4.1 source-map: 0.6.1 + unenv: unenv-nightly@1.10.0-1717606461.a117952 xxhash-wasm: 1.0.2 optionalDependencies: + '@cloudflare/workers-types': 4.20231218.0 fsevents: 2.3.3 transitivePeerDependencies: - bufferutil @@ -1407,7 +1500,7 @@ snapshots: wrappy@1.0.2: {} - ws@8.14.2: {} + ws@8.18.0: {} xxhash-wasm@1.0.2: {}