npm package diff

Package: @forge/sql

Versions: 2.0.1-next.1 - 2.1.0-next.2

File: package/out/utils/response-handler.js

Index: package/out/utils/response-handler.js
===================================================================
--- package/out/utils/response-handler.js
+++ package/out/utils/response-handler.js
@@ -1,7 +1,7 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.getResponseBody = exports.ApiError = void 0;
+exports.getResponseBody = exports.MigrationCheckPointError = exports.MigrationExecutionError = exports.ApiError = void 0;
 class ApiError extends Error {
     status;
     code;
     suggestion;
@@ -14,8 +14,28 @@
         this.debug = debug;
     }
 }
 exports.ApiError = ApiError;
+class MigrationExecutionError extends Error {
+    migrationName;
+    migrationsYetToRun;
+    constructor(migrationName, migrationsYetToRun) {
+        super(`Failed to execute migration with name ${migrationName}`);
+        this.migrationName = migrationName;
+        this.migrationsYetToRun = migrationsYetToRun;
+    }
+}
+exports.MigrationExecutionError = MigrationExecutionError;
+class MigrationCheckPointError extends Error {
+    migrationName;
+    migrationsYetToRun;
+    constructor(migrationName, migrationsYetToRun) {
+        super(`Failed to checkpoint after running migration with name ${migrationName}`);
+        this.migrationName = migrationName;
+        this.migrationsYetToRun = migrationsYetToRun;
+    }
+}
+exports.MigrationCheckPointError = MigrationCheckPointError;
 async function getResponseBody(response) {
     const responseText = await response.text();
     if (!response.ok) {
         try {