@alicloud/openapi-client
Advanced tools
Comparing version 0.4.8 to 0.4.9
@@ -59,2 +59,3 @@ /// <reference types="node" /> | ||
ca?: string; | ||
disableHttp2?: boolean; | ||
static names(): { | ||
@@ -147,2 +148,3 @@ [key: string]: string; | ||
_ca: string; | ||
_disableHttp2: boolean; | ||
/** | ||
@@ -149,0 +151,0 @@ * Init client with Config |
@@ -91,2 +91,3 @@ "use strict"; | ||
ca: 'ca', | ||
disableHttp2: 'disableHttp2', | ||
}; | ||
@@ -124,2 +125,3 @@ } | ||
ca: 'string', | ||
disableHttp2: 'boolean', | ||
}; | ||
@@ -239,2 +241,3 @@ } | ||
this._ca = config.ca; | ||
this._disableHttp2 = config.disableHttp2; | ||
} | ||
@@ -304,2 +307,9 @@ /** | ||
} | ||
let extendsHeaders = {}; | ||
if (!tea_util_1.default.isUnset(runtime.extendsParameters)) { | ||
let extendsParameters = runtime.extendsParameters; | ||
if (!tea_util_1.default.isUnset(extendsParameters.headers)) { | ||
extendsHeaders = extendsParameters.headers; | ||
} | ||
} | ||
request_.query = Object.assign(Object.assign({ Action: action, Format: "json", Version: version, Timestamp: openapi_util_1.default.getTimestamp(), SignatureNonce: tea_util_1.default.getNonce() }, globalQueries), request.query); | ||
@@ -309,6 +319,6 @@ let headers = this.getRpcHeaders(); | ||
// endpoint is setted in product client | ||
request_.headers = Object.assign({ host: this._endpoint, 'x-acs-version': version, 'x-acs-action': action, 'user-agent': this.getUserAgent() }, globalHeaders); | ||
request_.headers = Object.assign(Object.assign({ host: this._endpoint, 'x-acs-version': version, 'x-acs-action': action, 'user-agent': this.getUserAgent() }, globalHeaders), extendsHeaders); | ||
} | ||
else { | ||
request_.headers = Object.assign(Object.assign({ host: this._endpoint, 'x-acs-version': version, 'x-acs-action': action, 'user-agent': this.getUserAgent() }, globalHeaders), headers); | ||
request_.headers = Object.assign(Object.assign(Object.assign({ host: this._endpoint, 'x-acs-version': version, 'x-acs-action': action, 'user-agent': this.getUserAgent() }, globalHeaders), extendsHeaders), headers); | ||
} | ||
@@ -474,3 +484,10 @@ if (!tea_util_1.default.isUnset(request.body)) { | ||
} | ||
request_.headers = Object.assign(Object.assign({ date: tea_util_1.default.getDateUTCString(), host: this._endpoint, accept: "application/json", 'x-acs-signature-nonce': tea_util_1.default.getNonce(), 'x-acs-signature-method': "HMAC-SHA1", 'x-acs-signature-version': "1.0", 'x-acs-version': version, 'x-acs-action': action, 'user-agent': tea_util_1.default.getUserAgent(this._userAgent) }, globalHeaders), request.headers); | ||
let extendsHeaders = {}; | ||
if (!tea_util_1.default.isUnset(runtime.extendsParameters)) { | ||
let extendsParameters = runtime.extendsParameters; | ||
if (!tea_util_1.default.isUnset(extendsParameters.headers)) { | ||
extendsHeaders = extendsParameters.headers; | ||
} | ||
} | ||
request_.headers = Object.assign(Object.assign(Object.assign({ date: tea_util_1.default.getDateUTCString(), host: this._endpoint, accept: "application/json", 'x-acs-signature-nonce': tea_util_1.default.getNonce(), 'x-acs-signature-method': "HMAC-SHA1", 'x-acs-signature-version': "1.0", 'x-acs-version': version, 'x-acs-action': action, 'user-agent': tea_util_1.default.getUserAgent(this._userAgent) }, globalHeaders), extendsHeaders), request.headers); | ||
if (!tea_util_1.default.isUnset(request.body)) { | ||
@@ -637,3 +654,10 @@ request_.body = new $tea.BytesReadable(tea_util_1.default.toJSONString(request.body)); | ||
} | ||
request_.headers = Object.assign(Object.assign({ date: tea_util_1.default.getDateUTCString(), host: this._endpoint, accept: "application/json", 'x-acs-signature-nonce': tea_util_1.default.getNonce(), 'x-acs-signature-method': "HMAC-SHA1", 'x-acs-signature-version': "1.0", 'x-acs-version': version, 'x-acs-action': action, 'user-agent': tea_util_1.default.getUserAgent(this._userAgent) }, globalHeaders), request.headers); | ||
let extendsHeaders = {}; | ||
if (!tea_util_1.default.isUnset(runtime.extendsParameters)) { | ||
let extendsParameters = runtime.extendsParameters; | ||
if (!tea_util_1.default.isUnset(extendsParameters.headers)) { | ||
extendsHeaders = extendsParameters.headers; | ||
} | ||
} | ||
request_.headers = Object.assign(Object.assign(Object.assign({ date: tea_util_1.default.getDateUTCString(), host: this._endpoint, accept: "application/json", 'x-acs-signature-nonce': tea_util_1.default.getNonce(), 'x-acs-signature-method': "HMAC-SHA1", 'x-acs-signature-version': "1.0", 'x-acs-version': version, 'x-acs-action': action, 'user-agent': tea_util_1.default.getUserAgent(this._userAgent) }, globalHeaders), extendsHeaders), request.headers); | ||
if (!tea_util_1.default.isUnset(request.body)) { | ||
@@ -798,5 +822,12 @@ let m = tea_util_1.default.assertAsMap(request.body); | ||
} | ||
let extendsHeaders = {}; | ||
if (!tea_util_1.default.isUnset(runtime.extendsParameters)) { | ||
let extendsParameters = runtime.extendsParameters; | ||
if (!tea_util_1.default.isUnset(extendsParameters.headers)) { | ||
extendsHeaders = extendsParameters.headers; | ||
} | ||
} | ||
request_.query = Object.assign(Object.assign({}, globalQueries), request.query); | ||
// endpoint is setted in product client | ||
request_.headers = Object.assign(Object.assign({ host: this._endpoint, 'x-acs-version': params.version, 'x-acs-action': params.action, 'user-agent': this.getUserAgent(), 'x-acs-date': openapi_util_1.default.getTimestamp(), 'x-acs-signature-nonce': tea_util_1.default.getNonce(), accept: "application/json" }, globalHeaders), request.headers); | ||
request_.headers = Object.assign(Object.assign(Object.assign({ host: this._endpoint, 'x-acs-version': params.version, 'x-acs-action': params.action, 'user-agent': this.getUserAgent(), 'x-acs-date': openapi_util_1.default.getTimestamp(), 'x-acs-signature-nonce': tea_util_1.default.getNonce(), accept: "application/json" }, globalHeaders), extendsHeaders), request.headers); | ||
if (tea_util_1.default.equalString(params.style, "RPC")) { | ||
@@ -972,2 +1003,3 @@ let headers = this.getRpcHeaders(); | ||
ignoreSSL: runtime.ignoreSSL, | ||
disableHttp2: Client.defaultAny(this._disableHttp2, false), | ||
}; | ||
@@ -1000,4 +1032,11 @@ let _lastRequest = null; | ||
} | ||
let extendsHeaders = {}; | ||
if (!tea_util_1.default.isUnset(runtime.extendsParameters)) { | ||
let extendsParameters = runtime.extendsParameters; | ||
if (!tea_util_1.default.isUnset(extendsParameters.headers)) { | ||
extendsHeaders = extendsParameters.headers; | ||
} | ||
} | ||
let requestContext = new $SPI.InterceptorContextRequest({ | ||
headers: Object.assign(Object.assign(Object.assign({}, globalHeaders), request.headers), headers), | ||
headers: Object.assign(Object.assign(Object.assign(Object.assign({}, globalHeaders), extendsHeaders), request.headers), headers), | ||
query: Object.assign(Object.assign({}, globalQueries), request.query), | ||
@@ -1004,0 +1043,0 @@ body: request.body, |
{ | ||
"name": "@alicloud/openapi-client", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"description": "", | ||
@@ -27,3 +27,3 @@ "main": "dist/client.js", | ||
"@alicloud/tea-typescript": "^1.7.1", | ||
"@alicloud/tea-util": "^1.4.7", | ||
"@alicloud/tea-util": "^1.4.8", | ||
"@alicloud/credentials": "^2", | ||
@@ -37,3 +37,4 @@ "@alicloud/openapi-util": "^0.3.2", | ||
"src" | ||
] | ||
], | ||
"repository": "git@github.com:aliyun/darabonba-openapi.git" | ||
} |
@@ -67,2 +67,3 @@ // This file is auto-generated, don't edit it | ||
ca?: string; | ||
disableHttp2?: boolean; | ||
static names(): { [key: string]: string } { | ||
@@ -98,2 +99,3 @@ return { | ||
ca: 'ca', | ||
disableHttp2: 'disableHttp2', | ||
}; | ||
@@ -132,2 +134,3 @@ } | ||
ca: 'string', | ||
disableHttp2: 'boolean', | ||
}; | ||
@@ -249,2 +252,3 @@ } | ||
_ca: string; | ||
_disableHttp2: boolean; | ||
@@ -303,2 +307,3 @@ /** | ||
this._ca = config.ca; | ||
this._disableHttp2 = config.disableHttp2; | ||
} | ||
@@ -374,2 +379,11 @@ | ||
let extendsHeaders : {[key: string ]: string} = { }; | ||
if (!Util.isUnset(runtime.extendsParameters)) { | ||
let extendsParameters = runtime.extendsParameters; | ||
if (!Util.isUnset(extendsParameters.headers)) { | ||
extendsHeaders = extendsParameters.headers; | ||
} | ||
} | ||
request_.query = { | ||
@@ -393,2 +407,3 @@ Action: action, | ||
...globalHeaders, | ||
...extendsHeaders, | ||
}; | ||
@@ -402,2 +417,3 @@ } else { | ||
...globalHeaders, | ||
...extendsHeaders, | ||
...headers, | ||
@@ -577,2 +593,11 @@ }; | ||
let extendsHeaders : {[key: string ]: string} = { }; | ||
if (!Util.isUnset(runtime.extendsParameters)) { | ||
let extendsParameters = runtime.extendsParameters; | ||
if (!Util.isUnset(extendsParameters.headers)) { | ||
extendsHeaders = extendsParameters.headers; | ||
} | ||
} | ||
request_.headers = { | ||
@@ -589,2 +614,3 @@ date: Util.getDateUTCString(), | ||
...globalHeaders, | ||
...extendsHeaders, | ||
...request.headers, | ||
@@ -765,2 +791,11 @@ }; | ||
let extendsHeaders : {[key: string ]: string} = { }; | ||
if (!Util.isUnset(runtime.extendsParameters)) { | ||
let extendsParameters = runtime.extendsParameters; | ||
if (!Util.isUnset(extendsParameters.headers)) { | ||
extendsHeaders = extendsParameters.headers; | ||
} | ||
} | ||
request_.headers = { | ||
@@ -777,2 +812,3 @@ date: Util.getDateUTCString(), | ||
...globalHeaders, | ||
...extendsHeaders, | ||
...request.headers, | ||
@@ -951,2 +987,11 @@ }; | ||
let extendsHeaders : {[key: string ]: string} = { }; | ||
if (!Util.isUnset(runtime.extendsParameters)) { | ||
let extendsParameters = runtime.extendsParameters; | ||
if (!Util.isUnset(extendsParameters.headers)) { | ||
extendsHeaders = extendsParameters.headers; | ||
} | ||
} | ||
request_.query = { | ||
@@ -966,2 +1011,3 @@ ...globalQueries, | ||
...globalHeaders, | ||
...extendsHeaders, | ||
...request.headers, | ||
@@ -1145,2 +1191,3 @@ }; | ||
ignoreSSL: runtime.ignoreSSL, | ||
disableHttp2: Client.defaultAny(this._disableHttp2, false), | ||
} | ||
@@ -1178,5 +1225,15 @@ | ||
let extendsHeaders : {[key: string ]: string} = { }; | ||
if (!Util.isUnset(runtime.extendsParameters)) { | ||
let extendsParameters = runtime.extendsParameters; | ||
if (!Util.isUnset(extendsParameters.headers)) { | ||
extendsHeaders = extendsParameters.headers; | ||
} | ||
} | ||
let requestContext = new $SPI.InterceptorContextRequest({ | ||
headers: { | ||
...globalHeaders, | ||
...extendsHeaders, | ||
...request.headers, | ||
@@ -1183,0 +1240,0 @@ ...headers, |
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
164980
2850
+ Added@types/node@20.17.1722.13.1(transitive)
- Removed@types/node@20.17.1622.12.0(transitive)
Updated@alicloud/tea-util@^1.4.8