Socket
Socket
Sign inDemoInstall

@liveblocks/core

Package Overview
Dependencies
Maintainers
6
Versions
274
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liveblocks/core - npm Package Compare versions

Comparing version 1.0.2-test5 to 1.0.2

57

dist/index.d.ts

@@ -464,24 +464,2 @@ /**

/**
* This type is used by clients to define the metadata for a user.
*/
declare type BaseUserMeta = {
/**
* The id of the user that has been set in the authentication endpoint.
* Useful to get additional information about the connected user.
*/
id?: string;
/**
* Additional user information that has been set in the authentication endpoint.
*/
info?: Json;
};
declare type Callback<T> = (event: T) => void;
declare type UnsubscribeCallback = () => void;
declare type Observable<T> = {
subscribe(callback: Callback<T>): UnsubscribeCallback;
subscribeOnce(callback: Callback<T>): UnsubscribeCallback;
};
/**
* This helper type is effectively a no-op, but will force TypeScript to

@@ -512,2 +490,24 @@ * "evaluate" any named helper types in its definition. This can sometimes make

/**
* This type is used by clients to define the metadata for a user.
*/
declare type BaseUserMeta = {
/**
* The id of the user that has been set in the authentication endpoint.
* Useful to get additional information about the connected user.
*/
id?: string;
/**
* Additional user information that has been set in the authentication endpoint.
*/
info?: Json;
};
declare type Callback<T> = (event: T) => void;
declare type UnsubscribeCallback = () => void;
declare type Observable<T> = {
subscribe(callback: Callback<T>): UnsubscribeCallback;
subscribeOnce(callback: Callback<T>): UnsubscribeCallback;
};
declare type AppOnlyAuthToken = {

@@ -1080,2 +1080,13 @@ appId: string;

declare type EnterOptions<TPresence extends JsonObject, TStorage extends LsonObject> = Resolve<RoomInitializers<TPresence, TStorage> & {
/**
* Only necessary when youโ€™re using Liveblocks with React v17 or lower.
*
* If so, pass in a reference to `ReactDOM.unstable_batchedUpdates` here.
* This will allow Liveblocks to circumvent the so-called "zombie child
* problem". To learn more, see
* https://liveblocks.io/docs/guides/troubleshooting#stale-props-zombie-child
*/
unstable_batchedUpdates?: (cb: () => void) => void;
}>;
declare type Client = {

@@ -1093,3 +1104,3 @@ /**

*/
enter<TPresence extends JsonObject, TStorage extends LsonObject = LsonObject, TUserMeta extends BaseUserMeta = BaseUserMeta, TRoomEvent extends Json = never>(roomId: string, options: RoomInitializers<TPresence, TStorage>): Room<TPresence, TStorage, TUserMeta, TRoomEvent>;
enter<TPresence extends JsonObject, TStorage extends LsonObject = LsonObject, TUserMeta extends BaseUserMeta = BaseUserMeta, TRoomEvent extends Json = never>(roomId: string, options: EnterOptions<TPresence, TStorage>): Room<TPresence, TStorage, TUserMeta, TRoomEvent>;
/**

@@ -1096,0 +1107,0 @@ * Leaves a room.

{
"name": "@liveblocks/core",
"version": "1.0.2-test5",
"version": "1.0.2",
"description": "Shared code and foundational internals for Liveblocks",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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