@contractspec/lib.contracts-runtime-server-rest 2.0.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/README.md +3 -0
- package/dist/browser/contracts-adapter-hydration.js +40 -0
- package/dist/browser/contracts-adapter-input.js +99 -0
- package/dist/browser/index.js +346 -0
- package/dist/browser/rest-elysia.js +146 -0
- package/dist/browser/rest-express.js +161 -0
- package/dist/browser/rest-generic.js +129 -0
- package/dist/browser/rest-next-app.js +137 -0
- package/dist/browser/rest-next-pages.js +148 -0
- package/dist/contracts-adapter-hydration.d.ts +11 -0
- package/dist/contracts-adapter-hydration.js +41 -0
- package/dist/contracts-adapter-input.d.ts +5 -0
- package/dist/contracts-adapter-input.js +100 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +347 -0
- package/dist/node/contracts-adapter-hydration.js +40 -0
- package/dist/node/contracts-adapter-input.js +99 -0
- package/dist/node/index.js +346 -0
- package/dist/node/rest-elysia.js +146 -0
- package/dist/node/rest-express.js +161 -0
- package/dist/node/rest-generic.js +129 -0
- package/dist/node/rest-next-app.js +137 -0
- package/dist/node/rest-next-pages.js +148 -0
- package/dist/rest-elysia.d.ts +35 -0
- package/dist/rest-elysia.js +147 -0
- package/dist/rest-express.d.ts +7 -0
- package/dist/rest-express.js +162 -0
- package/dist/rest-generic.d.ts +18 -0
- package/dist/rest-generic.js +130 -0
- package/dist/rest-next-app.d.ts +4 -0
- package/dist/rest-next-app.js +138 -0
- package/dist/rest-next-pages.d.ts +5 -0
- package/dist/rest-next-pages.js +149 -0
- package/package.json +160 -0
package/package.json
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@contractspec/lib.contracts-runtime-server-rest",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "REST server runtime adapters for ContractSpec contracts",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
|
|
9
|
+
"publish:pkg:canary": "bun publish:pkg --tag canary",
|
|
10
|
+
"clean": "rm -rf dist",
|
|
11
|
+
"lint": "bun run lint:fix",
|
|
12
|
+
"lint:fix": "eslint src --fix",
|
|
13
|
+
"lint:check": "eslint src",
|
|
14
|
+
"build": "bun run prebuild && bun run build:bundle && bun run build:types",
|
|
15
|
+
"build:bundle": "contractspec-bun-build transpile",
|
|
16
|
+
"build:types": "contractspec-bun-build types",
|
|
17
|
+
"prebuild": "contractspec-bun-build prebuild",
|
|
18
|
+
"typecheck": "tsc --noEmit",
|
|
19
|
+
"dev": "contractspec-bun-build dev"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@contractspec/lib.contracts-spec": "2.0.0",
|
|
23
|
+
"@contractspec/lib.schema": "2.0.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@pothos/core": "^4.9.1",
|
|
27
|
+
"elysia": "^1.4.24",
|
|
28
|
+
"express": "^5.2.1",
|
|
29
|
+
"next": "16.1.6"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@contractspec/tool.typescript": "2.0.0",
|
|
33
|
+
"typescript": "^5.9.3",
|
|
34
|
+
"@contractspec/tool.bun": "2.0.0"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist",
|
|
38
|
+
"README.md"
|
|
39
|
+
],
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"bun": "./dist/index.js",
|
|
44
|
+
"node": "./dist/node/index.js",
|
|
45
|
+
"browser": "./dist/browser/index.js",
|
|
46
|
+
"default": "./dist/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./contracts-adapter-hydration": {
|
|
49
|
+
"types": "./dist/contracts-adapter-hydration.d.ts",
|
|
50
|
+
"bun": "./dist/contracts-adapter-hydration.js",
|
|
51
|
+
"node": "./dist/node/contracts-adapter-hydration.js",
|
|
52
|
+
"browser": "./dist/browser/contracts-adapter-hydration.js",
|
|
53
|
+
"default": "./dist/contracts-adapter-hydration.js"
|
|
54
|
+
},
|
|
55
|
+
"./contracts-adapter-input": {
|
|
56
|
+
"types": "./dist/contracts-adapter-input.d.ts",
|
|
57
|
+
"bun": "./dist/contracts-adapter-input.js",
|
|
58
|
+
"node": "./dist/node/contracts-adapter-input.js",
|
|
59
|
+
"browser": "./dist/browser/contracts-adapter-input.js",
|
|
60
|
+
"default": "./dist/contracts-adapter-input.js"
|
|
61
|
+
},
|
|
62
|
+
"./rest-elysia": {
|
|
63
|
+
"types": "./dist/rest-elysia.d.ts",
|
|
64
|
+
"bun": "./dist/rest-elysia.js",
|
|
65
|
+
"node": "./dist/node/rest-elysia.js",
|
|
66
|
+
"browser": "./dist/browser/rest-elysia.js",
|
|
67
|
+
"default": "./dist/rest-elysia.js"
|
|
68
|
+
},
|
|
69
|
+
"./rest-express": {
|
|
70
|
+
"types": "./dist/rest-express.d.ts",
|
|
71
|
+
"bun": "./dist/rest-express.js",
|
|
72
|
+
"node": "./dist/node/rest-express.js",
|
|
73
|
+
"browser": "./dist/browser/rest-express.js",
|
|
74
|
+
"default": "./dist/rest-express.js"
|
|
75
|
+
},
|
|
76
|
+
"./rest-generic": {
|
|
77
|
+
"types": "./dist/rest-generic.d.ts",
|
|
78
|
+
"bun": "./dist/rest-generic.js",
|
|
79
|
+
"node": "./dist/node/rest-generic.js",
|
|
80
|
+
"browser": "./dist/browser/rest-generic.js",
|
|
81
|
+
"default": "./dist/rest-generic.js"
|
|
82
|
+
},
|
|
83
|
+
"./rest-next-app": {
|
|
84
|
+
"types": "./dist/rest-next-app.d.ts",
|
|
85
|
+
"bun": "./dist/rest-next-app.js",
|
|
86
|
+
"node": "./dist/node/rest-next-app.js",
|
|
87
|
+
"browser": "./dist/browser/rest-next-app.js",
|
|
88
|
+
"default": "./dist/rest-next-app.js"
|
|
89
|
+
},
|
|
90
|
+
"./rest-next-pages": {
|
|
91
|
+
"types": "./dist/rest-next-pages.d.ts",
|
|
92
|
+
"bun": "./dist/rest-next-pages.js",
|
|
93
|
+
"node": "./dist/node/rest-next-pages.js",
|
|
94
|
+
"browser": "./dist/browser/rest-next-pages.js",
|
|
95
|
+
"default": "./dist/rest-next-pages.js"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"publishConfig": {
|
|
99
|
+
"access": "public",
|
|
100
|
+
"registry": "https://registry.npmjs.org/",
|
|
101
|
+
"exports": {
|
|
102
|
+
".": {
|
|
103
|
+
"types": "./dist/index.d.ts",
|
|
104
|
+
"bun": "./dist/index.js",
|
|
105
|
+
"node": "./dist/node/index.js",
|
|
106
|
+
"browser": "./dist/browser/index.js",
|
|
107
|
+
"default": "./dist/index.js"
|
|
108
|
+
},
|
|
109
|
+
"./contracts-adapter-hydration": {
|
|
110
|
+
"types": "./dist/contracts-adapter-hydration.d.ts",
|
|
111
|
+
"bun": "./dist/contracts-adapter-hydration.js",
|
|
112
|
+
"node": "./dist/node/contracts-adapter-hydration.js",
|
|
113
|
+
"browser": "./dist/browser/contracts-adapter-hydration.js",
|
|
114
|
+
"default": "./dist/contracts-adapter-hydration.js"
|
|
115
|
+
},
|
|
116
|
+
"./contracts-adapter-input": {
|
|
117
|
+
"types": "./dist/contracts-adapter-input.d.ts",
|
|
118
|
+
"bun": "./dist/contracts-adapter-input.js",
|
|
119
|
+
"node": "./dist/node/contracts-adapter-input.js",
|
|
120
|
+
"browser": "./dist/browser/contracts-adapter-input.js",
|
|
121
|
+
"default": "./dist/contracts-adapter-input.js"
|
|
122
|
+
},
|
|
123
|
+
"./rest-elysia": {
|
|
124
|
+
"types": "./dist/rest-elysia.d.ts",
|
|
125
|
+
"bun": "./dist/rest-elysia.js",
|
|
126
|
+
"node": "./dist/node/rest-elysia.js",
|
|
127
|
+
"browser": "./dist/browser/rest-elysia.js",
|
|
128
|
+
"default": "./dist/rest-elysia.js"
|
|
129
|
+
},
|
|
130
|
+
"./rest-express": {
|
|
131
|
+
"types": "./dist/rest-express.d.ts",
|
|
132
|
+
"bun": "./dist/rest-express.js",
|
|
133
|
+
"node": "./dist/node/rest-express.js",
|
|
134
|
+
"browser": "./dist/browser/rest-express.js",
|
|
135
|
+
"default": "./dist/rest-express.js"
|
|
136
|
+
},
|
|
137
|
+
"./rest-generic": {
|
|
138
|
+
"types": "./dist/rest-generic.d.ts",
|
|
139
|
+
"bun": "./dist/rest-generic.js",
|
|
140
|
+
"node": "./dist/node/rest-generic.js",
|
|
141
|
+
"browser": "./dist/browser/rest-generic.js",
|
|
142
|
+
"default": "./dist/rest-generic.js"
|
|
143
|
+
},
|
|
144
|
+
"./rest-next-app": {
|
|
145
|
+
"types": "./dist/rest-next-app.d.ts",
|
|
146
|
+
"bun": "./dist/rest-next-app.js",
|
|
147
|
+
"node": "./dist/node/rest-next-app.js",
|
|
148
|
+
"browser": "./dist/browser/rest-next-app.js",
|
|
149
|
+
"default": "./dist/rest-next-app.js"
|
|
150
|
+
},
|
|
151
|
+
"./rest-next-pages": {
|
|
152
|
+
"types": "./dist/rest-next-pages.d.ts",
|
|
153
|
+
"bun": "./dist/rest-next-pages.js",
|
|
154
|
+
"node": "./dist/node/rest-next-pages.js",
|
|
155
|
+
"browser": "./dist/browser/rest-next-pages.js",
|
|
156
|
+
"default": "./dist/rest-next-pages.js"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|