File tree Expand file tree Collapse file tree 2 files changed +13
-16
lines changed
Expand file tree Collapse file tree 2 files changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -71,16 +71,14 @@ final class FileSystemUtility {
7171 String branch = 'main' ,
7272 required String filePath,
7373 }) {
74- final url =
75- 'https://raw.githubusercontent.com/$username /$repo /$branch /$filePath ' ;
74+ final url = 'https://raw.githubusercontent.com/$username /$repo /$branch /$filePath ' ;
7675 return readFileFromUrlOrNull (url);
7776 }
7877
7978 /// Reads the contents of a file located at [pathOrUrl] .
8079 Async <String > readFileFromPathOrUrl (String pathOrUrl) {
81- return Async .unsafe (() async {
82- return (await readLocalFileOrNull (pathOrUrl) ??
83- await readFileFromUrlOrNull (pathOrUrl))! ;
80+ return Async (() async {
81+ return (await readLocalFileOrNull (pathOrUrl) ?? await readFileFromUrlOrNull (pathOrUrl))! ;
8482 });
8583 }
8684
@@ -288,8 +286,7 @@ final class FileSystemUtility {
288286 final topmostResults = < T > [];
289287 for (final result in dirPaths1) {
290288 if (topmostResults.every (
291- (topmostResult) =>
292- ! toPath (result).startsWith ('${toPath (topmostResult )}/' ),
289+ (topmostResult) => ! toPath (result).startsWith ('${toPath (topmostResult )}/' ),
293290 )) {
294291 topmostResults.add (result);
295292 }
Original file line number Diff line number Diff line change 1212
1313name : df_gen_core
1414description : A package that provides core utilities for practical code generation.
15- version : 0.6.2
15+ version : 0.6.3
1616repository : https://github.com/robmllze/df_gen_core
1717
1818# # -----------------------------------------------------------------------------
@@ -26,21 +26,21 @@ dependencies:
2626 df_collection : ^0.9.1
2727 df_config : ^0.6.2
2828 df_log : ^0.2.4
29- df_safer_dart : ^0.8.2
29+ df_safer_dart : ^0.9.1
3030 df_string : ^0.2.4
31- df_type : ^0.10.2
31+ df_type : ^0.10.3
3232
3333 analyzer : ^6.11.0
3434 args : ^2.6.0
35- collection : ^1.18.0
35+ collection : ^1.19.1
3636 equatable : ^2.0.7
37- http : ^1.2.2
38- meta : ^1.15 .0
39- path : ^1.9.0
37+ http : ^1.3.0
38+ meta : ^1.16 .0
39+ path : ^1.9.1
4040 source_gen : ^1.5.0
4141
4242# # -----------------------------------------------------------------------------
4343
4444dev_dependencies :
45- lints : ^5.0.0
46- test : ^1.25.12
45+ lints : ^5.1.1
46+ test : ^1.25.15
You can’t perform that action at this time.
0 commit comments