File tree Expand file tree Collapse file tree 4 files changed +29
-6
lines changed Expand file tree Collapse file tree 4 files changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ let package = Package(
3232 dependencies: [
3333 . byName( name: " AWSLambdaRuntimeCore " ) ,
3434 . product( name: " NIOCore " , package : " swift-nio " ) ,
35- ] ,
35+ ]
3636 ) ,
3737 . target(
3838 name: " AWSLambdaRuntimeCore " ,
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ public struct LambdaJSONEventDecoder: LambdaEventDecoder {
3232 }
3333
3434 @inlinable
35- public func decode< Event> ( _ type: Event . Type , from buffer: NIOCore . ByteBuffer ) throws -> Event where Event : Decodable {
35+ public func decode< Event> ( _ type: Event . Type , from buffer: NIOCore . ByteBuffer ) throws -> Event
36+ where Event: Decodable {
3637 try buffer. getJSONDecodable (
3738 Event . self,
3839 decoder: self . jsonDecoder,
Original file line number Diff line number Diff line change 1+ //===----------------------------------------------------------------------===//
2+ //
3+ // This source file is part of the SwiftAWSLambdaRuntime open source project
4+ //
5+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6+ // Licensed under Apache License v2.0
7+ //
8+ // See LICENSE.txt for license information
9+ // See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
10+ //
11+ // SPDX-License-Identifier: Apache-2.0
12+ //
13+ //===----------------------------------------------------------------------===//
14+
115//===----------------------------------------------------------------------===//
216//
317// This source file is part of the SwiftNIO open source project
Original file line number Diff line number Diff line change 1+ //===----------------------------------------------------------------------===//
2+ //
3+ // This source file is part of the SwiftAWSLambdaRuntime open source project
14//
2- // JSON+ByteBuffer.swift
3- // swift-aws-lambda-runtime
5+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6+ // Licensed under Apache License v2.0
7+ //
8+ // See LICENSE.txt for license information
9+ // See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
410//
5- // Created by Fabian Fett on 06.09.24.
11+ // SPDX-License-Identifier: Apache-2.0
612//
13+ //===----------------------------------------------------------------------===//
714
815//===----------------------------------------------------------------------===//
916//
1926//
2027//===----------------------------------------------------------------------===//
2128
29+ import NIOCore
30+
2231#if canImport(FoundationEssentials)
2332import FoundationEssentials
2433#else
2534import Foundation
2635#endif
27- import NIOCore
2836
2937extension ByteBuffer {
3038 /// Attempts to decode the `length` bytes from `index` using the `JSONDecoder` `decoder` as `T`.
You can’t perform that action at this time.
0 commit comments