Socket
Socket
Sign inDemoInstall

viz.js

Package Overview
Dependencies
0
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-pre.5 to 2.0.0-pre.6

full.js.opaque.d.ts

2

index.d.ts

@@ -7,3 +7,3 @@ export as namespace Viz;

constructor(options?: { worker: string } | { Module: () => any, render: (instance: any, src: string, options: object) => Promise<any> });
constructor(options?: { worker: string } | { Module: () => any, render: (instance: any, src: string, options: object) => string });

@@ -10,0 +10,0 @@ renderString(src: string, options?: Viz.Options): Promise<string>;

{
"name": "viz.js",
"version": "2.0.0-pre.5",
"version": "2.0.0-pre.6",
"description": "A hack to put Graphviz on the web.",

@@ -18,3 +18,5 @@ "main": "viz.js",

"lite.js.opaque",
"index.d.ts"
"index.d.ts",
"full.js.opaque.d.ts",
"lite.js.opaque.d.ts"
],

@@ -21,0 +23,0 @@ "browser": {

/*
Viz.js 2.0.0-pre.5 (Graphviz 2.40.1, Expat 2.2.5, Emscripten 1.37.36)
Viz.js 2.0.0-pre.6 (Graphviz 2.40.1, Expat 2.2.5, Emscripten 1.37.36)
Copyright (c) 2014-2018 Michael Daines

@@ -248,16 +248,2 @@ Licensed under MIT license

function wrapRender(fn) {
return {
render: function render(src, options) {
return new Promise(function (resolve, reject) {
try {
resolve(fn(src, options));
} catch (error) {
reject(error);
}
});
}
};
}
var Viz = function () {

@@ -264,0 +250,0 @@ function Viz() {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc