viz.js
Advanced tools
Comparing version 2.0.0-pre.5 to 2.0.0-pre.6
@@ -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": { |
16
viz.js
/* | ||
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
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
9
3434769
319