@nizza/core 0.5.0-beta.2 → 0.5.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -980,7 +980,7 @@ const j = $n(() => ({
|
|
|
980
980
|
})), Kn = async (n) => {
|
|
981
981
|
try {
|
|
982
982
|
const e = j.getState().account;
|
|
983
|
-
if ((e == null ? void 0 : e.account) !== n.account) {
|
|
983
|
+
if (j.setState({ config: n }), (e == null ? void 0 : e.account) !== n.account) {
|
|
984
984
|
const t = await ta(n.account);
|
|
985
985
|
j.setState({ account: t });
|
|
986
986
|
}
|
|
@@ -988,14 +988,13 @@ const j = $n(() => ({
|
|
|
988
988
|
const t = await n.getProductDataSource();
|
|
989
989
|
j.setState({ productDataSource: t });
|
|
990
990
|
}
|
|
991
|
-
j.setState({ config: n });
|
|
992
991
|
} catch (e) {
|
|
993
992
|
console.error("Error configuring NizzaStore:", e);
|
|
994
993
|
}
|
|
995
994
|
}, Wn = (n) => {
|
|
996
995
|
j.setState({ productDataSource: n });
|
|
997
996
|
}, ze = () => ({
|
|
998
|
-
version: "1.0.
|
|
997
|
+
version: "1.0.1",
|
|
999
998
|
configure: Kn,
|
|
1000
999
|
setProductDataSource: Wn,
|
|
1001
1000
|
instanceId: Bn(),
|