Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@compodoc/ngd-transformer

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compodoc/ngd-transformer - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

8

dist/engines/dot/dot.js

@@ -28,5 +28,5 @@ "use strict";

this.options = {};
var baseDir = "./" + appName + "/";
var baseDir = "./".concat(appName, "/");
this.options = {
name: "" + appName,
name: "".concat(appName),
output: options.output,

@@ -115,3 +115,3 @@ displayLegend: options.displayLegend,

else {
resolve();
resolve(true);
}

@@ -213,3 +213,3 @@ });

var cssContent = "\n\t\t\t<style>\n\t\t\t\t.edge {\n\t\t\t\t\ttransition: opacity 0.5s;\n\t\t\t\t\topacity:0.2;\n\t\t\t\t}\n\t\t\t\t.node {\n\t\t\t\t\ttransition: transform 0.1s;\n\t\t\t\t\ttransform-origin: center center;\n\t\t\t\t}\n\t\t\t\t.node:hover {\n\t\t\t\t\ttransform: scale(1.03);\n\t\t\t\t}\n\t\t\t\t.node:hover + .edge {\n\t\t\t\t\topacity:1;\n\t\t\t\t}\n\t\t\t</style>";
var htmlContent = "\n\t\t\t\t" + svgContent + "\n\t\t\t";
var htmlContent = "\n\t\t\t\t".concat(svgContent, "\n\t\t\t");
return new Promise(function (resolve, reject) {

@@ -216,0 +216,0 @@ fs.outputFile(_this.paths.html, htmlContent, function (error) {

@@ -9,9 +9,9 @@ "use strict";

if (edge === '->') {
str = "\n {{~mod." + symbols + " :_symbol}}\n\n {{?_symbol.alias}}\n \"{{=_symbol.alias}}\" -> \"{{=mod.name}}\" [" + attrs + "];\n {{??_symbol.name}}\n \"{{=_symbol.name}}\" -> \"{{=mod.name}}\" [" + attrs + "];\n {{?}}\n\n {{~}}\n ";
str = "\n {{~mod.".concat(symbols, " :_symbol}}\n\n {{?_symbol.alias}}\n \"{{=_symbol.alias}}\" -> \"{{=mod.name}}\" [").concat(attrs, "];\n {{??_symbol.name}}\n \"{{=_symbol.name}}\" -> \"{{=mod.name}}\" [").concat(attrs, "];\n {{?}}\n\n {{~}}\n ");
}
else {
str = "\n {{~mod." + symbols + " :_symbol}}\n\n {{?_symbol.alias}}\n \"{{=_symbol.alias}}\" [label=\"{{=_symbol.alias}}\", " + attrs + "];\n {{??_symbol.name}}\n \"{{=_symbol.name}}\" [label=\"{{=_symbol.name}}\", " + attrs + "];\n {{?}}\n\n {{~}}";
str = "\n {{~mod.".concat(symbols, " :_symbol}}\n\n {{?_symbol.alias}}\n \"{{=_symbol.alias}}\" [label=\"{{=_symbol.alias}}\", ").concat(attrs, "];\n {{??_symbol.name}}\n \"{{=_symbol.name}}\" [label=\"{{=_symbol.name}}\", ").concat(attrs, "];\n {{?}}\n\n {{~}}");
}
return str;
};
exports.DOT_TEMPLATE = "\ndigraph dependencies {\n node [shape=\"rect\", style=\"filled\", colorscheme=###scheme###];\n ranksep=0.4;\n compound=false;\n remincross=true;\n splines=true;\n splines=ortho;\n\n rankdir=LR;\n rankdir=TB;\n rankdir=BT;\n\n label=###legend###;\n\n ratio=compress;\n fontname=\"sans-serif\";\n\n {{~it.modules :mod}}\n subgraph \"cluster_{{=mod.name}}\" {\n label=\"\";\n style=\"dotted\";\n\t\tnode [shape=\"folder\", fillcolor=1];\n\n /* declarations:start */\n\n\t\tsubgraph cluster_{{=mod.name}}_declarations {\n style=\"solid\";\n\t\t\tnode [style=\"filled\", shape=\"rect\"];\n\n\t {{~mod.declarations :declaration}}\n\t\t\t\tnode [fillcolor=2];\n\t \"{{=declaration.name}}\";\n\t {{~}}\n\n\t\t}\n\n {{~mod.declarations :declaration}}\n \"{{=declaration.name}}\" -> \"{{=mod.name}}\" [style=\"solid\", lhead=\"cluster_{{=mod.name}}\" ltail=\"cluster_{{=mod.name}}_declarations\"];\n\n subgraph \"cluster_{{=mod.name}}_{{=declaration.name}}_providers\" {\n style=\"solid\";\n {{~declaration.providers :prov}}\n node [fillcolor=6, shape=\"oval\", style=\"filled\"];\n \"{{=prov.name}}\" -> \"{{=declaration.name}}\" [lhead=\"cluster_{{=mod.name}}_declarations\" ltail=\"cluster_{{=mod.name}}_{{=declaration.name}}_providers\"];\n {{~}}\n }\n\n {{~}}\n\n /* declarations:end */\n\n /* imports:start */\n\n subgraph cluster_{{=mod.name}}_imports {\n style=\"solid\";\n node [style=\"filled\", fillcolor=1, shape=\"rect\"];\n\n " + loopBlock('imports', 'shape="folder"') + "\n }\n\n " + loopBlock('imports', 'lhead="cluster_{{=mod.name}}", ltail="cluster_{{=mod.name}}_imports"', '->') + "\n\n /* imports:end */\n\n /* exports:start */\n\n\t\tsubgraph cluster_{{=mod.name}}_exports {\n style=\"solid\";\n\t\t\tnode [style=\"filled\", fillcolor=4, shape=\"rect\"];\n\t\t\t{{~mod.exports :exp}}\n\t\t\t\t\"{{=exp.name}} \" [label=\"{{=exp.name}} \", shape=\"rect\"]\n\t\t\t{{~}}\n\t\t}\n\n {{~mod.exports :exp}}\n \"{{=mod.name}}\" -> \"{{=exp.name}} \" [style=\"dashed\", ltail=\"cluster_{{=mod.name}}\" lhead=\"cluster_{{=mod.name}}_exports\"];\n {{~}}\n\n /* exports:end */\n\n /* bootstrap:start */\n\n subgraph cluster_{{=mod.name}}_bootstrap {\n style=\"solid\";\n node [style=\"filled\", fillcolor=5, shape=\"rect\"];\n {{~mod.bootstrap :bts}}\n \"{{=bts.name}} \" [label=\"{{=bts.name}} \", shape=\"rect\"]\n {{~}}\n }\n\n {{~mod.bootstrap :bts}}\n \"{{=mod.name}}\" -> \"{{=bts.name}} \" [style=\"dotted\", lhead=\"cluster_{{=mod.name}}_bootstrap\" ltail=\"cluster_{{=mod.name}}\"];\n {{~}}\n\n /* bootstrap:end */\n\n /* providers:start */\n\n subgraph cluster_{{=mod.name}}_providers {\n style=\"solid\";\n node [style=\"filled\", fillcolor=6, shape=\"rect\"];\n\n " + loopBlock('providers', 'shape="oval"') + "\n }\n\n " + loopBlock('providers', 'lhead="cluster_{{=mod.name}}", ltail="cluster_{{=mod.name}}_providers"', '->') + "\n\n /* providers:end */\n }\n {{~}}\n\n /* " + exports.LEGEND + " */\n}\n";
exports.DOT_TEMPLATE = "\ndigraph dependencies {\n node [shape=\"rect\", style=\"filled\", colorscheme=###scheme###];\n ranksep=0.4;\n compound=false;\n remincross=true;\n splines=true;\n splines=ortho;\n\n rankdir=LR;\n rankdir=TB;\n rankdir=BT;\n\n label=###legend###;\n\n ratio=compress;\n fontname=\"sans-serif\";\n\n {{~it.modules :mod}}\n subgraph \"cluster_{{=mod.name}}\" {\n label=\"\";\n style=\"dotted\";\n\t\tnode [shape=\"folder\", fillcolor=1];\n\n /* declarations:start */\n\n\t\tsubgraph cluster_{{=mod.name}}_declarations {\n style=\"solid\";\n\t\t\tnode [style=\"filled\", shape=\"rect\"];\n\n\t {{~mod.declarations :declaration}}\n\t\t\t\tnode [fillcolor=2];\n\t \"{{=declaration.name}}\";\n\t {{~}}\n\n\t\t}\n\n {{~mod.declarations :declaration}}\n \"{{=declaration.name}}\" -> \"{{=mod.name}}\" [style=\"solid\", lhead=\"cluster_{{=mod.name}}\" ltail=\"cluster_{{=mod.name}}_declarations\"];\n\n subgraph \"cluster_{{=mod.name}}_{{=declaration.name}}_providers\" {\n style=\"solid\";\n {{~declaration.providers :prov}}\n node [fillcolor=6, shape=\"oval\", style=\"filled\"];\n \"{{=prov.name}}\" -> \"{{=declaration.name}}\" [lhead=\"cluster_{{=mod.name}}_declarations\" ltail=\"cluster_{{=mod.name}}_{{=declaration.name}}_providers\"];\n {{~}}\n }\n\n {{~}}\n\n /* declarations:end */\n\n /* imports:start */\n\n subgraph cluster_{{=mod.name}}_imports {\n style=\"solid\";\n node [style=\"filled\", fillcolor=1, shape=\"rect\"];\n\n ".concat(loopBlock('imports', 'shape="folder"'), "\n }\n\n ").concat(loopBlock('imports', 'lhead="cluster_{{=mod.name}}", ltail="cluster_{{=mod.name}}_imports"', '->'), "\n\n /* imports:end */\n\n /* exports:start */\n\n\t\tsubgraph cluster_{{=mod.name}}_exports {\n style=\"solid\";\n\t\t\tnode [style=\"filled\", fillcolor=4, shape=\"rect\"];\n\t\t\t{{~mod.exports :exp}}\n\t\t\t\t\"{{=exp.name}} \" [label=\"{{=exp.name}} \", shape=\"rect\"]\n\t\t\t{{~}}\n\t\t}\n\n {{~mod.exports :exp}}\n \"{{=mod.name}}\" -> \"{{=exp.name}} \" [style=\"dashed\", ltail=\"cluster_{{=mod.name}}\" lhead=\"cluster_{{=mod.name}}_exports\"];\n {{~}}\n\n /* exports:end */\n\n /* bootstrap:start */\n\n subgraph cluster_{{=mod.name}}_bootstrap {\n style=\"solid\";\n node [style=\"filled\", fillcolor=5, shape=\"rect\"];\n {{~mod.bootstrap :bts}}\n \"{{=bts.name}} \" [label=\"{{=bts.name}} \", shape=\"rect\"]\n {{~}}\n }\n\n {{~mod.bootstrap :bts}}\n \"{{=mod.name}}\" -> \"{{=bts.name}} \" [style=\"dotted\", lhead=\"cluster_{{=mod.name}}_bootstrap\" ltail=\"cluster_{{=mod.name}}\"];\n {{~}}\n\n /* bootstrap:end */\n\n /* providers:start */\n\n subgraph cluster_{{=mod.name}}_providers {\n style=\"solid\";\n node [style=\"filled\", fillcolor=6, shape=\"rect\"];\n\n ").concat(loopBlock('providers', 'shape="oval"'), "\n }\n\n ").concat(loopBlock('providers', 'lhead="cluster_{{=mod.name}}", ltail="cluster_{{=mod.name}}_providers"', '->'), "\n\n /* providers:end */\n }\n {{~}}\n\n /* ").concat(exports.LEGEND, " */\n}\n");
{
"name": "@compodoc/ngd-transformer",
"version": "2.1.0",
"version": "2.1.1",
"description": "A set of transformers for @compodoc/ngd",

@@ -27,11 +27,11 @@ "main": "dist/index.js",

"dependencies": {
"@compodoc/ngd-core": "~2.1.0",
"dot": "^1.1.3",
"fs-extra": "^9.0.1",
"@aduh95/viz.js": "^3.1.0"
"@compodoc/ngd-core": "~2.1.1",
"dot": "^2.0.0-beta.1",
"fs-extra": "^11.1.1",
"@aduh95/viz.js": "^3.7.0"
},
"devDependencies": {
"@types/node": "^14.11.8"
"@types/node": "^20.1.2"
},
"types": "dist/index.d.ts"
}

@@ -150,3 +150,3 @@ import * as path from 'path';

} else {
resolve();
resolve(true);
}

@@ -153,0 +153,0 @@ });

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