@kubun/plugin-http 0.12.1 → 0.13.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.
Files changed (2) hide show
  1. package/lib/index.js +6 -2
  2. package/package.json +10 -10
package/lib/index.js CHANGED
@@ -39,7 +39,9 @@ function createProtocolHandler(fetch) {
39
39
  });
40
40
  const handler = createProtocolHandler(transport.fetch.bind(transport));
41
41
  // @ts-expect-error: type instantiation too deep
42
- const server = options.rpc.serve(transport);
42
+ const server = options.rpc.serve({
43
+ transport
44
+ });
43
45
  app.post('/graph', handler);
44
46
  app.post('/graph/*', handler);
45
47
  app.options('/graph', handler);
@@ -130,7 +132,9 @@ function createProtocolHandler(fetch) {
130
132
  // This decouples plugin-http from the engine's handler merging mechanism.
131
133
  const rpcPlugin = await params.engine.getAPI('rpc');
132
134
  // @ts-expect-error: type instantiation too deep
133
- enkakuServer = rpcPlugin.serve(transport);
135
+ enkakuServer = rpcPlugin.serve({
136
+ transport
137
+ });
134
138
  httpServer = serve({
135
139
  fetch: app.fetch,
136
140
  port
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubun/plugin-http",
3
- "version": "0.12.1",
3
+ "version": "0.13.2",
4
4
  "license": "see LICENSE.md",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -16,20 +16,20 @@
16
16
  "dependencies": {
17
17
  "@enkaku/http-serve": "^0.21.0",
18
18
  "@enkaku/protocol": "^0.21.0",
19
- "@enkaku/server": "^0.21.0",
20
- "@hono/node-server": "^2.1.0",
19
+ "@enkaku/server": "^0.21.2",
20
+ "@hono/node-server": "^2.1.1",
21
21
  "@sozai/async": "^0.2.1",
22
22
  "get-port": "^7.2.0",
23
- "hono": "^4.13.1",
24
- "@kubun/http-util": "^0.12.0",
25
- "@kubun/engine": "^0.12.1"
23
+ "hono": "^4.13.3",
24
+ "@kubun/engine": "^0.13.1",
25
+ "@kubun/http-util": "^0.13.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@enkaku/http-fetch": "^0.21.0",
29
- "@kubun/client": "^0.12.1",
30
- "@kubun/plugin-rpc": "^0.12.1",
31
- "@kubun/protocol": "^0.13.0",
32
- "@kubun/test-utils": "^0.12.0"
29
+ "@kubun/client": "^0.13.0",
30
+ "@kubun/plugin-rpc": "^0.13.2",
31
+ "@kubun/protocol": "^0.13.1",
32
+ "@kubun/test-utils": "^0.13.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"