Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deno2node

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deno2node - npm Package Compare versions

Comparing version 1.11.0 to 1.12.0

1

lib/help.d.ts
export declare function getHelpText(version: string): string;
export declare const useColors: boolean;

4

lib/help.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc