@idealyst/storage 1.2.7 → 1.2.8
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/package.json +11 -5
- package/src/index.native.ts +3 -3
- package/src/index.web.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/storage",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"description": "Cross-platform storage abstraction for React and React Native",
|
|
5
5
|
"documentation": "https://github.com/IdealystIO/idealyst-framework/tree/main/packages/storage#readme",
|
|
6
6
|
"readme": "README.md",
|
|
@@ -21,10 +21,16 @@
|
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
23
|
"react-native": "./src/index.native.ts",
|
|
24
|
-
"browser":
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
"browser": {
|
|
25
|
+
"types": "./src/index.web.ts",
|
|
26
|
+
"import": "./src/index.web.ts",
|
|
27
|
+
"require": "./src/index.web.ts"
|
|
28
|
+
},
|
|
29
|
+
"default": {
|
|
30
|
+
"types": "./src/index.ts",
|
|
31
|
+
"import": "./src/index.ts",
|
|
32
|
+
"require": "./src/index.ts"
|
|
33
|
+
}
|
|
28
34
|
}
|
|
29
35
|
},
|
|
30
36
|
"scripts": {
|
package/src/index.native.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import BaseStorage from './storage';
|
|
2
2
|
import NativeStorage from './storage.native';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const storage = new BaseStorage(new NativeStorage());
|
|
5
5
|
|
|
6
|
-
export default
|
|
7
|
-
export { BaseStorage, NativeStorage };
|
|
6
|
+
export default storage;
|
|
7
|
+
export { storage, BaseStorage, NativeStorage };
|
|
8
8
|
export * from './types';
|
package/src/index.web.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import BaseStorage from './storage';
|
|
2
2
|
import WebStorage from './storage.web';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const storage = new BaseStorage(new WebStorage());
|
|
5
5
|
|
|
6
|
-
export default
|
|
7
|
-
export { BaseStorage, WebStorage };
|
|
6
|
+
export default storage;
|
|
7
|
+
export { storage, BaseStorage, WebStorage };
|
|
8
8
|
export * from './types';
|