Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cocreate/cursors

Package Overview
Dependencies
Maintainers
1
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cocreate/cursors - npm Package Compare versions

Comparing version 1.20.5 to 1.20.6

4

package.json
{
"name": "@cocreate/cursors",
"version": "1.20.5",
"version": "1.20.6",
"description": "Collaborative user cursor position for inputs, textarea's and contenteditable elements.",

@@ -63,6 +63,6 @@ "keywords": [

"@cocreate/local-storage": "^1.10.5",
"@cocreate/message-client": "^1.8.3",
"@cocreate/observer": "^1.11.5",
"@cocreate/random-color": "^1.7.2",
"@cocreate/selection": "^1.9.4",
"@cocreate/socket-client": "^1.31.0",
"@cocreate/utils": "^1.25.3",

@@ -69,0 +69,0 @@ "@cocreate/uuid": "^1.7.2"

@@ -26,3 +26,3 @@ /********************************************************************************

import { getAttributeNames } from '@cocreate/utils';
import message from '@cocreate/message-client';
import socket from '@cocreate/socket-client';
import uuid from '@cocreate/uuid';

@@ -34,3 +34,3 @@ import localStorage from '@cocreate/local-storage';

const clientId = message.socket.clientId || uuid.generate(12);
const clientId = socket.clientId || uuid.generate(12);
const cursorBackground = randomColor();

@@ -97,3 +97,3 @@

for (let element of elements) {
if (window.activeElement == element && message.socket.has(selection.socketId)) {
if (window.activeElement == element && socket.has(selection.socketId)) {
continue;

@@ -348,4 +348,4 @@ }

try {
message.send({
message: "cursor",
socket.send({
method: "cursor",
data: {

@@ -371,4 +371,4 @@ array: info.array,

message.listen('cursor', function (response) {
// if (message.socket.has(selection.socketId)) return;
socket.listen('cursor', function (response) {
// if (socket.has(selection.socketId)) return;
let selection = response.data

@@ -375,0 +375,0 @@ selection.socketId = response.socketId

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc