@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/index.cjs CHANGED
@@ -2379,11 +2379,12 @@ function writeCredential(cred, config, env = {}) {
2379
2379
  var CredentialError, apiFileSchema, oauthFileSchema, fileSchema;
2380
2380
  var init_credential_store = __esm({
2381
2381
  "src/internal/auth/credential-store.ts"() {
2382
- CredentialError = class extends Error {
2383
- constructor(message) {
2384
- super(message);
2385
- this.name = "CredentialError";
2386
- }
2382
+ init_errors();
2383
+ CredentialError = class extends exports.AuthenticationError {
2384
+ // Field, not an assignment in the constructor: `AuthenticationError.name` is `override readonly`
2385
+ // (`errors.ts:174`), so `this.name = …` does not compile. Caught by `tsc`, not by vitest — the
2386
+ // suite was green with the broken assignment because the transpiler strips the type.
2387
+ name = "CredentialError";
2387
2388
  };
2388
2389
  apiFileSchema = zod.z.object({
2389
2390
  type: zod.z.literal("api").optional(),