@nsshunt/stsfhirclient 2.0.31 → 2.0.33
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/stsfhirclient.cjs +1 -41
- package/dist/stsfhirclient.cjs.map +1 -1
- package/dist/stsfhirclient.mjs +1 -41
- package/dist/stsfhirclient.mjs.map +1 -1
- package/package.json +13 -14
- package/types/cv2/fhirRESTClient.d.ts +1 -1
- package/types/cv2/fhirRESTClient.d.ts.map +1 -1
- package/types/cv2/fhirSocketClient.d.ts.map +1 -1
package/dist/stsfhirclient.cjs
CHANGED
|
@@ -9531,7 +9531,6 @@ var FhirRESTClient = class {
|
|
|
9531
9531
|
this.#options.logger.error(error);
|
|
9532
9532
|
console.error(error);
|
|
9533
9533
|
this.HandleError(error);
|
|
9534
|
-
process.exit(0);
|
|
9535
9534
|
};
|
|
9536
9535
|
LogWarning = (method, message) => {
|
|
9537
9536
|
this.#options.logger.warn(`FhirRESTClient:${method}(): Warn: [${message}]`);
|
|
@@ -13151,48 +13150,9 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
|
|
|
13151
13150
|
}
|
|
13152
13151
|
};
|
|
13153
13152
|
//#endregion
|
|
13154
|
-
//#region node_modules/uuid/dist/stringify.js
|
|
13155
|
-
var byteToHex = [];
|
|
13156
|
-
for (let i = 0; i < 256; ++i) byteToHex.push((i + 256).toString(16).slice(1));
|
|
13157
|
-
function unsafeStringify(arr, offset = 0) {
|
|
13158
|
-
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
13159
|
-
}
|
|
13160
|
-
//#endregion
|
|
13161
|
-
//#region node_modules/uuid/dist/rng.js
|
|
13162
|
-
var getRandomValues;
|
|
13163
|
-
var rnds8 = new Uint8Array(16);
|
|
13164
|
-
function rng() {
|
|
13165
|
-
if (!getRandomValues) {
|
|
13166
|
-
if (typeof crypto === "undefined" || !crypto.getRandomValues) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
13167
|
-
getRandomValues = crypto.getRandomValues.bind(crypto);
|
|
13168
|
-
}
|
|
13169
|
-
return getRandomValues(rnds8);
|
|
13170
|
-
}
|
|
13171
|
-
var native_default = { randomUUID: typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
|
|
13172
|
-
//#endregion
|
|
13173
|
-
//#region node_modules/uuid/dist/v4.js
|
|
13174
|
-
function _v4(options, buf, offset) {
|
|
13175
|
-
options = options || {};
|
|
13176
|
-
const rnds = options.random ?? options.rng?.() ?? rng();
|
|
13177
|
-
if (rnds.length < 16) throw new Error("Random bytes length must be >= 16");
|
|
13178
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
13179
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
13180
|
-
if (buf) {
|
|
13181
|
-
offset = offset || 0;
|
|
13182
|
-
if (offset < 0 || offset + 16 > buf.length) throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
13183
|
-
for (let i = 0; i < 16; ++i) buf[offset + i] = rnds[i];
|
|
13184
|
-
return buf;
|
|
13185
|
-
}
|
|
13186
|
-
return unsafeStringify(rnds);
|
|
13187
|
-
}
|
|
13188
|
-
function v4(options, buf, offset) {
|
|
13189
|
-
if (native_default.randomUUID && !buf && !options) return native_default.randomUUID();
|
|
13190
|
-
return _v4(options, buf, offset);
|
|
13191
|
-
}
|
|
13192
|
-
//#endregion
|
|
13193
13153
|
//#region src/cv2/fhirSocketClient.ts
|
|
13194
13154
|
var FhirSocketClient = class extends SocketIoClient {
|
|
13195
|
-
id =
|
|
13155
|
+
id = globalThis.crypto.randomUUID();
|
|
13196
13156
|
options;
|
|
13197
13157
|
accessToken = "";
|
|
13198
13158
|
constructor(clientName, options) {
|