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

@liveblocks/node

Package Overview
Dependencies
Maintainers
6
Versions
327
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liveblocks/node - npm Package Compare versions

Comparing version 1.0.0-beta1 to 1.0.0-beta2

dist/.built-by-link-script

9

dist/index.d.ts

@@ -135,6 +135,7 @@ import { IncomingHttpHeaders } from 'http';

/**
* The id of the user that try to connect. It should be used to get information about the connected users in the room (name, avatar, etc).
* It can also be used to generate a token that gives access to a private room where the userId is configured in the room accesses
* The id of the user that try to connect. It can be used to get information about the connected users in the room (name, avatar, etc).
* It can also be used to generate a token that gives access to a private room where the userId is configured in the room accesses.
* Liveblocks uses the userId to calculate your account's Monthly Active Users.
*/
userId?: string;
userId: string;
/**

@@ -164,3 +165,3 @@ * The info associated to the user. Can be used to store the name or the profile picture to implement avatar for example. Can't exceed 1KB when serialized as JSON

* secret,
* userId: "123", // Optional
* userId: "123",
* userInfo: { // Optional

@@ -167,0 +168,0 @@ * name: "Ada Lovelace"

@@ -117,2 +117,7 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __async = (__this, __arguments, generator) => {

}
if (!(typeof userId === "string" && userId.length > 0)) {
throw new Error(
"Invalid userId. Please provide a non-empty string as the userId. For more information: https://liveblocks.io/docs/api-reference/liveblocks-node#authorize"
);
}
const result = yield _nodefetch2.default.call(void 0,

@@ -119,0 +124,0 @@ buildLiveblocksAuthorizeEndpoint(options, room),

{
"name": "@liveblocks/node",
"version": "1.0.0-beta1",
"version": "1.0.0-beta2",
"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.",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

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