Socket
Socket
Sign inDemoInstall

zustand-yjs

Package Overview
Dependencies
12
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.9 to 0.0.10

4

index.cjs.js

@@ -342,5 +342,3 @@ 'use strict';

var previousState = awareness.getLocalState();
awareness.setLocalState(_extends__default['default']({}, previousState, {
newState: newState
}));
awareness.setLocalState(_extends__default['default']({}, previousState, newState));
}];

@@ -347,0 +345,0 @@ };

@@ -335,5 +335,3 @@ var zustandYjs = (function (exports, create, react, shallow, Y, _extends) {

var previousState = awareness.getLocalState();
awareness.setLocalState(_extends__default['default']({}, previousState, {
newState: newState
}));
awareness.setLocalState(_extends__default['default']({}, previousState, newState));
}];

@@ -340,0 +338,0 @@ };

@@ -253,5 +253,3 @@ import create from 'zustand';

const previousState = awareness.getLocalState();
awareness.setLocalState(_extends({}, previousState, {
newState
}));
awareness.setLocalState(_extends({}, previousState, newState));
}];

@@ -258,0 +256,0 @@ };

{
"name": "zustand-yjs",
"private": false,
"version": "0.0.9",
"version": "0.0.10",
"description": "Zustand Stores with Yjs",

@@ -6,0 +6,0 @@ "main": "./index.cjs.js",

@@ -32,2 +32,2 @@ import * as Y from 'yjs';

export declare type AwarenessData<T> = T[];
export declare type AwarenessSetData<T> = (newState: T) => void;
export declare type AwarenessSetData<T> = (newState: Partial<T>) => void;
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc