@alienplatform/bindings 3.3.29 → 3.3.31

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/errors.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * `"GenericFailure"` and carries no information. The addon instead serializes a
7
7
  * structured envelope into the JS `err.message`:
8
8
  *
9
- * { code, message, context?, retryable, internal, httpStatusCode?, hint? }
9
+ * { code, message, context?, retryable, internal, httpStatusCode?, hint?, source? }
10
10
  *
11
11
  * where `context` keys are snake_case (e.g. `binding_name`, `env_var`).
12
12
  * `unwrapNapiError` recovers that envelope with a single `JSON.parse` — never by
@@ -125,8 +125,8 @@ export declare const UnknownSandboxValueError: {
125
125
  * - A message carrying the addon envelope is decoded: `BINDING_NOT_CONFIGURED`
126
126
  * becomes {@link BindingNotConfiguredError} (with `binding` / `envVar` mapped
127
127
  * from the envelope's snake_case context); every other envelope code becomes a
128
- * generic `AlienError` that preserves the `code`, `message`, `context`, and
129
- * `retryable`, `internal`, `httpStatusCode`, and `hint` metadata.
128
+ * generic `AlienError` that preserves the `code`, `message`, `context`, the
129
+ * `retryable`, `internal`, `httpStatusCode`, and `hint` metadata, and the `source` chain.
130
130
  * - A non-envelope message (napi-internal error) is wrapped as a generic
131
131
  * `BINDINGS_ERROR`, preserving the original message.
132
132
  */
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAI3B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,CAAA;AAElC;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAWpC,CAAA;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;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ED
@@ -4662,7 +4662,7 @@ function superRefine(fn, params) {
4662
4662
  * `"GenericFailure"` and carries no information. The addon instead serializes a
4663
4663
  * structured envelope into the JS `err.message`:
4664
4664
  *
4665
- * { code, message, context?, retryable, internal, httpStatusCode?, hint? }
4665
+ * { code, message, context?, retryable, internal, httpStatusCode?, hint?, source? }
4666
4666
  *
4667
4667
  * where `context` keys are snake_case (e.g. `binding_name`, `env_var`).
4668
4668
  * `unwrapNapiError` recovers that envelope with a single `JSON.parse` — never by
@@ -4770,8 +4770,8 @@ function parseEnvelope(rawMessage) {
4770
4770
  * - A message carrying the addon envelope is decoded: `BINDING_NOT_CONFIGURED`
4771
4771
  * becomes {@link BindingNotConfiguredError} (with `binding` / `envVar` mapped
4772
4772
  * from the envelope's snake_case context); every other envelope code becomes a
4773
- * generic `AlienError` that preserves the `code`, `message`, `context`, and
4774
- * `retryable`, `internal`, `httpStatusCode`, and `hint` metadata.
4773
+ * generic `AlienError` that preserves the `code`, `message`, `context`, the
4774
+ * `retryable`, `internal`, `httpStatusCode`, and `hint` metadata, and the `source` chain.
4775
4775
  * - A non-envelope message (napi-internal error) is wrapped as a generic
4776
4776
  * `BINDINGS_ERROR`, preserving the original message.
4777
4777
  */
@@ -4797,7 +4797,8 @@ function unwrapNapiError(err) {
4797
4797
  internal: envelope.internal ?? false,
4798
4798
  httpStatusCode: envelope.httpStatusCode,
4799
4799
  hint: envelope.hint,
4800
- context
4800
+ context,
4801
+ source: envelope.source
4801
4802
  });
4802
4803
  }
4803
4804
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alienplatform/bindings",
3
- "version": "3.3.29",
3
+ "version": "3.3.31",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "types": "./dist/index.d.ts",
@@ -54,13 +54,13 @@
54
54
  "@alienplatform/typescript-config": "^1.0.0"
55
55
  },
56
56
  "dependencies": {
57
- "@alienplatform/core": "^3.3.29"
57
+ "@alienplatform/core": "^3.3.31"
58
58
  },
59
59
  "optionalDependencies": {
60
- "@alienplatform/bindings-darwin-arm64": "3.3.29",
61
- "@alienplatform/bindings-darwin-x64": "3.3.29",
62
- "@alienplatform/bindings-linux-x64-gnu": "3.3.29",
63
- "@alienplatform/bindings-linux-arm64-gnu": "3.3.29"
60
+ "@alienplatform/bindings-darwin-arm64": "3.3.31",
61
+ "@alienplatform/bindings-darwin-x64": "3.3.31",
62
+ "@alienplatform/bindings-linux-x64-gnu": "3.3.31",
63
+ "@alienplatform/bindings-linux-arm64-gnu": "3.3.31"
64
64
  },
65
65
  "scripts": {
66
66
  "build": "tsdown && tsc -p tsconfig.build.json --emitDeclarationOnly",