@applicaster/zapp-react-native-bridge 12.0.0-rc.64 → 12.0.0-rc.65

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.
@@ -110,12 +110,20 @@ export abstract class Storage {
110
110
 
111
111
  // Storage methods
112
112
 
113
- getItem = async (key, namespace = DEFAULT_NAMESPACE) => {
113
+ getItem = async (
114
+ key,
115
+ namespace = DEFAULT_NAMESPACE,
116
+ skipJsonParse = false
117
+ ) => {
114
118
  if (!key) throwUndefinedKeyError(this.storageName, UNDEFINED_KEY_MESSAGE);
115
119
 
116
120
  try {
117
121
  const result = await this.nativeStorageModule.getItem(key, namespace);
118
122
 
123
+ if (skipJsonParse) {
124
+ return result;
125
+ }
126
+
119
127
  return parseJsonIfNeeded(result);
120
128
  } catch (error) {
121
129
  throwNativeStorageError(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-bridge",
3
- "version": "12.0.0-rc.64",
3
+ "version": "12.0.0-rc.65",
4
4
  "description": "Applicaster Zapp React Native modules",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -33,7 +33,7 @@
33
33
  "homepage": "https://github.com/applicaster/quickbrick#readme",
34
34
  "dependencies": {
35
35
  "@applicaster/zapp-pipes-dev-kit": "1.4.7",
36
- "@applicaster/zapp-react-native-utils": "12.0.0-rc.64",
36
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.65",
37
37
  "md5": "^2.3.0",
38
38
  "uuid": "^3.3.2"
39
39
  },