@aws-sdk/protocol-http
Advanced tools
Comparing version 1.0.0-gamma.6 to 1.0.0-gamma.7
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.0.0-gamma.7](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/protocol-http@1.0.0-gamma.6...@aws-sdk/protocol-http@1.0.0-gamma.7) (2020-09-01) | ||
### Bug Fixes | ||
* serializer throws when hostname prefix is applied ([#1475](https://github.com/aws/aws-sdk-js-v3/issues/1475)) ([fe63117](https://github.com/aws/aws-sdk-js-v3/commit/fe631179824a4faa9aea1f59f90fd421a0f898cc)) | ||
# [1.0.0-gamma.6](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/protocol-http@1.0.0-gamma.5...@aws-sdk/protocol-http@1.0.0-gamma.6) (2020-08-25) | ||
@@ -8,0 +19,0 @@ |
@@ -5,6 +5,6 @@ "use strict"; | ||
function isValidHostname(hostname) { | ||
var hostPattern = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/; | ||
var hostPattern = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; | ||
return hostPattern.test(hostname); | ||
} | ||
exports.isValidHostname = isValidHostname; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNWYWxpZEhvc3RuYW1lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2lzVmFsaWRIb3N0bmFtZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxTQUFnQixlQUFlLENBQUMsUUFBZ0I7SUFDOUMsSUFBTSxXQUFXLEdBQUcseURBQXlELENBQUM7SUFDOUUsT0FBTyxXQUFXLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDO0FBQ3BDLENBQUM7QUFIRCwwQ0FHQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiBpc1ZhbGlkSG9zdG5hbWUoaG9zdG5hbWU6IHN0cmluZyk6IGJvb2xlYW4ge1xuICBjb25zdCBob3N0UGF0dGVybiA9IC9eW2EtekEtWjAtOV17MX0kfF5bYS16QS1aMC05XVthLXpBLVowLTlcXC1dKlthLXpBLVowLTldJC87XG4gIHJldHVybiBob3N0UGF0dGVybi50ZXN0KGhvc3RuYW1lKTtcbn1cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNWYWxpZEhvc3RuYW1lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2lzVmFsaWRIb3N0bmFtZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxTQUFnQixlQUFlLENBQUMsUUFBZ0I7SUFDOUMsSUFBTSxXQUFXLEdBQUcsc0NBQXNDLENBQUM7SUFDM0QsT0FBTyxXQUFXLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDO0FBQ3BDLENBQUM7QUFIRCwwQ0FHQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiBpc1ZhbGlkSG9zdG5hbWUoaG9zdG5hbWU6IHN0cmluZyk6IGJvb2xlYW4ge1xuICBjb25zdCBob3N0UGF0dGVybiA9IC9eW2EtejAtOV1bYS16MC05XFwuXFwtXXsxLDYxfVthLXowLTldJC87XG4gIHJldHVybiBob3N0UGF0dGVybi50ZXN0KGhvc3RuYW1lKTtcbn1cbiJdfQ== |
export function isValidHostname(hostname) { | ||
var hostPattern = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/; | ||
var hostPattern = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; | ||
return hostPattern.test(hostname); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaX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15bYS16MC05XVthLXowLTlcXC5cXC1dezEsNjF9W2EtejAtOV0kLztcbiAgcmV0dXJuIGhvc3RQYXR0ZXJuLnRlc3QoaG9zdG5hbWUpO1xufVxuIl19 |
{ | ||
"name": "@aws-sdk/protocol-http", | ||
"version": "1.0.0-gamma.6", | ||
"version": "1.0.0-gamma.7", | ||
"scripts": { | ||
@@ -22,3 +22,3 @@ "prepublishOnly": "yarn build:cjs && yarn build:es", | ||
"dependencies": { | ||
"@aws-sdk/types": "1.0.0-gamma.5", | ||
"@aws-sdk/types": "1.0.0-gamma.6", | ||
"tslib": "^1.8.0" | ||
@@ -25,0 +25,0 @@ }, |
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
65873
+ Added@aws-sdk/types@1.0.0-gamma.6(transitive)
- Removed@aws-sdk/types@1.0.0-gamma.5(transitive)
Updated@aws-sdk/types@1.0.0-gamma.6