Socket
Socket
Sign inDemoInstall

zustand-store

Package Overview
Dependencies
6
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.6 to 0.0.8

15

dist/store.js

@@ -34,2 +34,5 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var _a;

@@ -39,2 +42,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

var zustand = __importStar(require("zustand"));
var shallow_1 = __importDefault(require("zustand/shallow"));
var immer_1 = require("zustand/middleware/immer");

@@ -122,3 +126,7 @@ var immer_2 = require("immer");

}));
return realRet;
var ret = function (a, b) {
return realRet(a, b || shallow_1.default);
};
Object.assign(ret, realRet);
return ret;
};

@@ -131,3 +139,3 @@ Store.BaseStore = BaseStore;

function loopPrototype(obj, callback) {
var p = [];
var p = new Set();
var proto = obj;

@@ -141,3 +149,4 @@ while (proto != null) {

for (var i = 0; i < op.length; i++) {
if (p.indexOf(op[i]) === -1) {
if (!p.has(op[i])) {
p.add(op[i]);
callback(op[i], proto);

@@ -144,0 +153,0 @@ }

8

package.json
{
"name": "zustand-store",
"version": "0.0.6",
"version": "0.0.8",
"description": "zustand store",

@@ -33,7 +33,7 @@ "main": "dist/index.js",

},
"author": "yunlu frontend",
"author": "liujunwei",
"license": "Apache-2.0",
"dependencies": {
"immer": "^9.0.15",
"zustand": "^4.1.1"
"immer": "9.0.15",
"zustand": "4.1.1"
},

@@ -40,0 +40,0 @@ "volta": {

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