@orpc/standard-server-fastify 1.12.0 → 1.12.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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <div align="center">
2
- <image align="center" src="https://orpc.unnoq.com/logo.webp" width=280 alt="oRPC logo" />
2
+ <image align="center" src="https://orpc.dev/logo.webp" width=280 alt="oRPC logo" />
3
3
  </div>
4
4
 
5
5
  <h1></h1>
@@ -45,7 +45,7 @@
45
45
 
46
46
  ## Documentation
47
47
 
48
- You can find the full documentation [here](https://orpc.unnoq.com).
48
+ You can find the full documentation [here](https://orpc.dev).
49
49
 
50
50
  ## Packages
51
51
 
@@ -66,7 +66,7 @@ You can find the full documentation [here](https://orpc.unnoq.com).
66
66
 
67
67
  ## `@orpc/standard-server-fastify`
68
68
 
69
- [Fastify](https://fastify.dev/) server adapter for the [oRPC](https://orpc.unnoq.com).
69
+ [Fastify](https://fastify.dev/) server adapter for the [oRPC](https://orpc.dev).
70
70
 
71
71
  ## Sponsors
72
72
 
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { once } from '@orpc/shared';
2
- import { toAbortSignal, toStandardUrl, toStandardMethod, toStandardBody, toNodeHttpBody } from '@orpc/standard-server-node';
2
+ import { toAbortSignal, toStandardUrl, toStandardMethod, toStandardBody, toNodeHttpBody, toNodeHttpHeaders } from '@orpc/standard-server-node';
3
3
 
4
4
  function toStandardLazyRequest(req, reply) {
5
5
  const signal = toAbortSignal(reply.raw);
@@ -24,7 +24,7 @@ function sendStandardResponse(reply, standardResponse, options = {}) {
24
24
  const resHeaders = { ...standardResponse.headers };
25
25
  const resBody = toNodeHttpBody(standardResponse.body, resHeaders, options);
26
26
  reply.status(standardResponse.status);
27
- reply.headers(resHeaders);
27
+ reply.headers(toNodeHttpHeaders(resHeaders));
28
28
  reply.send(resBody);
29
29
  });
30
30
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@orpc/standard-server-fastify",
3
3
  "type": "module",
4
- "version": "1.12.0",
4
+ "version": "1.12.2",
5
5
  "license": "MIT",
6
- "homepage": "https://orpc.unnoq.com",
6
+ "homepage": "https://orpc.dev",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/unnoq/orpc.git",
@@ -32,9 +32,9 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@orpc/shared": "1.12.0",
36
- "@orpc/standard-server": "1.12.0",
37
- "@orpc/standard-server-node": "1.12.0"
35
+ "@orpc/shared": "1.12.2",
36
+ "@orpc/standard-server": "1.12.2",
37
+ "@orpc/standard-server-node": "1.12.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@fastify/cookie": "^11.0.2",