diff --git a/package.json b/package.json index 8dbe141..9ef7ed1 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ } }, "types": "./dist/index.d.ts", - "files": ["dist/**"], + "files": [ + "dist/**" + ], "scripts": { "test": "vitest run --silent", "test:coverage": "vitest run --silent --coverage --coverage.reporter=lcov", @@ -34,10 +36,13 @@ "license": "LGPL-3.0-or-later", "homepage": "https://github.com/otterjs/csrf-csrf", "repository": "https://github.com/otterjs/csrf-csrf", - "keywords": ["csrf", "middleware", "tokens"], + "keywords": [ + "csrf", + "middleware", + "tokens" + ], "devDependencies": { "@biomejs/biome": "^1.8.3", - "@otterhttp/app": "^3.0.2", "@tinyhttp/cookie-parser": "^2.0.6", "@types/node": "^20.14.10", "@vitest/coverage-istanbul": "^2.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e7bb3bb..ca49b87 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,9 +21,6 @@ importers: '@biomejs/biome': specifier: ^1.8.3 version: 1.8.3 - '@otterhttp/app': - specifier: ^3.0.2 - version: 3.0.2 '@tinyhttp/cookie-parser': specifier: ^2.0.6 version: 2.0.6 @@ -382,22 +379,6 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@otterhttp/accepts@3.0.0': - resolution: {integrity: sha512-8G9vqGrmEarsIPI0jyPyuPRxnRQMvQpbAUuoXPZNIz569ypy0qGBs3YPTxtQiRy4Q2KDTNMa8PRLMQhkz4I8Gw==} - engines: {node: '>=20.16.0'} - - '@otterhttp/app@3.0.2': - resolution: {integrity: sha512-VpG5Tilx1ZpLpAkS1+MTiHehVyD+vOr1eDzzjG/5SYtp9iA8PiEBroSjY2/FK3SJKRdGnF6G5wRA/bnuuJFLxQ==} - engines: {node: '>=20.16.0'} - - '@otterhttp/content-disposition@3.1.0': - resolution: {integrity: sha512-2fK3d2eIdMttd9/wdWf1F14N/rgYBFPabTuL31pbJzDhmYJYzqgod7RJw1eqwEEBZTmcfAh+OuacyCadGE/Bqg==} - engines: {node: '>=20.16.0'} - - '@otterhttp/content-type@0.4.0': - resolution: {integrity: sha512-BNK3Ow+m5zasu7cdNGHbLUAQim4h9t2OVqTnMslpB6bdIVzllRsS6GSJZ+LPsb5AyTEaFQ+6uh+0P0xmM0EY+A==} - engines: {node: '>=20.16.0'} - '@otterhttp/cookie-signature@3.0.0': resolution: {integrity: sha512-AcWQokILP5/oz4Nw5cj5d4UYCrhTaMupQ30eVcDJrNt06+MCJQ+NGgob3xsJJMXUxuUkOVu8eVgchatOqKvGQw==} engines: {node: '>=20.16.0'} @@ -406,58 +387,10 @@ packages: resolution: {integrity: sha512-D1/bN2s985/5wSZ0Bn3F3I7HZW3vNCIg/Pthrk7dIiwg3Y1flPrlwQOK84aNk4C2w19QGgqccuDHSIPJtoNsHg==} engines: {node: '>=20.16.0'} - '@otterhttp/encode-url@3.0.0': - resolution: {integrity: sha512-cXz8E2IawDYIUNBqsEN+kQNn/ErBZMQ4uJhVQQSrcPFKoCiuE9gqTlAGnQ3hJTjGjQE/02hR3Cq0KptaXzjW5Q==} - engines: {node: '>=20.16.0'} - '@otterhttp/errors@0.2.0': resolution: {integrity: sha512-QaUyvfOI6DBqiMTVDC6UpmtcaNXi672leKIOdI4r5WdjXTGCxHoP66VMHpb3XEOETTrSMBfFq63M6Md79CBOKQ==} engines: {node: '>=20.16.0'} - '@otterhttp/etag@3.0.0': - resolution: {integrity: sha512-Kz2Hgvqy2PgbxXbx67YbRbuqK0xguGbuiWBBO/gsdmuzu05laYqRYEQANihoE/khgbPErOoUcimLy66QAEI4dA==} - engines: {node: '>=20.16.0'} - - '@otterhttp/forwarded@3.0.0': - resolution: {integrity: sha512-wzYuiXu8rk0cQfIbjaheIoIHvGrM/6DjnZth0lNvtm94QbHb74k2F/zqYbR0N0pMa7QOGm6P9f4dsVD8qR5SRQ==} - engines: {node: '>=20.16.0'} - - '@otterhttp/parameters@0.1.0': - resolution: {integrity: sha512-yhqvMwsEZNA5iSssRzcjxi+sDUWg1TUyvxe6P5EeMgHFprsLoqh1TJgQO6Vji0wciHgkZduNzKSrlPdjyV7qyA==} - engines: {node: '>=20.16.0'} - - '@otterhttp/proxy-address@3.0.0': - resolution: {integrity: sha512-FVD/OTmlyQbD9MfPjgTcdLpglEmJknIXSc8KBGtdgmnfx+nAahy9tZt7JFWQKR/K9nzDreBO6FQD5Bg9YhhmuQ==} - engines: {node: '>=20.16.0'} - - '@otterhttp/request@3.0.2': - resolution: {integrity: sha512-U9p6foMZvZitcrmy/yoBM8np3DHJA03y+EYZfFHP0JSNNBuDMbd2kA2iXM4JOpCLgAOY8kFA+EISfcRcZARZxA==} - engines: {node: '>=20.16.0'} - - '@otterhttp/response@3.0.2': - resolution: {integrity: sha512-83wS3pnhGUFPhAwC2KzMC1vwyiOM4K5ArQFbrYA3T4LbOhD0UPI2vKhLquzAIjhmEPlOTKlPUMCgZLwDJVr3vQ==} - engines: {node: '>=20.16.0'} - - '@otterhttp/router@3.0.0': - resolution: {integrity: sha512-L+pUl5qvD8gmDY32XpAFmrGpFUX/jpI6Y2Feoos/0rvCyc7Znc7XN9I+1XcXzp6lSqmWwVF8Eoj7JEHPeMsGnQ==} - engines: {node: '>=20.16.0'} - - '@otterhttp/send@3.0.0': - resolution: {integrity: sha512-L8FFBbRToFSrYbk5Mr/vyi8rES7KJABlcxejIO3SZvUaSDs4PuS82wCvNJ7x2Z+gtMZoHFMFT1J5NFalDD17QA==} - engines: {node: '>=20.16.0'} - - '@otterhttp/type-is@4.0.0': - resolution: {integrity: sha512-geGG/LyoddMY7JdcX7SM5ygdzgBmCvb2TKiFmAm6mQNprryEQ7IaOIkNj9golIDKZ7LRoXimN926d0VAGcJl+w==} - engines: {node: '>=20.16.0'} - - '@otterhttp/url@3.0.0': - resolution: {integrity: sha512-z/nh6ZacQiPihuah6gsMbcs4EYL9wAzd/VoNAAliwnpMylJayOm46eJtfEn6dlH4L0M6ic89zCI39Qnb5qNx/w==} - engines: {node: '>=20.16.0'} - - '@otterhttp/vary@0.2.0': - resolution: {integrity: sha512-6aA82LdTy3+WeWOqUaYCLk8FD1Ll1LbSdAzUfFgPZ03JhGQU0lkEqiCf/fKZ0ZQBISlaXl/Qqi12TYiB5hcjUA==} - engines: {node: '>=20.16.0'} - '@pkgjs/parseargs@0.11.0': resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} @@ -904,10 +837,6 @@ packages: error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} - es-escape-html@0.1.1: - resolution: {integrity: sha512-yUx1o+8RsG7UlszmYPtks+dm6Lho2m8lgHMOsLJQsFI0R8XwUJwiMhM1M4E/S8QLeGyf6MkDV/pWgjQ0tdTSyQ==} - engines: {node: '>=12.x'} - esbuild@0.21.5: resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} engines: {node: '>=12'} @@ -1056,10 +985,6 @@ packages: resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} engines: {node: '>= 0.4'} - header-range-parser@1.1.3: - resolution: {integrity: sha512-B9zCFt3jH8g09LR1vHL4pcAn8yMEtlSlOUdQemzHMRKMImNIhhszdeosYFfNW0WXKQtXIlWB+O4owHJKvEJYaA==} - engines: {node: '>=12.22.0'} - hosted-git-info@2.8.9: resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} @@ -1092,10 +1017,6 @@ packages: ini@1.3.8: resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} - ipaddr.js@2.2.0: - resolution: {integrity: sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA==} - engines: {node: '>= 10'} - is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} @@ -1295,11 +1216,6 @@ packages: resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==} engines: {node: '>=8.6'} - mime@4.0.4: - resolution: {integrity: sha512-v8yqInVjhXyqP6+Kw4fV3ZzeMRqEW6FotRsKXjRS5VMTNIuXsdRoAvklpoRgSqXm6o9VNH4/C0mgedko9DdLsQ==} - engines: {node: '>=16'} - hasBin: true - mimic-fn@2.1.0: resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} engines: {node: '>=6'} @@ -1349,10 +1265,6 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - negotiator@0.6.3: - resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} - engines: {node: '>= 0.6'} - neo-async@2.6.2: resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} @@ -1563,10 +1475,6 @@ packages: resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==} engines: {node: '>=8'} - regexparam@2.0.2: - resolution: {integrity: sha512-A1PeDEYMrkLrfyOwv2jwihXbo9qxdGD3atBYQA9JJgreAx8/7rC6IUkWOw2NQlOxLp2wL0ifQbh1HuidDfYA6w==} - engines: {node: '>=8'} - require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} @@ -2284,90 +2192,14 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 - '@otterhttp/accepts@3.0.0': - dependencies: - mime: 4.0.4 - negotiator: 0.6.3 - - '@otterhttp/app@3.0.2': - dependencies: - '@otterhttp/cookie': 3.0.0 - '@otterhttp/proxy-address': 3.0.0 - '@otterhttp/request': 3.0.2 - '@otterhttp/response': 3.0.2 - '@otterhttp/router': 3.0.0 - '@otterhttp/url': 3.0.0 - header-range-parser: 1.1.3 - regexparam: 2.0.2 - - '@otterhttp/content-disposition@3.1.0': - dependencies: - '@otterhttp/parameters': 0.1.0 - - '@otterhttp/content-type@0.4.0': - dependencies: - '@otterhttp/parameters': 0.1.0 - '@otterhttp/cookie-signature@3.0.0': {} '@otterhttp/cookie@3.0.0': {} - '@otterhttp/encode-url@3.0.0': {} - '@otterhttp/errors@0.2.0': dependencies: module-error: 1.0.2 - '@otterhttp/etag@3.0.0': {} - - '@otterhttp/forwarded@3.0.0': {} - - '@otterhttp/parameters@0.1.0': {} - - '@otterhttp/proxy-address@3.0.0': - dependencies: - '@otterhttp/forwarded': 3.0.0 - ipaddr.js: 2.2.0 - - '@otterhttp/request@3.0.2': - dependencies: - '@otterhttp/accepts': 3.0.0 - '@otterhttp/proxy-address': 3.0.0 - '@otterhttp/router': 3.0.0 - '@otterhttp/type-is': 4.0.0 - '@otterhttp/url': 3.0.0 - header-range-parser: 1.1.3 - - '@otterhttp/response@3.0.2': - dependencies: - '@otterhttp/content-disposition': 3.1.0 - '@otterhttp/content-type': 0.4.0 - '@otterhttp/cookie': 3.0.0 - '@otterhttp/encode-url': 3.0.0 - '@otterhttp/errors': 0.2.0 - '@otterhttp/request': 3.0.2 - '@otterhttp/send': 3.0.0 - '@otterhttp/vary': 0.2.0 - es-escape-html: 0.1.1 - mime: 4.0.4 - - '@otterhttp/router@3.0.0': {} - - '@otterhttp/send@3.0.0': - dependencies: - '@otterhttp/errors': 0.2.0 - '@otterhttp/etag': 3.0.0 - mime: 4.0.4 - - '@otterhttp/type-is@4.0.0': - dependencies: - '@otterhttp/content-type': 0.4.0 - mime: 4.0.4 - - '@otterhttp/url@3.0.0': {} - - '@otterhttp/vary@0.2.0': {} - '@pkgjs/parseargs@0.11.0': optional: true @@ -2816,8 +2648,6 @@ snapshots: dependencies: is-arrayish: 0.2.1 - es-escape-html@0.1.1: {} - esbuild@0.21.5: optionalDependencies: '@esbuild/aix-ppc64': 0.21.5 @@ -3008,8 +2838,6 @@ snapshots: dependencies: function-bind: 1.1.2 - header-range-parser@1.1.3: {} - hosted-git-info@2.8.9: {} hosted-git-info@4.1.0: @@ -3030,8 +2858,6 @@ snapshots: ini@1.3.8: {} - ipaddr.js@2.2.0: {} - is-arrayish@0.2.1: {} is-binary-path@2.1.0: @@ -3217,8 +3043,6 @@ snapshots: braces: 3.0.3 picomatch: 2.3.1 - mime@4.0.4: {} - mimic-fn@2.1.0: {} mimic-fn@4.0.0: {} @@ -3257,8 +3081,6 @@ snapshots: nanoid@3.3.7: {} - negotiator@0.6.3: {} - neo-async@2.6.2: {} node-releases@2.0.14: {} @@ -3451,8 +3273,6 @@ snapshots: indent-string: 4.0.0 strip-indent: 3.0.0 - regexparam@2.0.2: {} - require-directory@2.1.1: {} resolve-from@5.0.0: {}