@chainstream-io/sdk 2.0.2 → 2.0.4
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.
- package/dist/{chainstream-CoMtjKRz.d.cts → chainstream-CEzLVb40.d.cts} +21 -1
- package/dist/{chainstream-CoMtjKRz.d.ts → chainstream-CEzLVb40.d.ts} +21 -1
- package/dist/chainstream.cjs +1 -1
- package/dist/chainstream.cjs.map +1 -1
- package/dist/chainstream.d.cts +1 -1
- package/dist/chainstream.d.ts +1 -1
- package/dist/chainstream.mjs +1 -1
- package/dist/chainstream.mjs.map +1 -1
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/dist/stream/index.d.cts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/chainstream.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext,
|
|
1
|
+
export { C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext, gF as PostOptions, T as TokenProvider } from './chainstream-CEzLVb40.cjs';
|
|
2
2
|
import 'axios';
|
package/dist/chainstream.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext,
|
|
1
|
+
export { C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext, gF as PostOptions, T as TokenProvider } from './chainstream-CEzLVb40.js';
|
|
2
2
|
import 'axios';
|
package/dist/chainstream.mjs
CHANGED
|
@@ -2333,7 +2333,7 @@ var ChainStreamClient = class {
|
|
|
2333
2333
|
async waitForJob(jobId, timeout = 6e4) {
|
|
2334
2334
|
const accessToken = typeof this.requestCtx.accessToken === "string" ? this.requestCtx.accessToken : await this.requestCtx.accessToken.getToken();
|
|
2335
2335
|
return new Promise((resolve, reject) => {
|
|
2336
|
-
const sse = new EventSourcePolyfill(`${this.requestCtx.baseUrl}/
|
|
2336
|
+
const sse = new EventSourcePolyfill(`${this.requestCtx.baseUrl}/v2/job/${jobId}/streaming`, {
|
|
2337
2337
|
headers: {
|
|
2338
2338
|
Authorization: `Bearer ${accessToken}`
|
|
2339
2339
|
}
|