New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nestia/fetcher

Package Overview
Dependencies
Maintainers
1
Versions
466
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestia/fetcher - npm Package Compare versions

Comparing version 4.0.0-dev.20241116 to 4.0.0-dev.20241129

5

lib/internal/FetcherBase.js

@@ -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;

10

package.json
{
"name": "@nestia/fetcher",
"version": "4.0.0-dev.20241116",
"version": "4.0.0-dev.20241129",
"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.20241115"
"@samchon/openapi": "^2.0.0-dev.20241129-8",
"typia": "^7.0.0-dev.20241029"
},

@@ -43,3 +43,3 @@ "peerDependencies": {

"typescript": "5.5.4",
"typia": ">=7.0.0-dev.20241115 <8.0.0"
"typia": ">=7.0.0-dev.20241029 <8.0.0"
},

@@ -46,0 +46,0 @@ "files": [

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc