зеркало из https://github.com/Azure/ms-rest-js.git
Родитель
c7b3e6c70a
Коммит
2c874ee8a7
44
Changelog.md
44
Changelog.md
|
@ -1,24 +1,58 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
# 1.8.7 - 2019-05-16
|
||||||
|
- Fixed issue [#347](https://github.com/Azure/ms-rest-js/issues/347), [#348](https://github.com/Azure/ms-rest-js/issues/348) in PR [#349](https://github.com/Azure/ms-rest-js/pull/349)
|
||||||
|
|
||||||
|
# 1.8.6 - 2019-05-10
|
||||||
|
- Added script to run tests on dependent projects [#345](https://github.com/Azure/ms-rest-js/pull/345)
|
||||||
|
|
||||||
|
# 1.8.4 - 2019-05-07
|
||||||
|
- Fixed incorrect undefined check in Axios client [62b65d](https://github.com/Azure/ms-rest-js/commit/ea7ceb86f1e6e6f7879e7e7ddfe791113762b65d#diff-b9cfc7f2cdf78a7f4b91a753d10865a2)
|
||||||
|
- Added TSLint check. Fix TSLint errors [#344](https://github.com/Azure/ms-rest-js/pull/344)
|
||||||
|
|
||||||
|
# 1.8.2 - 2019-04-25
|
||||||
|
- Fixed http over https bug [#341](https://github.com/Azure/ms-rest-js/pull/341)
|
||||||
|
|
||||||
|
# 1.8.1 - 2019-04-01
|
||||||
|
- Fixed serialization issue when required object is empty [#337](https://github.com/Azure/ms-rest-js/pull/337)
|
||||||
|
|
||||||
|
# 1.8.0 - 2019-03-18
|
||||||
|
- Added exports to several request policy factory methods [#336](https://github.com/Azure/ms-rest-js/pull/336)
|
||||||
|
|
||||||
|
# 1.7.0 - 2019-02-11
|
||||||
|
- Added userAgentHeaderName to ServiceClientOptions [#330](https://github.com/Azure/ms-rest-js/pull/330)
|
||||||
|
|
||||||
|
# 1.6.0 - 2019-01-30
|
||||||
|
- Fixed including proxy policy in browser [0c552f](https://github.com/Azure/ms-rest-js/commit/fafa26180e591db43d43c9cf0c7e93c8030c552f#diff-b9cfc7f2cdf78a7f4b91a753d10865a2)
|
||||||
|
|
||||||
|
# 1.5.3 - 2019-01-25
|
||||||
|
- Brought Axios interceptors back [c33602](https://github.com/Azure/ms-rest-js/commit/c1742fe6a80ed9b794115362633e0a8307c33602#diff-b9cfc7f2cdf78a7f4b91a753d10865a2)
|
||||||
|
|
||||||
|
# 1.5.2 - 2019-01-25
|
||||||
|
- Added HTTP(S) over HTTP(S) proxy support [2b1844](https://github.com/Azure/ms-rest-js/commit/1ee5a40d5016e286a7492c8cbd7b08d5c92b1844#diff-b9cfc7f2cdf78a7f4b91a753d10865a2)
|
||||||
|
- Added `@types/tunnel` [0865a2](https://github.com/Azure/ms-rest-js/commit/7a9b496d04294446f940f1549fb0a44dd9b94c01#diff-b9cfc7f2cdf78a7f4b91a753d10865a2)
|
||||||
|
|
||||||
|
# 1.5.1 - 2019-01-22
|
||||||
|
- Fixed default HTTP client tests [c75b87](https://github.com/Azure/ms-rest-js/commit/4c2b1c5390deab989b5ec9cadb84891de9c75b87#diff-b9cfc7f2cdf78a7f4b91a753d10865a2)
|
||||||
|
|
||||||
## 1.5.0 - 2019-01-15
|
## 1.5.0 - 2019-01-15
|
||||||
|
|
||||||
- Add support to specify proxy setting in ServiceClientOptions.
|
- Added support to specify proxy setting in ServiceClientOptions.
|
||||||
|
|
||||||
## 1.4.1 - 2019-01-15
|
## 1.4.1 - 2019-01-15
|
||||||
|
|
||||||
- Move browser-environment tests to Karma.
|
- Movec browser-environment tests to Karma.
|
||||||
|
|
||||||
## 1.4.0 - 2019-10-15
|
## 1.4.0 - 2019-10-15
|
||||||
|
|
||||||
- Allow ServiceClientOptions.requestPolicyFactories to be a function.
|
- Allowed ServiceClientOptions.requestPolicyFactories to be a function.
|
||||||
|
|
||||||
## 1.3.0 - 2019-01-15
|
## 1.3.0 - 2019-01-15
|
||||||
|
|
||||||
- Allow ServiceClientOptions.userAgent property to be a function.
|
- Allowed ServiceClientOptions.userAgent property to be a function.
|
||||||
|
|
||||||
## 1.1.1 - 2018-11-13
|
## 1.1.1 - 2018-11-13
|
||||||
|
|
||||||
- Improve debugging by adding rollup-plugin-sourcemaps.
|
- Improved debugging by adding rollup-plugin-sourcemaps.
|
||||||
|
|
||||||
## 1.1.0 - 2018-11-09
|
## 1.1.0 - 2018-11-09
|
||||||
|
|
||||||
|
|
|
@ -57,24 +57,17 @@ function registerIfNeeded(policy: RPRegistrationPolicy, request: WebResource, re
|
||||||
* @returns {object} A new request object with desired headers.
|
* @returns {object} A new request object with desired headers.
|
||||||
*/
|
*/
|
||||||
function getRequestEssentials(originalRequest: WebResource, reuseUrlToo = false): any {
|
function getRequestEssentials(originalRequest: WebResource, reuseUrlToo = false): any {
|
||||||
const reqOptions: any = {
|
const reqOptions = originalRequest.clone();
|
||||||
headers: {}
|
|
||||||
};
|
|
||||||
if (reuseUrlToo) {
|
if (reuseUrlToo) {
|
||||||
reqOptions.url = originalRequest.url;
|
reqOptions.url = originalRequest.url;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy over the original request headers. This will get us the auth token and other useful stuff from
|
|
||||||
// the original request header. Thus making it easier to make requests from this filter.
|
|
||||||
for (const h in originalRequest.headers) {
|
|
||||||
reqOptions.headers.set(h, originalRequest.headers.get(h));
|
|
||||||
}
|
|
||||||
// We have to change the x-ms-client-request-id otherwise Azure endpoint
|
// We have to change the x-ms-client-request-id otherwise Azure endpoint
|
||||||
// will return the initial 409 (cached) response.
|
// will return the ini(tial 409 (cached) response.
|
||||||
reqOptions.headers["x-ms-client-request-id"] = utils.generateUuid();
|
reqOptions.headers.set("x-ms-client-request-id", utils.generateUuid());
|
||||||
|
|
||||||
// Set content-type to application/json
|
// Set content-type to application/json
|
||||||
reqOptions.headers["Content-Type"] = "application/json; charset=utf-8";
|
reqOptions.headers.set("Content-Type", "application/json; charset=utf-8");
|
||||||
|
|
||||||
return reqOptions;
|
return reqOptions;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"email": "azsdkteam@microsoft.com",
|
"email": "azsdkteam@microsoft.com",
|
||||||
"url": "https://github.com/Azure/ms-rest-js"
|
"url": "https://github.com/Azure/ms-rest-js"
|
||||||
},
|
},
|
||||||
"version": "1.8.6",
|
"version": "1.8.7",
|
||||||
"description": "Isomorphic client Runtime for Typescript/node.js/browser javascript client libraries generated using AutoRest",
|
"description": "Isomorphic client Runtime for Typescript/node.js/browser javascript client libraries generated using AutoRest",
|
||||||
"tags": [
|
"tags": [
|
||||||
"isomorphic",
|
"isomorphic",
|
||||||
|
@ -79,20 +79,20 @@
|
||||||
"chai": "^4.2.0",
|
"chai": "^4.2.0",
|
||||||
"express": "^4.16.3",
|
"express": "^4.16.3",
|
||||||
"glob": "^7.1.2",
|
"glob": "^7.1.2",
|
||||||
"karma": "^3.1.3",
|
"karma": "^4.1.0",
|
||||||
"karma-chai": "^0.1.0",
|
"karma-chai": "^0.1.0",
|
||||||
"karma-chrome-launcher": "^2.2.0",
|
"karma-chrome-launcher": "^2.2.0",
|
||||||
"karma-mocha": "^1.3.0",
|
"karma-mocha": "^1.3.0",
|
||||||
"karma-rollup-preprocessor": "^6.1.1",
|
"karma-rollup-preprocessor": "^6.1.1",
|
||||||
"karma-sourcemap-loader": "^0.3.7",
|
"karma-sourcemap-loader": "^0.3.7",
|
||||||
"karma-typescript-es6-transform": "^1.0.4",
|
"karma-typescript-es6-transform": "^4.0.0",
|
||||||
"karma-webpack": "^3.0.5",
|
"karma-webpack": "^3.0.5",
|
||||||
"mocha": "^5.1.1",
|
"mocha": "^5.1.1",
|
||||||
"mocha-chrome": "^1.1.0",
|
"mocha-chrome": "^1.1.0",
|
||||||
"mocha-junit-reporter": "^1.18.0",
|
"mocha-junit-reporter": "^1.18.0",
|
||||||
"mocha-multi-reporters": "^1.1.7",
|
"mocha-multi-reporters": "^1.1.7",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"nyc": "^13.1.0",
|
"nyc": "^14.1.1",
|
||||||
"opn-cli": "^4.0.0",
|
"opn-cli": "^4.0.0",
|
||||||
"rollup": "^0.67.3",
|
"rollup": "^0.67.3",
|
||||||
"rollup-plugin-alias": "^1.4.0",
|
"rollup-plugin-alias": "^1.4.0",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче