@applicaster/zapp-react-dom-app 14.0.0-alpha.1235043154 → 14.0.0-alpha.1355728993

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.
@@ -1,5 +1,10 @@
1
1
  import * as R from "ramda";
2
- import { getStorageModule, STORAGE_TYPES } from "../";
2
+ import {
3
+ getStorageModule,
4
+ applyNamespaceToKeyName,
5
+ STORAGE_TYPES,
6
+ DEFAULT_NAMESPACE,
7
+ } from "../";
3
8
 
4
9
  import { StorageMock } from "./StorageMocks";
5
10
 
@@ -32,6 +37,7 @@ describe("storageObject", () => {
32
37
  const value = "bar";
33
38
  const namespaceValue = "baz";
34
39
  const namespace = "baz";
40
+ const keyName = applyNamespaceToKeyName(key, namespace);
35
41
  const failKey = "fail_key";
36
42
 
37
43
  beforeEach(clearStorage);
@@ -48,11 +54,16 @@ describe("storageObject", () => {
48
54
  it.each(storages)("sets a property in the storage", async (storage) => {
49
55
  const result = await storage.setItem(key, value, null);
50
56
 
51
- expect(result).toBe(true);
57
+ const keyWithDefaultNameSpace = applyNamespaceToKeyName(
58
+ key,
59
+ DEFAULT_NAMESPACE
60
+ );
52
61
 
53
- const res = await storage.getItem(key, null);
62
+ expect(result).toBe(true);
54
63
 
55
- expect(res).toEqual(value);
64
+ expect(storage.getItem(keyWithDefaultNameSpace)).resolves.toEqual(
65
+ value
66
+ );
56
67
  });
57
68
 
58
69
  it.each(storages)(
@@ -62,9 +73,7 @@ describe("storageObject", () => {
62
73
 
63
74
  expect(result).toBe(true);
64
75
 
65
- const res = await storage.getItem(key, namespace);
66
-
67
- expect(res).toEqual(namespaceValue);
76
+ expect(storage.getItem(keyName)).resolves.toEqual(namespaceValue);
68
77
  }
69
78
  );
70
79
 
@@ -99,7 +108,7 @@ describe("storageObject", () => {
99
108
  "gets properties from the storage with a namespace",
100
109
  (storage) => {
101
110
  expect(storage.getItem(key, namespace)).resolves.toEqual(
102
- namespaceValue
111
+ "namespaceValue"
103
112
  );
104
113
  }
105
114
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-dom-app",
3
- "version": "14.0.0-alpha.1235043154",
3
+ "version": "14.0.0-alpha.1355728993",
4
4
  "description": "Zapp App Component for Applicaster's Quick Brick React Native App",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "homepage": "https://github.com/applicaster/zapp-react-dom-app#readme",
24
24
  "dependencies": {
25
- "@applicaster/zapp-react-dom-ui-components": "14.0.0-alpha.1235043154",
26
- "@applicaster/zapp-react-native-bridge": "14.0.0-alpha.1235043154",
27
- "@applicaster/zapp-react-native-redux": "14.0.0-alpha.1235043154",
28
- "@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.1235043154",
29
- "@applicaster/zapp-react-native-utils": "14.0.0-alpha.1235043154",
25
+ "@applicaster/zapp-react-dom-ui-components": "14.0.0-alpha.1355728993",
26
+ "@applicaster/zapp-react-native-bridge": "14.0.0-alpha.1355728993",
27
+ "@applicaster/zapp-react-native-redux": "14.0.0-alpha.1355728993",
28
+ "@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.1355728993",
29
+ "@applicaster/zapp-react-native-utils": "14.0.0-alpha.1355728993",
30
30
  "abortcontroller-polyfill": "^1.7.5",
31
31
  "typeface-montserrat": "^0.0.54",
32
32
  "video.js": "7.14.3",
@@ -41,6 +41,7 @@
41
41
  "react": "*",
42
42
  "react-dom": "*",
43
43
  "react-native": "*",
44
+ "react-native-safe-area-context": "*",
44
45
  "react-native-svg": "*",
45
46
  "react-native-web": "*",
46
47
  "uglify-js": "*",