1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-16 01:41:37 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Update version to 1.43.1 and handle optional chaining for origin URL in getCommitInfo function

This commit is contained in:
sunnylqm
2025-04-07 19:56:17 +08:00
parent 36220a48aa
commit 20010a9ea6
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "react-native-update-cli",
"version": "1.43.0",
"version": "1.43.1",
"description": "command line tool for react-native-update (remote updates for react native)",
"main": "index.js",
"bin": {

View File

@@ -41,7 +41,7 @@ export async function getCommitInfo(): Promise<CommitInfo | undefined> {
message: commit.message,
author: commit.author.name || commit.committer.name,
timestamp: String(commit.committer.timestamp),
origin: origin.url,
origin: origin?.url,
};
} catch (error) {
console.error(error);