@nsshunt/stsrunnerframework 1.0.53 → 1.0.55
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/stsrunnerframework.mjs +137 -36
- package/dist/stsrunnerframework.mjs.map +1 -1
- package/dist/stsrunnerframework.umd.js +137 -36
- package/dist/stsrunnerframework.umd.js.map +1 -1
- package/package.json +12 -12
- package/types/commonTypes.d.ts +5 -0
- package/types/commonTypes.d.ts.map +1 -1
- package/types/rest01Client.d.ts +1 -0
- package/types/rest01Client.d.ts.map +1 -1
- package/types/telemetryProcessor.d.ts.map +1 -1
- package/types/testCase01.d.ts.map +1 -1
- package/types/workerInstance.d.ts.map +1 -1
- package/types/workerManager.d.ts.map +1 -1
- package/types/workerWorkerTestRunner01.d.ts.map +1 -1
- package/types/workerWorkerTestRunner01Agent.d.ts.map +1 -1
|
@@ -1796,21 +1796,6 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1796
1796
|
const toFiniteNumber = (value2, defaultValue) => {
|
|
1797
1797
|
return value2 != null && Number.isFinite(value2 = +value2) ? value2 : defaultValue;
|
|
1798
1798
|
};
|
|
1799
|
-
const ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
1800
|
-
const DIGIT = "0123456789";
|
|
1801
|
-
const ALPHABET = {
|
|
1802
|
-
DIGIT,
|
|
1803
|
-
ALPHA,
|
|
1804
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
1805
|
-
};
|
|
1806
|
-
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
1807
|
-
let str = "";
|
|
1808
|
-
const { length } = alphabet;
|
|
1809
|
-
while (size--) {
|
|
1810
|
-
str += alphabet[Math.random() * length | 0];
|
|
1811
|
-
}
|
|
1812
|
-
return str;
|
|
1813
|
-
};
|
|
1814
1799
|
function isSpecCompliantForm(thing) {
|
|
1815
1800
|
return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
|
|
1816
1801
|
}
|
|
@@ -1909,8 +1894,6 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1909
1894
|
findKey,
|
|
1910
1895
|
global: _global,
|
|
1911
1896
|
isContextDefined,
|
|
1912
|
-
ALPHABET,
|
|
1913
|
-
generateString,
|
|
1914
1897
|
isSpecCompliantForm,
|
|
1915
1898
|
toJSONObject,
|
|
1916
1899
|
isAsyncFn,
|
|
@@ -2866,8 +2849,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2866
2849
|
function combineURLs(baseURL, relativeURL) {
|
|
2867
2850
|
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
2868
2851
|
}
|
|
2869
|
-
function buildFullPath(baseURL, requestedURL) {
|
|
2870
|
-
|
|
2852
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
2853
|
+
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
2854
|
+
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
|
2871
2855
|
return combineURLs(baseURL, requestedURL);
|
|
2872
2856
|
}
|
|
2873
2857
|
return requestedURL;
|
|
@@ -3471,7 +3455,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3471
3455
|
return Promise.reject(reason);
|
|
3472
3456
|
});
|
|
3473
3457
|
}
|
|
3474
|
-
const VERSION$1 = "1.
|
|
3458
|
+
const VERSION$1 = "1.8.1";
|
|
3475
3459
|
const validators$2 = {};
|
|
3476
3460
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
3477
3461
|
validators$2[type] = function validator2(thing) {
|
|
@@ -3599,6 +3583,12 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3599
3583
|
}, true);
|
|
3600
3584
|
}
|
|
3601
3585
|
}
|
|
3586
|
+
if (config2.allowAbsoluteUrls !== void 0) ;
|
|
3587
|
+
else if (this.defaults.allowAbsoluteUrls !== void 0) {
|
|
3588
|
+
config2.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
3589
|
+
} else {
|
|
3590
|
+
config2.allowAbsoluteUrls = true;
|
|
3591
|
+
}
|
|
3602
3592
|
validator.assertOptions(config2, {
|
|
3603
3593
|
baseUrl: validators$1.spelling("baseURL"),
|
|
3604
3594
|
withXsrfToken: validators$1.spelling("withXSRFToken")
|
|
@@ -3669,7 +3659,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3669
3659
|
}
|
|
3670
3660
|
getUri(config2) {
|
|
3671
3661
|
config2 = mergeConfig$1(this.defaults, config2);
|
|
3672
|
-
const fullPath = buildFullPath(config2.baseURL, config2.url);
|
|
3662
|
+
const fullPath = buildFullPath(config2.baseURL, config2.url, config2.allowAbsoluteUrls);
|
|
3673
3663
|
return buildURL(fullPath, config2.params, config2.paramsSerializer);
|
|
3674
3664
|
}
|
|
3675
3665
|
};
|
|
@@ -3927,7 +3917,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3927
3917
|
var __privateGet$1 = (obj, member, getter) => (__accessCheck$1(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
3928
3918
|
var __privateAdd$1 = (obj, member, value2) => member.has(obj) ? __typeError$1("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value2);
|
|
3929
3919
|
var __privateSet$1 = (obj, member, value2, setter) => (__accessCheck$1(obj, member, "write to private field"), member.set(obj, value2), value2);
|
|
3930
|
-
var _options, _DUMMY_USER, _invokeMethods, _maxRetries, _sleepDuration, _NoRetryStatusCodes, _accessToken, _noRetries, _LogDebugMessage, _LogErrorMessage, _TestMode, ___InvokeResourceAPI, _axiosClient, _options2$1;
|
|
3920
|
+
var _options, _DUMMY_USER, _invokeMethods, _maxRetries, _sleepDuration, _NoRetryStatusCodes, _accessToken, _noRetries, _LogDebugMessage, _LogErrorMessage, _TestMode, ___InvokeResourceAPI, _axiosClient, _options2$1, _checkResName;
|
|
3931
3921
|
function getDefaultExportFromCjs(x) {
|
|
3932
3922
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
3933
3923
|
}
|
|
@@ -7665,6 +7655,18 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7665
7655
|
var _a;
|
|
7666
7656
|
return ((_a = await this.PostResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7667
7657
|
});
|
|
7658
|
+
__publicField$1(this, "PutResourcesAR", async (resources, errorCb) => {
|
|
7659
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources`;
|
|
7660
|
+
return await __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "put", resources, null, null, errorCb);
|
|
7661
|
+
});
|
|
7662
|
+
__publicField$1(this, "PutResourcesDBR", async (resources, errorCb) => {
|
|
7663
|
+
var _a;
|
|
7664
|
+
return ((_a = await this.PutResourcesAR(resources, errorCb)) == null ? void 0 : _a.data.map((r) => r.detail)) ?? null;
|
|
7665
|
+
});
|
|
7666
|
+
__publicField$1(this, "PutResources", async (resources, errorCb) => {
|
|
7667
|
+
var _a;
|
|
7668
|
+
return ((_a = await this.PutResourcesDBR(resources, errorCb)) == null ? void 0 : _a.map((r) => r.resdesc)) ?? null;
|
|
7669
|
+
});
|
|
7668
7670
|
__publicField$1(this, "PutResourceAR", async (resource, errorCb) => {
|
|
7669
7671
|
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7670
7672
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "put", resource, null, null, errorCb);
|
|
@@ -7677,6 +7679,18 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7677
7679
|
var _a;
|
|
7678
7680
|
return ((_a = await this.PutResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7679
7681
|
});
|
|
7682
|
+
__publicField$1(this, "PatchResourcesAR", async (resources, errorCb) => {
|
|
7683
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources`;
|
|
7684
|
+
return await __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "patch", resources, null, null, errorCb);
|
|
7685
|
+
});
|
|
7686
|
+
__publicField$1(this, "PatchResourcesDBR", async (resources, errorCb) => {
|
|
7687
|
+
var _a;
|
|
7688
|
+
return ((_a = await this.PatchResourcesAR(resources, errorCb)) == null ? void 0 : _a.data.map((r) => r.detail)) ?? null;
|
|
7689
|
+
});
|
|
7690
|
+
__publicField$1(this, "PatchResources", async (resources, errorCb) => {
|
|
7691
|
+
var _a;
|
|
7692
|
+
return ((_a = await this.PatchResourcesDBR(resources, errorCb)) == null ? void 0 : _a.map((r) => r.resdesc)) ?? null;
|
|
7693
|
+
});
|
|
7680
7694
|
__publicField$1(this, "PatchResourceAR", async (resource, errorCb) => {
|
|
7681
7695
|
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7682
7696
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "patch", resource, null, null, errorCb);
|
|
@@ -7689,6 +7703,18 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7689
7703
|
var _a;
|
|
7690
7704
|
return ((_a = await this.PatchResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7691
7705
|
});
|
|
7706
|
+
__publicField$1(this, "DeleteResourcesAR", async (resources, errorCb) => {
|
|
7707
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources`;
|
|
7708
|
+
return await __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "delete", resources, null, null, errorCb);
|
|
7709
|
+
});
|
|
7710
|
+
__publicField$1(this, "DeleteResourcesDBR", async (resources, errorCb) => {
|
|
7711
|
+
var _a;
|
|
7712
|
+
return ((_a = await this.DeleteResourcesAR(resources, errorCb)) == null ? void 0 : _a.data.map((r) => r.detail)) ?? null;
|
|
7713
|
+
});
|
|
7714
|
+
__publicField$1(this, "DeleteResources", async (resources, errorCb) => {
|
|
7715
|
+
var _a;
|
|
7716
|
+
return ((_a = await this.DeleteResourcesDBR(resources, errorCb)) == null ? void 0 : _a.map((r) => r.resdesc)) ?? null;
|
|
7717
|
+
});
|
|
7692
7718
|
__publicField$1(this, "DeleteResourceAR", async (resource, errorCb) => {
|
|
7693
7719
|
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7694
7720
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "delete", resource, null, null, errorCb);
|
|
@@ -7731,6 +7757,18 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7731
7757
|
var _a;
|
|
7732
7758
|
return ((_a = await this.GetResourcesDBR(filters, errorCb)) == null ? void 0 : _a.map((r) => r.resdesc)) ?? null;
|
|
7733
7759
|
});
|
|
7760
|
+
__privateAdd$1(this, _checkResName, (resourceEntities) => {
|
|
7761
|
+
let resName = "";
|
|
7762
|
+
resourceEntities.forEach((re2) => {
|
|
7763
|
+
resName = resName.localeCompare("") === 0 ? re2.resname : resName;
|
|
7764
|
+
if (resName.localeCompare(re2.resname) !== 0) {
|
|
7765
|
+
throw new Error(`Invalid batch provided. resname not all equal. Previous checked value: [${resName}, current value: [${re2.resname}]`);
|
|
7766
|
+
} else {
|
|
7767
|
+
resName = re2.resname;
|
|
7768
|
+
}
|
|
7769
|
+
});
|
|
7770
|
+
return resName;
|
|
7771
|
+
});
|
|
7734
7772
|
__publicField$1(this, "PostEntityAR", async (resourceEntity, errorCb) => {
|
|
7735
7773
|
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities`;
|
|
7736
7774
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "post", resourceEntity, null, null, errorCb);
|
|
@@ -7743,6 +7781,18 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7743
7781
|
var _a;
|
|
7744
7782
|
return ((_a = await this.PostEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.entvalue) ?? null;
|
|
7745
7783
|
});
|
|
7784
|
+
__publicField$1(this, "PutEntitiesAR", async (resourceEntities, errorCb) => {
|
|
7785
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${__privateGet$1(this, _checkResName).call(this, resourceEntities)}/entities`;
|
|
7786
|
+
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "put", resourceEntities, null, null, errorCb);
|
|
7787
|
+
});
|
|
7788
|
+
__publicField$1(this, "PutEntitiesDBR", async (resourceEntities, errorCb) => {
|
|
7789
|
+
var _a;
|
|
7790
|
+
return ((_a = await this.PutEntitiesAR(resourceEntities, errorCb)) == null ? void 0 : _a.data.map((r) => r.detail)) ?? null;
|
|
7791
|
+
});
|
|
7792
|
+
__publicField$1(this, "PutEntities", async (resourceEntities, errorCb) => {
|
|
7793
|
+
var _a;
|
|
7794
|
+
return ((_a = await this.PutEntitiesDBR(resourceEntities, errorCb)) == null ? void 0 : _a.map((r) => r.entvalue)) ?? null;
|
|
7795
|
+
});
|
|
7746
7796
|
__publicField$1(this, "PutEntityAR", async (entity, errorCb) => {
|
|
7747
7797
|
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${entity.resname}/entities/${entity.entname}`;
|
|
7748
7798
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "put", entity, null, null, errorCb);
|
|
@@ -7755,6 +7805,18 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7755
7805
|
var _a;
|
|
7756
7806
|
return ((_a = await this.PutEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.entvalue) ?? null;
|
|
7757
7807
|
});
|
|
7808
|
+
__publicField$1(this, "PatchEntitiesAR", async (resourceEntities, errorCb) => {
|
|
7809
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${__privateGet$1(this, _checkResName).call(this, resourceEntities)}/entities`;
|
|
7810
|
+
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "patch", resourceEntities, null, null, errorCb);
|
|
7811
|
+
});
|
|
7812
|
+
__publicField$1(this, "PatchEntitiesDBR", async (resourceEntities, errorCb) => {
|
|
7813
|
+
var _a;
|
|
7814
|
+
return ((_a = await this.PatchEntitiesAR(resourceEntities, errorCb)) == null ? void 0 : _a.data.map((r) => r.detail)) ?? null;
|
|
7815
|
+
});
|
|
7816
|
+
__publicField$1(this, "PatchEntities", async (resourceEntities, errorCb) => {
|
|
7817
|
+
var _a;
|
|
7818
|
+
return ((_a = await this.PatchEntitiesDBR(resourceEntities, errorCb)) == null ? void 0 : _a.map((r) => r.entvalue)) ?? null;
|
|
7819
|
+
});
|
|
7758
7820
|
__publicField$1(this, "PatchEntityAR", async (resourceEntity, errorCb) => {
|
|
7759
7821
|
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7760
7822
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "patch", resourceEntity, null, null, errorCb);
|
|
@@ -7767,6 +7829,18 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7767
7829
|
var _a;
|
|
7768
7830
|
return ((_a = await this.PatchEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.entvalue) ?? null;
|
|
7769
7831
|
});
|
|
7832
|
+
__publicField$1(this, "DeleteEntitiesAR", async (resourceEntities, errorCb) => {
|
|
7833
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${__privateGet$1(this, _checkResName).call(this, resourceEntities)}/entities`;
|
|
7834
|
+
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "delete", resourceEntities, null, null, errorCb);
|
|
7835
|
+
});
|
|
7836
|
+
__publicField$1(this, "DeleteEntitiesDBR", async (resourceEntities, errorCb) => {
|
|
7837
|
+
var _a;
|
|
7838
|
+
return ((_a = await this.DeleteEntitiesAR(resourceEntities, errorCb)) == null ? void 0 : _a.data.map((r) => r.detail)) ?? null;
|
|
7839
|
+
});
|
|
7840
|
+
__publicField$1(this, "DeleteEntities", async (resourceEntities, errorCb) => {
|
|
7841
|
+
var _a;
|
|
7842
|
+
return ((_a = await this.DeleteEntitiesDBR(resourceEntities, errorCb)) == null ? void 0 : _a.map((r) => r.entvalue)) ?? null;
|
|
7843
|
+
});
|
|
7770
7844
|
__publicField$1(this, "DeleteEntityAR", async (resourceEntity, errorCb) => {
|
|
7771
7845
|
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7772
7846
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "delete", resourceEntity, null, null, errorCb);
|
|
@@ -7822,6 +7896,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7822
7896
|
}
|
|
7823
7897
|
_axiosClient = /* @__PURE__ */ new WeakMap();
|
|
7824
7898
|
_options2$1 = /* @__PURE__ */ new WeakMap();
|
|
7899
|
+
_checkResName = /* @__PURE__ */ new WeakMap();
|
|
7825
7900
|
var cookie$1 = {};
|
|
7826
7901
|
var memstore = {};
|
|
7827
7902
|
var pathMatch = {};
|
|
@@ -8749,7 +8824,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
8749
8824
|
hasRequiredVersion = 1;
|
|
8750
8825
|
Object.defineProperty(version$1, "__esModule", { value: true });
|
|
8751
8826
|
version$1.version = void 0;
|
|
8752
|
-
version$1.version = "5.1.
|
|
8827
|
+
version$1.version = "5.1.2";
|
|
8753
8828
|
return version$1;
|
|
8754
8829
|
}
|
|
8755
8830
|
var canonicalDomain = {};
|
|
@@ -8758,14 +8833,16 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
8758
8833
|
function requireConstants$1() {
|
|
8759
8834
|
if (hasRequiredConstants$1) return constants$1;
|
|
8760
8835
|
hasRequiredConstants$1 = 1;
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
|
|
8836
|
+
(function(exports3) {
|
|
8837
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
8838
|
+
exports3.IP_V6_REGEX_OBJECT = exports3.PrefixSecurityEnum = void 0;
|
|
8839
|
+
exports3.PrefixSecurityEnum = {
|
|
8840
|
+
SILENT: "silent",
|
|
8841
|
+
STRICT: "strict",
|
|
8842
|
+
DISABLED: "unsafe-disabled"
|
|
8843
|
+
};
|
|
8844
|
+
Object.freeze(exports3.PrefixSecurityEnum);
|
|
8845
|
+
const IP_V6_REGEX = `
|
|
8769
8846
|
\\[?(?:
|
|
8770
8847
|
(?:[a-fA-F\\d]{1,4}:){7}(?:[a-fA-F\\d]{1,4}|:)|
|
|
8771
8848
|
(?:[a-fA-F\\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|:[a-fA-F\\d]{1,4}|:)|
|
|
@@ -8777,7 +8854,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
8777
8854
|
(?::(?:(?::[a-fA-F\\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,7}|:))
|
|
8778
8855
|
)(?:%[0-9a-zA-Z]{1,})?\\]?
|
|
8779
8856
|
`.replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
|
|
8780
|
-
|
|
8857
|
+
exports3.IP_V6_REGEX_OBJECT = new RegExp(`^${IP_V6_REGEX}$`);
|
|
8858
|
+
})(constants$1);
|
|
8781
8859
|
return constants$1;
|
|
8782
8860
|
}
|
|
8783
8861
|
var hasRequiredCanonicalDomain;
|
|
@@ -9763,7 +9841,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
9763
9841
|
if (_str == _domStr) {
|
|
9764
9842
|
return true;
|
|
9765
9843
|
}
|
|
9766
|
-
const idx = _str.lastIndexOf(
|
|
9844
|
+
const idx = _str.lastIndexOf(_domStr);
|
|
9767
9845
|
if (idx <= 0) {
|
|
9768
9846
|
return false;
|
|
9769
9847
|
}
|
|
@@ -22949,9 +23027,11 @@ ${newlined}
|
|
|
22949
23027
|
});
|
|
22950
23028
|
__publicField(this, "AddResource", async (worker) => {
|
|
22951
23029
|
const resourceTestRunnerMetadata = {
|
|
23030
|
+
id: worker.id,
|
|
22952
23031
|
lastRefresh: Math.floor(Date.now() / 1e3),
|
|
22953
23032
|
resname: `${STS_RF_RES_PREFIX}${worker.id}`,
|
|
22954
|
-
data: worker.workerThreadWorkerOptions
|
|
23033
|
+
data: worker.workerThreadWorkerOptions,
|
|
23034
|
+
state: "started"
|
|
22955
23035
|
};
|
|
22956
23036
|
return await __privateGet(this, _rest01Client).PostResource(resourceTestRunnerMetadata, (error) => {
|
|
22957
23037
|
stsutils.defaultLogger.error(`Rest01Client:AddResource.PostResource.Error(): [${error}]`);
|
|
@@ -22959,15 +23039,32 @@ ${newlined}
|
|
|
22959
23039
|
});
|
|
22960
23040
|
__publicField(this, "AddResourceEntity", async (workerId, runner) => {
|
|
22961
23041
|
const resourceEntityTestRunnerMetadata = {
|
|
23042
|
+
id: runner.id,
|
|
22962
23043
|
lastRefresh: Math.floor(Date.now() / 1e3),
|
|
22963
23044
|
resname: `${STS_RF_RES_PREFIX}${workerId}`,
|
|
22964
23045
|
entname: `${STS_RF_RES_ENT_PREFIX}${runner.id}`,
|
|
22965
|
-
data: runner.asyncRunnerContext
|
|
23046
|
+
data: runner.asyncRunnerContext,
|
|
23047
|
+
runnerTelemetry: runner.instrumentData,
|
|
23048
|
+
state: "started"
|
|
22966
23049
|
};
|
|
22967
23050
|
return await __privateGet(this, _rest01Client).PostEntity(resourceEntityTestRunnerMetadata, (error) => {
|
|
22968
23051
|
stsutils.defaultLogger.error(`WorkerInstance: #AddRunner.PostEntity.Error(): [${error}]`);
|
|
22969
23052
|
});
|
|
22970
23053
|
});
|
|
23054
|
+
__publicField(this, "UpdateResourceEntity", async (workerId, runner, state) => {
|
|
23055
|
+
const resourceEntityTestRunnerMetadata = {
|
|
23056
|
+
id: runner.id,
|
|
23057
|
+
lastRefresh: Math.floor(Date.now() / 1e3),
|
|
23058
|
+
resname: `${STS_RF_RES_PREFIX}${workerId}`,
|
|
23059
|
+
entname: `${STS_RF_RES_ENT_PREFIX}${runner.id}`,
|
|
23060
|
+
data: runner.asyncRunnerContext,
|
|
23061
|
+
runnerTelemetry: runner.instrumentData,
|
|
23062
|
+
state
|
|
23063
|
+
};
|
|
23064
|
+
return await __privateGet(this, _rest01Client).PutEntity(resourceEntityTestRunnerMetadata, (error) => {
|
|
23065
|
+
stsutils.defaultLogger.error(`WorkerInstance: #AddRunner.PutEntity.Error(): [${error}]`);
|
|
23066
|
+
});
|
|
23067
|
+
});
|
|
22971
23068
|
__publicField(this, "GetResource", async (resourceTestRunnerMetadata) => {
|
|
22972
23069
|
return await __privateGet(this, _rest01Client).GetResource(resourceTestRunnerMetadata, "", (error) => {
|
|
22973
23070
|
stsutils.defaultLogger.error(`Rest01Client: GetResource.Error(): [${error}]`);
|
|
@@ -23617,7 +23714,10 @@ ${newlined}
|
|
|
23617
23714
|
} else {
|
|
23618
23715
|
runnerEx.instrumentData.message = [];
|
|
23619
23716
|
}
|
|
23620
|
-
__privateGet(this, _telemetryProcessor).ProcessTelemetry(runnerEx.publishInstrumentController, runnerEx.instrumentData);
|
|
23717
|
+
const update = __privateGet(this, _telemetryProcessor).ProcessTelemetry(runnerEx.publishInstrumentController, runnerEx.instrumentData);
|
|
23718
|
+
if (update) {
|
|
23719
|
+
__privateGet(this, _rest01Client3).UpdateResourceEntity(workerEx.id, runnerEx, "running");
|
|
23720
|
+
}
|
|
23621
23721
|
if (workerEx.runnersEvents[runner.id]) {
|
|
23622
23722
|
const runnersEvents = workerEx.runnersEvents[runner.id];
|
|
23623
23723
|
runnersEvents.forEach((ev) => {
|
|
@@ -23637,6 +23737,7 @@ ${newlined}
|
|
|
23637
23737
|
ev.cb(workerEx.runnersEx[runner.id].instrumentData);
|
|
23638
23738
|
}
|
|
23639
23739
|
});
|
|
23740
|
+
__privateGet(this, _rest01Client3).UpdateResourceEntity(workerEx.id, runner, "completed");
|
|
23640
23741
|
}
|
|
23641
23742
|
console.log(chalk$1.green(`ProcessCompleted: [${JSON.stringify(runner)}]`));
|
|
23642
23743
|
});
|