spiceflow 1.10.0 → 1.10.1

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/dist/cors.js CHANGED
@@ -4,7 +4,7 @@ export const cors = (options) => {
4
4
  allowMethods: ['GET', 'HEAD', 'PUT', 'POST', 'DELETE', 'PATCH'],
5
5
  allowHeaders: [],
6
6
  credentials: true,
7
- exposeHeaders: true,
7
+ exposeHeaders: [],
8
8
  cacheAge: 21600, // 6 hours default
9
9
  };
10
10
  const opts = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spiceflow",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "Simple API framework with RPC and type safety",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/cors.ts CHANGED
@@ -18,7 +18,7 @@ type CORSOptions = {
18
18
  exposeHeaders?: string[] | boolean
19
19
  /** Configures browser and CDN caching duration for CORS preflight requests in seconds. Set to 0 to disable. */
20
20
  cacheAge?: number
21
-
21
+
22
22
  }
23
23
 
24
24
  export const cors = (options?: CORSOptions): MiddlewareHandler => {
@@ -27,7 +27,7 @@ export const cors = (options?: CORSOptions): MiddlewareHandler => {
27
27
  allowMethods: ['GET', 'HEAD', 'PUT', 'POST', 'DELETE', 'PATCH'],
28
28
  allowHeaders: [],
29
29
  credentials: true,
30
- exposeHeaders: true,
30
+ exposeHeaders: [],
31
31
  cacheAge: 21600, // 6 hours default
32
32
  }
33
33
  const opts = {