Skip to content

Commit 20010a9

Browse files
committed
Update version to 1.43.1 and handle optional chaining for origin URL in getCommitInfo function
1 parent 36220a4 commit 20010a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update-cli",
3-
"version": "1.43.0",
3+
"version": "1.43.1",
44
"description": "command line tool for react-native-update (remote updates for react native)",
55
"main": "index.js",
66
"bin": {

src/utils/git.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export async function getCommitInfo(): Promise<CommitInfo | undefined> {
4141
message: commit.message,
4242
author: commit.author.name || commit.committer.name,
4343
timestamp: String(commit.committer.timestamp),
44-
origin: origin.url,
44+
origin: origin?.url,
4545
};
4646
} catch (error) {
4747
console.error(error);

0 commit comments

Comments
 (0)