New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@liveblocks/react

Package Overview
Dependencies
Maintainers
5
Versions
454
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liveblocks/react - npm Package Compare versions

Comparing version 1.9.5 to 1.9.6-clafix

17

dist/index.js

@@ -8,3 +8,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; }"use client";

var PKG_NAME = "@liveblocks/react";
var PKG_VERSION = "1.9.5";
var PKG_VERSION = "1.9.6-clafix";
var PKG_FORMAT = "cjs";

@@ -45,3 +45,2 @@

var _shim = require('use-sync-external-store/shim');

@@ -330,3 +329,3 @@

const revalidateCache = useRevalidateCache(manager, fetcher);
const status = _shim.useSyncExternalStore.call(void 0,
const status = useSyncExternalStore3(
room.events.status.subscribe,

@@ -1240,3 +1239,3 @@ room.getStatus,

var superfluous_unstable_batchedUpdates = "You don\u2019t need to pass unstable_batchedUpdates to RoomProvider anymore, since you\u2019re on React 18+ already.";
function useSyncExternalStore5(s, gs, gss) {
function useSyncExternalStore3(s, gs, gss) {
return _withselectorjs.useSyncExternalStoreWithSelector.call(void 0, s, gs, gss, identity);

@@ -1393,3 +1392,3 @@ }

const getServerSnapshot = room.getStatus;
return useSyncExternalStore5(subscribe2, getSnapshot2, getServerSnapshot);
return useSyncExternalStore3(subscribe2, getSnapshot2, getServerSnapshot);
}

@@ -1400,3 +1399,3 @@ function useMyPresence() {

const getSnapshot2 = room.getPresence;
const presence = useSyncExternalStore5(subscribe2, getSnapshot2, getSnapshot2);
const presence = useSyncExternalStore3(subscribe2, getSnapshot2, getSnapshot2);
const setPresence = room.updatePresence;

@@ -1540,3 +1539,3 @@ return [presence, setPresence];

const getServerSnapshot = alwaysNull;
return useSyncExternalStore5(subscribe2, getSnapshot2, getServerSnapshot);
return useSyncExternalStore3(subscribe2, getSnapshot2, getServerSnapshot);
}

@@ -1559,3 +1558,3 @@ function useStorageRoot() {

const canUndo = room.history.canUndo;
return useSyncExternalStore5(subscribe2, canUndo, canUndo);
return useSyncExternalStore3(subscribe2, canUndo, canUndo);
}

@@ -1566,3 +1565,3 @@ function useCanRedo() {

const canRedo = room.history.canRedo;
return useSyncExternalStore5(subscribe2, canRedo, canRedo);
return useSyncExternalStore3(subscribe2, canRedo, canRedo);
}

@@ -1569,0 +1568,0 @@ function useBatch() {

{
"name": "@liveblocks/react",
"version": "1.9.5",
"version": "1.9.6-clafix",
"description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",

@@ -37,4 +37,4 @@ "license": "Apache-2.0",

"dependencies": {
"@liveblocks/client": "1.9.5",
"@liveblocks/core": "1.9.5",
"@liveblocks/client": "1.9.6-clafix",
"@liveblocks/core": "1.9.6-clafix",
"nanoid": "^3",

@@ -41,0 +41,0 @@ "use-sync-external-store": "^1.2.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

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