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

@liveblocks/redux

Package Overview
Dependencies
Maintainers
3
Versions
377
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liveblocks/redux - npm Package Compare versions

Comparing version 0.15.1 to 0.15.2

8

lib/esm/index.js

@@ -7,5 +7,2 @@ import { internals } from '@liveblocks/client';

}
function missingMapping(mappingType) {
return new Error(`${ERROR_PREFIX} ${mappingType} is missing.`);
}
function mappingShouldBeAnObject(mappingType) {

@@ -58,3 +55,3 @@ return new Error(`${ERROR_PREFIX} ${mappingType} should be an object where the values are boolean.`);

const client = options.client;
const mapping = validateMapping(options.storageMapping, "storageMapping");
const mapping = validateMapping(options.storageMapping || {}, "storageMapping");
const presenceMapping = validateMapping(options.presenceMapping || {}, "presenceMapping");

@@ -265,5 +262,2 @@ if (process.env.NODE_ENV !== "production") {

if (process.env.NODE_ENV !== "production") {
if (mapping == null) {
throw missingMapping(mappingType);
}
if (!isObject(mapping)) {

@@ -270,0 +264,0 @@ throw mappingShouldBeAnObject(mappingType);

@@ -67,5 +67,2 @@ 'use strict';

}
function missingMapping(mappingType) {
return new Error(ERROR_PREFIX + " " + mappingType + " is missing.");
}
function mappingShouldBeAnObject(mappingType) {

@@ -103,3 +100,3 @@ return new Error(ERROR_PREFIX + " " + mappingType + " should be an object where the values are boolean.");

var client = options.client;
var mapping = validateMapping(options.storageMapping, "storageMapping");
var mapping = validateMapping(options.storageMapping || {}, "storageMapping");
var presenceMapping = validateMapping(options.presenceMapping || {}, "presenceMapping");

@@ -363,6 +360,2 @@

if (process.env.NODE_ENV !== "production") {
if (mapping == null) {
throw missingMapping(mappingType);
}
if (!isObject(mapping)) {

@@ -369,0 +362,0 @@ throw mappingShouldBeAnObject(mappingType);

6

package.json
{
"name": "@liveblocks/redux",
"version": "0.15.1",
"version": "0.15.2",
"sideEffects": false,

@@ -39,3 +39,3 @@ "description": "",

"peerDependencies": {
"@liveblocks/client": "0.15.1",
"@liveblocks/client": "0.15.2",
"redux": "^4"

@@ -64,2 +64,2 @@ },

}
}
}

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