File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1+ ## 1.0.4
2+
3+ - Allow ` package:yaml ` ` v3.x ` .
4+
15## 1.0.3
26
37- Require at least Dart ` 2.7.0 ` .
Original file line number Diff line number Diff line change @@ -27,8 +27,17 @@ T checkedYamlDecode<T>(
2727 allowNull ?? = false ;
2828 YamlNode yaml;
2929
30+ Uri sourceUri;
31+ if (sourceUrl == null ) {
32+ // noop
33+ } else if (sourceUrl is Uri ) {
34+ sourceUri = sourceUrl;
35+ } else {
36+ sourceUri = Uri .parse (sourceUrl as String );
37+ }
38+
3039 try {
31- yaml = loadYamlNode (yamlContent, sourceUrl: sourceUrl );
40+ yaml = loadYamlNode (yamlContent, sourceUrl: sourceUri );
3241 } on YamlException catch (e) {
3342 throw ParsedYamlException .fromYamlException (e);
3443 }
Original file line number Diff line number Diff line change 11name : checked_yaml
2- version : 1.0.3
2+ version : 1.0.4
33description : >-
44 Generate more helpful exceptions when decoding YAML documents using
55 package:json_serializable and package:yaml.
6- homepage : https://github.com/google/json_serializable.dart
6+ repository : https://github.com/google/json_serializable.dart
77environment :
88 sdk : ' >=2.7.0 <3.0.0'
99
1010dependencies :
1111 json_annotation : ' >=2.2.0 <5.0.0'
1212 source_span : ^1.0.0
13- yaml : ^ 2.1.13
13+ yaml : ' >= 2.1.13 <4.0.0 '
1414
1515dev_dependencies :
1616 build_runner : ^1.0.0
You can’t perform that action at this time.
0 commit comments