File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import * as windowsPath from "jsr:@std/path@^1.0.2/windows";
4
4
import * as posixPath from "jsr:@std/path@^1.0.2/posix" ;
5
5
import * as asserts from "jsr:@std/assert@^1.0.1" ;
6
6
7
+ // TODO: Replace to AsyncIterator
7
8
import { asyncIteratorFrom as fromA } from "https://deno.land/x/iterator_helpers@v0.1.2/mod.ts" ;
8
9
9
10
const createVirtualDirReader : (
Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ import * as univPath from "jsr:@std/path@^1.0.2";
15
15
import * as posix from "jsr:@std/path@^1.0.2/posix" ;
16
16
import * as windows from "jsr:@std/path@^1.0.2/windows" ;
17
17
18
+ // TODO: Replace to AsyncIterator
18
19
import {
19
20
wrapAsyncIterator as wrapA ,
20
21
} from "https://deno.land/x/iterator_helpers@v0.1.2/mod.ts" ;
21
- import homeDir from "https://deno.land/x/ dir@1.5.2/home_dir/mod.ts " ;
22
+ import { dir } from "jsr:@cross/ dir@^1.1.0 " ;
22
23
23
24
type Params = {
24
25
mode : "os" | "win32" | "posix" ;
@@ -112,7 +113,7 @@ export class Source extends BaseSource<Params> {
112
113
113
114
// e.g. '/home/ubuntu/config' for inputFileFull = '~/config'
114
115
const inputFileFullExpanded = await ( async ( ) => {
115
- const home = homeDir ( ) ;
116
+ const home = await dir ( "home" ) ;
116
117
const last = inputFileFull . endsWith ( path . SEPARATOR ) ? path . SEPARATOR : "" ;
117
118
{
118
119
const pat = `~${ path . SEPARATOR } ` ;
You can’t perform that action at this time.
0 commit comments