@aws-sdk/xhr-http-handler 3.162.0 → 3.170.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/xhr-http-handler
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.168.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.167.0...v3.168.0) (2022-09-09)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/xhr-http-handler
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [3.162.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.161.0...v3.162.0) (2022-08-31)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @aws-sdk/xhr-http-handler
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./xhr-http-handler";
|
|
1
|
+
export * from "./xhr-http-handler";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const requestTimeout: (timeoutInMs?: number) => Promise<never>;
|
|
1
|
+
export declare const requestTimeout: (timeoutInMs?: number) => Promise<never>;
|
|
@@ -1,35 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
1
|
+
import { HttpHandler, HttpRequest, HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
+
import { HttpHandlerOptions, Provider } from "@aws-sdk/types";
|
|
3
|
+
import { EventEmitter } from "events";
|
|
4
|
+
|
|
5
|
+
export interface XhrHttpHandlerOptions {
|
|
6
|
+
requestTimeout?: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare type XhrHttpHandlerEvents = {
|
|
10
|
+
readonly PROGRESS: "xhr.progress";
|
|
11
|
+
|
|
12
|
+
readonly UPLOAD_PROGRESS: "xhr.upload.progress";
|
|
13
|
+
|
|
14
|
+
readonly XHR_INSTANTIATED: "after.xhr.new";
|
|
15
|
+
|
|
16
|
+
readonly BEFORE_XHR_SEND: "before.xhr.send";
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export declare class XhrHttpHandler
|
|
20
|
+
extends EventEmitter
|
|
21
|
+
implements HttpHandler
|
|
22
|
+
{
|
|
23
|
+
static readonly EVENTS: XhrHttpHandlerEvents;
|
|
24
|
+
private config?;
|
|
25
|
+
private readonly configProvider;
|
|
26
|
+
constructor(
|
|
27
|
+
options?: XhrHttpHandlerOptions | Provider<XhrHttpHandlerOptions>
|
|
28
|
+
);
|
|
29
|
+
destroy(): void;
|
|
30
|
+
handle(
|
|
31
|
+
request: HttpRequest,
|
|
32
|
+
{ abortSignal }?: HttpHandlerOptions
|
|
33
|
+
): Promise<{
|
|
34
|
+
response: HttpResponse;
|
|
35
|
+
}>;
|
|
36
|
+
|
|
37
|
+
private responseHeaders;
|
|
38
|
+
|
|
39
|
+
private initializeTransformStream;
|
|
40
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/xhr-http-handler",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.170.0",
|
|
4
4
|
"description": "Provides a way to make requests using XMLHttpRequest",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
|
+
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
9
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
10
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
12
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
@@ -17,18 +18,18 @@
|
|
|
17
18
|
"module": "./dist-es/index.js",
|
|
18
19
|
"types": "./dist-types/index.d.ts",
|
|
19
20
|
"dependencies": {
|
|
20
|
-
"@aws-sdk/protocol-http": "3.
|
|
21
|
-
"@aws-sdk/querystring-builder": "3.
|
|
22
|
-
"@aws-sdk/types": "3.
|
|
23
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
21
|
+
"@aws-sdk/protocol-http": "3.170.0",
|
|
22
|
+
"@aws-sdk/querystring-builder": "3.170.0",
|
|
23
|
+
"@aws-sdk/types": "3.170.0",
|
|
24
|
+
"@aws-sdk/util-base64-browser": "3.170.0",
|
|
24
25
|
"events": "3.3.0",
|
|
25
26
|
"tslib": "^2.3.1"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
|
-
"@aws-sdk/abort-controller": "3.
|
|
29
|
+
"@aws-sdk/abort-controller": "3.170.0",
|
|
29
30
|
"@tsconfig/recommended": "1.0.1",
|
|
30
31
|
"concurrently": "7.0.0",
|
|
31
|
-
"downlevel-dts": "0.
|
|
32
|
+
"downlevel-dts": "0.10.1",
|
|
32
33
|
"rimraf": "3.0.2",
|
|
33
34
|
"typedoc": "0.19.2",
|
|
34
35
|
"typescript": "~4.6.2"
|