remult 3.0.7-next.0 → 3.1.0

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.
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.clientConnection = exports.SseSubscriptionServer = void 0;
4
4
  var tslib_1 = require("tslib");
5
- var uuid_1 = require("uuid");
6
5
  var SseSubscriptionClient_js_1 = require("./src/live-query/SseSubscriptionClient.js");
7
6
  var SseSubscriptionServer = /** @class */ (function () {
8
7
  function SseSubscriptionServer(canUserConnectToChannel) {
@@ -113,7 +112,7 @@ var clientConnection = /** @class */ (function () {
113
112
  this.response = response;
114
113
  this.channels = {};
115
114
  this.closed = false;
116
- this.connectionId = (0, uuid_1.v4)();
115
+ this.connectionId = crypto.randomUUID();
117
116
  this.write(this.connectionId, 'connectionId');
118
117
  this.sendLiveMessage();
119
118
  }
@@ -1,4 +1,3 @@
1
- import { v4 as uuid } from 'uuid';
2
1
  import { ConnectionNotFoundError } from './src/live-query/SseSubscriptionClient.js';
3
2
  export class SseSubscriptionServer {
4
3
  canUserConnectToChannel;
@@ -90,7 +89,7 @@ export class clientConnection {
90
89
  if (this.response.flush)
91
90
  this.response.flush();
92
91
  }
93
- connectionId = uuid();
92
+ connectionId = crypto.randomUUID();
94
93
  constructor(response) {
95
94
  this.response = response;
96
95
  this.write(this.connectionId, 'connectionId');