computesdk 1.16.0 → 1.17.0
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/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3859,7 +3859,8 @@ Get your API key at: https://computesdk.com/dashboard`
|
|
|
3859
3859
|
apiKey: computesdkApiKey,
|
|
3860
3860
|
gatewayUrl: config.gatewayUrl || GATEWAY_URL,
|
|
3861
3861
|
provider: config.provider,
|
|
3862
|
-
providerHeaders
|
|
3862
|
+
providerHeaders,
|
|
3863
|
+
WebSocket: config.WebSocket
|
|
3863
3864
|
};
|
|
3864
3865
|
}
|
|
3865
3866
|
|
|
@@ -4000,7 +4001,7 @@ var ComputeManager = class {
|
|
|
4000
4001
|
...name && { name },
|
|
4001
4002
|
...namespace && { namespace }
|
|
4002
4003
|
},
|
|
4003
|
-
WebSocket: globalThis.WebSocket,
|
|
4004
|
+
WebSocket: config.WebSocket || globalThis.WebSocket,
|
|
4004
4005
|
destroyHandler: async () => {
|
|
4005
4006
|
await gatewayFetch(`${config.gatewayUrl}/v1/sandboxes/${sandboxId}`, config, {
|
|
4006
4007
|
method: "DELETE"
|
|
@@ -4026,7 +4027,7 @@ var ComputeManager = class {
|
|
|
4026
4027
|
provider,
|
|
4027
4028
|
token: token || config.apiKey,
|
|
4028
4029
|
metadata,
|
|
4029
|
-
WebSocket: globalThis.WebSocket,
|
|
4030
|
+
WebSocket: config.WebSocket || globalThis.WebSocket,
|
|
4030
4031
|
destroyHandler: async () => {
|
|
4031
4032
|
await gatewayFetch(`${config.gatewayUrl}/v1/sandboxes/${sandboxId}`, config, {
|
|
4032
4033
|
method: "DELETE"
|
|
@@ -4082,7 +4083,7 @@ var ComputeManager = class {
|
|
|
4082
4083
|
name: result.data.name,
|
|
4083
4084
|
namespace: result.data.namespace
|
|
4084
4085
|
},
|
|
4085
|
-
WebSocket: globalThis.WebSocket,
|
|
4086
|
+
WebSocket: config.WebSocket || globalThis.WebSocket,
|
|
4086
4087
|
destroyHandler: async () => {
|
|
4087
4088
|
await gatewayFetch(`${config.gatewayUrl}/v1/sandboxes/${sandboxId}`, config, {
|
|
4088
4089
|
method: "DELETE"
|
|
@@ -4119,7 +4120,7 @@ var ComputeManager = class {
|
|
|
4119
4120
|
name,
|
|
4120
4121
|
namespace
|
|
4121
4122
|
},
|
|
4122
|
-
WebSocket: globalThis.WebSocket,
|
|
4123
|
+
WebSocket: config.WebSocket || globalThis.WebSocket,
|
|
4123
4124
|
destroyHandler: async () => {
|
|
4124
4125
|
await gatewayFetch(`${config.gatewayUrl}/v1/sandboxes/${sandboxId}`, config, {
|
|
4125
4126
|
method: "DELETE"
|