Skip to content

Commit 07e0d2a

Browse files
committed
fix: url methods made public
1 parent fea8730 commit 07e0d2a

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,5 @@ Gemfile
8181
Tests/config.json
8282

8383
snyk_output.log
84-
talisman_output.log
84+
talisman_output.log
85+
Tests/config.json

Sources/ImageTransformError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foundation
99
/// Information regarding an error received from Contentstack's Image Delivery API.
1010
public struct ImageTransformError: Error, CustomDebugStringConvertible {
1111
/// Human redable error Message
12-
internal let message: String
12+
public let message: String
1313

1414
public var debugDescription: String {
1515
return message

Sources/Utils.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal extension Array {
2929
}
3030
}
3131

32-
internal extension String {
32+
public extension String {
3333
// Will make a `URL` from the current `String` instance if possible.
3434
func toURL() throws -> URL {
3535
guard var urlComponents = URLComponents(string: self) else {
@@ -90,7 +90,7 @@ internal extension String {
9090
return url
9191
}
9292

93-
func isHexColor() -> Bool {
93+
internal func isHexColor() -> Bool {
9494
let hexColorRegex3Deci = "[0-9A-Fa-f]{3}"
9595
let hexColorPred3Deci = NSPredicate(format: "SELF MATCHES %@", hexColorRegex3Deci)
9696

0 commit comments

Comments
 (0)