@fastgpt-sdk/sandbox-adapter 0.0.40-beta.2 → 0.0.40-beta.3

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.cjs CHANGED
@@ -45649,7 +45649,10 @@ class DevboxApi {
45649
45649
  }
45650
45650
  const res = await fetch(input, { ...init, headers });
45651
45651
  const result = await res.json();
45652
- return result;
45652
+ return {
45653
+ ...result,
45654
+ code: result.code ?? res.status
45655
+ };
45653
45656
  }
45654
45657
  async create(req) {
45655
45658
  return this.request(this.url("/api/v1/devbox"), {
package/dist/index.js CHANGED
@@ -45633,7 +45633,10 @@ class DevboxApi {
45633
45633
  }
45634
45634
  const res = await fetch(input, { ...init, headers });
45635
45635
  const result = await res.json();
45636
- return result;
45636
+ return {
45637
+ ...result,
45638
+ code: result.code ?? res.status
45639
+ };
45637
45640
  }
45638
45641
  async create(req) {
45639
45642
  return this.request(this.url("/api/v1/devbox"), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastgpt-sdk/sandbox-adapter",
3
- "version": "0.0.40-beta.2",
3
+ "version": "0.0.40-beta.3",
4
4
  "description": "Unified abstraction layer for cloud sandbox providers with adapter pattern and feature polyfilling",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",