@hpcc-js/comms 2.98.0 → 2.99.1
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.es6.js +36 -20
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +36 -20
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.node.js +36 -20
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.min.js +1 -1
- package/dist/index.node.min.js.map +1 -1
- package/lib-es6/__package__.js +2 -2
- package/lib-es6/ecl/activity.js +1 -1
- package/lib-es6/ecl/activity.js.map +1 -1
- package/lib-es6/ecl/dfuWorkunit.js +1 -1
- package/lib-es6/ecl/dfuWorkunit.js.map +1 -1
- package/lib-es6/ecl/logicalFile.js +5 -2
- package/lib-es6/ecl/logicalFile.js.map +1 -1
- package/lib-es6/ecl/query.js +4 -1
- package/lib-es6/ecl/query.js.map +1 -1
- package/lib-es6/ecl/targetCluster.js +1 -1
- package/lib-es6/ecl/targetCluster.js.map +1 -1
- package/lib-es6/ecl/topology.js +4 -1
- package/lib-es6/ecl/topology.js.map +1 -1
- package/lib-es6/ecl/workunit.js +12 -5
- package/lib-es6/ecl/workunit.js.map +1 -1
- package/lib-es6/espConnection.js +6 -0
- package/lib-es6/espConnection.js.map +1 -1
- package/lib-es6/services/wsWorkunits.js +0 -6
- package/lib-es6/services/wsWorkunits.js.map +1 -1
- package/package.json +2 -2
- package/src/__package__.ts +2 -2
- package/src/ecl/activity.ts +1 -3
- package/src/ecl/dfuWorkunit.ts +1 -1
- package/src/ecl/logicalFile.ts +5 -2
- package/src/ecl/query.ts +4 -1
- package/src/ecl/targetCluster.ts +1 -3
- package/src/ecl/topology.ts +4 -1
- package/src/ecl/workunit.ts +6 -2
- package/src/espConnection.ts +8 -0
- package/src/services/wsWorkunits.ts +0 -9
- package/types/__package__.d.ts +2 -2
- package/types/ecl/activity.d.ts.map +1 -1
- package/types/ecl/logicalFile.d.ts +1 -1
- package/types/ecl/logicalFile.d.ts.map +1 -1
- package/types/ecl/query.d.ts +1 -1
- package/types/ecl/query.d.ts.map +1 -1
- package/types/ecl/targetCluster.d.ts.map +1 -1
- package/types/ecl/topology.d.ts +1 -1
- package/types/ecl/topology.d.ts.map +1 -1
- package/types/ecl/workunit.d.ts.map +1 -1
- package/types/espConnection.d.ts +2 -0
- package/types/espConnection.d.ts.map +1 -1
- package/types/services/wsWorkunits.d.ts +0 -3
- package/types/services/wsWorkunits.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/ecl/logicalFile.d.ts +1 -1
- package/types-3.4/ecl/query.d.ts +1 -1
- package/types-3.4/ecl/topology.d.ts +1 -1
- package/types-3.4/espConnection.d.ts +2 -0
- package/types-3.4/services/wsWorkunits.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -648,8 +648,8 @@
|
|
|
648
648
|
}
|
|
649
649
|
|
|
650
650
|
var PKG_NAME = "@hpcc-js/comms";
|
|
651
|
-
var PKG_VERSION = "2.
|
|
652
|
-
var BUILD_VERSION = "2.107.
|
|
651
|
+
var PKG_VERSION = "2.99.1";
|
|
652
|
+
var BUILD_VERSION = "2.107.3";
|
|
653
653
|
|
|
654
654
|
/******************************************************************************
|
|
655
655
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1136,6 +1136,12 @@
|
|
|
1136
1136
|
enumerable: false,
|
|
1137
1137
|
configurable: true
|
|
1138
1138
|
});
|
|
1139
|
+
Service.prototype.opts = function () {
|
|
1140
|
+
return this._connection.opts();
|
|
1141
|
+
};
|
|
1142
|
+
Service.prototype.connection = function () {
|
|
1143
|
+
return this._connection.clone();
|
|
1144
|
+
};
|
|
1139
1145
|
return Service;
|
|
1140
1146
|
}());
|
|
1141
1147
|
|
|
@@ -3334,12 +3340,6 @@
|
|
|
3334
3340
|
function WorkunitsService(optsConnection) {
|
|
3335
3341
|
return _super.call(this, optsConnection) || this;
|
|
3336
3342
|
}
|
|
3337
|
-
WorkunitsService.prototype.opts = function () {
|
|
3338
|
-
return this._connection.opts();
|
|
3339
|
-
};
|
|
3340
|
-
WorkunitsService.prototype.connection = function () {
|
|
3341
|
-
return this._connection.clone();
|
|
3342
|
-
};
|
|
3343
3343
|
WorkunitsService.prototype.Ping = function () {
|
|
3344
3344
|
return this._connection.send("Ping", {}, "json", false, undefined, "WsWorkunitsPingResponse").then(function (response) {
|
|
3345
3345
|
return { result: true };
|
|
@@ -6746,7 +6746,7 @@
|
|
|
6746
6746
|
return this.WUDetails(request).then(function (response) { return response.Scopes.Scope; });
|
|
6747
6747
|
};
|
|
6748
6748
|
Workunit.prototype.normalizeDetails = function (meta, scopes) {
|
|
6749
|
-
var _a;
|
|
6749
|
+
var _a, _b;
|
|
6750
6750
|
var columns = {
|
|
6751
6751
|
id: {
|
|
6752
6752
|
Measure: "label"
|
|
@@ -6763,11 +6763,15 @@
|
|
|
6763
6763
|
var props = {};
|
|
6764
6764
|
var formattedProps = {};
|
|
6765
6765
|
if (scope && scope.Id && scope.Properties && scope.Properties.Property) {
|
|
6766
|
-
|
|
6766
|
+
var _loop_2 = function (key) {
|
|
6767
6767
|
var scopeProperty = scope.Properties.Property[key];
|
|
6768
6768
|
if (scopeProperty.Measure === "ns") {
|
|
6769
6769
|
scopeProperty.Measure = "s";
|
|
6770
6770
|
}
|
|
6771
|
+
if (scopeProperty.Name === "Kind") {
|
|
6772
|
+
var rawValue_1 = parseInt(scopeProperty.RawValue, 10);
|
|
6773
|
+
scopeProperty.Formatted = (_a = meta.Activities.Activity.filter(function (a) { return a.Kind === rawValue_1; })[0].Name) !== null && _a !== void 0 ? _a : scopeProperty.RawValue;
|
|
6774
|
+
}
|
|
6771
6775
|
columns[scopeProperty.Name] = __assign({}, scopeProperty);
|
|
6772
6776
|
safeDelete(columns, scopeProperty.Name, "RawValue");
|
|
6773
6777
|
safeDelete(columns, scopeProperty.Name, "Formatted");
|
|
@@ -6806,7 +6810,10 @@
|
|
|
6806
6810
|
default:
|
|
6807
6811
|
props[scopeProperty.Name] = scopeProperty.RawValue;
|
|
6808
6812
|
}
|
|
6809
|
-
formattedProps[scopeProperty.Name] = formatNum((
|
|
6813
|
+
formattedProps[scopeProperty.Name] = formatNum((_b = scopeProperty.Formatted) !== null && _b !== void 0 ? _b : props[scopeProperty.Name]);
|
|
6814
|
+
};
|
|
6815
|
+
for (var key in scope.Properties.Property) {
|
|
6816
|
+
_loop_2(key);
|
|
6810
6817
|
}
|
|
6811
6818
|
// Other properties ---
|
|
6812
6819
|
}
|
|
@@ -7091,7 +7098,7 @@
|
|
|
7091
7098
|
return false;
|
|
7092
7099
|
});
|
|
7093
7100
|
if (!wuMissing) {
|
|
7094
|
-
logger$3.warning("Unexpected exception:
|
|
7101
|
+
logger$3.warning("Unexpected ESP exception: ".concat(e.message));
|
|
7095
7102
|
throw e;
|
|
7096
7103
|
}
|
|
7097
7104
|
return {};
|
|
@@ -7128,7 +7135,7 @@
|
|
|
7128
7135
|
return false;
|
|
7129
7136
|
});
|
|
7130
7137
|
if (!wuMissing) {
|
|
7131
|
-
logger$3.warning("Unexpected exception:
|
|
7138
|
+
logger$3.warning("Unexpected ESP exception: ".concat(e.message));
|
|
7132
7139
|
throw e;
|
|
7133
7140
|
}
|
|
7134
7141
|
return {};
|
|
@@ -7496,7 +7503,7 @@
|
|
|
7496
7503
|
_activity = new Activity(optsConnection);
|
|
7497
7504
|
}
|
|
7498
7505
|
if (state) {
|
|
7499
|
-
_activity.set(
|
|
7506
|
+
_activity.set(state);
|
|
7500
7507
|
}
|
|
7501
7508
|
return _activity;
|
|
7502
7509
|
};
|
|
@@ -7834,10 +7841,13 @@
|
|
|
7834
7841
|
enumerable: false,
|
|
7835
7842
|
configurable: true
|
|
7836
7843
|
});
|
|
7837
|
-
LogicalFile.attach = function (optsConnection, Cluster, Name) {
|
|
7844
|
+
LogicalFile.attach = function (optsConnection, Cluster, Name, state) {
|
|
7838
7845
|
var retVal = _store$1.get({ BaseUrl: optsConnection.baseUrl, Cluster: Cluster, Name: Name }, function () {
|
|
7839
7846
|
return new LogicalFile(optsConnection, Cluster, Name);
|
|
7840
7847
|
});
|
|
7848
|
+
if (state) {
|
|
7849
|
+
retVal.set(state);
|
|
7850
|
+
}
|
|
7841
7851
|
return retVal;
|
|
7842
7852
|
};
|
|
7843
7853
|
LogicalFile.prototype.filePartsOnCluster = function () {
|
|
@@ -7884,7 +7894,7 @@
|
|
|
7884
7894
|
return false;
|
|
7885
7895
|
});
|
|
7886
7896
|
if (!fileMissing) {
|
|
7887
|
-
logger$2.warning("Unexpected exception:
|
|
7897
|
+
logger$2.warning("Unexpected ESP exception: ".concat(e.message));
|
|
7888
7898
|
throw e;
|
|
7889
7899
|
}
|
|
7890
7900
|
return {};
|
|
@@ -8157,7 +8167,7 @@
|
|
|
8157
8167
|
return new TargetCluster(optsConnection, name);
|
|
8158
8168
|
});
|
|
8159
8169
|
if (state) {
|
|
8160
|
-
retVal.set(
|
|
8170
|
+
retVal.set(state);
|
|
8161
8171
|
}
|
|
8162
8172
|
return retVal;
|
|
8163
8173
|
};
|
|
@@ -8305,10 +8315,13 @@
|
|
|
8305
8315
|
enumerable: false,
|
|
8306
8316
|
configurable: true
|
|
8307
8317
|
});
|
|
8308
|
-
Topology.attach = function (optsConnection) {
|
|
8318
|
+
Topology.attach = function (optsConnection, state) {
|
|
8309
8319
|
var retVal = _topology.get({ BaseUrl: optsConnection.baseUrl }, function () {
|
|
8310
8320
|
return new Topology(optsConnection);
|
|
8311
8321
|
});
|
|
8322
|
+
if (state) {
|
|
8323
|
+
retVal.set(state);
|
|
8324
|
+
}
|
|
8312
8325
|
return retVal;
|
|
8313
8326
|
};
|
|
8314
8327
|
Topology.prototype.GetESPServiceBaseURL = function (type) {
|
|
@@ -9300,10 +9313,13 @@
|
|
|
9300
9313
|
enumerable: false,
|
|
9301
9314
|
configurable: true
|
|
9302
9315
|
});
|
|
9303
|
-
Query.attach = function (optsConnection, querySet, queryId) {
|
|
9316
|
+
Query.attach = function (optsConnection, querySet, queryId, state) {
|
|
9304
9317
|
var retVal = _queries.get({ BaseUrl: optsConnection.baseUrl, QuerySet: querySet, QueryId: queryId }, function () {
|
|
9305
9318
|
return new Query(optsConnection, querySet, queryId);
|
|
9306
9319
|
});
|
|
9320
|
+
if (state) {
|
|
9321
|
+
retVal.set(state);
|
|
9322
|
+
}
|
|
9307
9323
|
return retVal;
|
|
9308
9324
|
};
|
|
9309
9325
|
Query.prototype.wsEclService = function () {
|
|
@@ -10279,7 +10295,7 @@
|
|
|
10279
10295
|
return false;
|
|
10280
10296
|
});
|
|
10281
10297
|
if (!wuMissing) {
|
|
10282
|
-
logger.warning("Unexpected exception:
|
|
10298
|
+
logger.warning("Unexpected ESP exception: ".concat(e.message));
|
|
10283
10299
|
throw e;
|
|
10284
10300
|
}
|
|
10285
10301
|
return {};
|