Skip to content

Commit c24f469

Browse files
committed
Refactor Pushy class to replace getCurrentVersionInfo with currentVersionInfo for improved clarity and consistency.
1 parent 8f8a29e commit c24f469

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/client.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
buildTime,
99
cInfo,
1010
currentVersion,
11-
getCurrentVersionInfo,
11+
currentVersionInfo,
1212
isFirstTime,
1313
isRolledBack,
1414
packageVersion,
@@ -163,7 +163,6 @@ export class Pushy {
163163
log(type + ' ' + message);
164164
await this.loggerPromise.promise;
165165
const { logger = noop, appKey } = this.options;
166-
const info = await getCurrentVersionInfo();
167166
const overridePackageVersion = this.options.overridePackageVersion;
168167
logger({
169168
type,
@@ -175,7 +174,7 @@ export class Pushy {
175174
overridePackageVersion,
176175
buildTime,
177176
message,
178-
...info,
177+
...currentVersionInfo,
179178
...data,
180179
},
181180
});

0 commit comments

Comments
 (0)