A fast, safe, and efficient CBOR serialization library for Swift on any platform. swiftpackageindex.com/thecoolwinter/CBOR/1.1.1/documentation/cbor
atproto swift cbor

fix:lint

+10 -3
+7 -1
Sources/CBOR/Decoder/Scanner/CBORScanner+Results.swift
··· 96 96 let location = map[mapIndex + 3] 97 97 let length = map[mapIndex + 4] 98 98 let slice = reader.slice(location..<(location + length)) 99 - return DataRegion(type: type, argument: argument, childCount: childCount, mapOffset: mapIndex, data: slice) 99 + return DataRegion( 100 + type: type, 101 + argument: argument, 102 + childCount: childCount, 103 + mapOffset: mapIndex, 104 + data: slice 105 + ) 100 106 } 101 107 } 102 108
+1 -1
Sources/CBOR/Encoder/EncodingOptions.swift
··· 9 9 public struct EncodingOptions { 10 10 /// Force encoded maps to use string keys even when integer keys are available. 11 11 public let forceStringKeys: Bool 12 - 12 + 13 13 /// Methods for encoding dates. 14 14 public enum DateStrategy { 15 15 /// Encodes dates as `ISO8601` date strings under tag `0`.
+2 -1
Sources/CBOR/MajorType.swift
··· 6 6 // 7 7 8 8 /// Represents a major type as described by the CBOR specification. 9 - @frozen public enum MajorType: UInt8, Sendable, Hashable, Equatable { 9 + @frozen 10 + public enum MajorType: UInt8, Sendable, Hashable, Equatable { 10 11 case uint = 0 11 12 case nint = 1 12 13 case bytes = 2