serverless-offline 11.1.1 → 11.1.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dedicatedTo": "Blue, a great migrating bird.",
3
3
  "name": "serverless-offline",
4
- "version": "11.1.1",
4
+ "version": "11.1.2",
5
5
  "description": "Emulate AWS λ and API Gateway locally when developing your Serverless project",
6
6
  "license": "MIT",
7
7
  "exports": {
@@ -85,10 +85,10 @@
85
85
  "@hapi/boom": "^10.0.0",
86
86
  "@hapi/h2o2": "^10.0.0",
87
87
  "@hapi/hapi": "^20.2.2",
88
- "@serverless/utils": "^6.7.0",
88
+ "@serverless/utils": "^6.8.0",
89
89
  "aws-sdk": "^2.1231.0",
90
90
  "boxen": "^7.0.0",
91
- "chalk": "^5.1.0",
91
+ "chalk": "^5.1.2",
92
92
  "execa": "^6.1.0",
93
93
  "fs-extra": "^10.1.0",
94
94
  "java-invoke-local": "0.0.6",
@@ -120,7 +120,7 @@
120
120
  "mocha": "^10.0.0",
121
121
  "nyc": "^15.1.0",
122
122
  "prettier": "^2.7.1",
123
- "serverless": "^3.22.0",
123
+ "serverless": "^3.23.0",
124
124
  "standard-version": "^9.5.0"
125
125
  },
126
126
  "peerDependencies": {
@@ -104,6 +104,8 @@ export default class LambdaProxyIntegrationEvent {
104
104
  ) {
105
105
  headers['Content-Type'] = 'application/json'
106
106
  }
107
+ } else if (typeof body === 'undefined' || body === '') {
108
+ body = null
107
109
  }
108
110
 
109
111
  // clone own props
@@ -87,6 +87,8 @@ export default class LambdaProxyIntegrationEventV2 {
87
87
  if (!headers['content-type']) {
88
88
  headers['content-type'] = 'application/json'
89
89
  }
90
+ } else if (typeof body === 'undefined' || body === '') {
91
+ body = null
90
92
  }
91
93
 
92
94
  // clone own props
@@ -9,7 +9,7 @@ export default class ScheduleEventDefinition {
9
9
  if (typeof rawHttpEventDefinition === 'string') {
10
10
  rate = rawHttpEventDefinition
11
11
  } else {
12
- ;({ rate, enabled, ...rest } = rawHttpEventDefinition)
12
+ ;({ enabled, rate, ...rest } = rawHttpEventDefinition)
13
13
  }
14
14
 
15
15
  // enabled: true (default)