npm package diff

Package: @forge/sql

Versions: 2.2.0 - 2.2.1-next.0

File: package/out/errors.d.ts

Index: package/out/errors.d.ts
===================================================================
--- package/out/errors.d.ts
+++ package/out/errors.d.ts
@@ -1,5 +1,4 @@
-import { APIResponse } from '@forge/api';
 export interface ForgeError {
     code: string;
     message: string;
     suggestion?: string;
@@ -7,25 +6,20 @@
 }
 export declare class ForgeSQLError extends Error {
     constructor(message: string);
 }
-export interface APIErrorResponseDetails extends Pick<APIResponse, 'status' | 'statusText'> {
-    traceId?: string | null;
-}
-export declare class ForgeSQLAPIUnknownError extends ForgeSQLError {
-    code: string;
-    responseText?: string;
+export interface APIErrorResponseDetails {
     status: number;
     statusText: string;
     traceId?: string | null;
-    constructor(responseDetails: APIErrorResponseDetails, body?: string, message?: string);
 }
-export declare class ForgeSQLAPIError extends ForgeSQLAPIUnknownError {
+export declare class ForgeSQLAPIError extends ForgeSQLError {
+    responseDetails: APIErrorResponseDetails;
     code: string;
-    serverMessage: string;
+    message: string;
     suggestion?: string;
     context?: Record<string, unknown>;
-    constructor(responseDetails: APIErrorResponseDetails, forgeError: ForgeError, message?: string);
+    constructor(responseDetails: APIErrorResponseDetails, forgeError: ForgeError);
 }
 export declare class MigrationExecutionError extends ForgeSQLError {
     readonly migrationName: string;
     readonly migrationsYetToRun: string[];