@mysten/enoki
Advanced tools
Comparing version 0.0.0-experimental-20231128180803 to 0.0.0-experimental-20231128214949
# @mysten/enoki | ||
## 0.0.0-experimental-20231128180803 | ||
## 0.0.0-experimental-20231128214949 | ||
### Patch Changes | ||
- 0eb6fa61b: Hydrate the session on mount | ||
## 0.0.5 | ||
### Patch Changes | ||
- Updated dependencies [0e3d0dfae] | ||
- @mysten/zklogin@0.0.0-experimental-20231128180803 | ||
- @mysten/zklogin@0.3.8 | ||
@@ -10,0 +16,0 @@ ## 0.0.4 |
@@ -85,2 +85,5 @@ "use strict"; | ||
this.$zkLoginSession = (0, import_nanostores.atom)({ initialized: false, value: null }); | ||
(0, import_nanostores.onMount)(this.$zkLoginSession, () => { | ||
this.getSession(); | ||
}); | ||
(0, import_nanostores.onSet)(this.$zkLoginState, ({ newValue }) => { | ||
@@ -87,0 +90,0 @@ __privateGet(this, _store).set(__privateGet(this, _storageKeys).STATE, JSON.stringify(newValue)); |
@@ -27,3 +27,3 @@ var __accessCheck = (obj, member, msg) => { | ||
import { decodeJwt } from "jose"; | ||
import { atom, onSet } from "nanostores"; | ||
import { atom, onMount, onSet } from "nanostores"; | ||
import { createDefaultEncryption } from "./encryption.js"; | ||
@@ -63,2 +63,5 @@ import { EnokiClient } from "./EnokiClient/index.js"; | ||
this.$zkLoginSession = atom({ initialized: false, value: null }); | ||
onMount(this.$zkLoginSession, () => { | ||
this.getSession(); | ||
}); | ||
onSet(this.$zkLoginState, ({ newValue }) => { | ||
@@ -65,0 +68,0 @@ __privateGet(this, _store).set(__privateGet(this, _storageKeys).STATE, JSON.stringify(newValue)); |
{ | ||
"name": "@mysten/enoki", | ||
"version": "0.0.0-experimental-20231128180803", | ||
"version": "0.0.0-experimental-20231128214949", | ||
"description": "TODO: Description", | ||
@@ -51,3 +51,3 @@ "license": "Apache-2.0", | ||
"@mysten/sui.js": "0.47.0", | ||
"@mysten/zklogin": "0.0.0-experimental-20231128180803" | ||
"@mysten/zklogin": "0.3.8" | ||
}, | ||
@@ -54,0 +54,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
249855
1930
+ Added@mysten/zklogin@0.3.8(transitive)
- Removed@mysten/zklogin@0.0.0-experimental-20231128180803(transitive)
Updated@mysten/zklogin@0.3.8