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.1.3
to
5.2.0
+4
-5
dist-cjs/index.js

@@ -21,4 +21,4 @@ var __defProp = Object.defineProperty;

// src/index.ts
var src_exports = {};
__export(src_exports, {
var index_exports = {};
__export(index_exports, {
Field: () => Field,

@@ -33,3 +33,3 @@ Fields: () => Fields,

});
module.exports = __toCommonJS(src_exports);
module.exports = __toCommonJS(index_exports);

@@ -240,4 +240,3 @@ // src/extensions/httpExtensionConfiguration.ts

static isInstance(response) {
if (!response)
return false;
if (!response) return false;
const resp = response;

@@ -244,0 +243,0 @@ return typeof resp.statusCode === "number" && typeof resp.headers === "object";

@@ -1,2 +0,2 @@

import { HttpHandler } from "../httpHandler";
import type { HttpHandler } from "../httpHandler";
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,2 +0,3 @@

import { FieldOptions, FieldPosition } from "@smithy/types";
import type { FieldOptions } from "@smithy/types";
import { FieldPosition } from "@smithy/types";
/**

@@ -3,0 +4,0 @@ * A name-value pair representing a single field

@@ -1,3 +0,3 @@

import { FieldPosition } from "@smithy/types";
import { Field } from "./Field";
import type { FieldPosition } from "@smithy/types";
import type { Field } from "./Field";
export type FieldsOptions = {

@@ -4,0 +4,0 @@ fields?: Field[];

@@ -1,2 +0,3 @@

import { HeaderBag, HttpMessage, HttpRequest as IHttpRequest, QueryParameterBag, URI } from "@smithy/types";
import type { HeaderBag, HttpMessage, QueryParameterBag, URI } from "@smithy/types";
import { HttpRequest as IHttpRequest } from "@smithy/types";
type HttpRequestOptions = Partial<HttpMessage> & Partial<URI> & {

@@ -3,0 +4,0 @@ method?: string;

@@ -1,2 +0,2 @@

import { HeaderBag, HttpMessage, HttpResponse as IHttpResponse } from "@smithy/types";
import type { HeaderBag, HttpMessage, HttpResponse as IHttpResponse } from "@smithy/types";
type HttpResponseOptions = Partial<HttpMessage> & {

@@ -3,0 +3,0 @@ statusCode: number;

@@ -1,2 +0,3 @@

import { FieldOptions, FieldPosition } from "@smithy/types";
import { FieldOptions } from "@smithy/types";
import { FieldPosition } from "@smithy/types";
/**

@@ -3,0 +4,0 @@ * A name-value pair representing a single field

@@ -1,2 +0,3 @@

import { HeaderBag, HttpMessage, HttpRequest as IHttpRequest, QueryParameterBag, URI } from "@smithy/types";
import { HeaderBag, HttpMessage, QueryParameterBag, URI } from "@smithy/types";
import { HttpRequest as IHttpRequest } from "@smithy/types";
type HttpRequestOptions = Partial<HttpMessage> & Partial<URI> & {

@@ -3,0 +4,0 @@ method?: string;

@@ -1,2 +0,2 @@

import { FieldOptions as __FieldOptions, FieldPosition as __FieldPosition, HeaderBag as __HeaderBag, HttpHandlerOptions as __HttpHandlerOptions, HttpMessage as __HttpMessage } from "@smithy/types";
import type { FieldOptions as __FieldOptions, FieldPosition as __FieldPosition, HeaderBag as __HeaderBag, HttpHandlerOptions as __HttpHandlerOptions, HttpMessage as __HttpMessage } from "@smithy/types";
/**

@@ -3,0 +3,0 @@ * @deprecated Use FieldOptions from `@smithy/types` instead

{
"name": "@smithy/protocol-http",
"version": "5.1.3",
"version": "5.2.0",
"scripts": {

@@ -26,4 +26,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",

"license": "Apache-2.0",
"sideEffects": false,
"dependencies": {
"@smithy/types": "^4.3.2",
"@smithy/types": "^4.4.0",
"tslib": "^2.6.2"

@@ -30,0 +31,0 @@ },