Skip to content

Commit abffa38

Browse files
author
Andrea Scuderi
committed
Support swift-aws-lambda-runtime 1.0.0-alpha.2
1 parent ea29236 commit abffa38

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let package = Package(
1919
)
2020
],
2121
dependencies: [
22-
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha.1"),
22+
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha.2"),
2323
.package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "0.1.0"),
2424
.package(url: "https://github.com/soto-project/soto.git", from: "6.7.0"),
2525
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),

Sources/BreezeLambdaAPI/APIGatewayV2Response+Extensions.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import struct AWSLambdaEvents.APIGatewayV2Response
16-
import struct AWSLambdaEvents.HTTPResponseStatus
16+
import HTTPTypes
1717
import class Foundation.JSONEncoder
1818

1919
extension APIGatewayV2Response {
@@ -31,7 +31,7 @@ extension APIGatewayV2Response {
3131
/// - Parameters:
3232
/// - error: Error
3333
/// - statusCode: HTTP Status Code
34-
init(with error: Error, statusCode: AWSLambdaEvents.HTTPResponseStatus) {
34+
init(with error: Error, statusCode: HTTPResponse.Status) {
3535
let bodyError = BodyError(error: String(describing: error))
3636
self.init(with: bodyError, statusCode: statusCode)
3737
}
@@ -40,7 +40,7 @@ extension APIGatewayV2Response {
4040
/// - Parameters:
4141
/// - object: Encodable Object
4242
/// - statusCode: HTTP Status Code
43-
init<Output: Encodable>(with object: Output, statusCode: AWSLambdaEvents.HTTPResponseStatus) {
43+
init<Output: Encodable>(with object: Output, statusCode: HTTPResponse.Status) {
4444
var body = "{}"
4545
if let data = try? Self.encoder.encode(object) {
4646
body = String(data: data, encoding: .utf8) ?? body

0 commit comments

Comments
 (0)