Overhauled the library with several new features #5

Merged
javier merged 15 commits from library/api-update into main 2026-10-25 17:52:41 +00:00
4 changed files with 6 additions and 6 deletions
Showing only changes of commit 2364e2d859 - Show all commits

No files matched your search

@@ -71,7 +71,7 @@ public struct RateLimitMiddleware {
}
/// Creates a new middleware instance that waits with `sleep`, for testing.
init(
package init(
maximumRetries: Int,
baseDelay: TimeInterval,
maximumDelay: TimeInterval,
@@ -74,7 +74,7 @@ public actor APIKeyTokenProvider {
}
/// Creates a token provider that reads the current date from `now`, for testing.
init(
package init(
issuerID: String?,
keyID: String,
privateKey: String,
@@ -17,8 +17,8 @@ import HTTPTypes
import OpenAPIRuntime
import Testing
// A testable import gives access to the initializer that injects the sleep closure.
@testable import ASConnectService
// A non-testable import ensures that the middleware can be created from outside the module.
import ASConnectService
@Suite("RateLimitMiddleware")
struct RateLimitMiddlewareTests {
@@ -17,8 +17,8 @@ import CryptoKit
import Foundation
import Testing
// A testable import gives access to the initializer that injects the current date.
@testable import ASConnectService
// A non-testable import ensures that the provider can be created from outside the module.
import ASConnectService
@Suite("APIKeyTokenProvider")
struct APIKeyTokenProviderTests {