@croutonian/with-openapi 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +499 -0
- package/dist/index.d.ts +451 -0
- package/dist/index.js +1419 -0
- package/package.json +77 -0
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@croutonian/with-openapi",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "OpenAPI middleware for @supabase/middleware. Matches each request against an OpenAPI 3.1 document, optionally rejects the ones it does not describe, contributes the matched operation and validated params to ctx, and optionally serves a Scalar API reference.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"openapi",
|
|
7
|
+
"openapi3",
|
|
8
|
+
"scalar",
|
|
9
|
+
"middleware",
|
|
10
|
+
"fetch",
|
|
11
|
+
"edge",
|
|
12
|
+
"supabase",
|
|
13
|
+
"validation"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://github.com/croutonian/with-openapi#readme",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/croutonian/with-openapi/issues"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/croutonian/with-openapi.git"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"type": "module",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"default": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./package.json": "./package.json"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"sideEffects": false,
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=22"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsdown",
|
|
41
|
+
"prepare": "tsdown",
|
|
42
|
+
"dev": "tsdown --watch",
|
|
43
|
+
"smoke": "node scripts/smoke.mjs",
|
|
44
|
+
"test": "vitest run",
|
|
45
|
+
"test:watch": "vitest",
|
|
46
|
+
"typecheck": "tsc --noEmit",
|
|
47
|
+
"typecheck:negative": "node scripts/check-negative-types.mjs",
|
|
48
|
+
"typecheck:min": "pnpm --dir test/ts-floor install --ignore-workspace && pnpm --dir test/ts-floor exec tsc --noEmit --project ../../tsconfig.json",
|
|
49
|
+
"typecheck:consumer": "pnpm --dir test/ts-floor install --ignore-workspace && pnpm --dir test/ts-floor exec tsc --noEmit",
|
|
50
|
+
"check-exports": "attw --pack . --profile esm-only",
|
|
51
|
+
"check-jsr": "pnpm dlx jsr@0.14.3 publish --dry-run --allow-dirty",
|
|
52
|
+
"format": "prettier --write .",
|
|
53
|
+
"format:check": "prettier --check .",
|
|
54
|
+
"setup-releases": "bash scripts/setup-releases.sh"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@cfworker/json-schema": "^4.1.1",
|
|
58
|
+
"@supabase/middleware": "^0.5.0",
|
|
59
|
+
"openapi3-ts": "^4.6.1"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@arethetypeswrong/cli": "^0.18.4",
|
|
63
|
+
"prettier": "^3.8.1",
|
|
64
|
+
"tsdown": "^0.20.3",
|
|
65
|
+
"typescript": "^5.9.3",
|
|
66
|
+
"vitest": "^4.0.18"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"typescript": ">=5.4"
|
|
70
|
+
},
|
|
71
|
+
"peerDependenciesMeta": {
|
|
72
|
+
"typescript": {
|
|
73
|
+
"optional": true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"packageManager": "pnpm@11.13.1+sha512.b2fc7683b8a6525414e7d13e1ba28caaddde96bf66ec540bfaeb7e702b81f3e0be4d1f295edf7f9fe0396740a8dce4509c582ddf79891f4543fea32d37645f25"
|
|
77
|
+
}
|