runpod-sdk 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runpod-sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "JavaScript SDK for Runpod",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -255,7 +255,10 @@ class Endpoint {
255
255
  ): Promise<EndpointCompletedOutput> {
256
256
  return runSync(this.baseUrl, this.apiKey, this.endpointId, request, timeout)
257
257
  }
258
- async run(request: EndpointInputPayload, timeout: number = 3000): Promise<string> {
258
+ async run(
259
+ request: EndpointInputPayload,
260
+ timeout: number = 3000
261
+ ): Promise<EndpointIncompleteOutput> {
259
262
  return run(this.baseUrl, this.apiKey, this.endpointId, request, timeout)
260
263
  }
261
264
  async status(requestId: string, timeout: number = 3000): Promise<EndpointOutput> {