@huaweicloud/huaweicloud-sdk-core
Advanced tools
Comparing version 3.0.12-beta to 3.0.13-beta
@@ -60,3 +60,2 @@ "use strict"; | ||
var moment = require("moment"); | ||
var extend = require("extend"); | ||
var url = require("url"); | ||
@@ -86,3 +85,3 @@ var _ = __importStar(require("lodash")); | ||
dateTimeStamp = dateTimeStamp + "Z"; | ||
extend(true, authenticationHeaders, { "X-Sdk-Date": dateTimeStamp }); | ||
Object.assign(authenticationHeaders, { "X-Sdk-Date": dateTimeStamp }); | ||
} | ||
@@ -96,5 +95,5 @@ // @ts-ignore | ||
} | ||
extend(true, authenticationHeaders, { "host": host }); | ||
Object.assign(authenticationHeaders, { "host": host }); | ||
var allHeaders = {}; | ||
extend(allHeaders, request.headers, authenticationHeaders); | ||
Object.assign(allHeaders, request.headers, authenticationHeaders); | ||
var canonicalURI = parsedUrl.pathname + "/"; | ||
@@ -115,3 +114,3 @@ var canonicalQueryString = this.CanonicalQueryString(request); | ||
}; | ||
extend(allHeaders, authorization); | ||
Object.assign(allHeaders, authorization); | ||
return allHeaders; | ||
@@ -118,0 +117,0 @@ }; |
@@ -22,5 +22,2 @@ "use strict"; | ||
*/ | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -30,3 +27,2 @@ exports.BasicCredentials = void 0; | ||
var IHttpRequestBuilder_1 = require("../http/IHttpRequestBuilder"); | ||
var extend_1 = __importDefault(require("extend")); | ||
var AKSKSigner_2 = require("./AKSKSigner"); | ||
@@ -61,3 +57,3 @@ var BasicCredentials = /** @class */ (function () { | ||
if (this.projectId) { | ||
extend_1.default(pathParams, { project_id: this.projectId }); | ||
Object.assign(pathParams, { project_id: this.projectId }); | ||
} | ||
@@ -88,6 +84,6 @@ return pathParams; | ||
builder.addAllHeaders(httpRequest.headers); | ||
extend_1.default(httpRequest, builder.build()); | ||
Object.assign(httpRequest, builder.build()); | ||
var headers = AKSKSigner_1.AKSKSigner.sign(httpRequest, this); | ||
builder.addAllHeaders(headers); | ||
return extend_1.default(httpRequest, builder.build()); | ||
return Object.assign(httpRequest, builder.build()); | ||
}; | ||
@@ -94,0 +90,0 @@ return BasicCredentials; |
@@ -22,5 +22,2 @@ "use strict"; | ||
*/ | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -30,3 +27,2 @@ exports.GlobalCredentials = void 0; | ||
var IHttpRequestBuilder_1 = require("../http/IHttpRequestBuilder"); | ||
var extend_1 = __importDefault(require("extend")); | ||
var AKSKSigner_2 = require("./AKSKSigner"); | ||
@@ -61,3 +57,3 @@ var GlobalCredentials = /** @class */ (function () { | ||
if (this.domainId) { | ||
extend_1.default(pathParams, { domain_id: this.domainId }); | ||
Object.assign(pathParams, { domain_id: this.domainId }); | ||
} | ||
@@ -88,6 +84,6 @@ return pathParams; | ||
builder.addAllHeaders(httpRequest.headers); | ||
extend_1.default(httpRequest, builder.build()); | ||
Object.assign(httpRequest, builder.build()); | ||
var headers = AKSKSigner_1.AKSKSigner.sign(httpRequest, this); | ||
builder.addAllHeaders(headers); | ||
return extend_1.default(httpRequest, builder.build()); | ||
return Object.assign(httpRequest, builder.build()); | ||
}; | ||
@@ -94,0 +90,0 @@ return GlobalCredentials; |
@@ -0,1 +1,30 @@ | ||
# 3.0.13-beta 2021-08-25 | ||
### HuaweiCloud SDK ECS | ||
- _新增特性_ | ||
- 无 | ||
- _解决问题_ | ||
- 无 | ||
- _特性变更_ | ||
- 接口`ListServerInterfaces`新增以下响应参数: | ||
- `delete_on_termination` | ||
- `driver_mode` | ||
- `min_rate` | ||
- `multiqueue_num` | ||
- `pci_address` | ||
- 接口`ListServersDetails`新增响应参数`cpu_options`和`hypervisor` | ||
### HuaweiCloud SDK EIP | ||
- _新增特性_ | ||
- 无 | ||
- _解决问题_ | ||
- 无 | ||
- _特性变更_ | ||
- 接口`BatchCreateSharedBandwidths`新增请求参数和响应参数`public_border_group` | ||
- 接口`AddPublicipsIntoSharedBandwidth`新增响应参数`public_border_group` | ||
# 3.0.12-beta 2021-08-10 | ||
@@ -2,0 +31,0 @@ |
@@ -0,1 +1,28 @@ | ||
# 3.0.13-beta 2021-08-25 | ||
### HuaweiCloud SDK ECS | ||
- _Features_ | ||
- None | ||
- _Bug Fix_ | ||
- None | ||
- _Change_ | ||
- Add the following response parameters to the interface `ListServerInterfaces`: | ||
- `delete_on_termination` | ||
- `driver_mode` | ||
- `min_rate` | ||
- `multiqueue_num` | ||
- `pci_address` | ||
- Add the response parameters `cpu_options` and `hypervisor` to the interface `ListServersDetails`. | ||
### HuaweiCloud SDK EIP | ||
- _Features_ | ||
- None | ||
- _Bug Fix_ | ||
- None | ||
- _Change_ | ||
- Add the request and response parameter `public_border_group` to the interface `BatchCreateSharedBandwidths`. | ||
- Add the response parameter `public_border_group` to the interface `AddPublicipsIntoSharedBandwidth`. | ||
# 3.0.12-beta 2021-08-10 | ||
@@ -2,0 +29,0 @@ |
@@ -22,5 +22,2 @@ "use strict"; | ||
*/ | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -30,3 +27,2 @@ exports.ClientBuilder = void 0; | ||
var DefaultHttpClient_1 = require("./http/DefaultHttpClient"); | ||
var extend_1 = __importDefault(require("extend")); | ||
var BasicCredentials_1 = require("./auth/BasicCredentials"); | ||
@@ -61,3 +57,3 @@ var GlobalCredentials_1 = require("./auth/GlobalCredentials"); | ||
if (this.proxyAgent) { | ||
extend_1.default(axiosOptions, { proxyAgent: this.proxyAgent }); | ||
Object.assign(axiosOptions, { proxyAgent: this.proxyAgent }); | ||
} | ||
@@ -64,0 +60,0 @@ if (this.credential === null || this.credential === undefined) { |
@@ -22,9 +22,5 @@ "use strict"; | ||
*/ | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HttpRequestBuilder = void 0; | ||
var IHttpRequest_1 = require("./IHttpRequest"); | ||
var extend_1 = __importDefault(require("extend")); | ||
var HttpRequestBuilder = /** @class */ (function () { | ||
@@ -66,7 +62,7 @@ function HttpRequestBuilder(httpRequest) { | ||
HttpRequestBuilder.prototype.addPathParams = function (pathParams) { | ||
extend_1.default(this.httpRequest.getPathParams(), pathParams); | ||
Object.assign(this.httpRequest.getPathParams(), pathParams); | ||
return this; | ||
}; | ||
HttpRequestBuilder.prototype.addQueryParams = function (queryParams) { | ||
extend_1.default(this.httpRequest.getQueryParams, queryParams); | ||
Object.assign(this.httpRequest.getQueryParams, queryParams); | ||
return this; | ||
@@ -82,3 +78,3 @@ }; | ||
HttpRequestBuilder.prototype.addAllHeaders = function (header) { | ||
extend_1.default(this.httpRequest.getHeaders(), header); | ||
Object.assign(this.httpRequest.getHeaders(), header); | ||
return this; | ||
@@ -85,0 +81,0 @@ }; |
{ | ||
"name": "@huaweicloud/huaweicloud-sdk-core", | ||
"version": "3.0.12-beta", | ||
"version": "3.0.13-beta", | ||
"description": "Core code for Huaweicloud SDK for Node.js", | ||
@@ -20,10 +20,7 @@ "main": "huaweicloud-sdk-core.js", | ||
"dependencies": { | ||
"@types/extend": "^3.0.1", | ||
"@types/node": "^14.14.37", | ||
"axios": "^0.21.1", | ||
"extend": "^3.0.2", | ||
"form-data": "^4.0.0", | ||
"https-proxy-agent": "^5.0.0", | ||
"is-stream": "^2.0.0", | ||
"lodash": "^4.17.15", | ||
"lodash": "^4.17.21", | ||
"log4js": "^6.3.0", | ||
@@ -35,2 +32,3 @@ "moment": "^2.27.0", | ||
"devDependencies": { | ||
"@types/node": "^14.14.37", | ||
"@types/chai": "^4.2.16", | ||
@@ -56,2 +54,2 @@ "@types/mocha": "^8.2.2", | ||
} | ||
} | ||
} |
115697
9
20
1998
- Removed@types/extend@^3.0.1
- Removed@types/node@^14.14.37
- Removedextend@^3.0.2
- Removed@types/extend@3.0.4(transitive)
- Removed@types/node@14.18.63(transitive)
- Removedextend@3.0.2(transitive)
Updatedlodash@^4.17.21