Comparing version 0.0.0 to 0.1.0
15
index.js
@@ -0,1 +1,3 @@ | ||
import { create } from "zustand"; | ||
function zukeeper(createFunction) { | ||
@@ -8,6 +10,9 @@ return (set, get) => { | ||
store[key] = (...args) => { | ||
console.log('action dispatched', key); | ||
let currstate = get(); | ||
window.postMessage({ | ||
body: 'Innit', | ||
state: JSON.stringify(currstate) | ||
}); | ||
functionDefinition(...args); | ||
const currstate = get(); | ||
console.log('state', currstate); | ||
currstate = get(); | ||
window.postMessage({ | ||
@@ -19,4 +24,4 @@ body: 'Data', | ||
}; | ||
} | ||
} | ||
}; | ||
}; | ||
return store; | ||
@@ -23,0 +28,0 @@ }; |
{ | ||
"name": "zukeeper", | ||
"version": "0.0.0", | ||
"version": "0.1.0", | ||
"description": "Dev Tools for Zustand", | ||
"main": "index.ts", | ||
"main": "index.js", | ||
"scripts": { | ||
@@ -11,3 +11,3 @@ "test": "test" | ||
"type": "git", | ||
"url": "https://github.com/oslabs-beta/Zukeeper/tree/main/npm.git" | ||
"url": "https://github.com/oslabs-beta/Zukeeper/tree/main/npm" | ||
}, | ||
@@ -14,0 +14,0 @@ "keywords": [ |
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
1168
26