@signalwire/js 4.0.0-dev-20260503235343 → 4.0.0-dev-20260504184154

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.
@@ -1,8 +1,8 @@
1
1
  (function(global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('node:crypto')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'node:crypto'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.SignalWire = {}), global.node_crypto));
5
- })(this, function(exports, node_crypto) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.SignalWire = {})));
5
+ })(this, function(exports) {
6
6
  //#region rolldown:runtime
7
7
  var __create = Object.create;
8
8
  var __defProp = Object.defineProperty;
@@ -12154,22 +12154,17 @@ function unsafeStringify(arr, offset = 0) {
12154
12154
 
12155
12155
  //#endregion
12156
12156
  //#region ../../node_modules/uuid/dist-node/rng.js
12157
- const rnds8Pool = new Uint8Array(256);
12158
- let poolPtr = rnds8Pool.length;
12157
+ const rnds8 = new Uint8Array(16);
12159
12158
  function rng() {
12160
- if (poolPtr > rnds8Pool.length - 16) {
12161
- (0, node_crypto.randomFillSync)(rnds8Pool);
12162
- poolPtr = 0;
12163
- }
12164
- return rnds8Pool.slice(poolPtr, poolPtr += 16);
12159
+ return crypto.getRandomValues(rnds8);
12165
12160
  }
12166
12161
 
12167
- //#endregion
12168
- //#region ../../node_modules/uuid/dist-node/native.js
12169
- var native_default = { randomUUID: node_crypto.randomUUID };
12170
-
12171
12162
  //#endregion
12172
12163
  //#region ../../node_modules/uuid/dist-node/v4.js
12164
+ function v4(options, buf, offset) {
12165
+ if (!buf && !options && crypto.randomUUID) return crypto.randomUUID();
12166
+ return _v4(options, buf, offset);
12167
+ }
12173
12168
  function _v4(options, buf, offset) {
12174
12169
  options = options || {};
12175
12170
  const rnds = options.random ?? options.rng?.() ?? rng();
@@ -12184,10 +12179,6 @@ function _v4(options, buf, offset) {
12184
12179
  }
12185
12180
  return unsafeStringify(rnds);
12186
12181
  }
12187
- function v4(options, buf, offset) {
12188
- if (native_default.randomUUID && !buf && !options) return native_default.randomUUID();
12189
- return _v4(options, buf, offset);
12190
- }
12191
12182
  var v4_default = v4;
12192
12183
 
12193
12184
  //#endregion