@mokup/server 1.2.0 → 1.2.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mokup/server",
3
3
  "type": "module",
4
- "version": "1.2.0",
4
+ "version": "1.2.2",
5
5
  "description": "Server adapters for @mokup/runtime.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://mokup.icebreaker.top",
@@ -12,57 +12,90 @@
12
12
  },
13
13
  "exports": {
14
14
  ".": {
15
- "types": "./dist/index.d.ts",
15
+ "types": {
16
+ "import": "./dist/index.d.mts",
17
+ "require": "./dist/index.d.cts"
18
+ },
16
19
  "import": "./dist/index.mjs",
17
20
  "require": "./dist/index.cjs"
18
21
  },
19
22
  "./connect": {
20
- "types": "./dist/connect.d.ts",
23
+ "types": {
24
+ "import": "./dist/connect.d.mts",
25
+ "require": "./dist/connect.d.cts"
26
+ },
21
27
  "import": "./dist/connect.mjs",
22
28
  "require": "./dist/connect.cjs"
23
29
  },
24
30
  "./express": {
25
- "types": "./dist/express.d.ts",
31
+ "types": {
32
+ "import": "./dist/express.d.mts",
33
+ "require": "./dist/express.d.cts"
34
+ },
26
35
  "import": "./dist/express.mjs",
27
36
  "require": "./dist/express.cjs"
28
37
  },
29
38
  "./fastify": {
30
- "types": "./dist/fastify.d.ts",
39
+ "types": {
40
+ "import": "./dist/fastify.d.mts",
41
+ "require": "./dist/fastify.d.cts"
42
+ },
31
43
  "import": "./dist/fastify.mjs",
32
44
  "require": "./dist/fastify.cjs"
33
45
  },
34
46
  "./fetch": {
35
- "types": "./dist/fetch.d.ts",
47
+ "types": {
48
+ "import": "./dist/fetch.d.mts",
49
+ "require": "./dist/fetch.d.cts"
50
+ },
36
51
  "import": "./dist/fetch.mjs",
37
52
  "require": "./dist/fetch.cjs"
38
53
  },
39
54
  "./fetch-server": {
40
- "types": "./dist/fetch-server.d.ts",
55
+ "types": {
56
+ "import": "./dist/fetch-server.d.mts",
57
+ "require": "./dist/fetch-server.d.cts"
58
+ },
41
59
  "import": "./dist/fetch-server.mjs",
42
60
  "require": "./dist/fetch-server.cjs"
43
61
  },
44
62
  "./hono": {
45
- "types": "./dist/hono.d.ts",
63
+ "types": {
64
+ "import": "./dist/hono.d.mts",
65
+ "require": "./dist/hono.d.cts"
66
+ },
46
67
  "import": "./dist/hono.mjs",
47
68
  "require": "./dist/hono.cjs"
48
69
  },
49
70
  "./koa": {
50
- "types": "./dist/koa.d.ts",
71
+ "types": {
72
+ "import": "./dist/koa.d.mts",
73
+ "require": "./dist/koa.d.cts"
74
+ },
51
75
  "import": "./dist/koa.mjs",
52
76
  "require": "./dist/koa.cjs"
53
77
  },
54
78
  "./node": {
55
- "types": "./dist/node.d.ts",
79
+ "types": {
80
+ "import": "./dist/node.d.mts",
81
+ "require": "./dist/node.d.cts"
82
+ },
56
83
  "import": "./dist/node.mjs",
57
84
  "require": "./dist/node.cjs"
58
85
  },
59
86
  "./worker-node": {
60
- "types": "./dist/worker-node.d.ts",
87
+ "types": {
88
+ "import": "./dist/worker-node.d.mts",
89
+ "require": "./dist/worker-node.d.cts"
90
+ },
61
91
  "import": "./dist/worker-node.mjs",
62
92
  "require": "./dist/worker-node.cjs"
63
93
  },
64
94
  "./worker": {
65
- "types": "./dist/worker.d.ts",
95
+ "types": {
96
+ "import": "./dist/worker.d.mts",
97
+ "require": "./dist/worker.d.cts"
98
+ },
66
99
  "import": "./dist/worker.mjs",
67
100
  "require": "./dist/worker.cjs"
68
101
  }
@@ -73,26 +106,55 @@
73
106
  "main": "./dist/index.cjs",
74
107
  "module": "./dist/index.mjs",
75
108
  "types": "./dist/index.d.ts",
109
+ "typesVersions": {
110
+ "*": {
111
+ "connect": [
112
+ "dist/connect.d.mts"
113
+ ],
114
+ "express": [
115
+ "dist/express.d.mts"
116
+ ],
117
+ "fastify": [
118
+ "dist/fastify.d.mts"
119
+ ],
120
+ "fetch": [
121
+ "dist/fetch.d.mts"
122
+ ],
123
+ "fetch-server": [
124
+ "dist/fetch-server.d.mts"
125
+ ],
126
+ "hono": [
127
+ "dist/hono.d.mts"
128
+ ],
129
+ "koa": [
130
+ "dist/koa.d.mts"
131
+ ],
132
+ "node": [
133
+ "dist/node.d.mts"
134
+ ],
135
+ "worker-node": [
136
+ "dist/worker-node.d.mts"
137
+ ],
138
+ "worker": [
139
+ "dist/worker.d.mts"
140
+ ]
141
+ }
142
+ },
76
143
  "files": [
77
144
  "dist"
78
145
  ],
79
146
  "dependencies": {
80
147
  "@hono/node-server": "^1.19.9",
81
148
  "@hono/node-ws": "^1.1.1",
82
- "tsx": "^4.21.0",
83
- "@mokup/shared": "1.1.1",
84
- "@mokup/playground": "0.0.15",
85
- "@mokup/runtime": "1.0.6"
86
- },
87
- "devDependencies": {
88
- "@types/node": "^25.0.10",
89
- "typescript": "^5.9.3",
90
- "unbuild": "^3.6.1"
149
+ "@mokup/playground": "0.1.1",
150
+ "@mokup/runtime": "1.0.8",
151
+ "@mokup/shared": "1.1.3"
91
152
  },
92
153
  "scripts": {
93
154
  "build": "unbuild",
94
155
  "dev": "unbuild --stub",
95
156
  "lint": "eslint .",
96
- "typecheck": "tsc -p tsconfig.json --noEmit"
157
+ "typecheck": "tsc -p tsconfig.json --noEmit",
158
+ "test:types": "tsd"
97
159
  }
98
160
  }