@liveblocks/core 2.8.0 → 2.8.2
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.d.mts +0 -6
- package/dist/index.d.ts +0 -6
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
|
|
7
7
|
// src/version.ts
|
|
8
8
|
var PKG_NAME = "@liveblocks/core";
|
|
9
|
-
var PKG_VERSION = "2.8.
|
|
9
|
+
var PKG_VERSION = "2.8.2";
|
|
10
10
|
var PKG_FORMAT = "esm";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -132,7 +132,7 @@ function makeEventSource() {
|
|
|
132
132
|
_onetimeObservers.clear();
|
|
133
133
|
_observers.forEach((callback) => callback(event));
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function _forceClear() {
|
|
136
136
|
_onetimeObservers.clear();
|
|
137
137
|
_observers.clear();
|
|
138
138
|
}
|
|
@@ -144,7 +144,7 @@ function makeEventSource() {
|
|
|
144
144
|
notify: notifyOrBuffer,
|
|
145
145
|
subscribe,
|
|
146
146
|
subscribeOnce,
|
|
147
|
-
|
|
147
|
+
_forceClear,
|
|
148
148
|
count,
|
|
149
149
|
waitUntil,
|
|
150
150
|
pause,
|
|
@@ -2091,7 +2091,8 @@ function createNotificationsApi({
|
|
|
2091
2091
|
...options,
|
|
2092
2092
|
headers: {
|
|
2093
2093
|
...options?.headers,
|
|
2094
|
-
Authorization: `Bearer ${getAuthBearerHeaderFromAuthValue(authValue)}
|
|
2094
|
+
Authorization: `Bearer ${getAuthBearerHeaderFromAuthValue(authValue)}`,
|
|
2095
|
+
"X-LB-Client": PKG_VERSION || "dev"
|
|
2095
2096
|
}
|
|
2096
2097
|
});
|
|
2097
2098
|
if (!response.ok) {
|
|
@@ -5517,7 +5518,8 @@ function createRoom(options, config) {
|
|
|
5517
5518
|
...options2,
|
|
5518
5519
|
headers: {
|
|
5519
5520
|
...options2?.headers,
|
|
5520
|
-
Authorization: `Bearer ${getAuthBearerHeaderFromAuthValue(authValue)}
|
|
5521
|
+
Authorization: `Bearer ${getAuthBearerHeaderFromAuthValue(authValue)}`,
|
|
5522
|
+
"X-LB-Client": PKG_VERSION || "dev"
|
|
5521
5523
|
}
|
|
5522
5524
|
});
|
|
5523
5525
|
}
|