Socket
Socket
Sign inDemoInstall

@smithy/node-http-handler

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/node-http-handler - npm Package Compare versions

Comparing version 2.0.5 to 2.1.0

13

dist-cjs/node-http-handler.js

@@ -133,3 +133,16 @@ "use strict";

}
updateHttpClientConfig(key, value) {
this.config = undefined;
this.configProvider = this.configProvider.then((config) => {
return {
...config,
[key]: value,
};
});
}
httpHandlerConfigs() {
var _a;
return (_a = this.config) !== null && _a !== void 0 ? _a : {};
}
}
exports.NodeHttpHandler = NodeHttpHandler;

@@ -140,2 +140,15 @@ "use strict";

}
updateHttpClientConfig(key, value) {
this.config = undefined;
this.configProvider = this.configProvider.then((config) => {
return {
...config,
[key]: value,
};
});
}
httpHandlerConfigs() {
var _a;
return (_a = this.config) !== null && _a !== void 0 ? _a : {};
}
destroySession(session) {

@@ -142,0 +155,0 @@ if (!session.destroyed) {

@@ -128,2 +128,14 @@ import { HttpResponse } from "@smithy/protocol-http";

}
updateHttpClientConfig(key, value) {
this.config = undefined;
this.configProvider = this.configProvider.then((config) => {
return {
...config,
[key]: value,
};
});
}
httpHandlerConfigs() {
return this.config ?? {};
}
}

@@ -136,2 +136,14 @@ import { HttpResponse } from "@smithy/protocol-http";

}
updateHttpClientConfig(key, value) {
this.config = undefined;
this.configProvider = this.configProvider.then((config) => {
return {
...config,
[key]: value,
};
});
}
httpHandlerConfigs() {
return this.config ?? {};
}
destroySession(session) {

@@ -138,0 +150,0 @@ if (!session.destroyed) {

6

dist-types/node-http-handler.d.ts

@@ -34,5 +34,5 @@ /// <reference types="node" />

export declare const DEFAULT_REQUEST_TIMEOUT = 0;
export declare class NodeHttpHandler implements HttpHandler {
export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptions> {
private config?;
private readonly configProvider;
private configProvider;
readonly metadata: {

@@ -47,2 +47,4 @@ handlerProtocol: string;

}>;
updateHttpClientConfig(key: keyof NodeHttpHandlerOptions, value: NodeHttpHandlerOptions[typeof key]): void;
httpHandlerConfigs(): NodeHttpHandlerOptions;
}

@@ -33,5 +33,5 @@ import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http";

}
export declare class NodeHttp2Handler implements HttpHandler {
export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOptions> {
private config?;
private readonly configProvider;
private configProvider;
readonly metadata: {

@@ -46,2 +46,4 @@ handlerProtocol: string;

}>;
updateHttpClientConfig(key: keyof NodeHttp2HandlerOptions, value: NodeHttp2HandlerOptions[typeof key]): void;
httpHandlerConfigs(): NodeHttp2HandlerOptions;
/**

@@ -48,0 +50,0 @@ * Destroys a session.

@@ -33,5 +33,5 @@ /// <reference types="node" />

export declare const DEFAULT_REQUEST_TIMEOUT = 0;
export declare class NodeHttpHandler implements HttpHandler {
export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptions> {
private config?;
private readonly configProvider;
private configProvider;
readonly metadata: {

@@ -46,2 +46,4 @@ handlerProtocol: string;

}>;
updateHttpClientConfig(key: keyof NodeHttpHandlerOptions, value: NodeHttpHandlerOptions[typeof key]): void;
httpHandlerConfigs(): NodeHttpHandlerOptions;
}

@@ -33,5 +33,5 @@ import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http";

}
export declare class NodeHttp2Handler implements HttpHandler {
export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOptions> {
private config?;
private readonly configProvider;
private configProvider;
readonly metadata: {

@@ -46,2 +46,4 @@ handlerProtocol: string;

}>;
updateHttpClientConfig(key: keyof NodeHttp2HandlerOptions, value: NodeHttp2HandlerOptions[typeof key]): void;
httpHandlerConfigs(): NodeHttp2HandlerOptions;
/**

@@ -48,0 +50,0 @@ * Destroys a session.

{
"name": "@smithy/node-http-handler",
"version": "2.0.5",
"version": "2.1.0",
"description": "Provides a way to make requests",

@@ -28,6 +28,6 @@ "scripts": {

"dependencies": {
"@smithy/abort-controller": "^2.0.5",
"@smithy/protocol-http": "^2.0.5",
"@smithy/querystring-builder": "^2.0.5",
"@smithy/types": "^2.2.2",
"@smithy/abort-controller": "^2.0.6",
"@smithy/protocol-http": "^3.0.0",
"@smithy/querystring-builder": "^2.0.6",
"@smithy/types": "^2.3.0",
"tslib": "^2.5.0"

@@ -34,0 +34,0 @@ },

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