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
181
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.3

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);
}

218

package.json
{
"name": "ts-graphviz",
"version": "1.3.3-dev.dc36620d2",
"author": "kamiazya <yuki@kamiazya.tech>",
"description": "Graphviz library for TypeScript.",
"homepage": "https://ts-graphviz.github.io/ts-graphviz/",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/ts-graphviz/ts-graphviz.git"
"name": "ts-graphviz",
"version": "1.3.3",
"author": "kamiazya <yuki@kamiazya.tech>",
"description": "Graphviz library for TypeScript.",
"homepage": "https://ts-graphviz.github.io/ts-graphviz/",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/ts-graphviz/ts-graphviz.git"
},
"keywords": [
"graphviz",
"dot"
],
"bugs": {
"url": "https://github.com/ts-graphviz/ts-graphviz/issues"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/kamiazya"
},
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"types": "lib/index.d.ts",
"exports": {
".": {
"require": {
"types": "./lib/index.d.ts",
"default": "./lib/index.cjs"
},
"import": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"keywords": [
"graphviz",
"dot"
],
"bugs": {
"url": "https://github.com/ts-graphviz/ts-graphviz/issues"
"./ast": {
"require": {
"types": "./lib/ast/index.d.ts",
"default": "./lib/ast/index.cjs"
},
"import": {
"types": "./lib/ast/index.d.ts",
"default": "./lib/ast/index.js"
}
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/kamiazya"
"./adapter": {
"deno": {
"types": "./lib/adapter/deno/mod.d.ts",
"default": "./lib/adapter/deno/mod.js"
},
"node": {
"require": "./lib/adapter/index.cjs",
"import": "./lib/adapter/index.js",
"types": "./lib/adapter/index.d.ts"
}
},
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"types": "lib/index.d.ts",
"exports": {
".": {
"require": {
"types": "./lib/index.d.ts",
"default": "./lib/index.cjs"
},
"import": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"./ast": {
"require": {
"types": "./lib/ast/index.d.ts",
"default": "./lib/ast/index.cjs"
},
"import": {
"types": "./lib/ast/index.d.ts",
"default": "./lib/ast/index.js"
}
},
"./adapter": {
"deno": {
"types": "./lib/adapter/deno/mod.d.ts",
"default": "./lib/adapter/deno/mod.js"
},
"node": {
"require": "./lib/adapter/index.cjs",
"import": "./lib/adapter/index.js",
"types": "./lib/adapter/index.d.ts"
}
},
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"ast": [
"lib/ast"
],
"adapter": [
"lib/adapter"
]
}
},
"license": "MIT",
"engines": {
"node": ">=14.16"
},
"scripts": {
"build:peggy": "peggy --plugin ts-pegjs --extra-options-file src/ast/dot-shim/parser/peggy.options.json -o src/ast/dot-shim/parser/_parse.ts src/ast/dot-shim/parser/dot.peggy",
"prebuild": "yarn build:peggy",
"build:deno": "cp -r src/adapter/deno lib/adapter/deno",
"build:node": "tsc -p tsconfig.build.json && rollup -c",
"build": "yarn build:node && yarn build:deno",
"postbuild": "prettier --write ./lib/**/index.{js,cjs,d.ts}",
"pretest": "yarn build:peggy",
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest",
"format": "eslint --ext ts src --fix && prettier --write './**/*.{ts,js,json,yaml}' '!lib'",
"lint": "eslint --ext ts src",
"predoc": "yarn build:peggy",
"doc": "typedoc"
},
"devDependencies": {
"@rollup/plugin-replace": "^4.0.0",
"@types/jest": "^28.1.6",
"@types/jest-specific-snapshot": "^0.5.6",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.8.2",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^28.1.3",
"jest-snapshot-serializer-raw": "^1.2.0",
"jest-specific-snapshot": "^5.0.0",
"peggy": "^2.0.1",
"prettier": "^2.7.1",
"prettier-plugin-pegjs": "^0.5.0",
"rollup": "^2.77.3",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-dts": "^4.2.2",
"svgo": "^2.8.0",
"ts-jest": "^28.0.7",
"ts-pegjs": "^2.1.0",
"typedoc": "^0.23.15",
"typescript": "^4.7.4"
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"ast": [
"lib/ast"
],
"adapter": [
"lib/adapter"
]
}
}
},
"license": "MIT",
"engines": {
"node": ">=14.16"
},
"scripts": {
"build:peggy": "peggy --plugin ts-pegjs --extra-options-file src/ast/dot-shim/parser/peggy.options.json -o src/ast/dot-shim/parser/_parse.ts src/ast/dot-shim/parser/dot.peggy",
"prebuild": "yarn build:peggy",
"build:deno": "cp -r src/adapter/deno lib/adapter/deno",
"build:node": "tsc -p tsconfig.build.json && rollup -c",
"build": "yarn build:node && yarn build:deno",
"postbuild": "prettier --write ./lib/**/index.{js,cjs,d.ts}",
"pretest": "yarn build:peggy",
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest",
"format": "eslint --ext ts src --fix && prettier --write './**/*.{ts,js,json,yaml}' '!lib'",
"lint": "eslint --ext ts src",
"predoc": "yarn build:peggy",
"doc": "typedoc"
},
"devDependencies": {
"@rollup/plugin-replace": "^4.0.0",
"@types/jest": "^28.1.6",
"@types/jest-specific-snapshot": "^0.5.6",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.8.2",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^28.1.3",
"jest-snapshot-serializer-raw": "^1.2.0",
"jest-specific-snapshot": "^5.0.0",
"peggy": "^2.0.1",
"prettier": "^2.7.1",
"prettier-plugin-pegjs": "^0.5.0",
"rollup": "^2.77.3",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-dts": "^4.2.2",
"svgo": "^2.8.0",
"ts-jest": "^28.0.7",
"ts-pegjs": "^2.1.0",
"typedoc": "^0.23.15",
"typescript": "^4.7.4"
}
}
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