1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-23 01:36:43 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Refactor Pushy class to replace getCurrentVersionInfo with currentVersionInfo for improved clarity and consistency.

This commit is contained in:
sunnylqm
2025-09-28 21:57:56 +08:00
parent 8f8a29eda8
commit c24f469475

View File

@@ -8,7 +8,7 @@ import {
buildTime,
cInfo,
currentVersion,
getCurrentVersionInfo,
currentVersionInfo,
isFirstTime,
isRolledBack,
packageVersion,
@@ -163,7 +163,6 @@ export class Pushy {
log(type + ' ' + message);
await this.loggerPromise.promise;
const { logger = noop, appKey } = this.options;
const info = await getCurrentVersionInfo();
const overridePackageVersion = this.options.overridePackageVersion;
logger({
type,
@@ -175,7 +174,7 @@ export class Pushy {
overridePackageVersion,
buildTime,
message,
...info,
...currentVersionInfo,
...data,
},
});