Skip to content

Commit 8b7c1ef

Browse files
authored
Fix deprecated warnings (#24)
1 parent 2a551e7 commit 8b7c1ef

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

denops/@ddc-file/deps.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export type {
1313
export * as path from "jsr:@std/path@0.224.0";
1414
export * as fs from "jsr:@std/fs@0.224.0";
1515
export * as asserts from "jsr:@std/assert@0.225.1";
16+
export * as posix from "jsr:@std/path@0.224.0/posix";
17+
export * as windows from "jsr:@std/path@0.224.0/windows";
1618

1719
export {
1820
asyncIteratorFrom as fromA,

denops/@ddc-sources/file.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import {
66
homeDir,
77
Item,
88
path as univPath,
9+
posix,
910
vars,
11+
windows,
1012
wrapA,
1113
} from "../@ddc-file/deps.ts";
1214
import * as util from "../@ddc-file/util.ts";
@@ -77,7 +79,7 @@ export class Source extends BaseSource<Params> {
7779
const mode = p.mode === "os"
7880
? (Deno.build.os === "windows" ? "win32" : "posix")
7981
: p.mode;
80-
const path = mode === "posix" ? univPath.posix : univPath.win32;
82+
const path = mode === "posix" ? posix : windows;
8183
const maxOfMax = Math.max(
8284
p.cwdMaxItems,
8385
p.bufMaxItems,

0 commit comments

Comments
 (0)