Skip to content

Commit

Permalink
fix: Fix disableVersionCheck being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Feb 12, 2023
1 parent f87148b commit 196fa8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ type HttpContext = {

const buildHttpContext = (params: CreateClientParams): HttpContext => {
const version =
params.version == undefined ? undefined : new SemVer(params.version, true);
params.version && !params.disableVersionCheck
? new SemVer(params.version, true)
: undefined;

const props = { ...params, version };

const serializer = new SerializerNativeImpl();
Expand Down

0 comments on commit 196fa8f

Please sign in to comment.