@huaweicloud/huaweicloud-sdk-core
Advanced tools
Comparing version 3.0.22-beta to 3.0.23-beta
@@ -109,3 +109,3 @@ "use strict"; | ||
var authorization = { | ||
Authorization: this.SDK_SIGNING_ALGORITHM + " Access=" + credential.getAk() + ", SignedHeaders=" + signedHeaderNames + ", Signature=" + signatureString | ||
Authorization: "".concat(this.SDK_SIGNING_ALGORITHM, " Access=").concat(credential.getAk(), ", SignedHeaders=").concat(signedHeaderNames, ", Signature=").concat(signatureString) | ||
}; | ||
@@ -157,3 +157,3 @@ Object.assign(allHeaders, authorization); | ||
var lowerKey = key.toLocaleLowerCase(); | ||
canonicalHeaders += lowerKey + ":" + allHeaders[key] + "\n"; | ||
canonicalHeaders += "".concat(lowerKey, ":").concat(allHeaders[key], "\n"); | ||
} | ||
@@ -160,0 +160,0 @@ return canonicalHeaders; |
@@ -122,3 +122,3 @@ "use strict"; | ||
var value = encodeURIComponent(params[param]); | ||
return parsedPath.replace(new RegExp("{" + param + "}"), value); | ||
return parsedPath.replace(new RegExp("{".concat(param, "}")), value); | ||
}, path); | ||
@@ -125,0 +125,0 @@ }; |
@@ -133,4 +133,4 @@ "use strict"; | ||
var value = encodeURIComponent(params[param]); | ||
return parsedPath.replace(new RegExp("{" + param + "}"), value); | ||
return parsedPath.replace(new RegExp("{".concat(param, "}")), value); | ||
}, path); | ||
} |
@@ -0,1 +1,32 @@ | ||
# 3.0.23-beta 2021-11-25 | ||
### HuaweiCloud SDK CCE | ||
- _新增特性_ | ||
- 无 | ||
- _解决问题_ | ||
- 无 | ||
- _特性变更_ | ||
- 接口`ShowCluster`新增响应参数`platformVersion` | ||
- 接口`ListClusters`的请求参数`status`新增枚举值`RollingBack`和`RollbackFailed` | ||
### HuaweiCloud SDK EIP | ||
- _新增特性_ | ||
- 无 | ||
- _解决问题_ | ||
- 无 | ||
- _特性变更_ | ||
- 接口`CreatePrePaidPublicip`、`CreatePublicip`新增请求和响应参数`alias` | ||
- 接口`ShowPublicip`、`UpdatePublicip`新增响应参数`alias` | ||
### HuaweiCloud SDK OCR | ||
- _新增特性_ | ||
- 无 | ||
- _解决问题_ | ||
- 无 | ||
- _特性变更_ | ||
- 接口`RecognizeHandwriting`移除响应参数`extracted_data` | ||
# 3.0.22-beta 2021-11-12 | ||
@@ -2,0 +33,0 @@ |
@@ -0,1 +1,32 @@ | ||
# 3.0.23-beta 2021-11-25 | ||
### HuaweiCloud SDK CCE | ||
- _Features_ | ||
- None | ||
- _Bug Fix_ | ||
- None | ||
- _Change_ | ||
- Add the response parameter `platformVersion` to the interface `ShowCluster`. | ||
- Add the enumeration values `RollingBack` and `RollbackFailed` to the request parameter `status` of the interface `ListClusters`. | ||
### HuaweiCloud SDK EIP | ||
- _Features_ | ||
- None | ||
- _Bug Fix_ | ||
- None | ||
- _Change_ | ||
- Add the request and response parameter `alias` to the interfaces `CreatePrePaidPublicip` and `CreatePublicip`. | ||
- Add the response parameter `alias` to the interfaces `ShowPublicip` and `UpdatePublicip`. | ||
### HuaweiCloud SDK OCR | ||
- _Features_ | ||
- None | ||
- _Bug Fix_ | ||
- None | ||
- _Change_ | ||
- Remove the response parameter `extracted_data` of the interface `RecognizeHandwriting`. | ||
# 3.0.22-beta 2021-11-12 | ||
@@ -2,0 +33,0 @@ |
@@ -66,3 +66,3 @@ "use strict"; | ||
if (!this.credential) { | ||
throw new SdkException_1.SdkException("credential can not be null, " + this.credentialType + "Credential objects are required"); | ||
throw new SdkException_1.SdkException("credential can not be null, ".concat(this.credentialType, "Credential objects are required")); | ||
} | ||
@@ -101,3 +101,3 @@ var client = new DefaultHttpClient_1.DefaultHttpClient(axiosOptions); | ||
var obj = {}; | ||
var definedCredPath = path.join(this.init().getPath(), "" + sdkType); | ||
var definedCredPath = path.join(this.init().getPath(), "".concat(sdkType)); | ||
if (!obj[sdkType]) { | ||
@@ -104,0 +104,0 @@ credentialTYPE = require(definedCredPath); |
@@ -105,3 +105,3 @@ "use strict"; | ||
var url = request.url, method = request.method, data = request.data, headers = request.headers; | ||
_this.logger.debug("Request: " + method.toUpperCase() + " " + url + " " + JSON.stringify(headers) + " " + JSON.stringify(data)); | ||
_this.logger.debug("Request: ".concat(method.toUpperCase(), " ").concat(url, " ").concat(JSON.stringify(headers), " ").concat(JSON.stringify(data))); | ||
return request; | ||
@@ -113,13 +113,13 @@ }); | ||
if (status && statusText) { | ||
statusStr += status + ":" + statusText + " "; | ||
statusStr += "".concat(status, ":").concat(statusText, " "); | ||
} | ||
else if (status) { | ||
statusStr += status + " "; | ||
statusStr += "".concat(status, " "); | ||
} | ||
else if (statusText) { | ||
statusStr += statusText + " "; | ||
statusStr += "".concat(statusText, " "); | ||
} | ||
var requestId = response.headers ? response.headers['x-request-id'] : undefined; | ||
var reponseLength = response.result ? JSON.stringify(response.result).length : 1; | ||
_this.logger.debug("Response: " + method.toUpperCase() + " " + statusStr + " " + url + " " + JSON.stringify(headers) + " " + reponseLength + " " + requestId); | ||
_this.logger.debug("Response: ".concat(method.toUpperCase(), " ").concat(statusStr, " ").concat(url, " ").concat(JSON.stringify(headers), " ").concat(reponseLength, " ").concat(requestId)); | ||
return response; | ||
@@ -157,3 +157,3 @@ }); | ||
headers = headers || {}; | ||
this.logger.debug("send request start: " + endpoint + " "); | ||
this.logger.debug("send request start: ".concat(endpoint, " ")); | ||
url = endpoint; | ||
@@ -160,0 +160,0 @@ url = stripTrailingSlash(url); |
@@ -123,3 +123,3 @@ "use strict"; | ||
} | ||
logger.setName("nodesdk:" + name + ":" + instanceId); | ||
logger.setName("nodesdk:".concat(name, ":").concat(instanceId)); | ||
if (process.env.DEBUG === "DEBUG") { | ||
@@ -126,0 +126,0 @@ logger.setLevel(LogLevel.DEBUG); |
{ | ||
"name": "@huaweicloud/huaweicloud-sdk-core", | ||
"version": "3.0.22-beta", | ||
"version": "3.0.23-beta", | ||
"description": "Core code for Huaweicloud SDK for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "huaweicloud-sdk-core.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
197099