Skip to content

Commit 44e0f58

Browse files
committed
Merge branch 'feat/ci/auto-fmt' of https://github.com/LIT-Protocol/js-sdk into feat/ci/auto-fmt
2 parents 70830d9 + 6280ef8 commit 44e0f58

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

packages/lit-node-client-nodejs/src/lib/lit-node-client-nodejs.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ import type {
135135

136136
export class LitNodeClientNodeJs
137137
extends LitCore
138-
implements LitClientSessionManager, ILitNodeClient {
138+
implements LitClientSessionManager, ILitNodeClient
139+
{
139140
defaultAuthCallback?: (authSigParams: AuthCallbackParams) => Promise<AuthSig>;
140141

141142
// ========== Constructor ==========
@@ -1292,8 +1293,8 @@ export class LitNodeClientNodeJs
12921293
// -- optional params
12931294
...(params.authMethods &&
12941295
params.authMethods.length > 0 && {
1295-
authMethods: params.authMethods,
1296-
}),
1296+
authMethods: params.authMethods,
1297+
}),
12971298
};
12981299

12991300
logWithRequestId(requestId, 'reqBody:', reqBody);
@@ -2092,7 +2093,6 @@ export class LitNodeClientNodeJs
20922093
getSessionSigs = async (
20932094
params: GetSessionSigsProps
20942095
): Promise<SessionSigsMap> => {
2095-
20962096
// -- prepare
20972097
// Try to get it from local storage, if not generates one~
20982098
const sessionKey = params.sessionKey ?? this.getSessionKey();
@@ -2103,10 +2103,8 @@ export class LitNodeClientNodeJs
21032103
const sessionCapabilityObject = params.sessionCapabilityObject
21042104
? params.sessionCapabilityObject
21052105
: await this.generateSessionCapabilityObjectWithWildcards(
2106-
params.resourceAbilityRequests.map((
2107-
r
2108-
) => r.resource)
2109-
);
2106+
params.resourceAbilityRequests.map((r) => r.resource)
2107+
);
21102108
const expiration = params.expiration || LitNodeClientNodeJs.getExpiration();
21112109

21122110
// -- (TRY) to get the wallet signature
@@ -2189,10 +2187,10 @@ export class LitNodeClientNodeJs
21892187

21902188
const capabilities = params.capacityDelegationAuthSig
21912189
? [
2192-
...(params.capabilityAuthSigs ?? []),
2193-
params.capacityDelegationAuthSig,
2194-
authSig,
2195-
]
2190+
...(params.capabilityAuthSigs ?? []),
2191+
params.capacityDelegationAuthSig,
2192+
authSig,
2193+
]
21962194
: [...(params.capabilityAuthSigs ?? []), authSig];
21972195

21982196
const signingTemplate = {

0 commit comments

Comments
 (0)