You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@smithy/protocol-http

Package Overview
Dependencies
Maintainers
3
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/protocol-http - npm Package Compare versions

Comparing version
5.0.1
to
5.1.0
+4
-5
dist-cjs/index.js

@@ -36,15 +36,14 @@ var __defProp = Object.defineProperty;

var getHttpHandlerExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
let httpHandler = runtimeConfig.httpHandler;
return {
setHttpHandler(handler) {
httpHandler = handler;
runtimeConfig.httpHandler = handler;
},
httpHandler() {
return httpHandler;
return runtimeConfig.httpHandler;
},
updateHttpClientConfig(key, value) {
httpHandler.updateHttpClientConfig(key, value);
runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
},
httpHandlerConfigs() {
return httpHandler.httpHandlerConfigs();
return runtimeConfig.httpHandler.httpHandlerConfigs();
}

@@ -51,0 +50,0 @@ };

export const getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
let httpHandler = runtimeConfig.httpHandler;
return {
setHttpHandler(handler) {
httpHandler = handler;
runtimeConfig.httpHandler = handler;
},
httpHandler() {
return httpHandler;
return runtimeConfig.httpHandler;
},
updateHttpClientConfig(key, value) {
httpHandler.updateHttpClientConfig(key, value);
runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
},
httpHandlerConfigs() {
return httpHandler.httpHandlerConfigs();
return runtimeConfig.httpHandler.httpHandlerConfigs();
},

@@ -16,0 +15,0 @@ };

{
"name": "@smithy/protocol-http",
"version": "5.0.1",
"version": "5.1.0",
"scripts": {

@@ -13,3 +13,3 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",

"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
"format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
"test": "yarn g:vitest run",

@@ -28,3 +28,3 @@ "test:watch": "yarn g:vitest watch"

"dependencies": {
"@smithy/types": "^4.1.0",
"@smithy/types": "^4.2.0",
"tslib": "^2.6.2"

@@ -45,6 +45,6 @@ },

],
"homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/protocol-http",
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/protocol-http",
"repository": {
"type": "git",
"url": "https://github.com/awslabs/smithy-typescript.git",
"url": "https://github.com/smithy-lang/smithy-typescript.git",
"directory": "packages/protocol-http"

@@ -51,0 +51,0 @@ },