File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
APIGatewayV2+LambdaAuthorizer Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ let package = Package(
1616 // For standalone usage, comment the line above and uncomment below:
1717 // .package(url: "https://github.com/awslabs/swift-aws-lambda-runtime.git", from: "2.0.0"),
1818
19- . package ( url: " https://github.com/awslabs/swift-aws-lambda-events.git " , from: " 1.0 .0 " ) ,
19+ . package ( url: " https://github.com/awslabs/swift-aws-lambda-events.git " , from: " 1.4 .0 " ) ,
2020 ] ,
2121 targets: [
2222 . executableTarget(
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ let policyAuthorizerHandler:
5858//
5959// This code doesn't perform any type of token validation. It should be used as a reference only.
6060let simpleAuthorizerHandler :
61- ( APIGatewayLambdaAuthorizerRequest , LambdaContext ) async throws -> APIGatewayLambdaAuthorizerSimpleResponse = {
61+ @ Sendable ( APIGatewayLambdaAuthorizerRequest, LambdaContext) async throws -> APIGatewayLambdaAuthorizerSimpleResponse = {
6262 ( _: APIGatewayLambdaAuthorizerRequest , context: LambdaContext ) in
6363
6464 context. logger. debug ( " +++ Simple Authorizer called +++ " )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ let package = Package(
88 platforms: [ . macOS( . v15) ] ,
99 dependencies: [
1010 // For local development (default)
11- . package ( name: " swift-aws-lambda-runtime " , path: " ../.. " ) ,
11+ // .package(name: "swift-aws-lambda-runtime", path: "../.."),
1212
1313 // For standalone usage, comment the line above and uncomment below:
1414 // .package(url: "https://github.com/awslabs/swift-aws-lambda-runtime.git", from: "2.0.0"),
@@ -17,7 +17,7 @@ let package = Package(
1717 url: " https://github.com/hummingbird-project/hummingbird-lambda.git " ,
1818 branch: " main "
1919 ) ,
20- . package ( url: " https://github.com/awslabs/swift-aws-lambda-events.git " , from: " 1.1 .0 " ) ,
20+ . package ( url: " https://github.com/awslabs/swift-aws-lambda-events.git " , from: " 1.4 .0 " ) ,
2121 ] ,
2222 targets: [
2323 . executableTarget(
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ let package = Package(
1212 // For standalone usage, comment the line above and uncomment below:
1313 // .package(url: "https://github.com/awslabs/swift-aws-lambda-runtime.git", from: "2.0.0"),
1414
15- . package ( url: " https://github.com/awslabs/swift-aws-lambda-events.git " , from: " 1.0 .0 " ) ,
15+ . package ( url: " https://github.com/awslabs/swift-aws-lambda-events.git " , from: " 1.4 .0 " ) ,
1616 ] ,
1717 targets: [
1818 . executableTarget(
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import Foundation
2828/// This handler protocol supports response streaming and background work execution.
2929/// Background work can be executed after closing the response stream by calling
3030/// ``LambdaResponseStreamWriter/finish()`` or ``LambdaResponseStreamWriter/writeAndFinish(_:)``.
31- public protocol StreamingLambdaHandlerWithEvent : _Lambda_SendableMetatype {
31+ public protocol StreamingLambdaHandlerWithEvent : Sendable , _Lambda_SendableMetatype {
3232 /// Generic input type that will be decoded from JSON.
3333 associatedtype Event : Decodable
3434
You can’t perform that action at this time.
0 commit comments