@mastra/daytona 0.11.0 → 0.11.1-alpha.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.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/sandbox/index.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -967,11 +967,15 @@ var DaytonaSandbox = class DaytonaSandbox extends _mastra_core_workspace.MastraS
|
|
|
967
967
|
async destroy() {
|
|
968
968
|
if (this._sandbox && this._daytona) try {
|
|
969
969
|
await this._daytona.delete(this._sandbox);
|
|
970
|
-
} catch {
|
|
970
|
+
} catch (error) {
|
|
971
|
+
if (!(error instanceof _daytonaio_sdk.DaytonaNotFoundError) && !(error instanceof _daytonaio_sdk.DaytonaGoneError)) throw error;
|
|
972
|
+
}
|
|
971
973
|
else if (!this._sandbox) try {
|
|
972
974
|
const orphan = await this.lookupDetachedSandbox();
|
|
973
975
|
if (orphan) await this._daytona.delete(orphan);
|
|
974
|
-
} catch {
|
|
976
|
+
} catch (error) {
|
|
977
|
+
if (!(error instanceof _daytonaio_sdk.DaytonaNotFoundError) && !(error instanceof _daytonaio_sdk.DaytonaGoneError)) throw error;
|
|
978
|
+
}
|
|
975
979
|
this._sandbox = null;
|
|
976
980
|
this._daytonaSandboxId = void 0;
|
|
977
981
|
this._daytona = null;
|