@applicaster/zapp-react-native-utils 13.0.0-rc.83 → 13.0.0-rc.84
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.
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
EntryResolver,
|
|
20
20
|
resolveObjectValues,
|
|
21
21
|
} from "../appUtils/contextKeysManager/contextResolver";
|
|
22
|
+
import { get } from "lodash";
|
|
22
23
|
|
|
23
24
|
const { log_error, log_info } = createLogger({
|
|
24
25
|
subsystem: "ActionExecutorContext",
|
|
@@ -169,8 +170,29 @@ const prepareDefaultActions = (actionExecutor) => {
|
|
|
169
170
|
action: ActionType,
|
|
170
171
|
context?: Record<string, any>
|
|
171
172
|
): Promise<ActionResult> => {
|
|
173
|
+
if (!context) {
|
|
174
|
+
log_error(
|
|
175
|
+
"handleAction: localStorageToggleFlag action missing context"
|
|
176
|
+
);
|
|
177
|
+
|
|
178
|
+
return ActionResult.Error;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
const entry = context?.entry as ZappEntry;
|
|
182
|
+
|
|
183
|
+
if (!entry) {
|
|
184
|
+
log_error(
|
|
185
|
+
"handleAction: localStorageToggleFlag action missing entry. Entry is required to get the tag."
|
|
186
|
+
);
|
|
187
|
+
|
|
188
|
+
return ActionResult.Error;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const tag = action.options?.selector
|
|
192
|
+
? get(entry, action.options.selector)
|
|
193
|
+
: (entry.extensions?.tag ?? entry.id);
|
|
194
|
+
|
|
172
195
|
const keyNamespace = action.options?.key;
|
|
173
|
-
const tag = context?.entry?.extensions?.tag;
|
|
174
196
|
|
|
175
197
|
if (keyNamespace && tag) {
|
|
176
198
|
const multiSelectProvider =
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-utils",
|
|
3
|
-
"version": "13.0.0-rc.
|
|
3
|
+
"version": "13.0.0-rc.84",
|
|
4
4
|
"description": "Applicaster Zapp React Native utilities package",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@applicaster/applicaster-types": "13.0.0-rc.
|
|
30
|
+
"@applicaster/applicaster-types": "13.0.0-rc.84",
|
|
31
31
|
"buffer": "^5.2.1",
|
|
32
32
|
"camelize": "^1.0.0",
|
|
33
33
|
"dayjs": "^1.11.10",
|