npm package diff
Package: @forge/migrations
Versions: 0.6.2-experimental-10722bc - 1.0.0-next.4
File: package/out/migration/errors.js
Index: package/out/migration/errors.js
===================================================================
--- package/out/migration/errors.js
+++ package/out/migration/errors.js
@@ -1,13 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.APIError = void 0;
class APIError extends Error {
- constructor(message) {
+ status;
+ constructor(message, status) {
super(message);
+ this.status = status;
}
static forStatus(status, message) {
- return new APIError(message);
+ return new APIError(message, status);
}
static forUnexpected(message) {
return new APIError(message);
}