@hpcc-js/wasm-graphviz 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,52 +1,58 @@
1
1
  {
2
- "name": "@hpcc-js/wasm-graphviz",
3
- "version": "1.0.2",
4
- "description": "hpcc-js - WASM Graphviz",
5
- "type": "module",
6
- "exports": "./dist/index.js",
7
- "types": "./types/index.d.ts",
8
- "files": [
9
- "dist/**/*",
10
- "src/**/*",
11
- "types/**/*"
12
- ],
13
- "scripts": {
14
- "clean": "rimraf ./dist ./dist-test ./types",
15
- "build-types": "tsc --project tsconfig.json --emitDeclarationOnly",
16
- "build-types-watch": "npm run build-types -- --watch",
17
- "build-ts": "node esbuild.mjs",
18
- "build-ts-dev": "npm run build-ts -- --mode=development",
19
- "build-ts-watch": "npm run compile-ts-dev -- --watch",
20
- "build-dev": "run-p build-types build-ts-dev",
21
- "build": "run-p build-types build-ts",
22
- "lint-skypack": "npx -y @skypack/package-check",
23
- "lint-eslint": "eslint src/**/*.ts",
24
- "lint": "run-p lint-eslint lint-skypack",
25
- "test-chrome": "karma start --single-run --browsers ChromiumHeadless karma.conf.cjs",
26
- "test-firefox": "karma start --single-run --browsers Firefox karma.conf.cjs",
27
- "test-node": "mocha ./dist-test/index.node.js --reporter spec",
28
- "test": "run-s test-chrome test-node"
29
- },
30
- "dependencies": {
31
- "yargs": "17.7.2"
32
- },
33
- "devDependencies": {
34
- "@hpcc-js/esbuild-plugins": "^1.0.1"
35
- },
36
- "keywords": [
37
- "graphviz",
38
- "typescript",
39
- "webassembly",
40
- "wasm",
41
- "dot",
42
- "neato",
43
- "twopi"
44
- ],
45
- "author": "hpcc-systems",
46
- "repository": {
47
- "type": "git",
48
- "url": "git+https://github.com/hpcc-systems/hpcc-js-wasm.git"
49
- },
50
- "homepage": "https://hpcc-systems.github.io/hpcc-js-wasm/",
51
- "license": "Apache-2.0"
52
- }
2
+ "name": "@hpcc-js/wasm-graphviz",
3
+ "version": "1.1.0",
4
+ "description": "hpcc-js - WASM Graphviz",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./types/index.d.ts",
9
+ "default": "./dist/index.js"
10
+ }
11
+ },
12
+ "main": "./dist/index.js",
13
+ "types": "./types/index.d.ts",
14
+ "files": [
15
+ "dist/**/*",
16
+ "src/**/*",
17
+ "types/**/*"
18
+ ],
19
+ "scripts": {
20
+ "clean": "rimraf ./dist ./dist-test ./types",
21
+ "build-types": "tsc --project tsconfig.json --emitDeclarationOnly",
22
+ "build-types-watch": "npm run build-types -- --watch",
23
+ "build-ts": "node esbuild.mjs",
24
+ "build-ts-dev": "npm run build-ts -- --mode=development",
25
+ "build-ts-watch": "npm run compile-ts-dev -- --watch",
26
+ "build-dev": "run-p build-types build-ts-dev",
27
+ "build": "run-p build-types build-ts",
28
+ "lint-skypack": "npx -y @skypack/package-check",
29
+ "lint-eslint": "eslint src/**/*.ts",
30
+ "lint": "run-p lint-eslint",
31
+ "test-chrome": "karma start --single-run --browsers ChromiumHeadless karma.conf.cjs",
32
+ "test-firefox": "karma start --single-run --browsers Firefox karma.conf.cjs",
33
+ "test-node": "mocha ./dist-test/index.node.js --reporter spec",
34
+ "test": "run-s test-chrome test-node",
35
+ "update": "npx -y npm-check-updates -u -t minor",
36
+ "update-major": "npx -y npm-check-updates -u"
37
+ },
38
+ "devDependencies": {
39
+ "@hpcc-js/esbuild-plugins": "1.0.7"
40
+ },
41
+ "keywords": [
42
+ "graphviz",
43
+ "typescript",
44
+ "webassembly",
45
+ "wasm",
46
+ "dot",
47
+ "neato",
48
+ "twopi"
49
+ ],
50
+ "author": "hpcc-systems",
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "git+https://github.com/hpcc-systems/hpcc-js-wasm.git"
54
+ },
55
+ "homepage": "https://hpcc-systems.github.io/hpcc-js-wasm/",
56
+ "license": "Apache-2.0",
57
+ "gitHead": "841d4713a5ccd8644024e27f929cbb63ffff0573"
58
+ }
package/src/graphviz.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // @ts-expect-error importing from a wasm file is resolved via a custom esbuild plugin
2
- import load, { reset } from "../../../build/src-cpp/graphviz/graphvizlib.wasm";
2
+ import load, { reset } from "../../../build/packages/graphviz/src-cpp/graphvizlib.wasm";
3
3
 
4
4
  /**
5
5
  * Various graphic and data formats for end user, web, documents and other applications. See [Output Formats](https://graphviz.gitlab.io/docs/outputs/) for more information.
@@ -14,7 +14,7 @@ export type Engine = "circo" | "dot" | "fdp" | "sfdp" | "neato" | "osage" | "pat
14
14
  /**
15
15
  * Example: Passing a web hosted Image to GraphViz:
16
16
  * ```ts
17
- * import { Graphviz } from "@hpcc-js/wasm/graphviz";
17
+ * import { Graphviz } from "@hpcc-js/wasm-graphviz";
18
18
  *
19
19
  * const graphviz = await Graphviz.load();
20
20
  * const svg = graphviz.layout('digraph { a[image="https://.../image.png"]; }', "svg", "dot", {
@@ -9,7 +9,7 @@ export type Engine = "circo" | "dot" | "fdp" | "sfdp" | "neato" | "osage" | "pat
9
9
  /**
10
10
  * Example: Passing a web hosted Image to GraphViz:
11
11
  * ```ts
12
- * import { Graphviz } from "@hpcc-js/wasm/graphviz";
12
+ * import { Graphviz } from "@hpcc-js/wasm-graphviz";
13
13
  *
14
14
  * const graphviz = await Graphviz.load();
15
15
  * const svg = graphviz.layout('digraph { a[image="https://.../image.png"]; }', "svg", "dot", {