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