@camstack/addon-google-services 0.2.41 → 0.2.42

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/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.42] - 2026-11-06
11
+
12
+ ### Changed
13
+
14
+ - Rebuilt against updated dependencies.
15
+
10
16
  ## [0.2.41] - 2026-11-06
11
17
 
12
18
  ### Changed
@@ -5985,7 +5985,7 @@ var ZodIssueCode = {
5985
5985
  var ZodFirstPartyTypeKind;
5986
5986
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5987
5987
  //#endregion
5988
- //#region ../types/dist/sleep-CdKka2ri.mjs
5988
+ //#region ../types/dist/sleep-D7ZKm4nb.mjs
5989
5989
  /**
5990
5990
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5991
5991
  * window to float samples (D455).
@@ -6694,10 +6694,33 @@ function integrationRowsApiOver(api) {
6694
6694
  };
6695
6695
  }
6696
6696
  var PREFIX = "records/";
6697
+ /**
6698
+ * Cross-realm brand. An addon bundles its own copy of this module (D15) while
6699
+ * `ctx.records` is the HOST's door, so an error thrown by the host is an
6700
+ * instance of the host's classes, not of the addon's. The brand plus the code
6701
+ * make `instanceof` answer by identity of the failure, not of the copy.
6702
+ */
6703
+ var RECORDS_ERROR_BRAND = Symbol.for("camstack.records-error");
6704
+ function carriesBrand(value) {
6705
+ return typeof value === "object" && value !== null && Reflect.get(value, RECORDS_ERROR_BRAND) === true;
6706
+ }
6697
6707
  /** The base of every records failure. `detail` is the human part of the message. */
6698
6708
  var RecordsError = class extends Error {
6709
+ /** The code a subclass stands for; the base stands for every code. */
6710
+ static code = void 0;
6711
+ /**
6712
+ * `instanceof` across copies of this module: any branded error is a
6713
+ * `RecordsError`, and is an instance of a subclass only when its code is the
6714
+ * subclass's code. Same-copy answers are unchanged.
6715
+ */
6716
+ static [Symbol.hasInstance](value) {
6717
+ if (Function.prototype[Symbol.hasInstance].call(this, value)) return true;
6718
+ if (!carriesBrand(value)) return false;
6719
+ return this.code === void 0 || value.code === this.code;
6720
+ }
6699
6721
  code;
6700
6722
  detail;
6723
+ [RECORDS_ERROR_BRAND] = true;
6701
6724
  constructor(code, detail) {
6702
6725
  super(`${PREFIX}${code}: ${detail}`);
6703
6726
  this.name = "RecordsError";
@@ -6706,22 +6729,25 @@ var RecordsError = class extends Error {
6706
6729
  }
6707
6730
  };
6708
6731
  /** The keychain could not store or serve a value: explicit, never an empty string. */
6709
- var RecordSecretUnavailableError = class extends RecordsError {
6732
+ var RecordSecretUnavailableError = class RecordSecretUnavailableError extends RecordsError {
6733
+ static code = "secret-unavailable";
6710
6734
  constructor(detail) {
6711
- super("secret-unavailable", detail);
6735
+ super(RecordSecretUnavailableError.code, detail);
6712
6736
  this.name = "RecordSecretUnavailableError";
6713
6737
  }
6714
6738
  };
6715
- var InvalidRecordError = class extends RecordsError {
6739
+ var InvalidRecordError = class InvalidRecordError extends RecordsError {
6740
+ static code = "invalid-record";
6716
6741
  constructor(detail) {
6717
- super("invalid-record", detail);
6742
+ super(InvalidRecordError.code, detail);
6718
6743
  this.name = "InvalidRecordError";
6719
6744
  }
6720
6745
  };
6721
6746
  /** A kind declaration the engine refuses (non-additive change, bad shape, wrong file). */
6722
- var DeclarationRefusedError = class extends RecordsError {
6747
+ var DeclarationRefusedError = class DeclarationRefusedError extends RecordsError {
6748
+ static code = "declaration-refused";
6723
6749
  constructor(detail) {
6724
- super("declaration-refused", detail);
6750
+ super(DeclarationRefusedError.code, detail);
6725
6751
  this.name = "DeclarationRefusedError";
6726
6752
  }
6727
6753
  };
@@ -5981,7 +5981,7 @@ var ZodIssueCode = {
5981
5981
  var ZodFirstPartyTypeKind;
5982
5982
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5983
5983
  //#endregion
5984
- //#region ../types/dist/sleep-CdKka2ri.mjs
5984
+ //#region ../types/dist/sleep-D7ZKm4nb.mjs
5985
5985
  /**
5986
5986
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5987
5987
  * window to float samples (D455).
@@ -6690,10 +6690,33 @@ function integrationRowsApiOver(api) {
6690
6690
  };
6691
6691
  }
6692
6692
  var PREFIX = "records/";
6693
+ /**
6694
+ * Cross-realm brand. An addon bundles its own copy of this module (D15) while
6695
+ * `ctx.records` is the HOST's door, so an error thrown by the host is an
6696
+ * instance of the host's classes, not of the addon's. The brand plus the code
6697
+ * make `instanceof` answer by identity of the failure, not of the copy.
6698
+ */
6699
+ var RECORDS_ERROR_BRAND = Symbol.for("camstack.records-error");
6700
+ function carriesBrand(value) {
6701
+ return typeof value === "object" && value !== null && Reflect.get(value, RECORDS_ERROR_BRAND) === true;
6702
+ }
6693
6703
  /** The base of every records failure. `detail` is the human part of the message. */
6694
6704
  var RecordsError = class extends Error {
6705
+ /** The code a subclass stands for; the base stands for every code. */
6706
+ static code = void 0;
6707
+ /**
6708
+ * `instanceof` across copies of this module: any branded error is a
6709
+ * `RecordsError`, and is an instance of a subclass only when its code is the
6710
+ * subclass's code. Same-copy answers are unchanged.
6711
+ */
6712
+ static [Symbol.hasInstance](value) {
6713
+ if (Function.prototype[Symbol.hasInstance].call(this, value)) return true;
6714
+ if (!carriesBrand(value)) return false;
6715
+ return this.code === void 0 || value.code === this.code;
6716
+ }
6695
6717
  code;
6696
6718
  detail;
6719
+ [RECORDS_ERROR_BRAND] = true;
6697
6720
  constructor(code, detail) {
6698
6721
  super(`${PREFIX}${code}: ${detail}`);
6699
6722
  this.name = "RecordsError";
@@ -6702,22 +6725,25 @@ var RecordsError = class extends Error {
6702
6725
  }
6703
6726
  };
6704
6727
  /** The keychain could not store or serve a value: explicit, never an empty string. */
6705
- var RecordSecretUnavailableError = class extends RecordsError {
6728
+ var RecordSecretUnavailableError = class RecordSecretUnavailableError extends RecordsError {
6729
+ static code = "secret-unavailable";
6706
6730
  constructor(detail) {
6707
- super("secret-unavailable", detail);
6731
+ super(RecordSecretUnavailableError.code, detail);
6708
6732
  this.name = "RecordSecretUnavailableError";
6709
6733
  }
6710
6734
  };
6711
- var InvalidRecordError = class extends RecordsError {
6735
+ var InvalidRecordError = class InvalidRecordError extends RecordsError {
6736
+ static code = "invalid-record";
6712
6737
  constructor(detail) {
6713
- super("invalid-record", detail);
6738
+ super(InvalidRecordError.code, detail);
6714
6739
  this.name = "InvalidRecordError";
6715
6740
  }
6716
6741
  };
6717
6742
  /** A kind declaration the engine refuses (non-additive change, bad shape, wrong file). */
6718
- var DeclarationRefusedError = class extends RecordsError {
6743
+ var DeclarationRefusedError = class DeclarationRefusedError extends RecordsError {
6744
+ static code = "declaration-refused";
6719
6745
  constructor(detail) {
6720
- super("declaration-refused", detail);
6746
+ super(DeclarationRefusedError.code, detail);
6721
6747
  this.name = "DeclarationRefusedError";
6722
6748
  }
6723
6749
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-google-services",
3
- "version": "0.2.41",
3
+ "version": "0.2.42",
4
4
  "description": "Google — Google brokers (OAuth2): Calendar as calendar-source, Gmail send as smtp-provider.",
5
5
  "keywords": [
6
6
  "camstack",
@@ -64,7 +64,7 @@
64
64
  }
65
65
  ],
66
66
  "requires": {
67
- "server": ">=1.2.787"
67
+ "server": ">=1.2.788"
68
68
  }
69
69
  },
70
70
  "files": [