Skip to content

Commit

Permalink
1.7.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Apr 11, 2024
1 parent 07106aa commit 6452e3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ import PackageDescription
let package = Package(
name: "SomeProject",
dependencies: [
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.7.5")
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.7.7")
],
targets: [
.target(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public extension SecureCacheService where Self == MockSecureCacheService {

public extension SecureCacheService {

func save(_ date: Date, for key: SecureCacheServiceKey) async throws {
try await save(dateFormatter.string(for: date), for: key)
func save(_ date: Date?, for key: SecureCacheServiceKey) async throws {
try await save(date.map(dateFormatter.string), for: key)
}

func load(for key: SecureCacheServiceKey) async -> Date? {
Expand Down

0 comments on commit 6452e3d

Please sign in to comment.