Skip to content

Commit

Permalink
fix: Remove obsolete debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Nov 11, 2022
1 parent 333fbf0 commit 79cb0d8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/entrypoints/nodejs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,17 @@ import { SerializerNodejsImpl } from '../serializers';
import { WsNodejsImpl } from '../ws';

export const login = async (config: MastoConfig): Promise<MastoClient> => {
const version = 'yay yay';

const serializer = new SerializerNodejsImpl();
const http = new HttpAxiosImpl(config, serializer);
const instance = await new InstanceRepository(http, '1.0.0', config).fetch();
const ws = new WsNodejsImpl(
instance.urls.streamingApi,
version,
instance.version,
config,
serializer,
);

return new MastoClient(http, ws, version, config);
return new MastoClient(http, ws, instance.version, config);
};

export * from '../decorators';
Expand Down

0 comments on commit 79cb0d8

Please sign in to comment.