@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.
@@ -9523,7 +9523,6 @@ var FhirRESTClient = class {
9523
9523
  this.#options.logger.error(error);
9524
9524
  console.error(error);
9525
9525
  this.HandleError(error);
9526
- process.exit(0);
9527
9526
  };
9528
9527
  LogWarning = (method, message) => {
9529
9528
  this.#options.logger.warn(`FhirRESTClient:${method}(): Warn: [${message}]`);
@@ -13143,48 +13142,9 @@ var SocketIoClient = class extends import_tiny_emitter.TinyEmitter {
13143
13142
  }
13144
13143
  };
13145
13144
  //#endregion
13146
- //#region node_modules/uuid/dist/stringify.js
13147
- var byteToHex = [];
13148
- for (let i = 0; i < 256; ++i) byteToHex.push((i + 256).toString(16).slice(1));
13149
- function unsafeStringify(arr, offset = 0) {
13150
- 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();
13151
- }
13152
- //#endregion
13153
- //#region node_modules/uuid/dist/rng.js
13154
- var getRandomValues;
13155
- var rnds8 = new Uint8Array(16);
13156
- function rng() {
13157
- if (!getRandomValues) {
13158
- if (typeof crypto === "undefined" || !crypto.getRandomValues) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
13159
- getRandomValues = crypto.getRandomValues.bind(crypto);
13160
- }
13161
- return getRandomValues(rnds8);
13162
- }
13163
- var native_default = { randomUUID: typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
13164
- //#endregion
13165
- //#region node_modules/uuid/dist/v4.js
13166
- function _v4(options, buf, offset) {
13167
- options = options || {};
13168
- const rnds = options.random ?? options.rng?.() ?? rng();
13169
- if (rnds.length < 16) throw new Error("Random bytes length must be >= 16");
13170
- rnds[6] = rnds[6] & 15 | 64;
13171
- rnds[8] = rnds[8] & 63 | 128;
13172
- if (buf) {
13173
- offset = offset || 0;
13174
- if (offset < 0 || offset + 16 > buf.length) throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
13175
- for (let i = 0; i < 16; ++i) buf[offset + i] = rnds[i];
13176
- return buf;
13177
- }
13178
- return unsafeStringify(rnds);
13179
- }
13180
- function v4(options, buf, offset) {
13181
- if (native_default.randomUUID && !buf && !options) return native_default.randomUUID();
13182
- return _v4(options, buf, offset);
13183
- }
13184
- //#endregion
13185
13145
  //#region src/cv2/fhirSocketClient.ts
13186
13146
  var FhirSocketClient = class extends SocketIoClient {
13187
- id = v4();
13147
+ id = globalThis.crypto.randomUUID();
13188
13148
  options;
13189
13149
  accessToken = "";
13190
13150
  constructor(clientName, options) {