@volley/recognition-client-sdk 0.1.381 → 0.1.382
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/index.js +3828 -90
- package/dist/index.js.map +4 -4
- package/dist/recog-client-sdk.browser.js +11 -5
- package/dist/recog-client-sdk.browser.js.map +3 -3
- package/package.json +3 -3
|
@@ -4740,7 +4740,7 @@ var WebSocketAudioClient = class {
|
|
|
4740
4740
|
// ../../libs/websocket/dist/core/audio-upload-websocket-server.js
|
|
4741
4741
|
import { WebSocketServer, WebSocket as WebSocket2 } from "ws";
|
|
4742
4742
|
|
|
4743
|
-
// ../../node_modules/.pnpm/uuid@11.
|
|
4743
|
+
// ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/stringify.js
|
|
4744
4744
|
var byteToHex = [];
|
|
4745
4745
|
for (let i = 0; i < 256; ++i) {
|
|
4746
4746
|
byteToHex.push((i + 256).toString(16).slice(1));
|
|
@@ -4749,7 +4749,7 @@ function unsafeStringify(arr, offset = 0) {
|
|
|
4749
4749
|
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();
|
|
4750
4750
|
}
|
|
4751
4751
|
|
|
4752
|
-
// ../../node_modules/.pnpm/uuid@11.
|
|
4752
|
+
// ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/rng.js
|
|
4753
4753
|
var getRandomValues;
|
|
4754
4754
|
var rnds8 = new Uint8Array(16);
|
|
4755
4755
|
function rng() {
|
|
@@ -4762,21 +4762,27 @@ function rng() {
|
|
|
4762
4762
|
return getRandomValues(rnds8);
|
|
4763
4763
|
}
|
|
4764
4764
|
|
|
4765
|
-
// ../../node_modules/.pnpm/uuid@11.
|
|
4765
|
+
// ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/native.js
|
|
4766
4766
|
var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
4767
4767
|
var native_default = { randomUUID };
|
|
4768
4768
|
|
|
4769
|
-
// ../../node_modules/.pnpm/uuid@11.
|
|
4769
|
+
// ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js
|
|
4770
4770
|
function v4(options, buf, offset) {
|
|
4771
4771
|
if (native_default.randomUUID && !buf && !options) {
|
|
4772
4772
|
return native_default.randomUUID();
|
|
4773
4773
|
}
|
|
4774
4774
|
options = options || {};
|
|
4775
|
-
const rnds = options.random
|
|
4775
|
+
const rnds = options.random ?? options.rng?.() ?? rng();
|
|
4776
|
+
if (rnds.length < 16) {
|
|
4777
|
+
throw new Error("Random bytes length must be >= 16");
|
|
4778
|
+
}
|
|
4776
4779
|
rnds[6] = rnds[6] & 15 | 64;
|
|
4777
4780
|
rnds[8] = rnds[8] & 63 | 128;
|
|
4778
4781
|
if (buf) {
|
|
4779
4782
|
offset = offset || 0;
|
|
4783
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
4784
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
4785
|
+
}
|
|
4780
4786
|
for (let i = 0; i < 16; ++i) {
|
|
4781
4787
|
buf[offset + i] = rnds[i];
|
|
4782
4788
|
}
|