@smithy/protocol-http
Advanced tools
@@ -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 @@ }; |
+5
-5
| { | ||
| "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 @@ }, |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
44478
0.07%957
-0.21%Updated