@alienplatform/sdk 3.3.29 → 3.3.30

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/dist.js +4 -5
  2. package/package.json +4 -4
package/dist/dist.js CHANGED
@@ -12916,8 +12916,10 @@ var AlienError = class AlienError extends Error {
12916
12916
  context: contextData
12917
12917
  };
12918
12918
  } else options = input;
12919
+ const sourceOptions = options.source;
12920
+ const source = sourceOptions && typeof sourceOptions === "object" && "code" in sourceOptions && "message" in sourceOptions && "retryable" in sourceOptions && "internal" in sourceOptions ? new AlienError(sourceOptions) : void 0;
12919
12921
  const message = options.message;
12920
- super(message, { cause: options.source });
12922
+ super(message, { cause: source });
12921
12923
  this.name = "AlienError";
12922
12924
  this.code = options.code;
12923
12925
  this.retryable = options.retryable;
@@ -12925,10 +12927,7 @@ var AlienError = class AlienError extends Error {
12925
12927
  this.httpStatusCode = options.httpStatusCode ?? 500;
12926
12928
  this.context = options.context;
12927
12929
  this.hint = options.hint;
12928
- this.source = void 0;
12929
- if (options.source && typeof options.source === "object") {
12930
- if ("code" in options.source && "message" in options.source && "retryable" in options.source && "internal" in options.source) this.source = new AlienError(options.source);
12931
- }
12930
+ this.source = source;
12932
12931
  }
12933
12932
  /**
12934
12933
  * Create an AlienError from a type-safe error definition.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alienplatform/sdk",
3
- "version": "3.3.29",
3
+ "version": "3.3.30",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -57,9 +57,9 @@
57
57
  "nice-grpc": "^2.1.11",
58
58
  "nice-grpc-common": "^2.0.2",
59
59
  "zod": "^4.5.2",
60
- "@alienplatform/ai-gateway": "^3.3.29",
61
- "@alienplatform/bindings": "^3.3.29",
62
- "@alienplatform/core": "^3.3.29"
60
+ "@alienplatform/ai-gateway": "^3.3.30",
61
+ "@alienplatform/bindings": "^3.3.30",
62
+ "@alienplatform/core": "^3.3.30"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "tsdown && tsc --emitDeclarationOnly",