@orpc/openapi 0.0.0-next.e9dc36e → 0.0.0-next.ed15210
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/dist/chunk-7MA7YRRY.js +25 -0
- package/dist/chunk-BUMQYADN.js +653 -0
- package/dist/chunk-DSYVLQK3.js +95 -0
- package/dist/fetch.js +34 -0
- package/dist/hono.js +34 -0
- package/dist/index.js +451 -4323
- package/dist/next.js +34 -0
- package/dist/node.js +46 -0
- package/dist/src/adapters/fetch/bracket-notation.d.ts +84 -0
- package/dist/src/adapters/fetch/index.d.ts +10 -0
- package/dist/src/adapters/fetch/input-structure-compact.d.ts +6 -0
- package/dist/src/adapters/fetch/input-structure-detailed.d.ts +11 -0
- package/dist/src/adapters/fetch/openapi-handler-server.d.ts +7 -0
- package/dist/src/adapters/fetch/openapi-handler-serverless.d.ts +7 -0
- package/dist/src/adapters/fetch/openapi-handler.d.ts +32 -0
- package/dist/src/adapters/fetch/openapi-payload-codec.d.ts +15 -0
- package/dist/src/adapters/fetch/openapi-procedure-matcher.d.ts +19 -0
- package/dist/src/adapters/fetch/schema-coercer.d.ts +10 -0
- package/dist/src/adapters/hono/index.d.ts +2 -0
- package/dist/src/adapters/next/index.d.ts +2 -0
- package/dist/src/adapters/node/index.d.ts +5 -0
- package/dist/src/adapters/node/openapi-handler-server.d.ts +7 -0
- package/dist/src/adapters/node/openapi-handler-serverless.d.ts +7 -0
- package/dist/src/adapters/node/openapi-handler.d.ts +11 -0
- package/dist/src/adapters/node/types.d.ts +2 -0
- package/dist/src/index.d.ts +10 -1
- package/dist/src/json-serializer.d.ts +5 -0
- package/dist/src/openapi-content-builder.d.ts +10 -0
- package/dist/src/openapi-error.d.ts +3 -0
- package/dist/src/openapi-generator.d.ts +67 -0
- package/dist/src/openapi-input-structure-parser.d.ts +22 -0
- package/dist/src/openapi-output-structure-parser.d.ts +18 -0
- package/dist/src/openapi-parameters-builder.d.ts +12 -0
- package/dist/src/openapi-path-parser.d.ts +8 -0
- package/dist/src/openapi.d.ts +3 -0
- package/dist/src/schema-converter.d.ts +16 -0
- package/dist/src/schema-utils.d.ts +11 -0
- package/dist/src/schema.d.ts +12 -0
- package/dist/src/utils.d.ts +18 -0
- package/package.json +39 -18
- package/dist/index.js.map +0 -1
- package/dist/src/generator.d.ts +0 -24
- package/dist/src/generator.d.ts.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/zod-to-json-schema.d.ts +0 -43
- package/dist/src/zod-to-json-schema.d.ts.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/src/generator.test.ts +0 -643
- package/src/generator.ts +0 -338
- package/src/index.ts +0 -3
- package/src/zod-to-json-schema.test.ts +0 -391
- package/src/zod-to-json-schema.ts +0 -655
package/package.json
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/openapi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "unnoq",
|
|
7
|
-
"email": "contact@unnoq.com",
|
|
8
|
-
"url": "https://unnoq.com"
|
|
9
|
-
},
|
|
4
|
+
"version": "0.0.0-next.ed15210",
|
|
10
5
|
"license": "MIT",
|
|
11
|
-
"homepage": "https://
|
|
6
|
+
"homepage": "https://orpc.unnoq.com",
|
|
12
7
|
"repository": {
|
|
13
8
|
"type": "git",
|
|
14
|
-
"url": "https://github.com/unnoq/orpc.git",
|
|
9
|
+
"url": "git+https://github.com/unnoq/orpc.git",
|
|
15
10
|
"directory": "packages/openapi"
|
|
16
11
|
},
|
|
17
12
|
"keywords": [
|
|
18
|
-
"unnoq"
|
|
13
|
+
"unnoq",
|
|
14
|
+
"orpc"
|
|
19
15
|
],
|
|
20
16
|
"exports": {
|
|
21
17
|
".": {
|
|
@@ -23,30 +19,55 @@
|
|
|
23
19
|
"import": "./dist/index.js",
|
|
24
20
|
"default": "./dist/index.js"
|
|
25
21
|
},
|
|
22
|
+
"./fetch": {
|
|
23
|
+
"types": "./dist/src/adapters/fetch/index.d.ts",
|
|
24
|
+
"import": "./dist/fetch.js",
|
|
25
|
+
"default": "./dist/fetch.js"
|
|
26
|
+
},
|
|
27
|
+
"./hono": {
|
|
28
|
+
"types": "./dist/src/adapters/hono/index.d.ts",
|
|
29
|
+
"import": "./dist/hono.js",
|
|
30
|
+
"default": "./dist/hono.js"
|
|
31
|
+
},
|
|
32
|
+
"./next": {
|
|
33
|
+
"types": "./dist/src/adapters/next/index.d.ts",
|
|
34
|
+
"import": "./dist/next.js",
|
|
35
|
+
"default": "./dist/next.js"
|
|
36
|
+
},
|
|
37
|
+
"./node": {
|
|
38
|
+
"types": "./dist/src/adapters/node/index.d.ts",
|
|
39
|
+
"import": "./dist/node.js",
|
|
40
|
+
"default": "./dist/node.js"
|
|
41
|
+
},
|
|
26
42
|
"./🔒/*": {
|
|
27
43
|
"types": "./dist/src/*.d.ts"
|
|
28
44
|
}
|
|
29
45
|
},
|
|
30
46
|
"files": [
|
|
31
|
-
"
|
|
32
|
-
"
|
|
47
|
+
"!**/*.map",
|
|
48
|
+
"!**/*.tsbuildinfo",
|
|
49
|
+
"dist"
|
|
33
50
|
],
|
|
34
51
|
"dependencies": {
|
|
52
|
+
"@standard-schema/spec": "1.0.0-beta.4",
|
|
53
|
+
"@types/content-disposition": "^0.5.8",
|
|
54
|
+
"content-disposition": "^0.5.4",
|
|
35
55
|
"escape-string-regexp": "^5.0.0",
|
|
56
|
+
"fast-content-type-parse": "^2.0.0",
|
|
57
|
+
"hono": "^4.6.12",
|
|
36
58
|
"json-schema-typed": "^8.0.1",
|
|
37
59
|
"openapi3-ts": "^4.4.0",
|
|
38
|
-
"
|
|
39
|
-
"@orpc/contract": "0.0.0-next.
|
|
40
|
-
"@orpc/
|
|
41
|
-
"@orpc/
|
|
42
|
-
"@orpc/shared": "0.0.0-next.e9dc36e"
|
|
60
|
+
"wildcard-match": "^5.1.3",
|
|
61
|
+
"@orpc/contract": "0.0.0-next.ed15210",
|
|
62
|
+
"@orpc/shared": "0.0.0-next.ed15210",
|
|
63
|
+
"@orpc/server": "0.0.0-next.ed15210"
|
|
43
64
|
},
|
|
44
65
|
"devDependencies": {
|
|
45
66
|
"@readme/openapi-parser": "^2.6.0",
|
|
46
|
-
"zod": "^3.
|
|
67
|
+
"zod": "^3.24.1"
|
|
47
68
|
},
|
|
48
69
|
"scripts": {
|
|
49
|
-
"build": "tsup --
|
|
70
|
+
"build": "tsup --onSuccess='tsc -b --noCheck'",
|
|
50
71
|
"build:watch": "pnpm run build --watch",
|
|
51
72
|
"type:check": "tsc -b"
|
|
52
73
|
}
|