@hpcc-js/util 2.45.0 → 2.47.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/dist/index.js +74 -72
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/lib-es6/__package__.js +2 -2
- package/lib-es6/array.js +1 -1
- package/lib-es6/array.js.map +1 -1
- package/lib-es6/graph.js +1 -1
- package/lib-es6/graph.js.map +1 -1
- package/lib-es6/graph2.js +24 -24
- package/lib-es6/graph2.js.map +1 -1
- package/lib-es6/logging.js +3 -2
- package/lib-es6/logging.js.map +1 -1
- package/lib-es6/object.js +3 -3
- package/lib-es6/object.js.map +1 -1
- package/lib-es6/url.js +1 -1
- package/lib-es6/url.js.map +1 -1
- package/package.json +7 -22
- package/src/__package__.ts +2 -2
- package/src/dispatch.ts +1 -1
- package/src/logging.ts +1 -0
- package/types/__package__.d.ts +2 -2
- package/types/dispatch.d.ts +1 -1
- package/types/dispatch.d.ts.map +1 -1
- package/types/logging.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
-
(global = global || self, factory(global[
|
|
5
|
-
}(this, (function (exports) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/util"] = {}));
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var PKG_NAME = "@hpcc-js/util";
|
|
8
|
-
var PKG_VERSION = "2.
|
|
9
|
-
var BUILD_VERSION = "2.
|
|
8
|
+
var PKG_VERSION = "2.47.0";
|
|
9
|
+
var BUILD_VERSION = "2.103.0";
|
|
10
10
|
|
|
11
11
|
/*! *****************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
ar[i] = from[i];
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
return to.concat(ar || from);
|
|
98
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
// Based on: https://tc39.github.io/ecma262/#sec-array.prototype.find
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
var retVal = {
|
|
135
135
|
update: [],
|
|
136
136
|
exit: [],
|
|
137
|
-
enter: __spreadArray([], after)
|
|
137
|
+
enter: __spreadArray([], after, true)
|
|
138
138
|
};
|
|
139
139
|
for (var _i = 0, before_1 = before; _i < before_1.length; _i++) {
|
|
140
140
|
var row = before_1[_i];
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
return (days * 24 * 60 * 60) + secs;
|
|
466
466
|
}
|
|
467
467
|
|
|
468
|
-
var GraphItem = /** @class */ (function () {
|
|
468
|
+
var GraphItem$1 = /** @class */ (function () {
|
|
469
469
|
function GraphItem(graph, parent) {
|
|
470
470
|
this.props = {};
|
|
471
471
|
this._graph = graph;
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
}
|
|
474
474
|
return GraphItem;
|
|
475
475
|
}());
|
|
476
|
-
var Subgraph = /** @class */ (function (_super) {
|
|
476
|
+
var Subgraph$1 = /** @class */ (function (_super) {
|
|
477
477
|
__extends(Subgraph, _super);
|
|
478
478
|
function Subgraph(graph, parent, _) {
|
|
479
479
|
var _this = _super.call(this, graph, parent) || this;
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
if (item instanceof Subgraph) {
|
|
553
553
|
this._addSubgraph(item);
|
|
554
554
|
}
|
|
555
|
-
else if (item instanceof Vertex) {
|
|
555
|
+
else if (item instanceof Vertex$1) {
|
|
556
556
|
this._addVertex(item);
|
|
557
557
|
}
|
|
558
558
|
else {
|
|
@@ -560,8 +560,8 @@
|
|
|
560
560
|
}
|
|
561
561
|
};
|
|
562
562
|
return Subgraph;
|
|
563
|
-
}(GraphItem));
|
|
564
|
-
var Vertex = /** @class */ (function (_super) {
|
|
563
|
+
}(GraphItem$1));
|
|
564
|
+
var Vertex$1 = /** @class */ (function (_super) {
|
|
565
565
|
__extends(Vertex, _super);
|
|
566
566
|
function Vertex(graph, parent, _) {
|
|
567
567
|
var _this = _super.call(this, graph, parent) || this;
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
}
|
|
574
574
|
Object.defineProperty(Vertex.prototype, "edges", {
|
|
575
575
|
get: function () {
|
|
576
|
-
return __spreadArray(__spreadArray([], this.inEdges), this.outEdges);
|
|
576
|
+
return __spreadArray(__spreadArray([], this.inEdges, true), this.outEdges, true);
|
|
577
577
|
},
|
|
578
578
|
enumerable: false,
|
|
579
579
|
configurable: true
|
|
@@ -603,8 +603,8 @@
|
|
|
603
603
|
this.outEdges.splice(idx, 1);
|
|
604
604
|
};
|
|
605
605
|
return Vertex;
|
|
606
|
-
}(GraphItem));
|
|
607
|
-
var Edge = /** @class */ (function (_super) {
|
|
606
|
+
}(GraphItem$1));
|
|
607
|
+
var Edge$1 = /** @class */ (function (_super) {
|
|
608
608
|
__extends(Edge, _super);
|
|
609
609
|
function Edge(graph, parent, source, target, _) {
|
|
610
610
|
var _this = _super.call(this, graph, parent) || this;
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
this._graph.removeEdge(this);
|
|
627
627
|
};
|
|
628
628
|
return Edge;
|
|
629
|
-
}(GraphItem));
|
|
629
|
+
}(GraphItem$1));
|
|
630
630
|
var Graph = /** @class */ (function () {
|
|
631
631
|
function Graph(idOf, _) {
|
|
632
632
|
if (idOf === void 0) { idOf = function (item) { return "" + item._; }; }
|
|
@@ -636,11 +636,11 @@
|
|
|
636
636
|
this._allVerticesMap = {};
|
|
637
637
|
this._allEdges = [];
|
|
638
638
|
this._allEdgesMap = {};
|
|
639
|
-
this.root = new Subgraph(this, null, _);
|
|
639
|
+
this.root = new Subgraph$1(this, null, _);
|
|
640
640
|
this.idOf = idOf;
|
|
641
641
|
}
|
|
642
642
|
Graph.prototype.createSubgraph = function (parent, _) {
|
|
643
|
-
var retVal = new Subgraph(this, parent || this.root, _);
|
|
643
|
+
var retVal = new Subgraph$1(this, parent || this.root, _);
|
|
644
644
|
this._allSubgraphs.push(retVal);
|
|
645
645
|
this._allSubgraphsMap[this.idOf(retVal)] = retVal;
|
|
646
646
|
return retVal;
|
|
@@ -672,7 +672,7 @@
|
|
|
672
672
|
return this._allSubgraphsMap[id];
|
|
673
673
|
};
|
|
674
674
|
Graph.prototype.createVertex = function (parent, _) {
|
|
675
|
-
var retVal = new Vertex(this, parent, _);
|
|
675
|
+
var retVal = new Vertex$1(this, parent, _);
|
|
676
676
|
this._allVertices.push(retVal);
|
|
677
677
|
this._allVerticesMap[this.idOf(retVal)] = retVal;
|
|
678
678
|
return retVal;
|
|
@@ -710,7 +710,7 @@
|
|
|
710
710
|
return this._allVerticesMap[id];
|
|
711
711
|
};
|
|
712
712
|
Graph.prototype.createEdge = function (parent, source, target, _) {
|
|
713
|
-
var retVal = new Edge(this, parent, source, target, _);
|
|
713
|
+
var retVal = new Edge$1(this, parent, source, target, _);
|
|
714
714
|
this._allEdges.push(retVal);
|
|
715
715
|
this._allEdgesMap[this.idOf(retVal)] = retVal;
|
|
716
716
|
return retVal;
|
|
@@ -772,13 +772,13 @@
|
|
|
772
772
|
map.put(this.root, retVal.root);
|
|
773
773
|
this.walk(function (item) {
|
|
774
774
|
var parent = map.get(item.parent);
|
|
775
|
-
if (item instanceof Subgraph) {
|
|
775
|
+
if (item instanceof Subgraph$1) {
|
|
776
776
|
map.put(item, parent.createSubgraph(item._));
|
|
777
777
|
}
|
|
778
|
-
else if (item instanceof Vertex) {
|
|
778
|
+
else if (item instanceof Vertex$1) {
|
|
779
779
|
map.put(item, parent.createVertex(item._));
|
|
780
780
|
}
|
|
781
|
-
else if (item instanceof Edge) {
|
|
781
|
+
else if (item instanceof Edge$1) {
|
|
782
782
|
var source = map.get(item.source);
|
|
783
783
|
var target = map.get(item.target);
|
|
784
784
|
parent.createEdge(source, target, item._);
|
|
@@ -808,7 +808,7 @@
|
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
810
|
|
|
811
|
-
var GraphItem
|
|
811
|
+
var GraphItem = /** @class */ (function () {
|
|
812
812
|
function GraphItem(g, _) {
|
|
813
813
|
this._graph = g;
|
|
814
814
|
this._ = _;
|
|
@@ -845,8 +845,8 @@
|
|
|
845
845
|
return this;
|
|
846
846
|
};
|
|
847
847
|
return ChildGraphItem;
|
|
848
|
-
}(GraphItem
|
|
849
|
-
var Subgraph
|
|
848
|
+
}(GraphItem));
|
|
849
|
+
var Subgraph = /** @class */ (function (_super) {
|
|
850
850
|
__extends(Subgraph, _super);
|
|
851
851
|
function Subgraph(g, _) {
|
|
852
852
|
var _this = _super.call(this, g, _) || this;
|
|
@@ -864,7 +864,7 @@
|
|
|
864
864
|
};
|
|
865
865
|
return Subgraph;
|
|
866
866
|
}(ChildGraphItem));
|
|
867
|
-
var Vertex
|
|
867
|
+
var Vertex = /** @class */ (function (_super) {
|
|
868
868
|
__extends(Vertex, _super);
|
|
869
869
|
function Vertex(g, _) {
|
|
870
870
|
var _this = _super.call(this, g, _) || this;
|
|
@@ -873,7 +873,7 @@
|
|
|
873
873
|
return _this;
|
|
874
874
|
}
|
|
875
875
|
Vertex.prototype.edges = function () {
|
|
876
|
-
return __spreadArray(__spreadArray([], this._inEdges), this._outEdges);
|
|
876
|
+
return __spreadArray(__spreadArray([], this._inEdges, true), this._outEdges, true);
|
|
877
877
|
};
|
|
878
878
|
Vertex.prototype.edgeCount = function () {
|
|
879
879
|
return this._outEdges.length + this._inEdges.length;
|
|
@@ -898,7 +898,7 @@
|
|
|
898
898
|
};
|
|
899
899
|
return Vertex;
|
|
900
900
|
}(ChildGraphItem));
|
|
901
|
-
var Edge
|
|
901
|
+
var Edge = /** @class */ (function (_super) {
|
|
902
902
|
__extends(Edge, _super);
|
|
903
903
|
function Edge(g, _, source, target) {
|
|
904
904
|
var _this = _super.call(this, g, _) || this;
|
|
@@ -976,7 +976,7 @@
|
|
|
976
976
|
return this.edgeExists(this.id(_));
|
|
977
977
|
};
|
|
978
978
|
Graph2.prototype.allItems = function () {
|
|
979
|
-
return __spreadArray(__spreadArray(__spreadArray([], this.allSubgraphs()), this.allVertices()), this.allEdges());
|
|
979
|
+
return __spreadArray(__spreadArray(__spreadArray([], this.allSubgraphs(), true), this.allVertices(), true), this.allEdges(), true);
|
|
980
980
|
};
|
|
981
981
|
Graph2.prototype.item = function (id) {
|
|
982
982
|
if (this.subgraphExists(id))
|
|
@@ -1028,12 +1028,12 @@
|
|
|
1028
1028
|
Graph2.prototype.addSubgraph = function (s, parent) {
|
|
1029
1029
|
var s_id = this._idFunc(s);
|
|
1030
1030
|
if (this._subgraphMap[s_id])
|
|
1031
|
-
throw new Error("Subgraph '"
|
|
1032
|
-
var subgraph = new Subgraph
|
|
1031
|
+
throw new Error("Subgraph '".concat(s_id, "' already exists."));
|
|
1032
|
+
var subgraph = new Subgraph(this, s);
|
|
1033
1033
|
if (parent) {
|
|
1034
1034
|
var p_id = this._idFunc(parent);
|
|
1035
1035
|
if (!this._subgraphMap[p_id])
|
|
1036
|
-
throw new Error("Subgraph '"
|
|
1036
|
+
throw new Error("Subgraph '".concat(p_id, "' does not exist."));
|
|
1037
1037
|
subgraph.parent(this._subgraphMap[p_id]);
|
|
1038
1038
|
}
|
|
1039
1039
|
this._subgraphMap[s_id] = subgraph;
|
|
@@ -1052,7 +1052,7 @@
|
|
|
1052
1052
|
var sg_id = this._idFunc(sg);
|
|
1053
1053
|
var subgraph = this._subgraphMap[sg_id];
|
|
1054
1054
|
if (!subgraph)
|
|
1055
|
-
throw new Error("Subgraph '"
|
|
1055
|
+
throw new Error("Subgraph '".concat(sg_id, "' does not exist."));
|
|
1056
1056
|
subgraph._ = sg;
|
|
1057
1057
|
return this;
|
|
1058
1058
|
};
|
|
@@ -1061,13 +1061,13 @@
|
|
|
1061
1061
|
if (promoteChildren === void 0) { promoteChildren = true; }
|
|
1062
1062
|
var sg = this._subgraphMap[id];
|
|
1063
1063
|
if (!sg)
|
|
1064
|
-
throw new Error("Subgraph '"
|
|
1064
|
+
throw new Error("Subgraph '".concat(id, "' does not exist."));
|
|
1065
1065
|
sg.children().forEach(function (child) {
|
|
1066
1066
|
if (promoteChildren) {
|
|
1067
1067
|
child.parent(sg.parent());
|
|
1068
1068
|
}
|
|
1069
1069
|
else {
|
|
1070
|
-
if (child instanceof Subgraph
|
|
1070
|
+
if (child instanceof Subgraph) {
|
|
1071
1071
|
_this.removeSubgraph(child.id());
|
|
1072
1072
|
}
|
|
1073
1073
|
else {
|
|
@@ -1081,14 +1081,14 @@
|
|
|
1081
1081
|
Graph2.prototype.subgraphParent = function (id, parentID) {
|
|
1082
1082
|
var item = this._subgraphMap[id];
|
|
1083
1083
|
if (!item)
|
|
1084
|
-
throw new Error("Subgraph '"
|
|
1084
|
+
throw new Error("Subgraph '".concat(id, "' does not exist."));
|
|
1085
1085
|
if (parentID === void 0) {
|
|
1086
1086
|
var parent_1 = item.parent();
|
|
1087
1087
|
return parent_1 ? parent_1._ : undefined;
|
|
1088
1088
|
}
|
|
1089
1089
|
var parent = this._subgraphMap[parentID];
|
|
1090
1090
|
if (!parent)
|
|
1091
|
-
throw new Error("Vertex parent '"
|
|
1091
|
+
throw new Error("Vertex parent '".concat(parent, "' does not exist."));
|
|
1092
1092
|
item.parent(parent);
|
|
1093
1093
|
return this;
|
|
1094
1094
|
};
|
|
@@ -1141,7 +1141,7 @@
|
|
|
1141
1141
|
return this._vertexMap[vertexID].outEdges().map(function (e) { return e._; });
|
|
1142
1142
|
};
|
|
1143
1143
|
Graph2.prototype._neighbors = function (id) {
|
|
1144
|
-
return __spreadArray(__spreadArray([], this._vertexMap[id].outEdges().map(function (e) { return e._target; })), this._vertexMap[id].inEdges().map(function (e) { return e._source; }));
|
|
1144
|
+
return __spreadArray(__spreadArray([], this._vertexMap[id].outEdges().map(function (e) { return e._target; }), true), this._vertexMap[id].inEdges().map(function (e) { return e._source; }), true);
|
|
1145
1145
|
};
|
|
1146
1146
|
Graph2.prototype.neighbors = function (id) {
|
|
1147
1147
|
return this._neighbors(id).map(function (n) { return n._; });
|
|
@@ -1152,12 +1152,12 @@
|
|
|
1152
1152
|
Graph2.prototype.addVertex = function (v, parent) {
|
|
1153
1153
|
var v_id = this._idFunc(v);
|
|
1154
1154
|
if (this._vertexMap[v_id])
|
|
1155
|
-
throw new Error("Vertex '"
|
|
1156
|
-
var vertex = new Vertex
|
|
1155
|
+
throw new Error("Vertex '".concat(v_id, "' already exists."));
|
|
1156
|
+
var vertex = new Vertex(this, v);
|
|
1157
1157
|
if (parent) {
|
|
1158
1158
|
var p_id = this._idFunc(parent);
|
|
1159
1159
|
if (!this.subgraphExists(p_id))
|
|
1160
|
-
throw new Error("Subgraph '"
|
|
1160
|
+
throw new Error("Subgraph '".concat(p_id, "' does not exist."));
|
|
1161
1161
|
vertex.parent(this._subgraphMap[p_id]);
|
|
1162
1162
|
}
|
|
1163
1163
|
this._vertexMap[v_id] = vertex;
|
|
@@ -1175,7 +1175,7 @@
|
|
|
1175
1175
|
var v_id = this._idFunc(v);
|
|
1176
1176
|
var vertex = this._vertexMap[v_id];
|
|
1177
1177
|
if (!vertex)
|
|
1178
|
-
throw new Error("Vertex '"
|
|
1178
|
+
throw new Error("Vertex '".concat(v_id, "' does not exist."));
|
|
1179
1179
|
vertex._ = v;
|
|
1180
1180
|
return this;
|
|
1181
1181
|
};
|
|
@@ -1183,7 +1183,7 @@
|
|
|
1183
1183
|
var _this = this;
|
|
1184
1184
|
var v = this._vertexMap[id];
|
|
1185
1185
|
if (!v)
|
|
1186
|
-
throw new Error("Vertex '"
|
|
1186
|
+
throw new Error("Vertex '".concat(id, "' does not exist."));
|
|
1187
1187
|
v.edges().forEach(function (e) {
|
|
1188
1188
|
_this.removeEdge(e.id());
|
|
1189
1189
|
});
|
|
@@ -1193,14 +1193,14 @@
|
|
|
1193
1193
|
Graph2.prototype.vertexParent = function (id, parentID) {
|
|
1194
1194
|
var item = this._vertexMap[id];
|
|
1195
1195
|
if (!item)
|
|
1196
|
-
throw new Error("Vertex '"
|
|
1196
|
+
throw new Error("Vertex '".concat(id, "' does not exist."));
|
|
1197
1197
|
if (parentID === void 0) {
|
|
1198
1198
|
var parent_2 = item.parent();
|
|
1199
1199
|
return parent_2 ? parent_2._ : undefined;
|
|
1200
1200
|
}
|
|
1201
1201
|
var parent = this._subgraphMap[parentID];
|
|
1202
1202
|
if (!parent)
|
|
1203
|
-
throw new Error("Vertex parent '"
|
|
1203
|
+
throw new Error("Vertex parent '".concat(parent, "' does not exist."));
|
|
1204
1204
|
item.parent(parent);
|
|
1205
1205
|
return this;
|
|
1206
1206
|
};
|
|
@@ -1216,16 +1216,16 @@
|
|
|
1216
1216
|
var e_source = this._sourceFunc(e);
|
|
1217
1217
|
var e_target = this._targetFunc(e);
|
|
1218
1218
|
if (this._edgeMap[e_id])
|
|
1219
|
-
throw new Error("Edge '"
|
|
1219
|
+
throw new Error("Edge '".concat(e_id, "' already exists."));
|
|
1220
1220
|
if (!this.vertexExists(e_source))
|
|
1221
|
-
throw new Error("Edge Source '"
|
|
1221
|
+
throw new Error("Edge Source '".concat(e_source, "' does not exist."));
|
|
1222
1222
|
if (!this.vertexExists(e_target))
|
|
1223
|
-
throw new Error("Edge Target '"
|
|
1224
|
-
var edge = new Edge
|
|
1223
|
+
throw new Error("Edge Target '".concat(e_target, "' does not exist."));
|
|
1224
|
+
var edge = new Edge(this, e, this._vertexMap[e_source], this._vertexMap[e_target]);
|
|
1225
1225
|
if (parent) {
|
|
1226
1226
|
var p_id = this._idFunc(parent);
|
|
1227
1227
|
if (!this.subgraphExists(p_id))
|
|
1228
|
-
throw new Error("Subgraph '"
|
|
1228
|
+
throw new Error("Subgraph '".concat(p_id, "' does not exist."));
|
|
1229
1229
|
edge.parent(this._subgraphMap[p_id]);
|
|
1230
1230
|
}
|
|
1231
1231
|
this._edgeMap[e_id] = edge;
|
|
@@ -1245,28 +1245,28 @@
|
|
|
1245
1245
|
var e_id = this._idFunc(e);
|
|
1246
1246
|
var edge = this._edgeMap[e_id];
|
|
1247
1247
|
if (!edge)
|
|
1248
|
-
throw new Error("Edge '"
|
|
1248
|
+
throw new Error("Edge '".concat(e_id, "' does not exist."));
|
|
1249
1249
|
edge._ = e;
|
|
1250
1250
|
return this;
|
|
1251
1251
|
};
|
|
1252
1252
|
Graph2.prototype.removeEdge = function (id) {
|
|
1253
1253
|
var e = this._edgeMap[id];
|
|
1254
1254
|
if (!e)
|
|
1255
|
-
throw new Error("Edge '"
|
|
1255
|
+
throw new Error("Edge '".concat(id, "' does not exist."));
|
|
1256
1256
|
var e_sourceID = this._idFunc(e._source._);
|
|
1257
1257
|
if (!this.vertexExists(e_sourceID))
|
|
1258
|
-
throw new Error("Edge Source'"
|
|
1258
|
+
throw new Error("Edge Source'".concat(e_sourceID, "' does not exist."));
|
|
1259
1259
|
this._vertexMap[e_sourceID].removeOutEdge(id);
|
|
1260
1260
|
var e_targetID = this._idFunc(e._target._);
|
|
1261
1261
|
if (!this.vertexExists(e_targetID))
|
|
1262
|
-
throw new Error("Edge Target'"
|
|
1262
|
+
throw new Error("Edge Target'".concat(e_targetID, "' does not exist."));
|
|
1263
1263
|
this._vertexMap[e_targetID].removeInEdge(id);
|
|
1264
1264
|
delete this._edgeMap[id];
|
|
1265
1265
|
return this;
|
|
1266
1266
|
};
|
|
1267
1267
|
Graph2.prototype._hwalk = function (item, formatter) {
|
|
1268
1268
|
var _this = this;
|
|
1269
|
-
if (item instanceof Subgraph
|
|
1269
|
+
if (item instanceof Subgraph) {
|
|
1270
1270
|
return formatter("subgraph", item._, item.children().map(function (child) { return _this._hwalk(child, formatter); }));
|
|
1271
1271
|
}
|
|
1272
1272
|
else {
|
|
@@ -1361,7 +1361,7 @@
|
|
|
1361
1361
|
ancestors.push(vertex);
|
|
1362
1362
|
vertex.outEdges().forEach(function (e) {
|
|
1363
1363
|
if (ancestors.indexOf(e._target) < 0) {
|
|
1364
|
-
visit(e._target, __spreadArray([], ancestors));
|
|
1364
|
+
visit(e._target, __spreadArray([], ancestors, true));
|
|
1365
1365
|
}
|
|
1366
1366
|
});
|
|
1367
1367
|
retVal.unshift(vertex._);
|
|
@@ -1409,15 +1409,15 @@
|
|
|
1409
1409
|
return Set;
|
|
1410
1410
|
}());
|
|
1411
1411
|
|
|
1412
|
-
var isArray = Array.isArray;
|
|
1412
|
+
var isArray$1 = Array.isArray;
|
|
1413
1413
|
var keyList = Object.keys;
|
|
1414
1414
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
1415
1415
|
function deepEquals(a, b) {
|
|
1416
1416
|
if (a === b)
|
|
1417
1417
|
return true;
|
|
1418
1418
|
if (a && b && typeof a === "object" && typeof b === "object") {
|
|
1419
|
-
var arrA = isArray(a);
|
|
1420
|
-
var arrB = isArray(b);
|
|
1419
|
+
var arrA = isArray$1(a);
|
|
1420
|
+
var arrB = isArray$1(b);
|
|
1421
1421
|
var i = void 0;
|
|
1422
1422
|
var length_1;
|
|
1423
1423
|
var key = void 0;
|
|
@@ -1523,6 +1523,8 @@
|
|
|
1523
1523
|
return Stack;
|
|
1524
1524
|
}());
|
|
1525
1525
|
|
|
1526
|
+
/* eslint-disable no-console */
|
|
1527
|
+
exports.Level = void 0;
|
|
1526
1528
|
(function (Level) {
|
|
1527
1529
|
Level[Level["debug"] = 0] = "debug";
|
|
1528
1530
|
Level[Level["info"] = 1] = "info";
|
|
@@ -1548,10 +1550,10 @@
|
|
|
1548
1550
|
}
|
|
1549
1551
|
ConsoleWriter.prototype.write = function (dateTime, level, id, msg) {
|
|
1550
1552
|
if (isNode) {
|
|
1551
|
-
console.log("["
|
|
1553
|
+
console.log("[".concat(dateTime, "] ").concat(exports.Level[level].toUpperCase(), " ").concat(id, ": ").concat(msg));
|
|
1552
1554
|
}
|
|
1553
1555
|
else {
|
|
1554
|
-
console.log("["
|
|
1556
|
+
console.log("[".concat(dateTime, "] %c").concat(exports.Level[level].toUpperCase(), "%c ").concat(id, ": ").concat(msg), "color:".concat(colours[exports.Level[level]]), "");
|
|
1555
1557
|
}
|
|
1556
1558
|
};
|
|
1557
1559
|
return ConsoleWriter;
|
|
@@ -1848,7 +1850,7 @@
|
|
|
1848
1850
|
sources[_i - 1] = arguments[_i];
|
|
1849
1851
|
}
|
|
1850
1852
|
if (typeof dest !== "object")
|
|
1851
|
-
throw new Error("Destination \""
|
|
1853
|
+
throw new Error("Destination \"".concat(dest, "\" must be an object."));
|
|
1852
1854
|
for (var _a = 0, sources_1 = sources; _a < sources_1.length; _a++) {
|
|
1853
1855
|
var source = sources_1[_a];
|
|
1854
1856
|
_mixin(dest, source);
|
|
@@ -1870,7 +1872,7 @@
|
|
|
1870
1872
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1871
1873
|
sources[_i - 1] = arguments[_i];
|
|
1872
1874
|
}
|
|
1873
|
-
return deepMixin.apply(void 0, __spreadArray([dest], sources));
|
|
1875
|
+
return deepMixin.apply(void 0, __spreadArray([dest], sources, false));
|
|
1874
1876
|
}
|
|
1875
1877
|
/**
|
|
1876
1878
|
* safeStingify - JSONsimilar to .stringify, except ignores circular references.
|
|
@@ -1890,7 +1892,7 @@
|
|
|
1890
1892
|
return value;
|
|
1891
1893
|
});
|
|
1892
1894
|
}
|
|
1893
|
-
function isArray
|
|
1895
|
+
function isArray(arg) {
|
|
1894
1896
|
if (Array.isArray !== undefined) {
|
|
1895
1897
|
return Array.isArray(arg);
|
|
1896
1898
|
}
|
|
@@ -1900,7 +1902,7 @@
|
|
|
1900
1902
|
var info = classID.split("_");
|
|
1901
1903
|
var classInfo = info[1].split(".");
|
|
1902
1904
|
return {
|
|
1903
|
-
module: "@hpcc-js/"
|
|
1905
|
+
module: "@hpcc-js/".concat(info[0]),
|
|
1904
1906
|
file: classInfo[0],
|
|
1905
1907
|
class: classInfo[1] || classInfo[0]
|
|
1906
1908
|
};
|
|
@@ -2395,7 +2397,7 @@
|
|
|
2395
2397
|
}
|
|
2396
2398
|
// Remove trailing slashes.
|
|
2397
2399
|
segment = segment.replace(/\/$/, "");
|
|
2398
|
-
return __spreadArray(__spreadArray([], parts), segment.split("/"));
|
|
2400
|
+
return __spreadArray(__spreadArray([], parts, true), segment.split("/"), true);
|
|
2399
2401
|
}, []);
|
|
2400
2402
|
var resultParts = [];
|
|
2401
2403
|
for (var _a = 0, parts_1 = parts; _a < parts_1.length; _a++) {
|
|
@@ -2422,10 +2424,10 @@
|
|
|
2422
2424
|
exports.Dictionary = Dictionary;
|
|
2423
2425
|
exports.DictionaryNoCase = DictionaryNoCase;
|
|
2424
2426
|
exports.Dispatch = Dispatch;
|
|
2425
|
-
exports.Edge = Edge;
|
|
2427
|
+
exports.Edge = Edge$1;
|
|
2426
2428
|
exports.Graph = Graph;
|
|
2427
2429
|
exports.Graph2 = Graph2;
|
|
2428
|
-
exports.GraphItem = GraphItem;
|
|
2430
|
+
exports.GraphItem = GraphItem$1;
|
|
2429
2431
|
exports.Logging = Logging;
|
|
2430
2432
|
exports.Message = Message;
|
|
2431
2433
|
exports.Observable = Observable;
|
|
@@ -2435,8 +2437,8 @@
|
|
|
2435
2437
|
exports.ScopedLogging = ScopedLogging;
|
|
2436
2438
|
exports.Stack = Stack;
|
|
2437
2439
|
exports.StateObject = StateObject;
|
|
2438
|
-
exports.Subgraph = Subgraph;
|
|
2439
|
-
exports.Vertex = Vertex;
|
|
2440
|
+
exports.Subgraph = Subgraph$1;
|
|
2441
|
+
exports.Vertex = Vertex$1;
|
|
2440
2442
|
exports.XMLNode = XMLNode;
|
|
2441
2443
|
exports.cartesianToPolar = cartesianToPolar;
|
|
2442
2444
|
exports.classID2Meta = classID2Meta;
|
|
@@ -2455,7 +2457,7 @@
|
|
|
2455
2457
|
exports.getScriptSrc = getScriptSrc;
|
|
2456
2458
|
exports.hashSum = hashSum;
|
|
2457
2459
|
exports.inner = inner;
|
|
2458
|
-
exports.isArray = isArray
|
|
2460
|
+
exports.isArray = isArray;
|
|
2459
2461
|
exports.isBrowser = isBrowser;
|
|
2460
2462
|
exports.isCI = isCI;
|
|
2461
2463
|
exports.isNode = isNode;
|
|
@@ -2477,5 +2479,5 @@
|
|
|
2477
2479
|
|
|
2478
2480
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2479
2481
|
|
|
2480
|
-
}))
|
|
2482
|
+
}));
|
|
2481
2483
|
//# sourceMappingURL=index.js.map
|