@sap-cloud-sdk/http-client 4.4.1-20260227123233.0 → 4.5.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.
|
@@ -118,6 +118,10 @@ export interface HttpRequestConfigBase {
|
|
|
118
118
|
* Encoder for the query parameters key and values. Per default parameters and keys are percent encoded.
|
|
119
119
|
*/
|
|
120
120
|
parameterEncoder?: ParameterEncoder;
|
|
121
|
+
/**
|
|
122
|
+
* An `AbortSignal` to cancel the request.
|
|
123
|
+
*/
|
|
124
|
+
signal?: AbortSignal;
|
|
121
125
|
}
|
|
122
126
|
/**
|
|
123
127
|
* @internal
|
|
@@ -155,7 +159,7 @@ export interface HttpRequestOptions {
|
|
|
155
159
|
/**
|
|
156
160
|
* The type for parameter in Custom Request Configuration.
|
|
157
161
|
*/
|
|
158
|
-
export type CustomRequestConfig = Pick<HttpRequestConfig, 'middleware' | 'maxContentLength' | 'proxy' | 'httpAgent' | 'httpsAgent' | 'parameterEncoder'> & Record<string, any>;
|
|
162
|
+
export type CustomRequestConfig = Pick<HttpRequestConfig, 'middleware' | 'maxContentLength' | 'proxy' | 'httpAgent' | 'httpsAgent' | 'parameterEncoder' | 'signal'> & Record<string, any>;
|
|
159
163
|
/**
|
|
160
164
|
* This interface is used for defining e.g., headers and query parameters with origin information.
|
|
161
165
|
* Options defined in `custom` take precedence over `requestConfig`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-client-types.js","sourceRoot":"","sources":["../src/http-client-types.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"http-client-types.js","sourceRoot":"","sources":["../src/http-client-types.ts"],"names":[],"mappings":";;AAsPA,0CAMC;AAKD,sEAOC;AAhCD;;;;;;;;;;;;;GAaG;AACH,SAAgB,eAAe,CAAC,GAAQ;IACtC,OAAO,CACL,CAAC,CAAC,GAAG;QACL,CAAC,OAAO,GAAG,CAAC,eAAe,CAAC,KAAK,QAAQ;YACvC,OAAO,GAAG,CAAC,QAAQ,CAAC,KAAK,QAAQ,CAAC,CACrC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,6BAA6B,CAC3C,aAA8D;IAE9D,OAAO,CACL,eAAe,CAAC,aAAa,CAAC,OAAO,CAAC;QACtC,eAAe,CAAC,aAAa,CAAC,MAAM,CAAC,CACtC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-cloud-sdk/http-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "SAP Cloud SDK for JavaScript http-client",
|
|
5
5
|
"homepage": "https://sap.github.io/cloud-sdk/docs/js/overview",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"readme": "ts-node ../../scripts/replace-common-readme.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@sap-cloud-sdk/connectivity": "^4.
|
|
44
|
-
"@sap-cloud-sdk/resilience": "^4.
|
|
45
|
-
"@sap-cloud-sdk/util": "^4.
|
|
43
|
+
"@sap-cloud-sdk/connectivity": "^4.5.0",
|
|
44
|
+
"@sap-cloud-sdk/resilience": "^4.5.0",
|
|
45
|
+
"@sap-cloud-sdk/util": "^4.5.0",
|
|
46
46
|
"axios": "^1.13.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|