1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-23 09:38:52 +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, buildTime,
cInfo, cInfo,
currentVersion, currentVersion,
getCurrentVersionInfo, currentVersionInfo,
isFirstTime, isFirstTime,
isRolledBack, isRolledBack,
packageVersion, packageVersion,
@@ -163,7 +163,6 @@ export class Pushy {
log(type + ' ' + message); log(type + ' ' + message);
await this.loggerPromise.promise; await this.loggerPromise.promise;
const { logger = noop, appKey } = this.options; const { logger = noop, appKey } = this.options;
const info = await getCurrentVersionInfo();
const overridePackageVersion = this.options.overridePackageVersion; const overridePackageVersion = this.options.overridePackageVersion;
logger({ logger({
type, type,
@@ -175,7 +174,7 @@ export class Pushy {
overridePackageVersion, overridePackageVersion,
buildTime, buildTime,
message, message,
...info, ...currentVersionInfo,
...data, ...data,
}, },
}); });