@theokit/sdk 4.23.0 → 4.24.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/cron.js CHANGED
@@ -2204,11 +2204,12 @@ function writeCredential(cred, config, env = {}) {
2204
2204
  var CredentialError, apiFileSchema, oauthFileSchema, fileSchema;
2205
2205
  var init_credential_store = __esm({
2206
2206
  "src/internal/auth/credential-store.ts"() {
2207
- CredentialError = class extends Error {
2208
- constructor(message) {
2209
- super(message);
2210
- this.name = "CredentialError";
2211
- }
2207
+ init_errors();
2208
+ CredentialError = class extends AuthenticationError {
2209
+ // Field, not an assignment in the constructor: `AuthenticationError.name` is `override readonly`
2210
+ // (`errors.ts:174`), so `this.name = …` does not compile. Caught by `tsc`, not by vitest — the
2211
+ // suite was green with the broken assignment because the transpiler strips the type.
2212
+ name = "CredentialError";
2212
2213
  };
2213
2214
  apiFileSchema = z.object({
2214
2215
  type: z.literal("api").optional(),