@liveblocks/core 2.18.4-uns1 → 2.18.4-uns2
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.cjs +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -10
- package/dist/index.d.ts +7 -10
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
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.18.4-
|
|
9
|
+
var PKG_VERSION = "2.18.4-uns2";
|
|
10
10
|
var PKG_FORMAT = "cjs";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -3636,10 +3636,11 @@ function createUserNotificationSettings(plain) {
|
|
|
3636
3636
|
*/
|
|
3637
3637
|
get() {
|
|
3638
3638
|
const value = this[kPrivate].__plain__[channel];
|
|
3639
|
-
if (
|
|
3640
|
-
|
|
3641
|
-
`In order to use the '${channel}' channel, please set up your project first.
|
|
3639
|
+
if (typeof value === "undefined") {
|
|
3640
|
+
error2(
|
|
3641
|
+
`In order to use the '${channel}' channel, please set up your project first. For more information https://liveblocks.io/docs/errors/enable-a-notification-channel`
|
|
3642
3642
|
);
|
|
3643
|
+
return null;
|
|
3643
3644
|
}
|
|
3644
3645
|
return value;
|
|
3645
3646
|
}
|
|
@@ -3666,7 +3667,7 @@ function patchUserNotificationSettings(existing, patch) {
|
|
|
3666
3667
|
return outcoming;
|
|
3667
3668
|
}
|
|
3668
3669
|
function isNotificationChannelEnabled(settings) {
|
|
3669
|
-
return values(settings).every((enabled) => enabled === true);
|
|
3670
|
+
return settings !== null ? values(settings).every((enabled) => enabled === true) : false;
|
|
3670
3671
|
}
|
|
3671
3672
|
|
|
3672
3673
|
// src/lib/position.ts
|