mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-12-21 21:23:57 +08:00
update react-native-update version from 10.35.6 to 10.35.7 in package.json and bun.lock
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user