@applicaster/zapp-react-dom-app 14.0.0-rc.36 → 14.0.0-rc.38

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