mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-16 09:41:38 +08:00
Update version to 1.43.1 and handle optional chaining for origin URL in getCommitInfo function
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update-cli",
|
"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)",
|
"description": "command line tool for react-native-update (remote updates for react native)",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@@ -41,7 +41,7 @@ export async function getCommitInfo(): Promise<CommitInfo | undefined> {
|
|||||||
message: commit.message,
|
message: commit.message,
|
||||||
author: commit.author.name || commit.committer.name,
|
author: commit.author.name || commit.committer.name,
|
||||||
timestamp: String(commit.committer.timestamp),
|
timestamp: String(commit.committer.timestamp),
|
||||||
origin: origin.url,
|
origin: origin?.url,
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
Reference in New Issue
Block a user