diff --git a/deno.json b/deno.json index 0134e1d..0052e6d 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@david/dax", - "nodeModulesDir": false, + "nodeModulesDir": "none", "tasks": { "test": "deno test -A", "wasmbuild": "deno run -A https://deno.land/x/wasmbuild@0.15.6/main.ts --sync --out ./src/lib" diff --git a/src/console/utils.ts b/src/console/utils.ts index a4700b3..8a7b105 100644 --- a/src/console/utils.ts +++ b/src/console/utils.ts @@ -79,11 +79,9 @@ function isTerminal(pipe: { isTerminal?(): boolean; rid?: number }) { return pipe.isTerminal(); } else if ( pipe.rid != null && - // deno-lint-ignore no-deprecated-deno-api - typeof Deno.isatty === "function" + typeof (Deno as any).isatty === "function" ) { - // deno-lint-ignore no-deprecated-deno-api - return Deno.isatty(pipe.rid); + return (Deno as any).isatty(pipe.rid); } else { throw new Error("Unsupported pipe."); } diff --git a/src/request.test.ts b/src/request.test.ts index 03f908f..3480f78 100644 --- a/src/request.test.ts +++ b/src/request.test.ts @@ -298,7 +298,7 @@ Deno.test("$.request", (t) => { let caughtErr: TimeoutError | undefined; try { await response.text(); - } catch (err) { + } catch (err: any) { caughtErr = err; } if (isNode) {