Skip to content

Commit f68dc4a

Browse files
committed
Fix tsc errors
1 parent 6ac84bc commit f68dc4a

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

package-lock.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
],
2626
"homepage": "https://github.com/datastax/astra-ts-client",
2727
"license": "Apache-2.0",
28-
"main": "dist/index.js",
28+
"main": "dist/src/index.js",
2929
"mocha": {
3030
"timeout": 30000,
3131
"require": [
@@ -83,12 +83,13 @@
8383
"sinon": "15.2.0",
8484
"ts-mocha": "^10.0.0",
8585
"ts-node": "^10.8.1",
86-
"tscpaths": "^0.0.9",
8786
"tsconfig-paths": "^4.0.0",
87+
"tscpaths": "^0.0.9",
8888
"typescript": "^4.7.2"
8989
},
9090
"dependencies": {
9191
"axios": "^1.4.0",
92+
"bson": "^6.2.0",
9293
"winston": "^3.7.2"
9394
},
9495
"engines": {

src/client/httpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export const handleIfErrorResponse = (response: any, data: Record<string, any>)
248248
};
249249

250250
function serializeCommand(data: Record<string, any>, pretty?: boolean): string {
251-
return EJSON.stringify(data, (key, value) => handleValues(key, value), pretty ? ' ' : '');
251+
return EJSON.stringify(data, (key: any, value: any) => handleValues(key, value), pretty ? ' ' : '');
252252
}
253253

254254
function deserialize(data: Record<string, any>): Record<string, any> {

0 commit comments

Comments
 (0)