Skip to content

Commit 9f85041

Browse files
committed
+chore: Update dependencies
1 parent 7d5283f commit 9f85041

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

lib/src/utilities/file_system_utility.dart

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}

pubspec.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
name: df_gen_core
1414
description: A package that provides core utilities for practical code generation.
15-
version: 0.6.2
15+
version: 0.6.3
1616
repository: 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

4444
dev_dependencies:
45-
lints: ^5.0.0
46-
test: ^1.25.12
45+
lints: ^5.1.1
46+
test: ^1.25.15

0 commit comments

Comments
 (0)