@particle-academy/fancy-connector-core 0.6.0 → 0.6.1

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.d.cts CHANGED
@@ -1134,6 +1134,19 @@ declare class ConnectorError extends Error {
1134
1134
  readonly operation: string;
1135
1135
  readonly status?: number;
1136
1136
  readonly providerCode?: string;
1137
+ /**
1138
+ * Every failed attempt of the call, in order. Set on the error a call throws
1139
+ * (`callConnector`), absent on one built anywhere else.
1140
+ *
1141
+ * `declare`, not a field: it is attached with `Object.defineProperty` when the
1142
+ * call gives up, so an error that did not end a call carries no such property.
1143
+ */
1144
+ readonly attempts?: Attempt[];
1145
+ /**
1146
+ * What the call declared. With `attempts`, it separates "never allowed to
1147
+ * retry" from "retries ran out". Same presence rule as `attempts`.
1148
+ */
1149
+ readonly idempotent?: boolean;
1137
1150
  /**
1138
1151
  * What kind of failure this is. The primitive every retry decision reads.
1139
1152
  *
package/dist/index.d.ts CHANGED
@@ -1134,6 +1134,19 @@ declare class ConnectorError extends Error {
1134
1134
  readonly operation: string;
1135
1135
  readonly status?: number;
1136
1136
  readonly providerCode?: string;
1137
+ /**
1138
+ * Every failed attempt of the call, in order. Set on the error a call throws
1139
+ * (`callConnector`), absent on one built anywhere else.
1140
+ *
1141
+ * `declare`, not a field: it is attached with `Object.defineProperty` when the
1142
+ * call gives up, so an error that did not end a call carries no such property.
1143
+ */
1144
+ readonly attempts?: Attempt[];
1145
+ /**
1146
+ * What the call declared. With `attempts`, it separates "never allowed to
1147
+ * retry" from "retries ran out". Same presence rule as `attempts`.
1148
+ */
1149
+ readonly idempotent?: boolean;
1137
1150
  /**
1138
1151
  * What kind of failure this is. The primitive every retry decision reads.
1139
1152
  *