@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.d.mts
CHANGED
|
@@ -92,12 +92,6 @@ declare type EventSource<T> = Observable<T> & {
|
|
|
92
92
|
* Notify all subscribers about the event.
|
|
93
93
|
*/
|
|
94
94
|
notify(event: T): void;
|
|
95
|
-
/**
|
|
96
|
-
* Clear all registered event listeners. None of the registered functions
|
|
97
|
-
* will ever get called again. Be careful when using this API, because the
|
|
98
|
-
* subscribers may not have any idea they won't be notified anymore.
|
|
99
|
-
*/
|
|
100
|
-
clear(): void;
|
|
101
95
|
/**
|
|
102
96
|
* Returns the number of active subscribers.
|
|
103
97
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -92,12 +92,6 @@ declare type EventSource<T> = Observable<T> & {
|
|
|
92
92
|
* Notify all subscribers about the event.
|
|
93
93
|
*/
|
|
94
94
|
notify(event: T): void;
|
|
95
|
-
/**
|
|
96
|
-
* Clear all registered event listeners. None of the registered functions
|
|
97
|
-
* will ever get called again. Be careful when using this API, because the
|
|
98
|
-
* subscribers may not have any idea they won't be notified anymore.
|
|
99
|
-
*/
|
|
100
|
-
clear(): void;
|
|
101
95
|
/**
|
|
102
96
|
* Returns the number of active subscribers.
|
|
103
97
|
*/
|
package/dist/index.js
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 = "cjs";
|
|
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
|
..._optionalChain([options, 'optionalAccess', _45 => _45.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
|
..._optionalChain([options2, 'optionalAccess', _127 => _127.headers]),
|
|
5520
|
-
Authorization: `Bearer ${getAuthBearerHeaderFromAuthValue(authValue)}
|
|
5521
|
+
Authorization: `Bearer ${getAuthBearerHeaderFromAuthValue(authValue)}`,
|
|
5522
|
+
"X-LB-Client": PKG_VERSION || "dev"
|
|
5521
5523
|
}
|
|
5522
5524
|
});
|
|
5523
5525
|
}
|