ts-graphviz
Advanced tools
Comparing version 1.6.0 to 1.6.1-dev.39dd9d4de
@@ -354,3 +354,3 @@ import { | ||
props: LiteralASTPropaties<T>, | ||
children: ASTChildNode<LiteralASTNode>[], | ||
children?: ASTChildNode<LiteralASTNode>[], | ||
): LiteralASTNode<T>; | ||
@@ -365,3 +365,3 @@ /** | ||
*/ | ||
(type: 'Literal', props: LiteralASTPropaties, children: ASTChildNode<LiteralASTNode>[]): LiteralASTNode; | ||
(type: 'Literal', props: LiteralASTPropaties, children?: ASTChildNode<LiteralASTNode>[]): LiteralASTNode; | ||
/** | ||
@@ -375,3 +375,3 @@ * Creates a {@link DotASTNode} with the given type, properties, and children. | ||
*/ | ||
(type: 'Dot', props: DotASTPropaties, children: ASTChildNode<DotASTNode>[]): DotASTNode; | ||
(type: 'Dot', props: DotASTPropaties, children?: ASTChildNode<DotASTNode>[]): DotASTNode; | ||
/** | ||
@@ -385,3 +385,3 @@ * Creates a {@link GraphASTNode} with the given type, properties, and children. | ||
*/ | ||
(type: 'Graph', props: GraphASTPropaties, children: ASTChildNode<GraphASTNode>[]): GraphASTNode; | ||
(type: 'Graph', props: GraphASTPropaties, children?: ASTChildNode<GraphASTNode>[]): GraphASTNode; | ||
/** | ||
@@ -395,3 +395,8 @@ * Creates an {@link AttributeASTNode} with the given type, properties, and children. | ||
*/ | ||
(type: 'Attribute', props: AttributeASTPropaties, children: ASTChildNode<AttributeASTNode>[]): AttributeASTNode; | ||
<T extends AttributeKey>( | ||
type: 'Attribute', | ||
props: AttributeASTPropaties<T>, | ||
children?: ASTChildNode<AttributeASTNode>[], | ||
): AttributeASTNode<T>; | ||
(type: 'Attribute', props: AttributeASTPropaties, children?: ASTChildNode<AttributeASTNode>[]): AttributeASTNode; | ||
/** | ||
@@ -405,3 +410,3 @@ * Creates a {@link CommentASTNode} with the given type, properties, and children. | ||
*/ | ||
(type: 'Comment', props: CommentASTPropaties, children: ASTChildNode<CommentASTNode>[]): CommentASTNode; | ||
(type: 'Comment', props: CommentASTPropaties, children?: ASTChildNode<CommentASTNode>[]): CommentASTNode; | ||
/** | ||
@@ -418,3 +423,3 @@ * Creates an {@link AttributeListASTNode} with the given type, properties, and children. | ||
props: AttributeListASTPropaties, | ||
children: ASTChildNode<AttributeListASTNode>[], | ||
children?: ASTChildNode<AttributeListASTNode>[], | ||
): AttributeListASTNode; | ||
@@ -429,3 +434,3 @@ /** | ||
*/ | ||
(type: 'NodeRef', props: NodeRefASTPropaties, children: ASTChildNode<NodeRefASTNode>[]): NodeRefASTNode; | ||
(type: 'NodeRef', props: NodeRefASTPropaties, children?: ASTChildNode<NodeRefASTNode>[]): NodeRefASTNode; | ||
/** | ||
@@ -442,3 +447,3 @@ * Creates a {@link NodeRefGroupASTNode} with the given type, properties, and children. | ||
props: NodeRefGroupASTPropaties, | ||
children: ASTChildNode<NodeRefGroupASTNode>[], | ||
children?: ASTChildNode<NodeRefGroupASTNode>[], | ||
): NodeRefGroupASTNode; | ||
@@ -453,3 +458,3 @@ /** | ||
*/ | ||
(type: 'Edge', props: EdgeASTPropaties, children: ASTChildNode<EdgeASTNode>[]): EdgeASTNode; | ||
(type: 'Edge', props: EdgeASTPropaties, children?: ASTChildNode<EdgeASTNode>[]): EdgeASTNode; | ||
/** | ||
@@ -463,3 +468,3 @@ * Creates a {@link NodeASTNode} with the given type, properties, and children. | ||
*/ | ||
(type: 'Node', props: NodeASTPropaties, children: ASTChildNode<NodeASTNode>[]): NodeASTNode; | ||
(type: 'Node', props: NodeASTPropaties, children?: ASTChildNode<NodeASTNode>[]): NodeASTNode; | ||
/** | ||
@@ -473,3 +478,3 @@ * Creates a {@link SubgraphASTNode} with the given type, properties, and children. | ||
*/ | ||
(type: 'Subgraph', props: SubgraphASTPropaties, children: ASTChildNode<SubgraphASTNode>[]): SubgraphASTNode; | ||
(type: 'Subgraph', props: SubgraphASTPropaties, children?: ASTChildNode<SubgraphASTNode>[]): SubgraphASTNode; | ||
} | ||
@@ -510,3 +515,3 @@ /** | ||
*/ | ||
createElement<T extends ASTNode>(type: T['type'], props: any, children: ASTChildNode<T>[]): T; | ||
createElement<T extends ASTNode>(type: T['type'], props: any, children?: ASTChildNode<T>[]): T; | ||
} | ||
@@ -513,0 +518,0 @@ |
240
package.json
{ | ||
"name": "ts-graphviz", | ||
"version": "1.6.0", | ||
"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/ts-graphviz" | ||
}, | ||
"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" | ||
} | ||
"name": "ts-graphviz", | ||
"version": "1.6.1-dev.39dd9d4de", | ||
"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" | ||
}, | ||
"./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" | ||
} | ||
"keywords": [ | ||
"graphviz", | ||
"dot" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/ts-graphviz/ts-graphviz/issues" | ||
}, | ||
"./adapter": { | ||
"browser": { | ||
"require": "./lib/adapter/browser/index.cjs", | ||
"import": "./lib/adapter/browser/index.js", | ||
"types": "./lib/adapter/browser/index.d.ts" | ||
}, | ||
"deno": { | ||
"types": "./lib/adapter/deno/mod.d.ts", | ||
"default": "./lib/adapter/deno/mod.js" | ||
}, | ||
"node": { | ||
"require": "./lib/adapter/node/index.cjs", | ||
"import": "./lib/adapter/node/index.js", | ||
"types": "./lib/adapter/node/index.d.ts" | ||
}, | ||
"default": { | ||
"types": "./lib/adapter/node/index.d.ts", | ||
"require": "./lib/adapter/node/index.cjs", | ||
"import": "./lib/adapter/node/index.js" | ||
} | ||
"funding": { | ||
"type": "github", | ||
"url": "https://github.com/sponsors/ts-graphviz" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"ast": [ | ||
"lib/ast" | ||
], | ||
"adapter": [ | ||
"lib/adapter/node" | ||
] | ||
"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": { | ||
"browser": { | ||
"require": "./lib/adapter/browser/index.cjs", | ||
"import": "./lib/adapter/browser/index.js", | ||
"types": "./lib/adapter/browser/index.d.ts" | ||
}, | ||
"deno": { | ||
"types": "./lib/adapter/deno/mod.d.ts", | ||
"default": "./lib/adapter/deno/mod.js" | ||
}, | ||
"node": { | ||
"require": "./lib/adapter/node/index.cjs", | ||
"import": "./lib/adapter/node/index.js", | ||
"types": "./lib/adapter/node/index.d.ts" | ||
}, | ||
"default": { | ||
"types": "./lib/adapter/node/index.d.ts", | ||
"require": "./lib/adapter/node/index.cjs", | ||
"import": "./lib/adapter/node/index.js" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"ast": [ | ||
"lib/ast" | ||
], | ||
"adapter": [ | ||
"lib/adapter/node" | ||
] | ||
} | ||
}, | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=14.16" | ||
}, | ||
"runkitExampleFilename": "example/runkit.cjs", | ||
"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": "mkdir -p lib/adapter/deno && cp -r src/adapter/deno/* lib/adapter/deno && sed -i \"s/index.ts/index.js/g\" lib/adapter/deno/mod.js && sed -i \"s/index.ts/index.d.ts/g\" lib/adapter/deno/mod.d.ts", | ||
"build:node": "tsc -p tsconfig.build.json --declaration && tsc -p tsconfig.build.json --removeComments && rollup -c", | ||
"build": "yarn build:node && yarn build:deno", | ||
"postbuild": "prettier --write ./lib/**/*.{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": "^5.0.2", | ||
"@types/jest": "^29.4.0", | ||
"@types/jest-specific-snapshot": "^0.5.6", | ||
"@typescript-eslint/eslint-plugin": "^5.49.0", | ||
"@typescript-eslint/parser": "^5.49.0", | ||
"eslint": "^8.32.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-jest": "^27.2.1", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"jest": "^29.4.1", | ||
"jest-snapshot-serializer-raw": "^1.2.0", | ||
"jest-specific-snapshot": "^7.0.0", | ||
"peggy": "^2.0.1", | ||
"prettier": "^2.8.3", | ||
"prettier-plugin-pegjs": "^0.5.0", | ||
"rollup": "^3.11.0", | ||
"rollup-plugin-delete": "^2.0.0", | ||
"rollup-plugin-dts": "5.1.1", | ||
"svgo": "^3.0.2", | ||
"ts-jest": "^29.0.5", | ||
"ts-pegjs": "^3.0.0", | ||
"typedoc": "^0.23.15", | ||
"typescript": "^4.7.4" | ||
} | ||
}, | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=14.16" | ||
}, | ||
"runkitExampleFilename": "example/runkit.cjs", | ||
"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": "mkdir -p lib/adapter/deno && cp -r src/adapter/deno/* lib/adapter/deno && sed -i \"s/index.ts/index.js/g\" lib/adapter/deno/mod.js && sed -i \"s/index.ts/index.d.ts/g\" lib/adapter/deno/mod.d.ts", | ||
"build:node": "tsc -p tsconfig.build.json --declaration && tsc -p tsconfig.build.json --removeComments && rollup -c", | ||
"build": "yarn build:node && yarn build:deno", | ||
"postbuild": "prettier --write ./lib/**/*.{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": "^5.0.2", | ||
"@types/jest": "^29.4.0", | ||
"@types/jest-specific-snapshot": "^0.5.6", | ||
"@typescript-eslint/eslint-plugin": "^5.49.0", | ||
"@typescript-eslint/parser": "^5.49.0", | ||
"eslint": "^8.32.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-jest": "^27.2.1", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"jest": "^29.4.1", | ||
"jest-snapshot-serializer-raw": "^1.2.0", | ||
"jest-specific-snapshot": "^7.0.0", | ||
"peggy": "^2.0.1", | ||
"prettier": "^2.8.3", | ||
"prettier-plugin-pegjs": "^0.5.0", | ||
"rollup": "^3.11.0", | ||
"rollup-plugin-delete": "^2.0.0", | ||
"rollup-plugin-dts": "5.1.1", | ||
"svgo": "^3.0.2", | ||
"ts-jest": "^29.0.5", | ||
"ts-pegjs": "^3.0.0", | ||
"typedoc": "^0.23.15", | ||
"typescript": "^4.7.4" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
594787
19110
1