@samchon/openapi
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -132,3 +132,3 @@ "use strict"; | ||
: {})); | ||
init = __assign(__assign({}, ((_p = props.connection.options) !== null && _p !== void 0 ? _p : {})), { method: props.route.method, headers: (function () { | ||
init = __assign(__assign({}, ((_p = props.connection.options) !== null && _p !== void 0 ? _p : {})), { method: props.route.method.toUpperCase(), headers: (function () { | ||
var e_1, _a, e_2, _b; | ||
@@ -191,3 +191,3 @@ var output = []; | ||
if (!(status === 200 || status === 201)) return [3 /*break*/, 11]; | ||
if (!(props.route.method === "head")) return [3 /*break*/, 2]; | ||
if (!(props.route.method.toUpperCase() === "HEAD")) return [3 /*break*/, 2]; | ||
return [2 /*return*/, out(undefined)]; | ||
@@ -194,0 +194,0 @@ case 2: |
{ | ||
"name": "@samchon/openapi", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -61,3 +61,3 @@ import type { HttpMigration } from "../HttpMigration"; | ||
...(props.connection.options ?? {}), | ||
method: props.route.method, | ||
method: props.route.method.toUpperCase(), | ||
headers: (() => { | ||
@@ -102,3 +102,3 @@ const output: [string, string][] = []; | ||
// SUCCESS CASE | ||
if (props.route.method === "head") return out(undefined); | ||
if (props.route.method.toUpperCase() === "HEAD") return out(undefined); | ||
else if ( | ||
@@ -105,0 +105,0 @@ props.route.success === null || |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1197547
20193