@middy/http-cors 4.2.0 → 4.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.
Files changed (2) hide show
  1. package/index.d.ts +2 -2
  2. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import middy from '@middy/core'
3
3
  export interface Options {
4
4
  getOrigin?: (incomingOrigin: string, options: Options) => string
5
5
  credentials?: boolean | string
6
- disableBeforePreflightResponse: true
6
+ disableBeforePreflightResponse?: boolean
7
7
  headers?: string
8
8
  methods?: string
9
9
  origin?: string
@@ -15,6 +15,6 @@ export interface Options {
15
15
  cacheControl?: string
16
16
  }
17
17
 
18
- declare function httpCors (options?: Options): middy.MiddlewareObj
18
+ declare function httpCors(options?: Options): middy.MiddlewareObj
19
19
 
20
20
  export default httpCors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-cors",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "CORS (Cross-Origin Resource Sharing) middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -60,11 +60,11 @@
60
60
  "url": "https://github.com/middyjs/middy/issues"
61
61
  },
62
62
  "homepage": "https://middy.js.org",
63
- "gitHead": "438103b15c184995a0a38413f6ed0b8696d13670",
63
+ "gitHead": "768fbb334e9774fcef406e095a5f4e98497266e0",
64
64
  "dependencies": {
65
- "@middy/util": "4.2.0"
65
+ "@middy/util": "4.2.2"
66
66
  },
67
67
  "devDependencies": {
68
- "@middy/core": "4.2.0"
68
+ "@middy/core": "4.2.2"
69
69
  }
70
70
  }