@nestia/fetcher
Advanced tools
Comparing version 4.0.0-dev.20241021-2 to 4.0.0-dev.20241027-2
@@ -126,3 +126,3 @@ "use strict"; | ||
headers = __assign({}, ((_g = connection.headers) !== null && _g !== void 0 ? _g : {})); | ||
if (input !== undefined) | ||
if (input !== undefined) { | ||
if (((_h = route.request) === null || _h === void 0 ? void 0 : _h.type) === undefined) | ||
@@ -132,2 +132,5 @@ throw new Error("Error on ".concat(props.className, ".fetch(): no content-type being configured.")); | ||
headers["Content-Type"] = route.request.type; | ||
} | ||
else if (input === undefined && headers["Content-Type"] !== undefined) | ||
delete headers["Content-Type"]; | ||
init = __assign(__assign({}, ((_j = connection.options) !== null && _j !== void 0 ? _j : {})), { method: route.method, headers: (function () { | ||
@@ -134,0 +137,0 @@ var e_1, _a, e_2, _b; |
{ | ||
"name": "@nestia/fetcher", | ||
"version": "4.0.0-dev.20241021-2", | ||
"version": "4.0.0-dev.20241027-2", | ||
"description": "Fetcher library of Nestia SDK", | ||
@@ -9,3 +9,3 @@ "main": "lib/index.js", | ||
"build": "rimraf lib && tsc", | ||
"dev": "npm run build -- --watch", | ||
"dev": "tsc -p tsconfig.test.json --watch", | ||
"eslint": "eslint src", | ||
@@ -30,4 +30,4 @@ "eslint:fix": "eslint src --fix" | ||
"dependencies": { | ||
"@samchon/openapi": "^1.1.0", | ||
"typia": "^7.0.0-dev.20241021-2" | ||
"@samchon/openapi": "^2.0.0-dev.20241127-2", | ||
"typia": "^7.0.0-dev.20241027-2" | ||
}, | ||
@@ -43,3 +43,3 @@ "peerDependencies": { | ||
"typescript": "5.5.4", | ||
"typia": ">=7.0.0-dev.20241021-2 <8.0.0" | ||
"typia": ">=7.0.0-dev.20241027-2 <8.0.0" | ||
}, | ||
@@ -46,0 +46,0 @@ "files": [ |
@@ -5,4 +5,4 @@ # Nestia | ||
[](https://github.com/samchon/nestia/blob/master/LICENSE) | ||
[](https://www.npmjs.com/package/@nestia/sdk) | ||
[](https://www.npmjs.com/package/@nestia/sdk) | ||
[](https://www.npmjs.com/package/@nestia/fetcher) | ||
[](https://www.npmjs.com/package/@nestia/fetcher) | ||
[](https://github.com/samchon/nestia/actions?query=workflow%3Abuild) | ||
@@ -9,0 +9,0 @@ [](https://nestia.io/docs/) |
@@ -77,3 +77,3 @@ import { HttpError } from "../HttpError"; | ||
}; | ||
if (input !== undefined) | ||
if (input !== undefined) { | ||
if (route.request?.type === undefined) | ||
@@ -85,2 +85,4 @@ throw new Error( | ||
headers["Content-Type"] = route.request.type; | ||
} else if (input === undefined && headers["Content-Type"] !== undefined) | ||
delete headers["Content-Type"]; | ||
@@ -87,0 +89,0 @@ // INIT REQUEST DATA |
Sorry, the diff of this file is not supported yet
140132
2822
- Removed@samchon/openapi@1.2.4(transitive)
Updatedtypia@^7.0.0-dev.20241027-2