@sandbank.dev/boxlite 0.3.0 → 0.3.1

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/dist/client.js +2 -2
  2. package/package.json +2 -2
package/dist/client.js CHANGED
@@ -107,7 +107,7 @@ export function createBoxLiteRestClient(config) {
107
107
  while (Date.now() - startTime < timeoutMs) {
108
108
  await new Promise(r => setTimeout(r, pollInterval));
109
109
  pollInterval = Math.min(pollInterval * 2, 2000);
110
- const result = await request(`/boxes/${boxId}/executions/${execution.id}`);
110
+ const result = await request(`/boxes/${boxId}/exec/${execution.id}`);
111
111
  if (result.exit_code !== null && result.exit_code !== undefined) {
112
112
  return {
113
113
  stdout: result.stdout ?? '',
@@ -142,7 +142,7 @@ export function createBoxLiteRestClient(config) {
142
142
  await new Promise(r => setTimeout(r, pollInterval));
143
143
  pollInterval = Math.min(pollInterval * 2, 2000);
144
144
  try {
145
- const result = await self.request(`/boxes/${boxId}/executions/${execution.id}`);
145
+ const result = await self.request(`/boxes/${boxId}/exec/${execution.id}`);
146
146
  if (result.exit_code !== null && result.exit_code !== undefined) {
147
147
  if (result.stdout)
148
148
  controller.enqueue(encoder.encode(result.stdout));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sandbank.dev/boxlite",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "BoxLite bare-metal sandbox adapter for Sandbank",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -32,7 +32,7 @@
32
32
  "clean": "rm -rf dist"
33
33
  },
34
34
  "dependencies": {
35
- "@sandbank.dev/core": "^0.2.0"
35
+ "@sandbank.dev/core": "^0.2.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^25.3.0",