trpc-uwebsockets 10.46.2 → 10.46.3

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/README.md +5 -3
  2. package/package.json +4 -1
package/README.md CHANGED
@@ -10,12 +10,14 @@ Version 10
10
10
  npm install trpc-uwebsockets
11
11
  ```
12
12
 
13
- Version 11 beta (same as next branch of trpc)
13
+ Version 11
14
14
 
15
15
  ```bash
16
- npm install trpc-uwebsockets@beta
16
+ npm install trpc-uwebsockets@next
17
17
  ```
18
18
 
19
+ Check out [v11 branch](https://github.com/romanzy313/trpc-uwebsockets/tree/v11) for documentation.
20
+
19
21
  # Usage
20
22
 
21
23
  Import needed packages
@@ -73,7 +75,7 @@ const app = App();
73
75
 
74
76
  /* handle CORS as needed */
75
77
  app.options('/*', (res) => {
76
- res.writeHeader('Access-Control-Allow-Origin', allowOrigin);
78
+ res.writeHeader('Access-Control-Allow-Origin', '*');
77
79
  res.endWithoutBody();
78
80
  });
79
81
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "trpc-uwebsockets",
4
4
  "description": "tRPC adapter for uWebSockets.js server",
5
- "version": "10.46.2",
5
+ "version": "10.46.3",
6
6
  "main": "./dist/index.js",
7
7
  "type": "commonjs",
8
8
  "types": "./types/index.d.ts",
@@ -48,6 +48,9 @@
48
48
  "ws": "^8.14.1",
49
49
  "zod": "^3.22.4"
50
50
  },
51
+ "resolutions": {
52
+ "strip-ansi": "6.0.1"
53
+ },
51
54
  "files": [
52
55
  "dist",
53
56
  "src",