From c24f469475bba2fe524f195273bb92338e746fdb Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Sun, 28 Sep 2025 21:57:56 +0800 Subject: [PATCH] Refactor Pushy class to replace getCurrentVersionInfo with currentVersionInfo for improved clarity and consistency. --- src/client.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client.ts b/src/client.ts index a3664c1..d0cf554 100644 --- a/src/client.ts +++ b/src/client.ts @@ -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, }, });