@haniffalab/cherita-react 1.4.1-dev.2025-06-30.66ec83a3 → 1.4.1
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.
|
@@ -140,7 +140,7 @@ function SettingsProvider(_ref2) {
|
|
|
140
140
|
|
|
141
141
|
// If the buster is not set or does not match the current package version,
|
|
142
142
|
// reset localSettings to avoid stale data
|
|
143
|
-
if (!buster || buster !== "1.4.1
|
|
143
|
+
if (!buster || buster !== "1.4.1") {
|
|
144
144
|
localSettings = {};
|
|
145
145
|
}
|
|
146
146
|
const [settings, dispatch] = (0, _react.useReducer)(settingsReducer, {
|
|
@@ -152,7 +152,7 @@ function SettingsProvider(_ref2) {
|
|
|
152
152
|
if (canOverrideSettings) {
|
|
153
153
|
try {
|
|
154
154
|
localStorage.setItem(DATASET_STORAGE_KEY, JSON.stringify(_objectSpread({
|
|
155
|
-
buster: "1.4.1
|
|
155
|
+
buster: "1.4.1" || "0.0.0",
|
|
156
156
|
timestamp: Date.now()
|
|
157
157
|
}, settings)));
|
|
158
158
|
} catch (err) {
|
|
@@ -129,7 +129,7 @@ export function SettingsProvider(_ref2) {
|
|
|
129
129
|
|
|
130
130
|
// If the buster is not set or does not match the current package version,
|
|
131
131
|
// reset localSettings to avoid stale data
|
|
132
|
-
if (!buster || buster !== "1.4.1
|
|
132
|
+
if (!buster || buster !== "1.4.1") {
|
|
133
133
|
localSettings = {};
|
|
134
134
|
}
|
|
135
135
|
const [settings, dispatch] = useReducer(settingsReducer, {
|
|
@@ -141,7 +141,7 @@ export function SettingsProvider(_ref2) {
|
|
|
141
141
|
if (canOverrideSettings) {
|
|
142
142
|
try {
|
|
143
143
|
localStorage.setItem(DATASET_STORAGE_KEY, JSON.stringify(_objectSpread({
|
|
144
|
-
buster: "1.4.1
|
|
144
|
+
buster: "1.4.1" || "0.0.0",
|
|
145
145
|
timestamp: Date.now()
|
|
146
146
|
}, settings)));
|
|
147
147
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haniffalab/cherita-react",
|
|
3
|
-
"version": "1.4.1
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"author": "Haniffa Lab",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -127,6 +127,5 @@
|
|
|
127
127
|
"bugs": {
|
|
128
128
|
"url": "https://github.com/haniffalab/cherita-react/issues"
|
|
129
129
|
},
|
|
130
|
-
"homepage": "https://github.com/haniffalab/cherita-react#readme"
|
|
131
|
-
|
|
132
|
-
}
|
|
130
|
+
"homepage": "https://github.com/haniffalab/cherita-react#readme"
|
|
131
|
+
}
|