Skip to content

Commit f7394c7

Browse files
committed
[chore] bump ZNSTextAttachment version
1 parent 5d8316f commit f7394c7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let package = Package(
1111
],
1212
dependencies: [
1313
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", exact: "1.12.0"),
14-
.package(url: "https://github.com/ZhgChgLi/ZNSTextAttachment", from: "1.1.6")
14+
.package(url: "https://github.com/ZhgChgLi/ZNSTextAttachment", from: "1.1.7")
1515
],
1616
targets: [
1717
.target(

Tests/ZMarkupParserSnapshotTests/ZMarkupParserSnapshotTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,13 @@ extension ZHTMLToNSAttributedStringSnapshotTests: ZNSTextAttachmentDelegate, ZNS
203203
#endif
204204
}
205205

206-
func zNSTextAttachment(_ textAttachment: ZNSTextAttachment, loadImageURL imageURL: URL, completion: @escaping (Data) -> Void) {
206+
func zNSTextAttachment(_ textAttachment: ZNSTextAttachment, loadImageURL imageURL: URL, completion: @escaping (Data, ZNSTextAttachmentDownloadedDataMIMEType?) -> Void) {
207207
URLSession.shared.dataTask(with: imageURL) { (data, response, error) in
208208
guard let data = data, error == nil else {
209209
print(error?.localizedDescription as Any)
210210
return
211211
}
212-
completion(data)
212+
completion(data, response?.mimeType)
213213
}.resume()
214214
}
215215
}

ZMarkupParser.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)