@aws-sdk/protocol-http
Advanced tools
Comparing version 1.0.0-alpha.7 to 1.0.0-alpha.8
@@ -18,5 +18,4 @@ import { HttpMessage, Endpoint, QueryParameterBag, HeaderBag, HttpRequest as IHttpRequest } from "@aws-sdk/types"; | ||
static isInstance(request: unknown): request is HttpRequest; | ||
getFormatedUrl(): string; | ||
clone(): HttpRequest; | ||
} | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var util_uri_escape_1 = require("@aws-sdk/util-uri-escape"); | ||
var HttpRequest = /** @class */ (function () { | ||
@@ -36,15 +35,4 @@ function HttpRequest(options) { | ||
}; | ||
HttpRequest.prototype.getFormatedUrl = function () { | ||
var hostname = this.hostname; | ||
if (this.port) { | ||
hostname += ":" + this.port; | ||
} | ||
var queryString = this.query ? buildQueryString(this.query) : ""; | ||
if (queryString && queryString[0] !== "?") { | ||
queryString = "?" + queryString; | ||
} | ||
return this.protocol + "//" + hostname + this.path + queryString; | ||
}; | ||
HttpRequest.prototype.clone = function () { | ||
var cloned = new HttpRequest(tslib_1.__assign({}, this, { headers: tslib_1.__assign({}, this.headers) })); | ||
var cloned = new HttpRequest(tslib_1.__assign(tslib_1.__assign({}, this), { headers: tslib_1.__assign({}, this.headers) })); | ||
if (cloned.query) | ||
@@ -61,33 +49,5 @@ cloned.query = cloneQuery(cloned.query); | ||
var param = query[paramName]; | ||
return tslib_1.__assign({}, carry, (_a = {}, _a[paramName] = Array.isArray(param) ? tslib_1.__spread(param) : param, _a)); | ||
return tslib_1.__assign(tslib_1.__assign({}, carry), (_a = {}, _a[paramName] = Array.isArray(param) ? tslib_1.__spread(param) : param, _a)); | ||
}, {}); | ||
} | ||
function buildQueryString(query) { | ||
var queryEntries = Object.entries(query || {}) | ||
.map(function (_a) { | ||
var _b = tslib_1.__read(_a, 2), key = _b[0], value = _b[1]; | ||
return [ | ||
util_uri_escape_1.escapeUri(key), | ||
value | ||
]; | ||
}) | ||
.map(function (_a) { | ||
var _b = tslib_1.__read(_a, 2), key = _b[0], value = _b[1]; | ||
if (Array.isArray(value)) { | ||
return value.map(function (val) { return key + "=" + util_uri_escape_1.escapeUri(val); }); | ||
} | ||
else { | ||
var qsEntry = key; | ||
if (value || typeof value === "string") { | ||
qsEntry += "=" + util_uri_escape_1.escapeUri(value); | ||
} | ||
return [qsEntry]; | ||
} | ||
}) | ||
.reduce(function (accummulator, entry) { | ||
accummulator.push.apply(accummulator, tslib_1.__spread(entry)); | ||
return accummulator; | ||
}, []); | ||
return queryEntries.join("&"); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cFJlcXVlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaHR0cFJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNERBQXFEO0FBY3JEO0lBVUUscUJBQVksT0FBMkI7UUFDckMsSUFBSSxDQUFDLE1BQU0sR0FBRyxPQUFPLENBQUMsTUFBTSxJQUFJLEtBQUssQ0FBQztRQUN0QyxJQUFJLENBQUMsUUFBUSxHQUFHLE9BQU8sQ0FBQyxRQUFRLElBQUksV0FBVyxDQUFDO1FBQ2hELElBQUksQ0FBQyxJQUFJLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQztRQUN6QixJQUFJLENBQUMsS0FBSyxHQUFHLE9BQU8sQ0FBQyxLQUFLLElBQUksRUFBRSxDQUFDO1FBQ2pDLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDLE9BQU8sSUFBSSxFQUFFLENBQUM7UUFDckMsSUFBSSxDQUFDLElBQUksR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDO1FBQ3pCLElBQUksQ0FBQyxRQUFRLEdBQUcsT0FBTyxDQUFDLFFBQVE7WUFDOUIsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsTUFBT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AgICAgICAgLi4uY2FycnksXG4gICAgICAgIFtwYXJhbU5hbWVdOiBBcnJheS5pc0FycmF5KHBhcmFtKSA/IFsuLi5wYXJhbV0gOiBwYXJhbVxuICAgICAgfTtcbiAgICB9LFxuICAgIHt9XG4gICk7XG59XG4iXX0= |
@@ -6,6 +6,15 @@ # Change Log | ||
# 1.0.0-alpha.7 (2020-02-18) | ||
# 1.0.0-alpha.8 (2020-03-20) | ||
# 1.0.0-alpha.24 (2020-02-19) | ||
### Features | ||
* remove unused functions ([#936](https://github.com/aws/aws-sdk-js-v3/issues/936)) ([b81bd3e](https://github.com/aws/aws-sdk-js-v3/commit/b81bd3e6e2437f661f96c0662f5024f89415de45)) | ||
# 1.0.0-alpha.13 (2020-01-24) | ||
@@ -16,2 +25,61 @@ | ||
* add isValidHostname function ([#774](https://github.com/aws/aws-sdk-js-v3/issues/774)) ([db2a498](https://github.com/aws/aws-sdk-js-v3/commit/db2a498b1061fdf49dab8d4a503816e8ffc03be8)) | ||
# 1.0.0-alpha.12 (2020-01-22) | ||
# 1.0.0-alpha.8 (2020-01-16) | ||
### Bug Fixes | ||
* remove private members in HttpRequest and HttpResponse ([#737](https://github.com/aws/aws-sdk-js-v3/issues/737)) ([d5602dc](https://github.com/aws/aws-sdk-js-v3/commit/d5602dc38e8ec3691d6605eceea145041743b80b)) | ||
# 1.0.0-alpha.1 (2020-01-10) | ||
### Bug Fixes | ||
* request/response object validation ([#709](https://github.com/aws/aws-sdk-js-v3/issues/709)) ([f6f8256](https://github.com/aws/aws-sdk-js-v3/commit/f6f8256b3eabb0382c6ea163a5b684ec17c1211b)) | ||
# 0.9.0 (2020-01-09) | ||
### Bug Fixes | ||
* support custom agent in node http handler ([#489](https://github.com/aws/aws-sdk-js-v3/issues/489)) ([9c6cde8](https://github.com/aws/aws-sdk-js-v3/commit/9c6cde855fce0eb012f64a305fcc38c0d16011b9)) | ||
* update updated types ([#474](https://github.com/aws/aws-sdk-js-v3/issues/474)) ([9efac3e](https://github.com/aws/aws-sdk-js-v3/commit/9efac3e1eb2370fb11b10b3d005369ec1a307e3a)) | ||
### Features | ||
* apply protocol and middleware update ([0de0a22](https://github.com/aws/aws-sdk-js-v3/commit/0de0a22c2a97a0dd3d27eee67e5e31fb32402a11)) | ||
* remove protocol rest json class ([#438](https://github.com/aws/aws-sdk-js-v3/issues/438)) ([7ec275a](https://github.com/aws/aws-sdk-js-v3/commit/7ec275a7fa8e13b94dabb59647b78f263872c240)) | ||
* use flag to replace httprequest instanceof ([b584032](https://github.com/aws/aws-sdk-js-v3/commit/b584032569de46e4f393ad9db6a2be331741af7b)) | ||
# 1.0.0-alpha.7 (2020-02-19) | ||
### Features | ||
* remove unused functions ([#936](https://github.com/aws/aws-sdk-js-v3/issues/936)) ([b81bd3e](https://github.com/aws/aws-sdk-js-v3/commit/b81bd3e)) | ||
# 1.0.0-alpha.13 (2020-01-24) | ||
### Features | ||
* add isValidHostname function ([#774](https://github.com/aws/aws-sdk-js-v3/issues/774)) ([db2a498](https://github.com/aws/aws-sdk-js-v3/commit/db2a498)) | ||
@@ -18,0 +86,0 @@ |
{ | ||
"name": "@aws-sdk/protocol-http", | ||
"version": "1.0.0-alpha.7", | ||
"version": "1.0.0-alpha.8", | ||
"scripts": { | ||
@@ -18,4 +18,3 @@ "prepublishOnly": "tsc", | ||
"dependencies": { | ||
"@aws-sdk/types": "^1.0.0-alpha.5", | ||
"@aws-sdk/util-uri-escape": "^1.0.0-alpha.2", | ||
"@aws-sdk/types": "^1.0.0-alpha.6", | ||
"tslib": "^1.8.0" | ||
@@ -26,4 +25,4 @@ }, | ||
"jest": "^24.7.1", | ||
"typescript": "~3.4.0" | ||
"typescript": "~3.8.3" | ||
} | ||
} |
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
2
36526
153
- Removed@aws-sdk/util-uri-escape@1.0.0-rc.8(transitive)