Comparing version 3.0.3 to 3.0.4
@@ -14,2 +14,3 @@ "use strict"; | ||
const middleware_1 = require("../util/middleware"); | ||
const errors_1 = require("../@types/errors"); | ||
/** | ||
@@ -43,2 +44,3 @@ * Registers an endpoint to a a route. | ||
context.status = 500; | ||
console.warn(errors_1.Errors.RESPONSE_MISMATCH); | ||
yield continueToPost(); | ||
@@ -45,0 +47,0 @@ return; |
@@ -6,2 +6,3 @@ import Router from "koa-router"; | ||
import type { Next } from "koa"; | ||
import { Errors } from "@/@types/errors"; | ||
@@ -61,2 +62,3 @@ type MethodRegistrationFunction = ( | ||
context.status = 500; | ||
console.warn(Errors.RESPONSE_MISMATCH); | ||
await continueToPost(); | ||
@@ -63,0 +65,0 @@ return; |
{ | ||
"name": "18h", | ||
"description": "A Next.js style dynamic API router for Koa-based APIs.", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "url": "https://github.com/ridafkih/18h" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39562
40
711