@aws-sdk/xhr-http-handler 3.997.0 → 3.999.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/dist-cjs/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var protocolHttp = require('@smithy/protocol-http');
|
|
4
4
|
var querystringBuilder = require('@smithy/querystring-builder');
|
|
5
|
-
var
|
|
5
|
+
var node_events = require('node:events');
|
|
6
6
|
|
|
7
7
|
const requestTimeout = (timeoutInMs = 0) => new Promise((resolve, reject) => {
|
|
8
8
|
if (timeoutInMs) {
|
|
@@ -28,7 +28,7 @@ const EVENTS = {
|
|
|
28
28
|
return "before.xhr.send";
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
|
-
class XhrHttpHandler extends
|
|
31
|
+
class XhrHttpHandler extends node_events.EventEmitter {
|
|
32
32
|
static EVENTS = EVENTS;
|
|
33
33
|
static ERROR_IDENTIFIER = "XHR_HTTP_HANDLER_ERROR";
|
|
34
34
|
config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpResponse } from "@smithy/protocol-http";
|
|
2
2
|
import { buildQueryString } from "@smithy/querystring-builder";
|
|
3
|
-
import { EventEmitter } from "events";
|
|
3
|
+
import { EventEmitter } from "node:events";
|
|
4
4
|
import { requestTimeout as requestTimeoutFn } from "./request-timeout";
|
|
5
5
|
const EVENTS = {
|
|
6
6
|
get PROGRESS() {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { HttpHandler, HttpRequest
|
|
1
|
+
import { HttpHandler, HttpRequest } from "@smithy/protocol-http";
|
|
2
|
+
import { HttpResponse } from "@smithy/protocol-http";
|
|
2
3
|
import { HttpHandlerOptions, Provider } from "@smithy/types";
|
|
3
|
-
import { EventEmitter } from "events";
|
|
4
|
+
import { EventEmitter } from "node:events";
|
|
4
5
|
export interface XhrHttpHandlerOptions {
|
|
5
6
|
requestTimeout?: number;
|
|
6
7
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { HttpHandler, HttpRequest
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { HttpHandler, HttpRequest } from "@smithy/protocol-http";
|
|
2
|
+
import { HttpResponse } from "@smithy/protocol-http";
|
|
3
|
+
import type { HttpHandlerOptions, Provider } from "@smithy/types";
|
|
4
|
+
import { EventEmitter } from "node:events";
|
|
4
5
|
/**
|
|
5
6
|
* Represents the http options that can be passed to the xhr http client.
|
|
6
7
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/xhr-http-handler",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.999.0",
|
|
4
4
|
"description": "Provides a way to make requests using XMLHttpRequest",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"module": "./dist-es/index.js",
|
|
22
22
|
"types": "./dist-types/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "^3.973.
|
|
25
|
-
"@smithy/protocol-http": "^5.3.
|
|
26
|
-
"@smithy/querystring-builder": "^4.2.
|
|
27
|
-
"@smithy/types": "^4.
|
|
24
|
+
"@aws-sdk/types": "^3.973.4",
|
|
25
|
+
"@smithy/protocol-http": "^5.3.10",
|
|
26
|
+
"@smithy/querystring-builder": "^4.2.10",
|
|
27
|
+
"@smithy/types": "^4.13.0",
|
|
28
28
|
"events": "3.3.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@smithy/abort-controller": "^4.2.
|
|
32
|
+
"@smithy/abort-controller": "^4.2.10",
|
|
33
33
|
"@tsconfig/recommended": "1.0.1",
|
|
34
34
|
"concurrently": "7.0.0",
|
|
35
35
|
"downlevel-dts": "0.10.1",
|