Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Sep 7, 2024
1 parent 604d5c7 commit fe63963
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@david/dax",
"nodeModulesDir": false,
"nodeModulesDir": "none",
"tasks": {
"test": "deno test -A",
"wasmbuild": "deno run -A https://deno.land/x/[email protected]/main.ts --sync --out ./src/lib"
Expand Down
6 changes: 2 additions & 4 deletions src/console/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
Expand Down
2 changes: 1 addition & 1 deletion src/request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fe63963

Please sign in to comment.