esoftplay 0.0.136-k → 0.0.136-l

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.
package/mmkv.ts CHANGED
@@ -9,7 +9,7 @@ const FastStorage = {
9
9
  setItem(key: string, value: string) {
10
10
  storage.set(key, value)
11
11
  },
12
- async removeItem(key: string) {
12
+ removeItem(key: string) {
13
13
  storage.delete(key)
14
14
  },
15
15
  clear(): void {
@@ -1,6 +1,7 @@
1
1
  // noPage
2
2
  // withObject
3
3
  import AsyncStorage from '@react-native-async-storage/async-storage';
4
+ import FastStorage from 'esoftplay/mmkv';
4
5
  import Storage from 'esoftplay/storage';
5
6
 
6
7
  export default {
@@ -28,6 +29,7 @@ export default {
28
29
  if (x) {
29
30
  const arx = JSON.parse(x)
30
31
  AsyncStorage.multiRemove(arx)
32
+ arx.forEach((ix) => { FastStorage.removeItem(ix) })
31
33
  arx.forEach((ix) => { Storage.removeItem(ix) })
32
34
  }
33
35
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.136-k",
3
+ "version": "0.0.136-l",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",