applesauce-core 6.0.0 → 6.0.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/helpers/pointers.js +2 -2
- package/package.json +1 -1
package/dist/helpers/pointers.js
CHANGED
|
@@ -356,9 +356,9 @@ export function isEventPointerSame(a, b) {
|
|
|
356
356
|
a.id === b.id &&
|
|
357
357
|
// Because event id's are unique, we can skip extra checks if either pointer is missing some fields
|
|
358
358
|
// If any kind is undefined, ignore it
|
|
359
|
-
(a.kind !== undefined
|
|
359
|
+
(a.kind !== undefined && b.kind !== undefined ? a.kind === b.kind : true) &&
|
|
360
360
|
// If any author is undefined, ignore it
|
|
361
|
-
(a.author !== undefined
|
|
361
|
+
(a.author !== undefined && b.author !== undefined ? a.author === b.author : true));
|
|
362
362
|
}
|
|
363
363
|
/** Checks if an event matches a pointer */
|
|
364
364
|
export function eventMatchesPointer(event, pointer) {
|