testeranto 0.79.25 → 0.79.27

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.
@@ -18,7 +18,8 @@ RUN yarn install
18
18
  COPY ./src/ /usr/src/app/src
19
19
  COPY ./subPackages/ /usr/src/app/subPackages
20
20
  COPY ./testeranto.mts /usr/src/app/testeranto.mts
21
- COPY ./features.test.mts /usr/src/app/features.test.mts
21
+ # COPY ./features.test.mts /usr/src/app/features.test.mts
22
+ COPY ./tsconfig.json /usr/src/app/tsconfig.json
22
23
 
23
24
  RUN yarn testeranto-esbuild
24
25
  # # COPY ./testeranto.json /usr/src/app/testeranto.json
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DirectedGraph = exports.TesterantoFeatures = exports.TesterantoGraphDirectedAcyclic = exports.TesterantoGraphDirected = exports.TesterantoGraphUndirected = exports.BaseFeature = void 0;
6
+ exports.DirectedGraph = exports.TesterantoGraphDirectedAcyclic = exports.TesterantoGraphDirected = exports.TesterantoGraphUndirected = exports.BaseFeature = void 0;
7
7
  const graphology_umd_js_1 = __importDefault(require("graphology/dist/graphology.umd.js"));
8
8
  const { DirectedGraph, UndirectedGraph } = graphology_umd_js_1.default;
9
9
  exports.DirectedGraph = DirectedGraph;
@@ -48,37 +48,4 @@ class TesterantoGraphDirectedAcyclic {
48
48
  }
49
49
  }
50
50
  exports.TesterantoGraphDirectedAcyclic = TesterantoGraphDirectedAcyclic;
51
- class TesterantoFeatures {
52
- constructor(features, graphs) {
53
- this.features = features;
54
- this.graphs = graphs;
55
- }
56
- networks() {
57
- return [
58
- ...this.graphs.undirected.values(),
59
- ...this.graphs.directed.values(),
60
- ...this.graphs.dags.values(),
61
- ];
62
- }
63
- toObj() {
64
- return {
65
- features: Object.entries(this.features).map(([name, feature]) => {
66
- return Object.assign(Object.assign({}, feature), { inNetworks: this.networks()
67
- .filter((network) => {
68
- return network.graph.hasNode(feature.name);
69
- })
70
- .map((network) => {
71
- return {
72
- network: network.name,
73
- neighbors: network.graph.neighbors(feature.name),
74
- };
75
- }) });
76
- }),
77
- networks: this.networks().map((network) => {
78
- return Object.assign({}, network);
79
- }),
80
- };
81
- }
82
- }
83
- exports.TesterantoFeatures = TesterantoFeatures;
84
51
  exports.default = {};