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