@hpcc-js/util 2.50.0 → 2.50.2
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 +18 -3
- 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/__package__.js.map +1 -1
- package/lib-es6/graph2.js +15 -0
- package/lib-es6/graph2.js.map +1 -1
- package/package.json +3 -3
- package/src/__package__.ts +2 -2
- package/src/graph2.ts +14 -0
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types/graph2.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var PKG_NAME = "@hpcc-js/util";
|
|
8
|
-
var PKG_VERSION = "2.50.
|
|
9
|
-
var BUILD_VERSION = "2.104.
|
|
8
|
+
var PKG_VERSION = "2.50.2";
|
|
9
|
+
var BUILD_VERSION = "2.104.14";
|
|
10
10
|
|
|
11
11
|
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
67
67
|
function step(op) {
|
|
68
68
|
if (f) throw new TypeError("Generator is already executing.");
|
|
69
|
-
while (_) try {
|
|
69
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
70
70
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
71
71
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
72
72
|
switch (op[0]) {
|
|
@@ -1242,11 +1242,26 @@
|
|
|
1242
1242
|
return this;
|
|
1243
1243
|
};
|
|
1244
1244
|
Graph2.prototype.updateEdge = function (e) {
|
|
1245
|
+
var _a, _b, _c, _d;
|
|
1245
1246
|
var e_id = this._idFunc(e);
|
|
1246
1247
|
var edge = this._edgeMap[e_id];
|
|
1247
1248
|
if (!edge)
|
|
1248
1249
|
throw new Error("Edge '".concat(e_id, "' does not exist."));
|
|
1250
|
+
var old_source = edge._source.id();
|
|
1251
|
+
var new_source = this._sourceFunc(e);
|
|
1252
|
+
if (old_source !== new_source) {
|
|
1253
|
+
(_a = this._vertexMap[old_source]) === null || _a === void 0 ? void 0 : _a.removeOutEdge(e_id);
|
|
1254
|
+
(_b = this._vertexMap[new_source]) === null || _b === void 0 ? void 0 : _b.addOutEdge(edge);
|
|
1255
|
+
}
|
|
1256
|
+
var old_target = edge._target.id();
|
|
1257
|
+
var new_target = this._targetFunc(e);
|
|
1258
|
+
if (old_target !== new_target) {
|
|
1259
|
+
(_c = this._vertexMap[old_target]) === null || _c === void 0 ? void 0 : _c.removeInEdge(e_id);
|
|
1260
|
+
(_d = this._vertexMap[new_target]) === null || _d === void 0 ? void 0 : _d.addInEdge(edge);
|
|
1261
|
+
}
|
|
1249
1262
|
edge._ = e;
|
|
1263
|
+
edge._source = this._vertexMap[new_source];
|
|
1264
|
+
edge._target = this._vertexMap[new_target];
|
|
1250
1265
|
return this;
|
|
1251
1266
|
};
|
|
1252
1267
|
Graph2.prototype.removeEdge = function (id) {
|