llama-pay-sdk 4.3.3 → 4.3.4
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/lib/device-info.d.ts.map +1 -1
- package/lib/device-info.js +1 -19
- package/lib/device-info.js.map +1 -1
- package/package.json +4 -1
package/lib/device-info.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-info.d.ts","sourceRoot":"","sources":["../src/device-info.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,cAAc,GAAG,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"device-info.d.ts","sourceRoot":"","sources":["../src/device-info.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,cAAc,GAAG,SAAS,CAAA;AAEzD,wBAAsB,YAAY,oBAEjC;AAED,wBAAsB,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAEnD;AAED,wBAAsB,WAAW,oBAEhC"}
|
package/lib/device-info.js
CHANGED
|
@@ -7,16 +7,6 @@ exports.getUserAgent = getUserAgent;
|
|
|
7
7
|
exports.getDeviceId = getDeviceId;
|
|
8
8
|
exports.getBundleId = getBundleId;
|
|
9
9
|
const react_native_device_info_1 = __importDefault(require("react-native-device-info"));
|
|
10
|
-
function detectPlatform() {
|
|
11
|
-
if (typeof window !== 'undefined' && typeof document !== 'undefined') {
|
|
12
|
-
return 'web';
|
|
13
|
-
}
|
|
14
|
-
if (typeof navigator !== 'undefined' &&
|
|
15
|
-
navigator.product === 'ReactNative') {
|
|
16
|
-
return 'react-native';
|
|
17
|
-
}
|
|
18
|
-
return 'unknown';
|
|
19
|
-
}
|
|
20
10
|
async function getUserAgent() {
|
|
21
11
|
return react_native_device_info_1.default.getUserAgent();
|
|
22
12
|
}
|
|
@@ -24,14 +14,6 @@ async function getDeviceId() {
|
|
|
24
14
|
return react_native_device_info_1.default.getUniqueId();
|
|
25
15
|
}
|
|
26
16
|
async function getBundleId() {
|
|
27
|
-
|
|
28
|
-
switch (platform) {
|
|
29
|
-
case 'web':
|
|
30
|
-
return location.origin;
|
|
31
|
-
case 'react-native':
|
|
32
|
-
return react_native_device_info_1.default.getBundleId();
|
|
33
|
-
default:
|
|
34
|
-
return 'Unknown';
|
|
35
|
-
}
|
|
17
|
+
return react_native_device_info_1.default.getBundleId();
|
|
36
18
|
}
|
|
37
19
|
//# sourceMappingURL=device-info.js.map
|
package/lib/device-info.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-info.js","sourceRoot":"","sources":["../src/device-info.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"device-info.js","sourceRoot":"","sources":["../src/device-info.ts"],"names":[],"mappings":";;;;;AAIA,oCAEC;AAED,kCAEC;AAED,kCAEC;AAdD,wFAAiD;AAI1C,KAAK,UAAU,YAAY;IAC9B,OAAO,kCAAU,CAAC,YAAY,EAAE,CAAA;AACpC,CAAC;AAEM,KAAK,UAAU,WAAW;IAC7B,OAAO,kCAAU,CAAC,WAAW,EAAE,CAAA;AACnC,CAAC;AAEM,KAAK,UAAU,WAAW;IAC7B,OAAO,kCAAU,CAAC,WAAW,EAAE,CAAA;AACnC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "llama-pay-sdk",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.4",
|
|
4
4
|
"description": "Official SDK for ethpar services. For more details visit https://www.ethpar.com/#join-network",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
7
7
|
"browser": {
|
|
8
8
|
"./lib/device-info.js": "./lib/device-info.web.js"
|
|
9
9
|
},
|
|
10
|
+
"react-native": {
|
|
11
|
+
"./lib/device-info.js": "./lib/device-info.js"
|
|
12
|
+
},
|
|
10
13
|
"exports": {
|
|
11
14
|
".": {
|
|
12
15
|
"require": "./lib/index.js",
|