1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-12-21 21:23:57 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

update react-native-update version from 10.35.6 to 10.35.7 in package.json and bun.lock

This commit is contained in:
sunnylqm
2025-11-04 19:54:54 +08:00
parent 6661e307cd
commit 38229a8bca
5 changed files with 18 additions and 11 deletions

View File

@@ -13,7 +13,12 @@ import {
Linking,
} from 'react-native';
import { Pushy, Cresc, sharedState } from './client';
import { currentVersion, packageVersion, getCurrentVersionInfo, currentVersionInfo } from './core';
import {
currentVersion,
packageVersion,
getCurrentVersionInfo,
currentVersionInfo,
} from './core';
import {
CheckResult,
ProgressData,
@@ -165,7 +170,7 @@ export const UpdateProvider = ({
lastChecking.current = now;
let rootInfo: CheckResult | undefined;
try {
rootInfo = await client.checkUpdate(extra);
rootInfo = { ...(await client.checkUpdate(extra)) };
} catch (e: any) {
setLastError(e);
alertError(client.t('error_update_check_failed'), e.message);
@@ -175,7 +180,9 @@ export const UpdateProvider = ({
if (!rootInfo) {
return;
}
const versions = [rootInfo.expVersion, rootInfo].filter(Boolean) as VersionInfo[];
const versions = [rootInfo.expVersion, rootInfo].filter(
Boolean,
) as VersionInfo[];
delete rootInfo.expVersion;
for (const versionInfo of versions) {
const info: CheckResult = {