@applicaster/zapp-react-native-utils 12.0.0-alpha.3021004521 → 12.0.0-alpha.4534459584

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.
@@ -50,10 +50,6 @@ export function noop() {
50
50
  void 0;
51
51
  }
52
52
 
53
- export function toNoopIfNil(fn) {
54
- return R.isNil(fn) ? noop : fn;
55
- }
56
-
57
53
  /**
58
54
  * returns if passed value is a function
59
55
  * @param {*} functionToCheck to add the subscription feature on
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "12.0.0-alpha.3021004521",
3
+ "version": "12.0.0-alpha.4534459584",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://github.com/applicaster/quickbrick#readme",
30
30
  "dependencies": {
31
- "@applicaster/applicaster-types": "12.0.0-alpha.3021004521",
31
+ "@applicaster/applicaster-types": "12.0.0-alpha.4534459584",
32
32
  "buffer": "^5.2.1",
33
33
  "camelize": "^1.0.0",
34
34
  "create-react-context": "^0.2.3",
@@ -2,7 +2,7 @@ import * as R from "ramda";
2
2
  import { createLogger } from "../logger";
3
3
  import { requiresAuthentication } from "../configurationUtils";
4
4
  import { PresentHookPluginOneTime } from "./presentPluginOneTime";
5
- import { skipHook } from "./hooksPresentation";
5
+ import { isPlayerHook, skipHook } from "./hooksPresentation";
6
6
  type LoginPluginUtils = {
7
7
  pluginId: string;
8
8
  };
@@ -36,10 +36,20 @@ const isAuthenticationRequired = ({ payload, logs }) => {
36
36
  return requires_authentication;
37
37
  }
38
38
 
39
+ const isPlayer = isPlayerHook(payload);
40
+
41
+ if (isPlayer) {
42
+ log_info(
43
+ "isAuthenticationRequired: Payload is player screen, authentication not required"
44
+ );
45
+
46
+ return;
47
+ }
48
+
39
49
  const _isPayloadScreen = isPayloadScreen({ payload });
40
50
 
41
51
  log_info(
42
- `isAuthenticationRequired: Payload is screen, authentefication required: ${_isPayloadScreen}`
52
+ `isAuthenticationRequired: Payload is screen, authentication required: ${_isPayloadScreen}`
43
53
  );
44
54
 
45
55
  return _isPayloadScreen;