@sendoracloud/sdk-react-native 1.14.0 → 1.15.0
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/dist/index.cjs +20 -5
- package/dist/index.js +20 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -139,7 +139,7 @@ var Storage = class {
|
|
|
139
139
|
// package.json
|
|
140
140
|
var package_default = {
|
|
141
141
|
name: "@sendoracloud/sdk-react-native",
|
|
142
|
-
version: "1.
|
|
142
|
+
version: "1.15.0",
|
|
143
143
|
description: "Sendora Cloud React Native + Expo SDK \u2014 analytics, identity, push-token registration, auth, deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push token registration requires a Dev Client (EAS Build or `npx expo prebuild`).",
|
|
144
144
|
type: "module",
|
|
145
145
|
main: "./dist/index.cjs",
|
|
@@ -2069,6 +2069,14 @@ function expoModule(name) {
|
|
|
2069
2069
|
if (m && typeof m === "object") return m;
|
|
2070
2070
|
} catch {
|
|
2071
2071
|
}
|
|
2072
|
+
try {
|
|
2073
|
+
const g = globalThis;
|
|
2074
|
+
const nm = import_react_native4.NativeModules;
|
|
2075
|
+
const proxy = g?.expo?.modules?.NativeModulesProxy ?? nm?.NativeUnimoduleProxy;
|
|
2076
|
+
const consts = proxy?.modulesConstants?.[name];
|
|
2077
|
+
if (consts && typeof consts === "object") return consts;
|
|
2078
|
+
} catch {
|
|
2079
|
+
}
|
|
2072
2080
|
try {
|
|
2073
2081
|
const nm = import_react_native4.NativeModules;
|
|
2074
2082
|
const m = nm?.[name];
|
|
@@ -2077,12 +2085,17 @@ function expoModule(name) {
|
|
|
2077
2085
|
}
|
|
2078
2086
|
return void 0;
|
|
2079
2087
|
}
|
|
2080
|
-
function
|
|
2088
|
+
function expoApplicationVersion() {
|
|
2089
|
+
const a = expoModule("ExpoApplication");
|
|
2090
|
+
const v = a?.nativeApplicationVersion;
|
|
2091
|
+
return typeof v === "string" && v ? v : "";
|
|
2092
|
+
}
|
|
2093
|
+
function expoConstantsVersion() {
|
|
2081
2094
|
const c = expoModule("ExponentConstants") ?? expoModule("ExpoConstants");
|
|
2082
2095
|
if (!c) return "";
|
|
2083
2096
|
if (typeof c.nativeAppVersion === "string" && c.nativeAppVersion) return c.nativeAppVersion;
|
|
2084
2097
|
try {
|
|
2085
|
-
const raw = c.
|
|
2098
|
+
const raw = c.manifest ?? c.expoConfig ?? c.manifest2;
|
|
2086
2099
|
const m = typeof raw === "string" ? JSON.parse(raw) : raw;
|
|
2087
2100
|
const v = m?.version;
|
|
2088
2101
|
return typeof v === "string" ? v : "";
|
|
@@ -2097,8 +2110,10 @@ function expoDeviceModel() {
|
|
|
2097
2110
|
}
|
|
2098
2111
|
function resolveAppVersion(configAppVersion) {
|
|
2099
2112
|
if (configAppVersion) return configAppVersion;
|
|
2100
|
-
const
|
|
2101
|
-
if (
|
|
2113
|
+
const appMod = expoApplicationVersion();
|
|
2114
|
+
if (appMod) return appMod;
|
|
2115
|
+
const constMod = expoConstantsVersion();
|
|
2116
|
+
if (constMod) return constMod;
|
|
2102
2117
|
try {
|
|
2103
2118
|
const env = process.env.EXPO_PUBLIC_APP_VERSION;
|
|
2104
2119
|
if (env) return env;
|
package/dist/index.js
CHANGED
|
@@ -96,7 +96,7 @@ var Storage = class {
|
|
|
96
96
|
// package.json
|
|
97
97
|
var package_default = {
|
|
98
98
|
name: "@sendoracloud/sdk-react-native",
|
|
99
|
-
version: "1.
|
|
99
|
+
version: "1.15.0",
|
|
100
100
|
description: "Sendora Cloud React Native + Expo SDK \u2014 analytics, identity, push-token registration, auth, deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push token registration requires a Dev Client (EAS Build or `npx expo prebuild`).",
|
|
101
101
|
type: "module",
|
|
102
102
|
main: "./dist/index.cjs",
|
|
@@ -2031,6 +2031,14 @@ function expoModule(name) {
|
|
|
2031
2031
|
if (m && typeof m === "object") return m;
|
|
2032
2032
|
} catch {
|
|
2033
2033
|
}
|
|
2034
|
+
try {
|
|
2035
|
+
const g = globalThis;
|
|
2036
|
+
const nm = NativeModules;
|
|
2037
|
+
const proxy = g?.expo?.modules?.NativeModulesProxy ?? nm?.NativeUnimoduleProxy;
|
|
2038
|
+
const consts = proxy?.modulesConstants?.[name];
|
|
2039
|
+
if (consts && typeof consts === "object") return consts;
|
|
2040
|
+
} catch {
|
|
2041
|
+
}
|
|
2034
2042
|
try {
|
|
2035
2043
|
const nm = NativeModules;
|
|
2036
2044
|
const m = nm?.[name];
|
|
@@ -2039,12 +2047,17 @@ function expoModule(name) {
|
|
|
2039
2047
|
}
|
|
2040
2048
|
return void 0;
|
|
2041
2049
|
}
|
|
2042
|
-
function
|
|
2050
|
+
function expoApplicationVersion() {
|
|
2051
|
+
const a = expoModule("ExpoApplication");
|
|
2052
|
+
const v = a?.nativeApplicationVersion;
|
|
2053
|
+
return typeof v === "string" && v ? v : "";
|
|
2054
|
+
}
|
|
2055
|
+
function expoConstantsVersion() {
|
|
2043
2056
|
const c = expoModule("ExponentConstants") ?? expoModule("ExpoConstants");
|
|
2044
2057
|
if (!c) return "";
|
|
2045
2058
|
if (typeof c.nativeAppVersion === "string" && c.nativeAppVersion) return c.nativeAppVersion;
|
|
2046
2059
|
try {
|
|
2047
|
-
const raw = c.
|
|
2060
|
+
const raw = c.manifest ?? c.expoConfig ?? c.manifest2;
|
|
2048
2061
|
const m = typeof raw === "string" ? JSON.parse(raw) : raw;
|
|
2049
2062
|
const v = m?.version;
|
|
2050
2063
|
return typeof v === "string" ? v : "";
|
|
@@ -2059,8 +2072,10 @@ function expoDeviceModel() {
|
|
|
2059
2072
|
}
|
|
2060
2073
|
function resolveAppVersion(configAppVersion) {
|
|
2061
2074
|
if (configAppVersion) return configAppVersion;
|
|
2062
|
-
const
|
|
2063
|
-
if (
|
|
2075
|
+
const appMod = expoApplicationVersion();
|
|
2076
|
+
if (appMod) return appMod;
|
|
2077
|
+
const constMod = expoConstantsVersion();
|
|
2078
|
+
if (constMod) return constMod;
|
|
2064
2079
|
try {
|
|
2065
2080
|
const env = process.env.EXPO_PUBLIC_APP_VERSION;
|
|
2066
2081
|
if (env) return env;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sendoracloud/sdk-react-native",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "Sendora Cloud React Native + Expo SDK — analytics, identity, push-token registration, auth, deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push token registration requires a Dev Client (EAS Build or `npx expo prebuild`).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|