Skip to content

Commit e620ff3

Browse files
committed
improve pub score
1 parent 436618d commit e620ff3

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 8.0.1
2+
- Minor tweaks to improve pub score
3+
14
## 8.0.0
25
- Allow start page, per_page, number of pages options to pagination helper
36
- Allow page options for listTags

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ We are looking for contributors. If you're interested or have questions, head ov
2020

2121
## Links
2222

23-
- [Library Demos](http://spinlocklabs.github.io/github.dart/) (based on the [sample code](https://github.com/SpinlockLabs/github.dart/tree/master/example))
23+
- [Library Demos](https://spinlocklabs.github.io/github.dart/) (based on the [sample code](https://github.com/SpinlockLabs/github.dart/tree/master/example))
2424
- [Pub Package](https://pub.dartlang.org/packages/github)
2525
- [Wiki](https://github.com/SpinlockLabs/github.dart/wiki)
2626
- [Latest API reference](https://pub.dev/documentation/github/latest/)

example/common.dart

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export 'package:github/browser_helper.dart';
1313
Future<void> initViewSourceButton(String script) async {
1414
// query the DOM for the view source button, handle clicks
1515
document.querySelector('#view-source')?.onClick.listen((_) {
16+
// ignore: unsafe_html
1617
final popup = window.open('view_source.html?script=$script', 'View Source');
1718
String? code;
1819

lib/src/common/model/repos.dart

+2
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ class RepositoryPermissions {
223223

224224
factory RepositoryPermissions.fromJson(Map<String, dynamic> json) =>
225225
_$RepositoryPermissionsFromJson(json);
226+
227+
Map<String, dynamic> toJson() => _$RepositoryPermissionsToJson(this);
226228
}
227229

228230
@JsonSerializable(createToJson: false)

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: github
2-
version: 8.0.0
2+
version: 8.0.1
33
description: A high-level GitHub API Client Library that uses Github's v3 API
44
homepage: https://github.com/SpinlockLabs/github.dart
55

0 commit comments

Comments
 (0)