@mohasinac/errors 0.1.0 → 1.1.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 +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -208,7 +208,7 @@ var DatabaseError = class extends AppError {
|
|
|
208
208
|
};
|
|
209
209
|
|
|
210
210
|
// src/error-handler.ts
|
|
211
|
-
var import_server = require("next/server");
|
|
211
|
+
var import_server = require("next/server.js");
|
|
212
212
|
function handleApiError(error) {
|
|
213
213
|
if (error instanceof AppError) {
|
|
214
214
|
if (error.statusCode >= 500) {
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -174,7 +174,7 @@ var DatabaseError = class extends AppError {
|
|
|
174
174
|
};
|
|
175
175
|
|
|
176
176
|
// src/error-handler.ts
|
|
177
|
-
import { NextResponse } from "next/server";
|
|
177
|
+
import { NextResponse } from "next/server.js";
|
|
178
178
|
function handleApiError(error) {
|
|
179
179
|
if (error instanceof AppError) {
|
|
180
180
|
if (error.statusCode >= 500) {
|