From a40d627edf4622b2645fc47e357b0eb41ba2bb9a Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Mon, 26 Aug 2024 18:57:13 +0800 Subject: [PATCH] v10.13.2 --- package.json | 2 +- src/client.ts | 2 +- src/provider.tsx | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 90b3927..b255f32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-update", - "version": "10.13.1", + "version": "10.13.2", "description": "react-native hot update", "main": "src/index", "scripts": { diff --git a/src/client.ts b/src/client.ts index 4c2b770..8c32958 100644 --- a/src/client.ts +++ b/src/client.ts @@ -277,7 +277,7 @@ export class Pushy { paths = [], name, description = '', - metaInfo = '', + metaInfo, } = info; if ( this.options.beforeDownloadUpdate && diff --git a/src/provider.tsx b/src/provider.tsx index eff89cf..7067e5e 100644 --- a/src/provider.tsx +++ b/src/provider.tsx @@ -165,6 +165,7 @@ export const PushyProvider = ({ if (!info) { return; } + info.description = info.description ?? ''; updateInfoRef.current = info; setUpdateInfo(info); if (info.expired) {