Comparing version 0.1.2 to 0.2.0
10
index.js
@@ -1,4 +0,6 @@ | ||
function zukeeper(storeConfig) { | ||
return (set, get) => { | ||
const store = storeConfig(set, get); | ||
import { create } from 'zustand'; | ||
function zukeeper(createFunction) { | ||
const keeper = (set, get) => { | ||
const store = createFunction(set, get); | ||
for (let key in store) { | ||
@@ -25,4 +27,6 @@ if (typeof store[key] === 'function') { | ||
}; | ||
window.store = create(keeper); | ||
return keeper; | ||
} | ||
export default zukeeper; |
{ | ||
"name": "zukeeper", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "Dev Tools for Zustand", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1252
28