@hpcc-js/comms 3.17.8 → 3.19.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/browser/index.js +40 -9
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.umd.cjs +2 -2
- package/dist/browser/index.umd.cjs.map +1 -1
- package/dist/node/index.cjs +9 -9
- package/dist/node/index.cjs.map +3 -3
- package/dist/node/index.js +9 -9
- package/dist/node/index.js.map +3 -3
- package/package.json +6 -6
- package/src/connection.ts +11 -3
- package/src/ecl/workunit.ts +62 -16
- package/src/espConnection.ts +5 -0
- package/src/services/wsWorkunits.ts +10 -0
- package/types/connection.d.ts +1 -1
- package/types/ecl/workunit.d.ts +16 -3
- package/types/services/wsWorkunits.d.ts +6 -0
package/dist/browser/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cache as e, Dispatch as t, Edge as n, Graph as r, Message as i, SAXStac
|
|
|
3
3
|
var ee = Object.defineProperty, __name = (e, t) => ee(e, "name", {
|
|
4
4
|
value: t,
|
|
5
5
|
configurable: !0
|
|
6
|
-
}), S = "@hpcc-js/comms", C = "3.
|
|
6
|
+
}), S = "@hpcc-js/comms", C = "3.19.0", w = "3.34.1", T = y("comms/connection.ts");
|
|
7
7
|
function instanceOfIOptions(e) {
|
|
8
8
|
return "baseUrl" in e;
|
|
9
9
|
}
|
|
@@ -67,7 +67,11 @@ function doFetch(e, t, n, r, i) {
|
|
|
67
67
|
headers: r
|
|
68
68
|
}, e.baseUrl.indexOf("https:") === 0 && (e.rejectUnauthorized === !1 && v.__hpcc_rejectUnauthorizedAgent ? n.dispatcher = v.__hpcc_rejectUnauthorizedAgent : v.__hpcc_trustwaveAgent && (n.agent = v.__hpcc_trustwaveAgent));
|
|
69
69
|
function handleResponse(e) {
|
|
70
|
-
if (e.ok)
|
|
70
|
+
if (e.ok) switch (i) {
|
|
71
|
+
case "json": return e.json();
|
|
72
|
+
case "arraybuffer": return e.arrayBuffer();
|
|
73
|
+
default: return e.text();
|
|
74
|
+
}
|
|
71
75
|
throw Error(e.statusText);
|
|
72
76
|
}
|
|
73
77
|
let a = v.__hpcc_undiciFetch ?? fetch;
|
|
@@ -195,6 +199,9 @@ var re = class ESPConnection {
|
|
|
195
199
|
case "text":
|
|
196
200
|
s = g(this._service, e), c = "text";
|
|
197
201
|
break;
|
|
202
|
+
case "arraybuffer":
|
|
203
|
+
s = g(this._service, e + ".json"), c = "arraybuffer";
|
|
204
|
+
break;
|
|
198
205
|
case "xsd":
|
|
199
206
|
s = g(this._service, e + ".xsd"), c = "text";
|
|
200
207
|
break;
|
|
@@ -2735,6 +2742,9 @@ var WorkunitsService = class extends WorkunitsServiceBase {
|
|
|
2735
2742
|
WUDetailsMeta(e) {
|
|
2736
2743
|
return this._WUDetailsMetaPromise ||= super.WUDetailsMeta(e), this._WUDetailsMetaPromise;
|
|
2737
2744
|
}
|
|
2745
|
+
WUDetailsEx(e, t, n) {
|
|
2746
|
+
return this._connection.send("WUDetails", e, n, !1, t, "WUDetailsResponse");
|
|
2747
|
+
}
|
|
2738
2748
|
WUCDebugEx(e) {
|
|
2739
2749
|
return this._connection.send("WUCDebug", e, void 0, void 0, void 0, "WUDebug").then((e) => {
|
|
2740
2750
|
let t = x(e.Result).children();
|
|
@@ -4212,8 +4222,15 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4212
4222
|
fetchDetailsMeta(e = {}) {
|
|
4213
4223
|
return this.WUDetailsMeta(e);
|
|
4214
4224
|
}
|
|
4215
|
-
fetchDetailsRaw(e = {}) {
|
|
4216
|
-
return this.WUDetails(e).then((e) =>
|
|
4225
|
+
fetchDetailsRaw(e = {}, t, n) {
|
|
4226
|
+
return this.WUDetails(e, t, n).then((e) => {
|
|
4227
|
+
switch (n) {
|
|
4228
|
+
case "arraybuffer": return e;
|
|
4229
|
+
case "text":
|
|
4230
|
+
case "xsd": return e;
|
|
4231
|
+
default: return e.Scopes.Scope;
|
|
4232
|
+
}
|
|
4233
|
+
});
|
|
4217
4234
|
}
|
|
4218
4235
|
normalizeDetails(e, t) {
|
|
4219
4236
|
let n = {
|
|
@@ -4314,8 +4331,15 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4314
4331
|
fetchInfo(e = {}) {
|
|
4315
4332
|
return this.WUInfo(e);
|
|
4316
4333
|
}
|
|
4317
|
-
fetchDetails(e = {}) {
|
|
4318
|
-
return this.WUDetails(e).then((e) =>
|
|
4334
|
+
fetchDetails(e = {}, t, n) {
|
|
4335
|
+
return this.WUDetails(e, t, n).then((e) => {
|
|
4336
|
+
switch (n) {
|
|
4337
|
+
case "arraybuffer": return e;
|
|
4338
|
+
case "text":
|
|
4339
|
+
case "xsd": return e;
|
|
4340
|
+
default: return e.Scopes.Scope.map((e) => new Scope(this, e));
|
|
4341
|
+
}
|
|
4342
|
+
});
|
|
4319
4343
|
}
|
|
4320
4344
|
fetchDetailsHierarchy(e = {}) {
|
|
4321
4345
|
return this.WUDetails(e).then((e) => {
|
|
@@ -4470,8 +4494,8 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4470
4494
|
WUDetailsMeta(e) {
|
|
4471
4495
|
return this.connection.WUDetailsMeta(e);
|
|
4472
4496
|
}
|
|
4473
|
-
WUDetails(e) {
|
|
4474
|
-
return this.connection.
|
|
4497
|
+
WUDetails(e, t, n) {
|
|
4498
|
+
return this.connection.WUDetailsEx(p({
|
|
4475
4499
|
ScopeFilter: { MaxDepth: 9999 },
|
|
4476
4500
|
ScopeOptions: {
|
|
4477
4501
|
IncludeMatchedScopesInResults: !0,
|
|
@@ -4487,7 +4511,14 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4487
4511
|
IncludeCreator: !1,
|
|
4488
4512
|
IncludeCreatorType: !1
|
|
4489
4513
|
}
|
|
4490
|
-
}, e, { WUID: this.Wuid })).then((e) =>
|
|
4514
|
+
}, e, { WUID: this.Wuid }), t, n).then((e) => {
|
|
4515
|
+
switch (n) {
|
|
4516
|
+
case "arraybuffer":
|
|
4517
|
+
case "text":
|
|
4518
|
+
case "xsd": return e;
|
|
4519
|
+
default: return e.Scopes === void 0 ? e.Scopes = { Scope: [] } : e.Scopes.Scope === void 0 && (e.Scopes.Scope = []), e;
|
|
4520
|
+
}
|
|
4521
|
+
});
|
|
4491
4522
|
}
|
|
4492
4523
|
WUAction(e) {
|
|
4493
4524
|
return this.connection.WUAction({
|