@webority-technologies/mobile-core 0.0.1 → 0.0.3
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/README.md +22 -1
- package/lib/commonjs/api/baseUrl.js +34 -0
- package/lib/commonjs/api/curl.js +109 -0
- package/lib/commonjs/api/publicClient.js +11 -20
- package/lib/commonjs/api/retry.js +75 -0
- package/lib/commonjs/api/userClient.js +46 -22
- package/lib/commonjs/auth/authStore.js +101 -33
- package/lib/commonjs/auth/jwt.js +32 -8
- package/lib/commonjs/config/index.js +2 -1
- package/lib/commonjs/deepLink/index.js +286 -0
- package/lib/commonjs/download/adapters/expoFs.js +100 -0
- package/lib/commonjs/download/adapters/shared.js +13 -0
- package/lib/commonjs/download/index.js +272 -0
- package/lib/commonjs/formatters/date.js +1 -1
- package/lib/commonjs/formatters/index.js +24 -0
- package/lib/commonjs/formatters/phone.js +132 -15
- package/lib/commonjs/geolocation/adapters/expoLocation.js +126 -0
- package/lib/commonjs/geolocation/index.js +339 -0
- package/lib/commonjs/index.js +151 -48
- package/lib/commonjs/initSDK.js +23 -2
- package/lib/commonjs/initUserAuth.js +2 -1
- package/lib/commonjs/logger/index.js +159 -5
- package/lib/commonjs/network/index.js +6 -0
- package/lib/commonjs/network/networkStatus.js +50 -15
- package/lib/commonjs/permissions/index.js +24 -1
- package/lib/commonjs/sqlite/adapters/expo.js +53 -0
- package/lib/commonjs/sqlite/adapters/op.js +43 -0
- package/lib/commonjs/sqlite/adapters/rows.js +33 -0
- package/lib/commonjs/sqlite/adapters/storage.js +50 -0
- package/lib/commonjs/sqlite/adapters/sync.js +45 -0
- package/lib/commonjs/sqlite/index.js +610 -0
- package/lib/commonjs/sqlite/nitro.js +17 -0
- package/lib/commonjs/sqlite/op.js +18 -0
- package/lib/commonjs/sqlite/quick.js +14 -0
- package/lib/commonjs/sqlite/storage.js +14 -0
- package/lib/commonjs/storage/index.js +41 -20
- package/lib/commonjs/types/globals.d.js +6 -0
- package/lib/commonjs/utils/imageCompression.js +51 -14
- package/lib/commonjs/utils/index.js +6 -0
- package/lib/commonjs/versionCheck/index.js +28 -4
- package/lib/module/api/baseUrl.js +30 -0
- package/lib/module/api/curl.js +104 -0
- package/lib/module/api/publicClient.js +11 -20
- package/lib/module/api/retry.js +69 -0
- package/lib/module/api/userClient.js +45 -21
- package/lib/module/auth/authStore.js +99 -32
- package/lib/module/auth/jwt.js +32 -8
- package/lib/module/config/index.js +2 -1
- package/lib/module/deepLink/index.js +280 -0
- package/lib/module/download/adapters/expoFs.js +95 -0
- package/lib/module/download/adapters/shared.js +8 -0
- package/lib/module/download/index.js +264 -0
- package/lib/module/formatters/date.js +1 -1
- package/lib/module/formatters/index.js +1 -1
- package/lib/module/formatters/phone.js +110 -13
- package/lib/module/geolocation/adapters/expoLocation.js +121 -0
- package/lib/module/geolocation/index.js +332 -0
- package/lib/module/index.js +28 -11
- package/lib/module/initSDK.js +23 -2
- package/lib/module/initUserAuth.js +2 -1
- package/lib/module/logger/index.js +156 -4
- package/lib/module/network/index.js +1 -1
- package/lib/module/network/networkStatus.js +47 -14
- package/lib/module/permissions/index.js +22 -0
- package/lib/module/sqlite/adapters/expo.js +48 -0
- package/lib/module/sqlite/adapters/op.js +38 -0
- package/lib/module/sqlite/adapters/rows.js +28 -0
- package/lib/module/sqlite/adapters/storage.js +46 -0
- package/lib/module/sqlite/adapters/sync.js +41 -0
- package/lib/module/sqlite/index.js +600 -0
- package/lib/module/sqlite/nitro.js +12 -0
- package/lib/module/sqlite/op.js +13 -0
- package/lib/module/sqlite/quick.js +9 -0
- package/lib/module/sqlite/storage.js +9 -0
- package/lib/module/storage/index.js +38 -19
- package/lib/module/types/globals.d.js +10 -0
- package/lib/module/utils/imageCompression.js +49 -13
- package/lib/module/utils/index.js +1 -1
- package/lib/module/versionCheck/index.js +27 -4
- package/lib/typescript/commonjs/api/baseUrl.d.ts +20 -0
- package/lib/typescript/commonjs/api/curl.d.ts +18 -0
- package/lib/typescript/commonjs/api/retry.d.ts +27 -0
- package/lib/typescript/commonjs/api/userClient.d.ts +11 -0
- package/lib/typescript/commonjs/auth/authStore.d.ts +29 -6
- package/lib/typescript/commonjs/config/index.d.ts +6 -0
- package/lib/typescript/commonjs/deepLink/index.d.ts +54 -0
- package/lib/typescript/commonjs/download/adapters/expoFs.d.ts +45 -0
- package/lib/typescript/commonjs/download/adapters/shared.d.ts +3 -0
- package/lib/typescript/commonjs/download/index.d.ts +76 -0
- package/lib/typescript/commonjs/formatters/index.d.ts +2 -1
- package/lib/typescript/commonjs/formatters/phone.d.ts +27 -1
- package/lib/typescript/commonjs/geolocation/adapters/expoLocation.d.ts +42 -0
- package/lib/typescript/commonjs/geolocation/index.d.ts +89 -0
- package/lib/typescript/commonjs/index.d.ts +30 -13
- package/lib/typescript/commonjs/initSDK.d.ts +32 -0
- package/lib/typescript/commonjs/logger/index.d.ts +39 -0
- package/lib/typescript/commonjs/network/index.d.ts +2 -2
- package/lib/typescript/commonjs/network/networkStatus.d.ts +16 -0
- package/lib/typescript/commonjs/permissions/index.d.ts +35 -0
- package/lib/typescript/commonjs/sqlite/adapters/expo.d.ts +30 -0
- package/lib/typescript/commonjs/sqlite/adapters/op.d.ts +27 -0
- package/lib/typescript/commonjs/sqlite/adapters/rows.d.ts +7 -0
- package/lib/typescript/commonjs/sqlite/adapters/storage.d.ts +30 -0
- package/lib/typescript/commonjs/sqlite/adapters/sync.d.ts +31 -0
- package/lib/typescript/commonjs/sqlite/index.d.ts +121 -0
- package/lib/typescript/commonjs/sqlite/nitro.d.ts +7 -0
- package/lib/typescript/commonjs/sqlite/op.d.ts +8 -0
- package/lib/typescript/commonjs/sqlite/quick.d.ts +4 -0
- package/lib/typescript/commonjs/sqlite/storage.d.ts +4 -0
- package/lib/typescript/commonjs/storage/index.d.ts +25 -3
- package/lib/typescript/commonjs/utils/imageCompression.d.ts +17 -0
- package/lib/typescript/commonjs/utils/index.d.ts +2 -2
- package/lib/typescript/module/api/baseUrl.d.ts +20 -0
- package/lib/typescript/module/api/curl.d.ts +18 -0
- package/lib/typescript/module/api/retry.d.ts +27 -0
- package/lib/typescript/module/api/userClient.d.ts +11 -0
- package/lib/typescript/module/auth/authStore.d.ts +29 -6
- package/lib/typescript/module/config/index.d.ts +6 -0
- package/lib/typescript/module/deepLink/index.d.ts +54 -0
- package/lib/typescript/module/download/adapters/expoFs.d.ts +45 -0
- package/lib/typescript/module/download/adapters/shared.d.ts +3 -0
- package/lib/typescript/module/download/index.d.ts +76 -0
- package/lib/typescript/module/formatters/index.d.ts +2 -1
- package/lib/typescript/module/formatters/phone.d.ts +27 -1
- package/lib/typescript/module/geolocation/adapters/expoLocation.d.ts +42 -0
- package/lib/typescript/module/geolocation/index.d.ts +89 -0
- package/lib/typescript/module/index.d.ts +30 -13
- package/lib/typescript/module/initSDK.d.ts +32 -0
- package/lib/typescript/module/logger/index.d.ts +39 -0
- package/lib/typescript/module/network/index.d.ts +2 -2
- package/lib/typescript/module/network/networkStatus.d.ts +16 -0
- package/lib/typescript/module/permissions/index.d.ts +35 -0
- package/lib/typescript/module/sqlite/adapters/expo.d.ts +30 -0
- package/lib/typescript/module/sqlite/adapters/op.d.ts +27 -0
- package/lib/typescript/module/sqlite/adapters/rows.d.ts +7 -0
- package/lib/typescript/module/sqlite/adapters/storage.d.ts +30 -0
- package/lib/typescript/module/sqlite/adapters/sync.d.ts +31 -0
- package/lib/typescript/module/sqlite/index.d.ts +121 -0
- package/lib/typescript/module/sqlite/nitro.d.ts +7 -0
- package/lib/typescript/module/sqlite/op.d.ts +8 -0
- package/lib/typescript/module/sqlite/quick.d.ts +4 -0
- package/lib/typescript/module/sqlite/storage.d.ts +4 -0
- package/lib/typescript/module/storage/index.d.ts +25 -3
- package/lib/typescript/module/utils/imageCompression.d.ts +17 -0
- package/lib/typescript/module/utils/index.d.ts +2 -2
- package/package.json +102 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority-technologies/mobile-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Platform layer for Webority React Native apps: HTTP clients, auth/token storage, config, logging, formatters, validators, network status, permissions, storage and version checks. No UI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -30,7 +30,88 @@
|
|
|
30
30
|
"types": "./lib/typescript/commonjs/index.d.ts",
|
|
31
31
|
"default": "./lib/commonjs/index.js"
|
|
32
32
|
}
|
|
33
|
-
}
|
|
33
|
+
},
|
|
34
|
+
"./permissions": {
|
|
35
|
+
"import": {
|
|
36
|
+
"types": "./lib/typescript/module/permissions/index.d.ts",
|
|
37
|
+
"default": "./lib/module/permissions/index.js"
|
|
38
|
+
},
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./lib/typescript/commonjs/permissions/index.d.ts",
|
|
41
|
+
"default": "./lib/commonjs/permissions/index.js"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"./geolocation": {
|
|
45
|
+
"import": {
|
|
46
|
+
"types": "./lib/typescript/module/geolocation/index.d.ts",
|
|
47
|
+
"default": "./lib/module/geolocation/index.js"
|
|
48
|
+
},
|
|
49
|
+
"require": {
|
|
50
|
+
"types": "./lib/typescript/commonjs/geolocation/index.d.ts",
|
|
51
|
+
"default": "./lib/commonjs/geolocation/index.js"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"./sqlite": {
|
|
55
|
+
"import": {
|
|
56
|
+
"types": "./lib/typescript/module/sqlite/index.d.ts",
|
|
57
|
+
"default": "./lib/module/sqlite/index.js"
|
|
58
|
+
},
|
|
59
|
+
"require": {
|
|
60
|
+
"types": "./lib/typescript/commonjs/sqlite/index.d.ts",
|
|
61
|
+
"default": "./lib/commonjs/sqlite/index.js"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"./download": {
|
|
65
|
+
"import": {
|
|
66
|
+
"types": "./lib/typescript/module/download/index.d.ts",
|
|
67
|
+
"default": "./lib/module/download/index.js"
|
|
68
|
+
},
|
|
69
|
+
"require": {
|
|
70
|
+
"types": "./lib/typescript/commonjs/download/index.d.ts",
|
|
71
|
+
"default": "./lib/commonjs/download/index.js"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"./sqlite/op": {
|
|
75
|
+
"import": {
|
|
76
|
+
"types": "./lib/typescript/module/sqlite/op.d.ts",
|
|
77
|
+
"default": "./lib/module/sqlite/op.js"
|
|
78
|
+
},
|
|
79
|
+
"require": {
|
|
80
|
+
"types": "./lib/typescript/commonjs/sqlite/op.d.ts",
|
|
81
|
+
"default": "./lib/commonjs/sqlite/op.js"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"./sqlite/nitro": {
|
|
85
|
+
"import": {
|
|
86
|
+
"types": "./lib/typescript/module/sqlite/nitro.d.ts",
|
|
87
|
+
"default": "./lib/module/sqlite/nitro.js"
|
|
88
|
+
},
|
|
89
|
+
"require": {
|
|
90
|
+
"types": "./lib/typescript/commonjs/sqlite/nitro.d.ts",
|
|
91
|
+
"default": "./lib/commonjs/sqlite/nitro.js"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"./sqlite/quick": {
|
|
95
|
+
"import": {
|
|
96
|
+
"types": "./lib/typescript/module/sqlite/quick.d.ts",
|
|
97
|
+
"default": "./lib/module/sqlite/quick.js"
|
|
98
|
+
},
|
|
99
|
+
"require": {
|
|
100
|
+
"types": "./lib/typescript/commonjs/sqlite/quick.d.ts",
|
|
101
|
+
"default": "./lib/commonjs/sqlite/quick.js"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"./sqlite/storage": {
|
|
105
|
+
"import": {
|
|
106
|
+
"types": "./lib/typescript/module/sqlite/storage.d.ts",
|
|
107
|
+
"default": "./lib/module/sqlite/storage.js"
|
|
108
|
+
},
|
|
109
|
+
"require": {
|
|
110
|
+
"types": "./lib/typescript/commonjs/sqlite/storage.d.ts",
|
|
111
|
+
"default": "./lib/commonjs/sqlite/storage.js"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"./package.json": "./package.json"
|
|
34
115
|
},
|
|
35
116
|
"main": "./lib/commonjs/index.js",
|
|
36
117
|
"module": "./lib/module/index.js",
|
|
@@ -53,31 +134,39 @@
|
|
|
53
134
|
},
|
|
54
135
|
"dependencies": {
|
|
55
136
|
"axios": "^1.19.0",
|
|
56
|
-
"
|
|
137
|
+
"libphonenumber-js": "^1.12.41"
|
|
57
138
|
},
|
|
58
139
|
"peerDependencies": {
|
|
59
|
-
"@
|
|
60
|
-
"
|
|
140
|
+
"@op-engineering/op-sqlite": "*",
|
|
141
|
+
"expo": ">=57.0.0",
|
|
142
|
+
"expo-application": ">=57.0.0",
|
|
143
|
+
"expo-file-system": ">=57.0.0",
|
|
144
|
+
"expo-image-manipulator": ">=57.0.0",
|
|
145
|
+
"expo-location": ">=57.0.0",
|
|
146
|
+
"expo-network": ">=57.0.0",
|
|
147
|
+
"expo-secure-store": ">=57.0.0",
|
|
148
|
+
"expo-sqlite": ">=57.0.0",
|
|
61
149
|
"react": "^19.1.0",
|
|
62
150
|
"react-native": ">=0.81.0",
|
|
63
|
-
"react-native-
|
|
64
|
-
"react-native-
|
|
65
|
-
"react-native-
|
|
151
|
+
"react-native-nitro-sqlite": "*",
|
|
152
|
+
"react-native-permissions": ">=4.0.0",
|
|
153
|
+
"react-native-quick-sqlite": "*",
|
|
154
|
+
"react-native-sqlite-storage": "*"
|
|
66
155
|
},
|
|
67
156
|
"peerDependenciesMeta": {
|
|
68
|
-
"@
|
|
157
|
+
"@op-engineering/op-sqlite": {
|
|
69
158
|
"optional": true
|
|
70
159
|
},
|
|
71
|
-
"
|
|
160
|
+
"react-native-nitro-sqlite": {
|
|
72
161
|
"optional": true
|
|
73
162
|
},
|
|
74
|
-
"react-native-
|
|
163
|
+
"react-native-permissions": {
|
|
75
164
|
"optional": true
|
|
76
165
|
},
|
|
77
|
-
"react-native-
|
|
166
|
+
"react-native-quick-sqlite": {
|
|
78
167
|
"optional": true
|
|
79
168
|
},
|
|
80
|
-
"react-native-
|
|
169
|
+
"react-native-sqlite-storage": {
|
|
81
170
|
"optional": true
|
|
82
171
|
}
|
|
83
172
|
},
|