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