File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## v6.0.2
2
+ - Fixed ` GitHubFile.text ` to properly decode ` content ` .
3
+
1
4
## v6.0.1
2
5
- Fix https://github.com/SpinlockLabs/github.dart/issues/190
3
6
15
18
- removed deprecated items
16
19
- renamed some fields with ID at the end to be Id
17
20
- most model constructors now have named parameters for all properties
21
+ - ` GitHubFile.content ` is now exactly the content returned from the JSON API
22
+ without newlines removed.
18
23
19
24
## v5.5.0
20
25
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class GitHubFile {
37
37
/// File Path
38
38
String path;
39
39
40
- /// File Content
40
+ /// Base-64 encoded file content with newlines.
41
41
String content;
42
42
43
43
/// SHA
@@ -55,10 +55,10 @@ class GitHubFile {
55
55
@JsonKey (name: '_links' )
56
56
Links links;
57
57
58
- /// Text Content
58
+ /// The value in [content] Base-64 decoded.
59
59
String get text {
60
60
if (_text == null ) {
61
- _text = utf8.decode (base64Decode (content));
61
+ _text = utf8.decode (base64Decode (LineSplitter . split ( content). join () ));
62
62
}
63
63
return _text;
64
64
}
Original file line number Diff line number Diff line change 1
1
name : github
2
- version : 6.0.1
2
+ version : 6.0.2
3
3
author :
Kenneth Endfinger <[email protected] >
4
4
description : A high-level GitHub API Client Library that uses Github's v3 API
5
5
homepage : https://github.com/SpinlockLabs/github.dart
You can’t perform that action at this time.
0 commit comments