@liveblocks/node
Advanced tools
Comparing version 2.9.1 to 2.9.2-emails1
@@ -1100,2 +1100,25 @@ import { BaseUserMeta, DU, OptionalTupleUnless, PlainLsonObject, JsonObject, QueryMetadata, ThreadData, CommentData, CommentBody, Patchable, CommentUserReaction, InboxNotificationData, RoomNotificationSettings, KDAD, DAD, LsonObject, ToImmutable, PartialUnless, BaseMetadata, DE, DM, DS } from '@liveblocks/core'; | ||
/** | ||
* Type guard to check if a webhook event is a `ThreadNotificationEvent` | ||
* | ||
* The check is made against the event type and event data kind. | ||
* You should use this guard to safely check the webhook event you received | ||
* when you're expecting a `ThreadNotificationEvent`. | ||
* | ||
* @param event The webhook event received after calling `webhookHandler.verifyRequest()`. | ||
* @returns A boolean type predicate. | ||
*/ | ||
declare function isThreadNotificationEvent(event: WebhookEvent): event is ThreadNotificationEvent; | ||
/** | ||
* Type guard to check if a webhook event is a `TextMentionNotificationEvent` | ||
* | ||
* The check is made against the event type and event data kind. | ||
* You should use this guard to safely check the webhook event you received | ||
* when you're expecting a `TextMentionNotificationEvent`. | ||
* | ||
* @param event The webhook event received after calling `webhookHandler.verifyRequest()`. | ||
* @returns A boolean type predicate. | ||
*/ | ||
declare function isTextMentionNotificationEvent(event: WebhookEvent): event is TextMentionNotificationEvent; | ||
/** | ||
* @deprecated RoomInfo was renamed to RoomData, to avoid | ||
@@ -1107,2 +1130,2 @@ * confusion with the globally augmentable RoomInfo type. This | ||
export { type CommentCreatedEvent, type CommentDeletedEvent, type CommentEditedEvent, type CommentReactionAdded, type CommentReactionRemoved, type CustomNotificationEvent, Liveblocks, LiveblocksError, type LiveblocksOptions, type NotificationEvent, type RoomAccesses, type RoomCreatedEvent, type RoomData, type RoomDeletedEvent, type RoomInfo, type RoomPermission, type RoomUser, type Schema, type StorageUpdatedEvent, type TextMentionNotificationEvent, type ThreadCreatedEvent, type ThreadDeletedEvent, type ThreadMarkedAsResolvedEvent, type ThreadMarkedAsUnresolvedEvent, type ThreadMetadataUpdatedEvent, type ThreadNotificationEvent, type ThreadParticipants, type UserEnteredEvent, type UserLeftEvent, type WebhookEvent, WebhookHandler, type WebhookRequest, type YDocUpdatedEvent }; | ||
export { type CommentCreatedEvent, type CommentDeletedEvent, type CommentEditedEvent, type CommentReactionAdded, type CommentReactionRemoved, type CustomNotificationEvent, Liveblocks, LiveblocksError, type LiveblocksOptions, type NotificationEvent, type RoomAccesses, type RoomCreatedEvent, type RoomData, type RoomDeletedEvent, type RoomInfo, type RoomPermission, type RoomUser, type Schema, type StorageUpdatedEvent, type TextMentionNotificationEvent, type ThreadCreatedEvent, type ThreadDeletedEvent, type ThreadMarkedAsResolvedEvent, type ThreadMarkedAsUnresolvedEvent, type ThreadMetadataUpdatedEvent, type ThreadNotificationEvent, type ThreadParticipants, type UserEnteredEvent, type UserLeftEvent, type WebhookEvent, WebhookHandler, type WebhookRequest, type YDocUpdatedEvent, isTextMentionNotificationEvent, isThreadNotificationEvent }; |
@@ -6,3 +6,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/index.ts | ||
var PKG_NAME = "@liveblocks/node"; | ||
var PKG_VERSION = "2.9.1"; | ||
var PKG_VERSION = "2.9.2-emails1"; | ||
var PKG_FORMAT = "cjs"; | ||
@@ -1332,2 +1332,8 @@ | ||
var isNotUndefined = (value) => value !== void 0; | ||
function isThreadNotificationEvent(event) { | ||
return event.type === "notification" && event.data.kind === "thread"; | ||
} | ||
function isTextMentionNotificationEvent(event) { | ||
return event.type === "notification" && event.data.kind === "textMention"; | ||
} | ||
@@ -1346,3 +1352,5 @@ // src/index.ts | ||
exports.Liveblocks = Liveblocks; exports.LiveblocksError = LiveblocksError; exports.WebhookHandler = WebhookHandler; exports.getMentionedIdsFromCommentBody = _core.getMentionedIdsFromCommentBody; exports.stringifyCommentBody = _core.stringifyCommentBody; | ||
exports.Liveblocks = Liveblocks; exports.LiveblocksError = LiveblocksError; exports.WebhookHandler = WebhookHandler; exports.getMentionedIdsFromCommentBody = _core.getMentionedIdsFromCommentBody; exports.isTextMentionNotificationEvent = isTextMentionNotificationEvent; exports.isThreadNotificationEvent = isThreadNotificationEvent; exports.stringifyCommentBody = _core.stringifyCommentBody; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@liveblocks/node", | ||
"version": "2.9.1", | ||
"version": "2.9.2-emails1", | ||
"description": "A server-side utility that lets you set up a Liveblocks authentication endpoint. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.", | ||
@@ -37,3 +37,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@liveblocks/core": "2.9.1", | ||
"@liveblocks/core": "2.9.2-emails1", | ||
"@stablelib/base64": "^1.0.1", | ||
@@ -40,0 +40,0 @@ "fast-sha256": "^1.3.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
403312
3799
1
+ Added@liveblocks/core@2.9.2-emails1(transitive)
- Removed@liveblocks/core@2.9.1(transitive)