Skip to content

Commit

Permalink
Fix package json
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuslipp committed Jul 8, 2024
1 parent 3996edb commit fcb1082
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
Binary file modified bun.lockb
Binary file not shown.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "@mixedbread-ai/sdk",
"version": "2.2.9",
"version": "2.2.10",
"license": "Apache-2.0",
"description": "SDK for mixedbread.ai",
"author": "mixedbread.ai",
"repository": {
"type": "git",
"url": "https://github.com/mixedbread-ai/typescript-sdk.git"
},
"main": "./index.js",
"types": "./index.d.ts",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"format": "prettier --write 'src/**/*.ts'",
"build": "tsc",
"prepack": "cp -rv dist/. ."
},
"dependencies": {
"url-join": "4.0.1",
"form-data": "4.0.0",
"formdata-node": "^6.0.3",
"js-base64": "3.7.7",
"node-fetch": "3.3.2",
"qs": "6.12.1",
"url-join": "5.0.0"
"node-fetch": "2.7.0",
"qs": "6.11.2",
"js-base64": "3.7.2"
},
"devDependencies": {
"@types/url-join": "4.0.3",
Expand Down
3 changes: 3 additions & 0 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ export declare namespace MixedbreadAIClient {
}

interface RequestOptions {
/** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
/** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
/** A hook to abort the request. */
abortSignal?: AbortSignal;
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/core/fetcher/Fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ async function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIResponse
if (args.body instanceof (await import("formdata-node")).FormData) {
// @ts-expect-error
body = args.body;
} else if (args.body instanceof (await import("stream")).Readable) {
// @ts-expect-error
body = args.body;
} else {
body = maybeStringifyBody(args.body);
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"strict": true,
"target": "ES6",
"module": "CommonJS",
"moduleResolution": "node",
"moduleResolution": "Node",
"esModuleInterop": true,
"skipLibCheck": true,
"declaration": true,
Expand Down

0 comments on commit fcb1082

Please sign in to comment.