@nsshunt/ststestrunner 1.0.80 → 1.0.82
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/ststestrunner.cjs +244 -183
- package/dist/ststestrunner.cjs.map +1 -1
- package/dist/ststestrunner.mjs +244 -183
- package/dist/ststestrunner.mjs.map +1 -1
- package/package.json +10 -10
- package/types/serviceinstance.d.ts +5 -3
- package/types/serviceinstance.d.ts.map +1 -1
package/dist/ststestrunner.cjs
CHANGED
|
@@ -2140,7 +2140,7 @@ var hasRequiredLodash_merge;
|
|
|
2140
2140
|
function requireLodash_merge() {
|
|
2141
2141
|
if (hasRequiredLodash_merge) return lodash_merge.exports;
|
|
2142
2142
|
hasRequiredLodash_merge = 1;
|
|
2143
|
-
(function(module2,
|
|
2143
|
+
(function(module2, exports$1) {
|
|
2144
2144
|
var LARGE_ARRAY_SIZE = 200;
|
|
2145
2145
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
2146
2146
|
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
@@ -2156,7 +2156,7 @@ function requireLodash_merge() {
|
|
|
2156
2156
|
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
2157
2157
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
2158
2158
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
2159
|
-
var freeExports =
|
|
2159
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
2160
2160
|
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
2161
2161
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
2162
2162
|
var freeProcess = moduleExports && freeGlobal.process;
|
|
@@ -4509,7 +4509,12 @@ const isFormData = (thing) => {
|
|
|
4509
4509
|
kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
|
|
4510
4510
|
};
|
|
4511
4511
|
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
4512
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
4512
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
4513
|
+
"ReadableStream",
|
|
4514
|
+
"Request",
|
|
4515
|
+
"Response",
|
|
4516
|
+
"Headers"
|
|
4517
|
+
].map(kindOfTest);
|
|
4513
4518
|
const trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
4514
4519
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
4515
4520
|
if (obj === null || typeof obj === "undefined") {
|
|
@@ -4562,6 +4567,9 @@ function merge() {
|
|
|
4562
4567
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
4563
4568
|
const result = {};
|
|
4564
4569
|
const assignValue = (val, key) => {
|
|
4570
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
4571
|
+
return;
|
|
4572
|
+
}
|
|
4565
4573
|
const targetKey = caseless && findKey(result, key) || key;
|
|
4566
4574
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
4567
4575
|
result[targetKey] = merge(result[targetKey], val);
|
|
@@ -4579,23 +4587,27 @@ function merge() {
|
|
|
4579
4587
|
return result;
|
|
4580
4588
|
}
|
|
4581
4589
|
const extend = (a2, b2, thisArg, { allOwnKeys } = {}) => {
|
|
4582
|
-
forEach(
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4590
|
+
forEach(
|
|
4591
|
+
b2,
|
|
4592
|
+
(val, key) => {
|
|
4593
|
+
if (thisArg && isFunction$1(val)) {
|
|
4594
|
+
Object.defineProperty(a2, key, {
|
|
4595
|
+
value: bind(val, thisArg),
|
|
4596
|
+
writable: true,
|
|
4597
|
+
enumerable: true,
|
|
4598
|
+
configurable: true
|
|
4599
|
+
});
|
|
4600
|
+
} else {
|
|
4601
|
+
Object.defineProperty(a2, key, {
|
|
4602
|
+
value: val,
|
|
4603
|
+
writable: true,
|
|
4604
|
+
enumerable: true,
|
|
4605
|
+
configurable: true
|
|
4606
|
+
});
|
|
4607
|
+
}
|
|
4608
|
+
},
|
|
4609
|
+
{ allOwnKeys }
|
|
4610
|
+
);
|
|
4599
4611
|
return a2;
|
|
4600
4612
|
};
|
|
4601
4613
|
const stripBOM = (content) => {
|
|
@@ -4605,7 +4617,10 @@ const stripBOM = (content) => {
|
|
|
4605
4617
|
return content;
|
|
4606
4618
|
};
|
|
4607
4619
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
4608
|
-
constructor.prototype = Object.create(
|
|
4620
|
+
constructor.prototype = Object.create(
|
|
4621
|
+
superConstructor.prototype,
|
|
4622
|
+
descriptors
|
|
4623
|
+
);
|
|
4609
4624
|
Object.defineProperty(constructor.prototype, "constructor", {
|
|
4610
4625
|
value: constructor,
|
|
4611
4626
|
writable: true,
|
|
@@ -4682,12 +4697,9 @@ const matchAll = (regExp, str) => {
|
|
|
4682
4697
|
};
|
|
4683
4698
|
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
4684
4699
|
const toCamelCase = (str) => {
|
|
4685
|
-
return str.toLowerCase().replace(
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
return p1.toUpperCase() + p2;
|
|
4689
|
-
}
|
|
4690
|
-
);
|
|
4700
|
+
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m2, p1, p2) {
|
|
4701
|
+
return p1.toUpperCase() + p2;
|
|
4702
|
+
});
|
|
4691
4703
|
};
|
|
4692
4704
|
const hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
4693
4705
|
const isRegExp = kindOfTest("RegExp");
|
|
@@ -4771,20 +4783,21 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
4771
4783
|
return setImmediate;
|
|
4772
4784
|
}
|
|
4773
4785
|
return postMessageSupported ? ((token, callbacks) => {
|
|
4774
|
-
_global.addEventListener(
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4786
|
+
_global.addEventListener(
|
|
4787
|
+
"message",
|
|
4788
|
+
({ source: source2, data }) => {
|
|
4789
|
+
if (source2 === _global && data === token) {
|
|
4790
|
+
callbacks.length && callbacks.shift()();
|
|
4791
|
+
}
|
|
4792
|
+
},
|
|
4793
|
+
false
|
|
4794
|
+
);
|
|
4779
4795
|
return (cb) => {
|
|
4780
4796
|
callbacks.push(cb);
|
|
4781
4797
|
_global.postMessage(token, "*");
|
|
4782
4798
|
};
|
|
4783
4799
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
4784
|
-
})(
|
|
4785
|
-
typeof setImmediate === "function",
|
|
4786
|
-
isFunction$1(_global.postMessage)
|
|
4787
|
-
);
|
|
4800
|
+
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
4788
4801
|
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
4789
4802
|
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
4790
4803
|
const utils$2 = {
|
|
@@ -5145,7 +5158,8 @@ class InterceptorManager {
|
|
|
5145
5158
|
const transitionalDefaults = {
|
|
5146
5159
|
silentJSONParsing: true,
|
|
5147
5160
|
forcedJSONParsing: true,
|
|
5148
|
-
clarifyTimeoutError: false
|
|
5161
|
+
clarifyTimeoutError: false,
|
|
5162
|
+
legacyInterceptorReqResOrdering: true
|
|
5149
5163
|
};
|
|
5150
5164
|
const URLSearchParams$1 = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
|
|
5151
5165
|
const FormData$1 = typeof FormData !== "undefined" ? FormData : null;
|
|
@@ -5814,6 +5828,9 @@ const cookies = platform.hasStandardBrowserEnv ? (
|
|
|
5814
5828
|
}
|
|
5815
5829
|
);
|
|
5816
5830
|
function isAbsoluteURL(url2) {
|
|
5831
|
+
if (typeof url2 !== "string") {
|
|
5832
|
+
return false;
|
|
5833
|
+
}
|
|
5817
5834
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
5818
5835
|
}
|
|
5819
5836
|
function combineURLs(baseURL, relativeURL) {
|
|
@@ -5897,11 +5914,16 @@ function mergeConfig$1(config1, config2) {
|
|
|
5897
5914
|
validateStatus: mergeDirectKeys,
|
|
5898
5915
|
headers: (a2, b2, prop) => mergeDeepProperties(headersToObject(a2), headersToObject(b2), prop, true)
|
|
5899
5916
|
};
|
|
5900
|
-
utils$2.forEach(
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5917
|
+
utils$2.forEach(
|
|
5918
|
+
Object.keys({ ...config1, ...config2 }),
|
|
5919
|
+
function computeConfigValue(prop) {
|
|
5920
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
|
|
5921
|
+
return;
|
|
5922
|
+
const merge2 = utils$2.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
5923
|
+
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
5924
|
+
utils$2.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
5925
|
+
}
|
|
5926
|
+
);
|
|
5905
5927
|
return config;
|
|
5906
5928
|
}
|
|
5907
5929
|
const resolveConfig = (config) => {
|
|
@@ -6353,13 +6375,13 @@ const factory = (env) => {
|
|
|
6353
6375
|
unsubscribe && unsubscribe();
|
|
6354
6376
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
6355
6377
|
throw Object.assign(
|
|
6356
|
-
new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request),
|
|
6378
|
+
new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request, err && err.response),
|
|
6357
6379
|
{
|
|
6358
6380
|
cause: err.cause || err
|
|
6359
6381
|
}
|
|
6360
6382
|
);
|
|
6361
6383
|
}
|
|
6362
|
-
throw AxiosError$1.from(err, err && err.code, config, request);
|
|
6384
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
6363
6385
|
}
|
|
6364
6386
|
};
|
|
6365
6387
|
};
|
|
@@ -6488,7 +6510,7 @@ function dispatchRequest(config) {
|
|
|
6488
6510
|
return Promise.reject(reason);
|
|
6489
6511
|
});
|
|
6490
6512
|
}
|
|
6491
|
-
const VERSION$1 = "1.13.
|
|
6513
|
+
const VERSION$1 = "1.13.5";
|
|
6492
6514
|
const validators$1 = {};
|
|
6493
6515
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
6494
6516
|
validators$1[type] = function validator2(thing) {
|
|
@@ -6601,7 +6623,8 @@ let Axios$1 = class Axios {
|
|
|
6601
6623
|
validator.assertOptions(transitional2, {
|
|
6602
6624
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
6603
6625
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
6604
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
6626
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
6627
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
6605
6628
|
}, false);
|
|
6606
6629
|
}
|
|
6607
6630
|
if (paramsSerializer != null) {
|
|
@@ -6645,7 +6668,13 @@ let Axios$1 = class Axios {
|
|
|
6645
6668
|
return;
|
|
6646
6669
|
}
|
|
6647
6670
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
6648
|
-
|
|
6671
|
+
const transitional3 = config.transitional || transitionalDefaults;
|
|
6672
|
+
const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
|
|
6673
|
+
if (legacyInterceptorReqResOrdering) {
|
|
6674
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
6675
|
+
} else {
|
|
6676
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
6677
|
+
}
|
|
6649
6678
|
});
|
|
6650
6679
|
const responseInterceptorChain = [];
|
|
6651
6680
|
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
@@ -8741,7 +8770,7 @@ function createPacketDecoderStream$1(maxPayload, binaryType) {
|
|
|
8741
8770
|
}
|
|
8742
8771
|
});
|
|
8743
8772
|
}
|
|
8744
|
-
const protocol$1
|
|
8773
|
+
const protocol$1 = 4;
|
|
8745
8774
|
const nextTick$1 = (() => {
|
|
8746
8775
|
const isPromiseAvailable = typeof Promise === "function" && typeof Promise.resolve === "function";
|
|
8747
8776
|
if (isPromiseAvailable) {
|
|
@@ -8945,7 +8974,7 @@ let Transport$1 = class Transport extends componentEmitter.Emitter {
|
|
|
8945
8974
|
return hostname.indexOf(":") === -1 ? hostname : "[" + hostname + "]";
|
|
8946
8975
|
}
|
|
8947
8976
|
_port() {
|
|
8948
|
-
if (this.opts.port && (this.opts.secure && Number(this.opts.port !== 443
|
|
8977
|
+
if (this.opts.port && (this.opts.secure && Number(this.opts.port) !== 443 || !this.opts.secure && Number(this.opts.port) !== 80)) {
|
|
8949
8978
|
return ":" + this.opts.port;
|
|
8950
8979
|
} else {
|
|
8951
8980
|
return "";
|
|
@@ -9649,7 +9678,7 @@ let SocketWithoutUpgrade$1 = class SocketWithoutUpgrade extends componentEmitter
|
|
|
9649
9678
|
*/
|
|
9650
9679
|
createTransport(name) {
|
|
9651
9680
|
const query = Object.assign({}, this.opts.query);
|
|
9652
|
-
query.EIO = protocol$1
|
|
9681
|
+
query.EIO = protocol$1;
|
|
9653
9682
|
query.transport = name;
|
|
9654
9683
|
if (this.id)
|
|
9655
9684
|
query.sid = this.id;
|
|
@@ -9978,7 +10007,7 @@ let SocketWithoutUpgrade$1 = class SocketWithoutUpgrade extends componentEmitter
|
|
|
9978
10007
|
}
|
|
9979
10008
|
}
|
|
9980
10009
|
};
|
|
9981
|
-
SocketWithoutUpgrade$1.protocol = protocol$1
|
|
10010
|
+
SocketWithoutUpgrade$1.protocol = protocol$1;
|
|
9982
10011
|
let SocketWithUpgrade$1 = class SocketWithUpgrade extends SocketWithoutUpgrade$1 {
|
|
9983
10012
|
constructor() {
|
|
9984
10013
|
super(...arguments);
|
|
@@ -10244,14 +10273,18 @@ function _reconstructPacket$1(data, buffers) {
|
|
|
10244
10273
|
}
|
|
10245
10274
|
const RESERVED_EVENTS$1$1 = [
|
|
10246
10275
|
"connect",
|
|
10276
|
+
// used on the client side
|
|
10247
10277
|
"connect_error",
|
|
10278
|
+
// used on the client side
|
|
10248
10279
|
"disconnect",
|
|
10280
|
+
// used on both sides
|
|
10249
10281
|
"disconnecting",
|
|
10282
|
+
// used on the server side
|
|
10250
10283
|
"newListener",
|
|
10284
|
+
// used by the Node.js EventEmitter
|
|
10251
10285
|
"removeListener"
|
|
10252
10286
|
// used by the Node.js EventEmitter
|
|
10253
10287
|
];
|
|
10254
|
-
const protocol$2 = 5;
|
|
10255
10288
|
var PacketType$1;
|
|
10256
10289
|
(function(PacketType2) {
|
|
10257
10290
|
PacketType2[PacketType2["CONNECT"] = 0] = "CONNECT";
|
|
@@ -10322,9 +10355,6 @@ let Encoder$1 = class Encoder {
|
|
|
10322
10355
|
return buffers;
|
|
10323
10356
|
}
|
|
10324
10357
|
};
|
|
10325
|
-
function isObject$1(value2) {
|
|
10326
|
-
return Object.prototype.toString.call(value2) === "[object Object]";
|
|
10327
|
-
}
|
|
10328
10358
|
let Decoder$1 = class Decoder extends componentEmitter.Emitter {
|
|
10329
10359
|
/**
|
|
10330
10360
|
* Decoder constructor
|
|
@@ -10496,14 +10526,16 @@ let BinaryReconstructor$1 = class BinaryReconstructor {
|
|
|
10496
10526
|
this.buffers = [];
|
|
10497
10527
|
}
|
|
10498
10528
|
};
|
|
10529
|
+
function isObject$1(value2) {
|
|
10530
|
+
return Object.prototype.toString.call(value2) === "[object Object]";
|
|
10531
|
+
}
|
|
10499
10532
|
const parser$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10500
10533
|
__proto__: null,
|
|
10501
10534
|
Decoder: Decoder$1,
|
|
10502
10535
|
Encoder: Encoder$1,
|
|
10503
10536
|
get PacketType() {
|
|
10504
10537
|
return PacketType$1;
|
|
10505
|
-
}
|
|
10506
|
-
protocol: protocol$2
|
|
10538
|
+
}
|
|
10507
10539
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10508
10540
|
function on$1(obj, ev, fn) {
|
|
10509
10541
|
obj.on(ev, fn);
|
|
@@ -11830,14 +11862,18 @@ let SocketIoClient$1 = class SocketIoClient extends tinyEmitterExports$1.TinyEmi
|
|
|
11830
11862
|
this.#EstablishSocketConnect();
|
|
11831
11863
|
return this;
|
|
11832
11864
|
}
|
|
11865
|
+
// Engine Errors / Events
|
|
11866
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11867
|
+
EngineError(error) {
|
|
11868
|
+
}
|
|
11833
11869
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11834
|
-
|
|
11870
|
+
EngineReconnectError(error) {
|
|
11835
11871
|
}
|
|
11836
11872
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11837
|
-
|
|
11873
|
+
EngineConnectError(error) {
|
|
11838
11874
|
}
|
|
11839
11875
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11840
|
-
|
|
11876
|
+
EngineReconnect(attempt) {
|
|
11841
11877
|
}
|
|
11842
11878
|
/*
|
|
11843
11879
|
emit<Ev extends EventNames<ClientToServerEvents>>(ev: Ev, ...args: EventParams<ClientToServerEvents, Ev>): Socket<ServerToClientEvents, ClientToServerEvents> {
|
|
@@ -11890,31 +11926,36 @@ let SocketIoClient$1 = class SocketIoClient extends tinyEmitterExports$1.TinyEmi
|
|
|
11890
11926
|
this.#socket = lookup$2(this.#address, socketOptions);
|
|
11891
11927
|
this.#socket.io.on("error", (err) => {
|
|
11892
11928
|
this.LogErrorMessage(`socketDetail.socket.io.on('error'): [${err}] Address: [${this.#address}]`);
|
|
11929
|
+
this.EngineError(err);
|
|
11893
11930
|
});
|
|
11894
11931
|
this.#socket.io.on("reconnect_error", (err) => {
|
|
11895
11932
|
this.LogErrorMessage(`socketDetail.socket.io.on('reconnect_error'): [${err}] Address: [${this.#address}]`);
|
|
11933
|
+
this.EngineReconnectError(err);
|
|
11896
11934
|
});
|
|
11897
11935
|
this.#socket.on("connect_error", (err) => {
|
|
11898
11936
|
this.LogErrorMessage(`socketDetail.socket.on('connect_error'): [${err}] Address: [${this.#address}]`);
|
|
11937
|
+
this.EngineConnectError(err);
|
|
11899
11938
|
});
|
|
11900
11939
|
this.#socket.io.on("reconnect", (attempt) => {
|
|
11901
11940
|
this.LogErrorMessage(`socketDetail.socket.io.on('reconnect'): Number: [${attempt}] Address: [${this.#address}]`);
|
|
11941
|
+
this.EngineReconnect(attempt);
|
|
11902
11942
|
});
|
|
11903
11943
|
this.#socket.on("connect", () => {
|
|
11904
11944
|
if (this.#socket) {
|
|
11905
11945
|
this.LogDebugMessage(`Socket: [${this.#socket.id}]: connected, Address: [${this.#address}]`);
|
|
11906
11946
|
setTimeout(() => {
|
|
11907
|
-
this.
|
|
11947
|
+
this.SocketConnect(this.#socket);
|
|
11908
11948
|
}, 0);
|
|
11909
|
-
this.
|
|
11949
|
+
this.SetupSocketEvents(this.#socket);
|
|
11910
11950
|
} else {
|
|
11911
11951
|
const errorMessage = "Could not get socket object from socket.io, Address: [${socketDetail.address}]";
|
|
11912
11952
|
this.LogErrorMessage(errorMessage);
|
|
11913
|
-
this.
|
|
11953
|
+
this.SocketConnectError(new Error(errorMessage));
|
|
11914
11954
|
}
|
|
11915
11955
|
});
|
|
11916
11956
|
this.#socket.on("disconnect", (reason) => {
|
|
11917
11957
|
this.LogDebugMessage("socket disconnect: " + reason);
|
|
11958
|
+
this.SocketDisconnect(reason);
|
|
11918
11959
|
switch (reason) {
|
|
11919
11960
|
case "io server disconnect":
|
|
11920
11961
|
{
|
|
@@ -12003,16 +12044,20 @@ class FhirSocketClient extends SocketIoClient$1 {
|
|
|
12003
12044
|
this.#options = options;
|
|
12004
12045
|
this.#SetupWSSClient();
|
|
12005
12046
|
}
|
|
12006
|
-
|
|
12047
|
+
SocketConnect(socket) {
|
|
12007
12048
|
this.LogDebugMessage(chalk.green(`FhirSocketClient:#OnSocketConnected(): ID: [${this.#id}] clientName: [${this.name}]: --> connected`));
|
|
12008
12049
|
if (this.#options.joinRooms.length > 0 && socket) {
|
|
12009
12050
|
socket.emit("__STSjoinRoom", this.#options.joinRooms);
|
|
12010
12051
|
}
|
|
12011
12052
|
}
|
|
12012
|
-
|
|
12053
|
+
SocketError(error) {
|
|
12013
12054
|
this.LogErrorMessage(`FhirSocketClient:#SetupWSSClient(): Error clientName: [${this.name}]: SetupClientSideSocket call back: Error: [${error}]`);
|
|
12014
12055
|
}
|
|
12015
|
-
|
|
12056
|
+
SocketConnectError(error) {
|
|
12057
|
+
}
|
|
12058
|
+
SocketDisconnect(reason) {
|
|
12059
|
+
}
|
|
12060
|
+
SetupSocketEvents(socket) {
|
|
12016
12061
|
}
|
|
12017
12062
|
#SetupWSSClient = async () => {
|
|
12018
12063
|
console.log(chalk.yellow(`FhirSocketClient:#SetupWSSClient(): ID: [${this.#id}] clientName: [${this.name}] Starting ...`));
|
|
@@ -12718,17 +12763,17 @@ var hasRequiredCode$1;
|
|
|
12718
12763
|
function requireCode$1() {
|
|
12719
12764
|
if (hasRequiredCode$1) return code$1;
|
|
12720
12765
|
hasRequiredCode$1 = 1;
|
|
12721
|
-
(function(
|
|
12722
|
-
Object.defineProperty(
|
|
12723
|
-
|
|
12766
|
+
(function(exports$1) {
|
|
12767
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
12768
|
+
exports$1.regexpCode = exports$1.getEsmExportName = exports$1.getProperty = exports$1.safeStringify = exports$1.stringify = exports$1.strConcat = exports$1.addCodeArg = exports$1.str = exports$1._ = exports$1.nil = exports$1._Code = exports$1.Name = exports$1.IDENTIFIER = exports$1._CodeOrName = void 0;
|
|
12724
12769
|
class _CodeOrName {
|
|
12725
12770
|
}
|
|
12726
|
-
|
|
12727
|
-
|
|
12771
|
+
exports$1._CodeOrName = _CodeOrName;
|
|
12772
|
+
exports$1.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
12728
12773
|
class Name extends _CodeOrName {
|
|
12729
12774
|
constructor(s2) {
|
|
12730
12775
|
super();
|
|
12731
|
-
if (!
|
|
12776
|
+
if (!exports$1.IDENTIFIER.test(s2))
|
|
12732
12777
|
throw new Error("CodeGen: name must be a valid identifier");
|
|
12733
12778
|
this.str = s2;
|
|
12734
12779
|
}
|
|
@@ -12742,7 +12787,7 @@ function requireCode$1() {
|
|
|
12742
12787
|
return { [this.str]: 1 };
|
|
12743
12788
|
}
|
|
12744
12789
|
}
|
|
12745
|
-
|
|
12790
|
+
exports$1.Name = Name;
|
|
12746
12791
|
class _Code extends _CodeOrName {
|
|
12747
12792
|
constructor(code2) {
|
|
12748
12793
|
super();
|
|
@@ -12770,8 +12815,8 @@ function requireCode$1() {
|
|
|
12770
12815
|
}, {});
|
|
12771
12816
|
}
|
|
12772
12817
|
}
|
|
12773
|
-
|
|
12774
|
-
|
|
12818
|
+
exports$1._Code = _Code;
|
|
12819
|
+
exports$1.nil = new _Code("");
|
|
12775
12820
|
function _2(strs, ...args) {
|
|
12776
12821
|
const code2 = [strs[0]];
|
|
12777
12822
|
let i = 0;
|
|
@@ -12781,7 +12826,7 @@ function requireCode$1() {
|
|
|
12781
12826
|
}
|
|
12782
12827
|
return new _Code(code2);
|
|
12783
12828
|
}
|
|
12784
|
-
|
|
12829
|
+
exports$1._ = _2;
|
|
12785
12830
|
const plus = new _Code("+");
|
|
12786
12831
|
function str(strs, ...args) {
|
|
12787
12832
|
const expr = [safeStringify(strs[0])];
|
|
@@ -12794,7 +12839,7 @@ function requireCode$1() {
|
|
|
12794
12839
|
optimize(expr);
|
|
12795
12840
|
return new _Code(expr);
|
|
12796
12841
|
}
|
|
12797
|
-
|
|
12842
|
+
exports$1.str = str;
|
|
12798
12843
|
function addCodeArg(code2, arg) {
|
|
12799
12844
|
if (arg instanceof _Code)
|
|
12800
12845
|
code2.push(...arg._items);
|
|
@@ -12803,7 +12848,7 @@ function requireCode$1() {
|
|
|
12803
12848
|
else
|
|
12804
12849
|
code2.push(interpolate(arg));
|
|
12805
12850
|
}
|
|
12806
|
-
|
|
12851
|
+
exports$1.addCodeArg = addCodeArg;
|
|
12807
12852
|
function optimize(expr) {
|
|
12808
12853
|
let i = 1;
|
|
12809
12854
|
while (i < expr.length - 1) {
|
|
@@ -12839,33 +12884,33 @@ function requireCode$1() {
|
|
|
12839
12884
|
function strConcat(c1, c2) {
|
|
12840
12885
|
return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`;
|
|
12841
12886
|
}
|
|
12842
|
-
|
|
12887
|
+
exports$1.strConcat = strConcat;
|
|
12843
12888
|
function interpolate(x2) {
|
|
12844
12889
|
return typeof x2 == "number" || typeof x2 == "boolean" || x2 === null ? x2 : safeStringify(Array.isArray(x2) ? x2.join(",") : x2);
|
|
12845
12890
|
}
|
|
12846
12891
|
function stringify(x2) {
|
|
12847
12892
|
return new _Code(safeStringify(x2));
|
|
12848
12893
|
}
|
|
12849
|
-
|
|
12894
|
+
exports$1.stringify = stringify;
|
|
12850
12895
|
function safeStringify(x2) {
|
|
12851
12896
|
return JSON.stringify(x2).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
12852
12897
|
}
|
|
12853
|
-
|
|
12898
|
+
exports$1.safeStringify = safeStringify;
|
|
12854
12899
|
function getProperty(key) {
|
|
12855
|
-
return typeof key == "string" &&
|
|
12900
|
+
return typeof key == "string" && exports$1.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _2`[${key}]`;
|
|
12856
12901
|
}
|
|
12857
|
-
|
|
12902
|
+
exports$1.getProperty = getProperty;
|
|
12858
12903
|
function getEsmExportName(key) {
|
|
12859
|
-
if (typeof key == "string" &&
|
|
12904
|
+
if (typeof key == "string" && exports$1.IDENTIFIER.test(key)) {
|
|
12860
12905
|
return new _Code(`${key}`);
|
|
12861
12906
|
}
|
|
12862
12907
|
throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
|
|
12863
12908
|
}
|
|
12864
|
-
|
|
12909
|
+
exports$1.getEsmExportName = getEsmExportName;
|
|
12865
12910
|
function regexpCode(rx) {
|
|
12866
12911
|
return new _Code(rx.toString());
|
|
12867
12912
|
}
|
|
12868
|
-
|
|
12913
|
+
exports$1.regexpCode = regexpCode;
|
|
12869
12914
|
})(code$1);
|
|
12870
12915
|
return code$1;
|
|
12871
12916
|
}
|
|
@@ -12874,9 +12919,9 @@ var hasRequiredScope;
|
|
|
12874
12919
|
function requireScope() {
|
|
12875
12920
|
if (hasRequiredScope) return scope;
|
|
12876
12921
|
hasRequiredScope = 1;
|
|
12877
|
-
(function(
|
|
12878
|
-
Object.defineProperty(
|
|
12879
|
-
|
|
12922
|
+
(function(exports$1) {
|
|
12923
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
12924
|
+
exports$1.ValueScope = exports$1.ValueScopeName = exports$1.Scope = exports$1.varKinds = exports$1.UsedValueState = void 0;
|
|
12880
12925
|
const code_1 = requireCode$1();
|
|
12881
12926
|
class ValueError extends Error {
|
|
12882
12927
|
constructor(name) {
|
|
@@ -12888,8 +12933,8 @@ function requireScope() {
|
|
|
12888
12933
|
(function(UsedValueState2) {
|
|
12889
12934
|
UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
|
|
12890
12935
|
UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
|
|
12891
|
-
})(UsedValueState || (
|
|
12892
|
-
|
|
12936
|
+
})(UsedValueState || (exports$1.UsedValueState = UsedValueState = {}));
|
|
12937
|
+
exports$1.varKinds = {
|
|
12893
12938
|
const: new code_1.Name("const"),
|
|
12894
12939
|
let: new code_1.Name("let"),
|
|
12895
12940
|
var: new code_1.Name("var")
|
|
@@ -12918,7 +12963,7 @@ function requireScope() {
|
|
|
12918
12963
|
return this._names[prefix] = { prefix, index: 0 };
|
|
12919
12964
|
}
|
|
12920
12965
|
}
|
|
12921
|
-
|
|
12966
|
+
exports$1.Scope = Scope;
|
|
12922
12967
|
class ValueScopeName extends code_1.Name {
|
|
12923
12968
|
constructor(prefix, nameStr) {
|
|
12924
12969
|
super(nameStr);
|
|
@@ -12929,7 +12974,7 @@ function requireScope() {
|
|
|
12929
12974
|
this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`;
|
|
12930
12975
|
}
|
|
12931
12976
|
}
|
|
12932
|
-
|
|
12977
|
+
exports$1.ValueScopeName = ValueScopeName;
|
|
12933
12978
|
const line = (0, code_1._)`\n`;
|
|
12934
12979
|
class ValueScope extends Scope {
|
|
12935
12980
|
constructor(opts) {
|
|
@@ -12999,7 +13044,7 @@ function requireScope() {
|
|
|
12999
13044
|
nameSet.set(name, UsedValueState.Started);
|
|
13000
13045
|
let c2 = valueCode(name);
|
|
13001
13046
|
if (c2) {
|
|
13002
|
-
const def = this.opts.es5 ?
|
|
13047
|
+
const def = this.opts.es5 ? exports$1.varKinds.var : exports$1.varKinds.const;
|
|
13003
13048
|
code2 = (0, code_1._)`${code2}${def} ${name} = ${c2};${this.opts._n}`;
|
|
13004
13049
|
} else if (c2 = getCode === null || getCode === void 0 ? void 0 : getCode(name)) {
|
|
13005
13050
|
code2 = (0, code_1._)`${code2}${c2}${this.opts._n}`;
|
|
@@ -13012,7 +13057,7 @@ function requireScope() {
|
|
|
13012
13057
|
return code2;
|
|
13013
13058
|
}
|
|
13014
13059
|
}
|
|
13015
|
-
|
|
13060
|
+
exports$1.ValueScope = ValueScope;
|
|
13016
13061
|
})(scope);
|
|
13017
13062
|
return scope;
|
|
13018
13063
|
}
|
|
@@ -13020,50 +13065,50 @@ var hasRequiredCodegen;
|
|
|
13020
13065
|
function requireCodegen() {
|
|
13021
13066
|
if (hasRequiredCodegen) return codegen;
|
|
13022
13067
|
hasRequiredCodegen = 1;
|
|
13023
|
-
(function(
|
|
13024
|
-
Object.defineProperty(
|
|
13025
|
-
|
|
13068
|
+
(function(exports$1) {
|
|
13069
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
13070
|
+
exports$1.or = exports$1.and = exports$1.not = exports$1.CodeGen = exports$1.operators = exports$1.varKinds = exports$1.ValueScopeName = exports$1.ValueScope = exports$1.Scope = exports$1.Name = exports$1.regexpCode = exports$1.stringify = exports$1.getProperty = exports$1.nil = exports$1.strConcat = exports$1.str = exports$1._ = void 0;
|
|
13026
13071
|
const code_1 = requireCode$1();
|
|
13027
13072
|
const scope_1 = requireScope();
|
|
13028
13073
|
var code_2 = requireCode$1();
|
|
13029
|
-
Object.defineProperty(
|
|
13074
|
+
Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
|
|
13030
13075
|
return code_2._;
|
|
13031
13076
|
} });
|
|
13032
|
-
Object.defineProperty(
|
|
13077
|
+
Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
|
|
13033
13078
|
return code_2.str;
|
|
13034
13079
|
} });
|
|
13035
|
-
Object.defineProperty(
|
|
13080
|
+
Object.defineProperty(exports$1, "strConcat", { enumerable: true, get: function() {
|
|
13036
13081
|
return code_2.strConcat;
|
|
13037
13082
|
} });
|
|
13038
|
-
Object.defineProperty(
|
|
13083
|
+
Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
|
|
13039
13084
|
return code_2.nil;
|
|
13040
13085
|
} });
|
|
13041
|
-
Object.defineProperty(
|
|
13086
|
+
Object.defineProperty(exports$1, "getProperty", { enumerable: true, get: function() {
|
|
13042
13087
|
return code_2.getProperty;
|
|
13043
13088
|
} });
|
|
13044
|
-
Object.defineProperty(
|
|
13089
|
+
Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
|
|
13045
13090
|
return code_2.stringify;
|
|
13046
13091
|
} });
|
|
13047
|
-
Object.defineProperty(
|
|
13092
|
+
Object.defineProperty(exports$1, "regexpCode", { enumerable: true, get: function() {
|
|
13048
13093
|
return code_2.regexpCode;
|
|
13049
13094
|
} });
|
|
13050
|
-
Object.defineProperty(
|
|
13095
|
+
Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
|
|
13051
13096
|
return code_2.Name;
|
|
13052
13097
|
} });
|
|
13053
13098
|
var scope_2 = requireScope();
|
|
13054
|
-
Object.defineProperty(
|
|
13099
|
+
Object.defineProperty(exports$1, "Scope", { enumerable: true, get: function() {
|
|
13055
13100
|
return scope_2.Scope;
|
|
13056
13101
|
} });
|
|
13057
|
-
Object.defineProperty(
|
|
13102
|
+
Object.defineProperty(exports$1, "ValueScope", { enumerable: true, get: function() {
|
|
13058
13103
|
return scope_2.ValueScope;
|
|
13059
13104
|
} });
|
|
13060
|
-
Object.defineProperty(
|
|
13105
|
+
Object.defineProperty(exports$1, "ValueScopeName", { enumerable: true, get: function() {
|
|
13061
13106
|
return scope_2.ValueScopeName;
|
|
13062
13107
|
} });
|
|
13063
|
-
Object.defineProperty(
|
|
13108
|
+
Object.defineProperty(exports$1, "varKinds", { enumerable: true, get: function() {
|
|
13064
13109
|
return scope_2.varKinds;
|
|
13065
13110
|
} });
|
|
13066
|
-
|
|
13111
|
+
exports$1.operators = {
|
|
13067
13112
|
GT: new code_1._Code(">"),
|
|
13068
13113
|
GTE: new code_1._Code(">="),
|
|
13069
13114
|
LT: new code_1._Code("<"),
|
|
@@ -13476,7 +13521,7 @@ function requireCodegen() {
|
|
|
13476
13521
|
}
|
|
13477
13522
|
// `+=` code
|
|
13478
13523
|
add(lhs, rhs) {
|
|
13479
|
-
return this._leafNode(new AssignOp(lhs,
|
|
13524
|
+
return this._leafNode(new AssignOp(lhs, exports$1.operators.ADD, rhs));
|
|
13480
13525
|
}
|
|
13481
13526
|
// appends passed SafeExpr to code or executes Block
|
|
13482
13527
|
code(c2) {
|
|
@@ -13676,7 +13721,7 @@ function requireCodegen() {
|
|
|
13676
13721
|
ns[ns.length - 1] = node;
|
|
13677
13722
|
}
|
|
13678
13723
|
}
|
|
13679
|
-
|
|
13724
|
+
exports$1.CodeGen = CodeGen;
|
|
13680
13725
|
function addNames(names2, from) {
|
|
13681
13726
|
for (const n2 in from)
|
|
13682
13727
|
names2[n2] = (names2[n2] || 0) + (from[n2] || 0);
|
|
@@ -13717,17 +13762,17 @@ function requireCodegen() {
|
|
|
13717
13762
|
function not2(x2) {
|
|
13718
13763
|
return typeof x2 == "boolean" || typeof x2 == "number" || x2 === null ? !x2 : (0, code_1._)`!${par(x2)}`;
|
|
13719
13764
|
}
|
|
13720
|
-
|
|
13721
|
-
const andCode = mappend(
|
|
13765
|
+
exports$1.not = not2;
|
|
13766
|
+
const andCode = mappend(exports$1.operators.AND);
|
|
13722
13767
|
function and(...args) {
|
|
13723
13768
|
return args.reduce(andCode);
|
|
13724
13769
|
}
|
|
13725
|
-
|
|
13726
|
-
const orCode = mappend(
|
|
13770
|
+
exports$1.and = and;
|
|
13771
|
+
const orCode = mappend(exports$1.operators.OR);
|
|
13727
13772
|
function or2(...args) {
|
|
13728
13773
|
return args.reduce(orCode);
|
|
13729
13774
|
}
|
|
13730
|
-
|
|
13775
|
+
exports$1.or = or2;
|
|
13731
13776
|
function mappend(op) {
|
|
13732
13777
|
return (x2, y2) => x2 === code_1.nil ? y2 : y2 === code_1.nil ? x2 : (0, code_1._)`${par(x2)} ${op} ${par(y2)}`;
|
|
13733
13778
|
}
|
|
@@ -13947,19 +13992,19 @@ var hasRequiredErrors;
|
|
|
13947
13992
|
function requireErrors() {
|
|
13948
13993
|
if (hasRequiredErrors) return errors;
|
|
13949
13994
|
hasRequiredErrors = 1;
|
|
13950
|
-
(function(
|
|
13951
|
-
Object.defineProperty(
|
|
13952
|
-
|
|
13995
|
+
(function(exports$1) {
|
|
13996
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
13997
|
+
exports$1.extendErrors = exports$1.resetErrorsCount = exports$1.reportExtraError = exports$1.reportError = exports$1.keyword$DataError = exports$1.keywordError = void 0;
|
|
13953
13998
|
const codegen_1 = requireCodegen();
|
|
13954
13999
|
const util_1 = requireUtil();
|
|
13955
14000
|
const names_1 = requireNames();
|
|
13956
|
-
|
|
14001
|
+
exports$1.keywordError = {
|
|
13957
14002
|
message: ({ keyword: keyword2 }) => (0, codegen_1.str)`must pass "${keyword2}" keyword validation`
|
|
13958
14003
|
};
|
|
13959
|
-
|
|
14004
|
+
exports$1.keyword$DataError = {
|
|
13960
14005
|
message: ({ keyword: keyword2, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword2}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword2}" keyword is invalid ($data)`
|
|
13961
14006
|
};
|
|
13962
|
-
function reportError(cxt, error =
|
|
14007
|
+
function reportError(cxt, error = exports$1.keywordError, errorPaths, overrideAllErrors) {
|
|
13963
14008
|
const { it: it2 } = cxt;
|
|
13964
14009
|
const { gen, compositeRule, allErrors } = it2;
|
|
13965
14010
|
const errObj = errorObjectCode(cxt, error, errorPaths);
|
|
@@ -13969,8 +14014,8 @@ function requireErrors() {
|
|
|
13969
14014
|
returnErrors(it2, (0, codegen_1._)`[${errObj}]`);
|
|
13970
14015
|
}
|
|
13971
14016
|
}
|
|
13972
|
-
|
|
13973
|
-
function reportExtraError(cxt, error =
|
|
14017
|
+
exports$1.reportError = reportError;
|
|
14018
|
+
function reportExtraError(cxt, error = exports$1.keywordError, errorPaths) {
|
|
13974
14019
|
const { it: it2 } = cxt;
|
|
13975
14020
|
const { gen, compositeRule, allErrors } = it2;
|
|
13976
14021
|
const errObj = errorObjectCode(cxt, error, errorPaths);
|
|
@@ -13979,12 +14024,12 @@ function requireErrors() {
|
|
|
13979
14024
|
returnErrors(it2, names_1.default.vErrors);
|
|
13980
14025
|
}
|
|
13981
14026
|
}
|
|
13982
|
-
|
|
14027
|
+
exports$1.reportExtraError = reportExtraError;
|
|
13983
14028
|
function resetErrorsCount(gen, errsCount) {
|
|
13984
14029
|
gen.assign(names_1.default.errors, errsCount);
|
|
13985
14030
|
gen.if((0, codegen_1._)`${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._)`${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));
|
|
13986
14031
|
}
|
|
13987
|
-
|
|
14032
|
+
exports$1.resetErrorsCount = resetErrorsCount;
|
|
13988
14033
|
function extendErrors({ gen, keyword: keyword2, schemaValue, data, errsCount, it: it2 }) {
|
|
13989
14034
|
if (errsCount === void 0)
|
|
13990
14035
|
throw new Error("ajv implementation error");
|
|
@@ -13999,7 +14044,7 @@ function requireErrors() {
|
|
|
13999
14044
|
}
|
|
14000
14045
|
});
|
|
14001
14046
|
}
|
|
14002
|
-
|
|
14047
|
+
exports$1.extendErrors = extendErrors;
|
|
14003
14048
|
function addError(gen, errObj) {
|
|
14004
14049
|
const err = gen.const("err", errObj);
|
|
14005
14050
|
gen.if((0, codegen_1._)`${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._)`[${err}]`), (0, codegen_1._)`${names_1.default.vErrors}.push(${err})`);
|
|
@@ -16518,30 +16563,30 @@ var hasRequiredCore$1;
|
|
|
16518
16563
|
function requireCore$1() {
|
|
16519
16564
|
if (hasRequiredCore$1) return core$1;
|
|
16520
16565
|
hasRequiredCore$1 = 1;
|
|
16521
|
-
(function(
|
|
16522
|
-
Object.defineProperty(
|
|
16523
|
-
|
|
16566
|
+
(function(exports$1) {
|
|
16567
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
16568
|
+
exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = void 0;
|
|
16524
16569
|
var validate_1 = requireValidate();
|
|
16525
|
-
Object.defineProperty(
|
|
16570
|
+
Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
|
|
16526
16571
|
return validate_1.KeywordCxt;
|
|
16527
16572
|
} });
|
|
16528
16573
|
var codegen_1 = requireCodegen();
|
|
16529
|
-
Object.defineProperty(
|
|
16574
|
+
Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
|
|
16530
16575
|
return codegen_1._;
|
|
16531
16576
|
} });
|
|
16532
|
-
Object.defineProperty(
|
|
16577
|
+
Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
|
|
16533
16578
|
return codegen_1.str;
|
|
16534
16579
|
} });
|
|
16535
|
-
Object.defineProperty(
|
|
16580
|
+
Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
|
|
16536
16581
|
return codegen_1.stringify;
|
|
16537
16582
|
} });
|
|
16538
|
-
Object.defineProperty(
|
|
16583
|
+
Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
|
|
16539
16584
|
return codegen_1.nil;
|
|
16540
16585
|
} });
|
|
16541
|
-
Object.defineProperty(
|
|
16586
|
+
Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
|
|
16542
16587
|
return codegen_1.Name;
|
|
16543
16588
|
} });
|
|
16544
|
-
Object.defineProperty(
|
|
16589
|
+
Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function() {
|
|
16545
16590
|
return codegen_1.CodeGen;
|
|
16546
16591
|
} });
|
|
16547
16592
|
const validation_error_1 = requireValidation_error();
|
|
@@ -16995,7 +17040,7 @@ function requireCore$1() {
|
|
|
16995
17040
|
}
|
|
16996
17041
|
Ajv2.ValidationError = validation_error_1.default;
|
|
16997
17042
|
Ajv2.MissingRefError = ref_error_1.default;
|
|
16998
|
-
|
|
17043
|
+
exports$1.default = Ajv2;
|
|
16999
17044
|
function checkOptions(checkOpts, options, msg, log = "error") {
|
|
17000
17045
|
for (const key in checkOpts) {
|
|
17001
17046
|
const opt = key;
|
|
@@ -18027,13 +18072,13 @@ var hasRequiredDependencies;
|
|
|
18027
18072
|
function requireDependencies() {
|
|
18028
18073
|
if (hasRequiredDependencies) return dependencies;
|
|
18029
18074
|
hasRequiredDependencies = 1;
|
|
18030
|
-
(function(
|
|
18031
|
-
Object.defineProperty(
|
|
18032
|
-
|
|
18075
|
+
(function(exports$1) {
|
|
18076
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
18077
|
+
exports$1.validateSchemaDeps = exports$1.validatePropertyDeps = exports$1.error = void 0;
|
|
18033
18078
|
const codegen_1 = requireCodegen();
|
|
18034
18079
|
const util_1 = requireUtil();
|
|
18035
18080
|
const code_1 = requireCode();
|
|
18036
|
-
|
|
18081
|
+
exports$1.error = {
|
|
18037
18082
|
message: ({ params: { property, depsCount, deps } }) => {
|
|
18038
18083
|
const property_ies = depsCount === 1 ? "property" : "properties";
|
|
18039
18084
|
return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
|
|
@@ -18048,7 +18093,7 @@ function requireDependencies() {
|
|
|
18048
18093
|
keyword: "dependencies",
|
|
18049
18094
|
type: "object",
|
|
18050
18095
|
schemaType: "object",
|
|
18051
|
-
error:
|
|
18096
|
+
error: exports$1.error,
|
|
18052
18097
|
code(cxt) {
|
|
18053
18098
|
const [propDeps, schDeps] = splitDependencies(cxt);
|
|
18054
18099
|
validatePropertyDeps(cxt, propDeps);
|
|
@@ -18094,7 +18139,7 @@ function requireDependencies() {
|
|
|
18094
18139
|
}
|
|
18095
18140
|
}
|
|
18096
18141
|
}
|
|
18097
|
-
|
|
18142
|
+
exports$1.validatePropertyDeps = validatePropertyDeps;
|
|
18098
18143
|
function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
|
|
18099
18144
|
const { gen, data, keyword: keyword2, it: it2 } = cxt;
|
|
18100
18145
|
const valid = gen.name("valid");
|
|
@@ -18113,8 +18158,8 @@ function requireDependencies() {
|
|
|
18113
18158
|
cxt.ok(valid);
|
|
18114
18159
|
}
|
|
18115
18160
|
}
|
|
18116
|
-
|
|
18117
|
-
|
|
18161
|
+
exports$1.validateSchemaDeps = validateSchemaDeps;
|
|
18162
|
+
exports$1.default = def;
|
|
18118
18163
|
})(dependencies);
|
|
18119
18164
|
return dependencies;
|
|
18120
18165
|
}
|
|
@@ -18949,9 +18994,9 @@ var hasRequiredAjv;
|
|
|
18949
18994
|
function requireAjv() {
|
|
18950
18995
|
if (hasRequiredAjv) return ajv.exports;
|
|
18951
18996
|
hasRequiredAjv = 1;
|
|
18952
|
-
(function(module2,
|
|
18953
|
-
Object.defineProperty(
|
|
18954
|
-
|
|
18997
|
+
(function(module2, exports$1) {
|
|
18998
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
18999
|
+
exports$1.MissingRefError = exports$1.ValidationError = exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = exports$1.Ajv = void 0;
|
|
18955
19000
|
const core_1 = requireCore$1();
|
|
18956
19001
|
const draft7_1 = requireDraft7();
|
|
18957
19002
|
const discriminator_1 = requireDiscriminator();
|
|
@@ -18977,40 +19022,40 @@ function requireAjv() {
|
|
|
18977
19022
|
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
|
|
18978
19023
|
}
|
|
18979
19024
|
}
|
|
18980
|
-
|
|
18981
|
-
module2.exports =
|
|
19025
|
+
exports$1.Ajv = Ajv2;
|
|
19026
|
+
module2.exports = exports$1 = Ajv2;
|
|
18982
19027
|
module2.exports.Ajv = Ajv2;
|
|
18983
|
-
Object.defineProperty(
|
|
18984
|
-
|
|
19028
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
19029
|
+
exports$1.default = Ajv2;
|
|
18985
19030
|
var validate_1 = requireValidate();
|
|
18986
|
-
Object.defineProperty(
|
|
19031
|
+
Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
|
|
18987
19032
|
return validate_1.KeywordCxt;
|
|
18988
19033
|
} });
|
|
18989
19034
|
var codegen_1 = requireCodegen();
|
|
18990
|
-
Object.defineProperty(
|
|
19035
|
+
Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
|
|
18991
19036
|
return codegen_1._;
|
|
18992
19037
|
} });
|
|
18993
|
-
Object.defineProperty(
|
|
19038
|
+
Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
|
|
18994
19039
|
return codegen_1.str;
|
|
18995
19040
|
} });
|
|
18996
|
-
Object.defineProperty(
|
|
19041
|
+
Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
|
|
18997
19042
|
return codegen_1.stringify;
|
|
18998
19043
|
} });
|
|
18999
|
-
Object.defineProperty(
|
|
19044
|
+
Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
|
|
19000
19045
|
return codegen_1.nil;
|
|
19001
19046
|
} });
|
|
19002
|
-
Object.defineProperty(
|
|
19047
|
+
Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
|
|
19003
19048
|
return codegen_1.Name;
|
|
19004
19049
|
} });
|
|
19005
|
-
Object.defineProperty(
|
|
19050
|
+
Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function() {
|
|
19006
19051
|
return codegen_1.CodeGen;
|
|
19007
19052
|
} });
|
|
19008
19053
|
var validation_error_1 = requireValidation_error();
|
|
19009
|
-
Object.defineProperty(
|
|
19054
|
+
Object.defineProperty(exports$1, "ValidationError", { enumerable: true, get: function() {
|
|
19010
19055
|
return validation_error_1.default;
|
|
19011
19056
|
} });
|
|
19012
19057
|
var ref_error_1 = requireRef_error();
|
|
19013
|
-
Object.defineProperty(
|
|
19058
|
+
Object.defineProperty(exports$1, "MissingRefError", { enumerable: true, get: function() {
|
|
19014
19059
|
return ref_error_1.default;
|
|
19015
19060
|
} });
|
|
19016
19061
|
})(ajv, ajv.exports);
|
|
@@ -22580,7 +22625,7 @@ function createPacketDecoderStream(maxPayload, binaryType) {
|
|
|
22580
22625
|
}
|
|
22581
22626
|
});
|
|
22582
22627
|
}
|
|
22583
|
-
const protocol
|
|
22628
|
+
const protocol = 4;
|
|
22584
22629
|
const nextTick = (() => {
|
|
22585
22630
|
const isPromiseAvailable = typeof Promise === "function" && typeof Promise.resolve === "function";
|
|
22586
22631
|
if (isPromiseAvailable) {
|
|
@@ -22784,7 +22829,7 @@ class Transport2 extends componentEmitter.Emitter {
|
|
|
22784
22829
|
return hostname.indexOf(":") === -1 ? hostname : "[" + hostname + "]";
|
|
22785
22830
|
}
|
|
22786
22831
|
_port() {
|
|
22787
|
-
if (this.opts.port && (this.opts.secure && Number(this.opts.port !== 443
|
|
22832
|
+
if (this.opts.port && (this.opts.secure && Number(this.opts.port) !== 443 || !this.opts.secure && Number(this.opts.port) !== 80)) {
|
|
22788
22833
|
return ":" + this.opts.port;
|
|
22789
22834
|
} else {
|
|
22790
22835
|
return "";
|
|
@@ -23488,7 +23533,7 @@ class SocketWithoutUpgrade2 extends componentEmitter.Emitter {
|
|
|
23488
23533
|
*/
|
|
23489
23534
|
createTransport(name) {
|
|
23490
23535
|
const query = Object.assign({}, this.opts.query);
|
|
23491
|
-
query.EIO = protocol
|
|
23536
|
+
query.EIO = protocol;
|
|
23492
23537
|
query.transport = name;
|
|
23493
23538
|
if (this.id)
|
|
23494
23539
|
query.sid = this.id;
|
|
@@ -23817,7 +23862,7 @@ class SocketWithoutUpgrade2 extends componentEmitter.Emitter {
|
|
|
23817
23862
|
}
|
|
23818
23863
|
}
|
|
23819
23864
|
}
|
|
23820
|
-
SocketWithoutUpgrade2.protocol = protocol
|
|
23865
|
+
SocketWithoutUpgrade2.protocol = protocol;
|
|
23821
23866
|
class SocketWithUpgrade2 extends SocketWithoutUpgrade2 {
|
|
23822
23867
|
constructor() {
|
|
23823
23868
|
super(...arguments);
|
|
@@ -24083,14 +24128,18 @@ function _reconstructPacket(data, buffers) {
|
|
|
24083
24128
|
}
|
|
24084
24129
|
const RESERVED_EVENTS$1 = [
|
|
24085
24130
|
"connect",
|
|
24131
|
+
// used on the client side
|
|
24086
24132
|
"connect_error",
|
|
24133
|
+
// used on the client side
|
|
24087
24134
|
"disconnect",
|
|
24135
|
+
// used on both sides
|
|
24088
24136
|
"disconnecting",
|
|
24137
|
+
// used on the server side
|
|
24089
24138
|
"newListener",
|
|
24139
|
+
// used by the Node.js EventEmitter
|
|
24090
24140
|
"removeListener"
|
|
24091
24141
|
// used by the Node.js EventEmitter
|
|
24092
24142
|
];
|
|
24093
|
-
const protocol = 5;
|
|
24094
24143
|
var PacketType;
|
|
24095
24144
|
(function(PacketType2) {
|
|
24096
24145
|
PacketType2[PacketType2["CONNECT"] = 0] = "CONNECT";
|
|
@@ -24161,9 +24210,6 @@ class Encoder2 {
|
|
|
24161
24210
|
return buffers;
|
|
24162
24211
|
}
|
|
24163
24212
|
}
|
|
24164
|
-
function isObject(value2) {
|
|
24165
|
-
return Object.prototype.toString.call(value2) === "[object Object]";
|
|
24166
|
-
}
|
|
24167
24213
|
class Decoder2 extends componentEmitter.Emitter {
|
|
24168
24214
|
/**
|
|
24169
24215
|
* Decoder constructor
|
|
@@ -24335,14 +24381,16 @@ class BinaryReconstructor2 {
|
|
|
24335
24381
|
this.buffers = [];
|
|
24336
24382
|
}
|
|
24337
24383
|
}
|
|
24384
|
+
function isObject(value2) {
|
|
24385
|
+
return Object.prototype.toString.call(value2) === "[object Object]";
|
|
24386
|
+
}
|
|
24338
24387
|
const parser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24339
24388
|
__proto__: null,
|
|
24340
24389
|
Decoder: Decoder2,
|
|
24341
24390
|
Encoder: Encoder2,
|
|
24342
24391
|
get PacketType() {
|
|
24343
24392
|
return PacketType;
|
|
24344
|
-
}
|
|
24345
|
-
protocol
|
|
24393
|
+
}
|
|
24346
24394
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
24347
24395
|
function on(obj, ev, fn) {
|
|
24348
24396
|
obj.on(ev, fn);
|
|
@@ -25669,14 +25717,18 @@ class SocketIoClient2 extends tinyEmitterExports.TinyEmitter {
|
|
|
25669
25717
|
this.#EstablishSocketConnect();
|
|
25670
25718
|
return this;
|
|
25671
25719
|
}
|
|
25720
|
+
// Engine Errors / Events
|
|
25672
25721
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
25673
|
-
|
|
25722
|
+
EngineError(error) {
|
|
25674
25723
|
}
|
|
25675
25724
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
25676
|
-
|
|
25725
|
+
EngineReconnectError(error) {
|
|
25677
25726
|
}
|
|
25678
25727
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
25679
|
-
|
|
25728
|
+
EngineConnectError(error) {
|
|
25729
|
+
}
|
|
25730
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
25731
|
+
EngineReconnect(attempt) {
|
|
25680
25732
|
}
|
|
25681
25733
|
/*
|
|
25682
25734
|
emit<Ev extends EventNames<ClientToServerEvents>>(ev: Ev, ...args: EventParams<ClientToServerEvents, Ev>): Socket<ServerToClientEvents, ClientToServerEvents> {
|
|
@@ -25729,31 +25781,36 @@ class SocketIoClient2 extends tinyEmitterExports.TinyEmitter {
|
|
|
25729
25781
|
this.#socket = lookup(this.#address, socketOptions);
|
|
25730
25782
|
this.#socket.io.on("error", (err) => {
|
|
25731
25783
|
this.LogErrorMessage(`socketDetail.socket.io.on('error'): [${err}] Address: [${this.#address}]`);
|
|
25784
|
+
this.EngineError(err);
|
|
25732
25785
|
});
|
|
25733
25786
|
this.#socket.io.on("reconnect_error", (err) => {
|
|
25734
25787
|
this.LogErrorMessage(`socketDetail.socket.io.on('reconnect_error'): [${err}] Address: [${this.#address}]`);
|
|
25788
|
+
this.EngineReconnectError(err);
|
|
25735
25789
|
});
|
|
25736
25790
|
this.#socket.on("connect_error", (err) => {
|
|
25737
25791
|
this.LogErrorMessage(`socketDetail.socket.on('connect_error'): [${err}] Address: [${this.#address}]`);
|
|
25792
|
+
this.EngineConnectError(err);
|
|
25738
25793
|
});
|
|
25739
25794
|
this.#socket.io.on("reconnect", (attempt) => {
|
|
25740
25795
|
this.LogErrorMessage(`socketDetail.socket.io.on('reconnect'): Number: [${attempt}] Address: [${this.#address}]`);
|
|
25796
|
+
this.EngineReconnect(attempt);
|
|
25741
25797
|
});
|
|
25742
25798
|
this.#socket.on("connect", () => {
|
|
25743
25799
|
if (this.#socket) {
|
|
25744
25800
|
this.LogDebugMessage(`Socket: [${this.#socket.id}]: connected, Address: [${this.#address}]`);
|
|
25745
25801
|
setTimeout(() => {
|
|
25746
|
-
this.
|
|
25802
|
+
this.SocketConnect(this.#socket);
|
|
25747
25803
|
}, 0);
|
|
25748
|
-
this.
|
|
25804
|
+
this.SetupSocketEvents(this.#socket);
|
|
25749
25805
|
} else {
|
|
25750
25806
|
const errorMessage = "Could not get socket object from socket.io, Address: [${socketDetail.address}]";
|
|
25751
25807
|
this.LogErrorMessage(errorMessage);
|
|
25752
|
-
this.
|
|
25808
|
+
this.SocketConnectError(new Error(errorMessage));
|
|
25753
25809
|
}
|
|
25754
25810
|
});
|
|
25755
25811
|
this.#socket.on("disconnect", (reason) => {
|
|
25756
25812
|
this.LogDebugMessage("socket disconnect: " + reason);
|
|
25813
|
+
this.SocketDisconnect(reason);
|
|
25757
25814
|
switch (reason) {
|
|
25758
25815
|
case "io server disconnect":
|
|
25759
25816
|
{
|
|
@@ -26430,19 +26487,23 @@ class ServiceInstance extends SocketIoClient2 {
|
|
|
26430
26487
|
};
|
|
26431
26488
|
start();
|
|
26432
26489
|
}
|
|
26490
|
+
SocketConnectError(error) {
|
|
26491
|
+
}
|
|
26492
|
+
SocketDisconnect(reason) {
|
|
26493
|
+
}
|
|
26433
26494
|
get workerManager() {
|
|
26434
26495
|
return this.#wm;
|
|
26435
26496
|
}
|
|
26436
26497
|
get id() {
|
|
26437
26498
|
return this.#id;
|
|
26438
26499
|
}
|
|
26439
|
-
|
|
26500
|
+
SocketConnect(socket) {
|
|
26440
26501
|
this.#OnSocketConnected(socket, this.name, []);
|
|
26441
26502
|
}
|
|
26442
|
-
|
|
26503
|
+
SocketError(error) {
|
|
26443
26504
|
this.#error(`${this.name}: SetupClientSideSocket call back: [${error}]`);
|
|
26444
26505
|
}
|
|
26445
|
-
|
|
26506
|
+
SetupSocketEvents(socket) {
|
|
26446
26507
|
this.#RegisterSocketEvents(socket, this.name);
|
|
26447
26508
|
}
|
|
26448
26509
|
#GetKeyPayloadData = (eventRequestCommand, eventReturnValueBaseType) => {
|