Skip to content

Commit

Permalink
chore(): remove unnecssary tsconfig src, update example
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosiebler committed Jan 30, 2025
1 parent 508dc39 commit 632bfed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions examples/ws-userdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {
DefaultLogger,
isWsFormattedFuturesUserDataEvent,
isWsFormattedSpotUserDataEvent,
isWsFormattedUserDataEvent,
isWsFormattedSpotUserDataExecutionReport,
isWsFormattedUserDataEvent,
WsUserDataEvents,
} from '../src';
import { WebsocketClient } from '../src/websocket-client';
Expand All @@ -12,8 +12,10 @@ import { WebsocketClient } from '../src/websocket-client';
// import { DefaultLogger, WebsocketClient } from 'binance';

(async () => {
const key = process.env.APIKEY || 'APIKEY';
const secret = process.env.APISECRET || 'APISECRET';
const key = process.env.API_KEY_COM || 'APIKEY';
const secret = process.env.API_SECRET_COM || 'APISECRET';

console.log({ key, secret });

const ignoredSillyLogMsgs = [
'Sending ping',
Expand All @@ -38,7 +40,7 @@ import { WebsocketClient } from '../src/websocket-client';
api_secret: secret,
beautify: true,
},
logger
logger,
);

wsClient.on('message', (data) => {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"baseUrl": ".",
"outDir": "lib"
},
"include": ["src/**/*", "src/.ts"],
"include": ["src/**/*"],
"exclude": ["node_modules", "**/node_modules/*", "coverage", "doc"]
}

0 comments on commit 632bfed

Please sign in to comment.