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

ts-graphviz

Package Overview
Dependencies
Maintainers
1
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-graphviz - npm Package Compare versions

Comparing version 1.3.3-dev.dc36620d2 to 1.3.4-dev.c1e4c50a9

14

lib/adapter/deno/mod.js

@@ -19,2 +19,3 @@ function commandBuilder({ dotCommand = 'dot', suppressWarnings = true, format = 'svg' } = {}) {

stdin: 'piped',
stdout: 'piped',
}).spawn();

@@ -27,2 +28,13 @@ const stdin = cp.stdin.getWriter();

function open(path) {
try {
return Deno.open(path, { write: true });
} catch (e) {
if (e instanceof Deno.errors.NotFound) {
return Deno.open(path, { createNew: true, write: true });
}
throw e;
}
}
/**

@@ -32,5 +44,5 @@ * Execute the Graphviz dot command and output the results to a file.

export async function toFile(dot, path, options) {
const output = await Deno.open(path, { write: true });
const output = await open(path);
const stream = await toStream(dot, options);
await stream.pipeTo(output.writable);
}

2

package.json
{
"name": "ts-graphviz",
"version": "1.3.3-dev.dc36620d2",
"version": "1.3.4-dev.c1e4c50a9",
"author": "kamiazya <yuki@kamiazya.tech>",

@@ -5,0 +5,0 @@ "description": "Graphviz library for TypeScript.",

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