Comparing version 1.11.0 to 1.12.0
export declare function getHelpText(version: string): string; | ||
export declare const useColors: boolean; |
@@ -28,3 +28,3 @@ export function getHelpText(version) { | ||
} | ||
const TTY = Deno.isatty(Deno.stdout.rid); | ||
export const useColors = Deno.stdout.isTerminal() && !Deno.noColor; | ||
function bold(text) { | ||
@@ -37,4 +37,4 @@ return format(text, 1); | ||
function format(text, ansi) { | ||
return TTY ? `\u001b[${ansi}m${text}\u001b[0m` : text; | ||
return useColors ? `\u001b[${ansi}m${text}\u001b[0m` : text; | ||
} | ||
import { Deno } from "./shim.node.js"; |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { chmod } from "node:fs/promises"; | ||
import { isatty } from "node:tty"; | ||
export declare const Deno: { | ||
@@ -12,6 +10,5 @@ args: string[]; | ||
exit: (code?: number | undefined) => never; | ||
isatty: typeof isatty; | ||
noColor: boolean; | ||
readonly noColor: boolean; | ||
stdout: { | ||
rid: 1; | ||
isTerminal: () => boolean; | ||
}; | ||
@@ -18,0 +15,0 @@ }; |
@@ -12,5 +12,8 @@ // Node-only, see https://github.com/fromdeno/deno2node#shimming | ||
exit: process.exit, | ||
isatty, | ||
noColor: process.env.NO_COLOR !== undefined, | ||
stdout: { rid: process.stdout.fd }, | ||
get noColor() { | ||
return Boolean(process.env.NO_COLOR); | ||
}, | ||
stdout: { | ||
isTerminal: () => isatty(process.stdout.fd), | ||
}, | ||
}; | ||
@@ -17,0 +20,0 @@ export async function fetch(fileUrl) { |
{ | ||
"name": "deno2node", | ||
"version": "1.11.0", | ||
"version": "1.12.0", | ||
"description": "`tsc` replacement for transpiling Deno libraries to run on Node.js.", | ||
@@ -46,9 +46,9 @@ "type": "module", | ||
"dependencies": { | ||
"ts-morph": "^21.0.1" | ||
"ts-morph": "^22.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.15.11", | ||
"deno-bin": "~1.39.0", | ||
"deno-bin": "~1.42.0", | ||
"fast-check": "^3.10.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25860
518
+ Added@ts-morph/common@0.23.0(transitive)
+ Addedcode-block-writer@13.0.3(transitive)
+ Addedts-morph@22.0.0(transitive)
- Removed@ts-morph/common@0.22.0(transitive)
- Removedcode-block-writer@12.0.0(transitive)
- Removedts-morph@21.0.1(transitive)
Updatedts-morph@^22.0.0