@aws-sdk/middleware-location-constraint
Advanced tools
Comparing version 1.0.0-alpha.7 to 1.0.0-alpha.8
@@ -22,3 +22,3 @@ "use strict"; | ||
!CreateBucketConfiguration.LocationConstraint) { | ||
args = tslib_1.__assign({}, args, { input: tslib_1.__assign({}, args.input, { CreateBucketConfiguration: region === "us-east-1" ? undefined : { LocationConstraint: region } }) }); | ||
args = tslib_1.__assign(tslib_1.__assign({}, args), { input: tslib_1.__assign(tslib_1.__assign({}, args.input), { CreateBucketConfiguration: region === "us-east-1" ? undefined : { LocationConstraint: region } }) }); | ||
} | ||
@@ -41,2 +41,2 @@ return [2 /*return*/, next(args)]; | ||
}); }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBV0E7Ozs7R0FJRztBQUVILFNBQWdCLDRCQUE0QixDQUMxQyxPQUF5QztJQUQzQyxpQkEyQkM7SUF4QkMsT0FBTyxVQUNMLElBQW9DLElBQ0QsT0FBQSxVQUNuQyxJQUFxQzs7Ozs7b0JBRTdCLHlCQUF5QixHQUFLLElBQUksQ0FBQyxLQUFLLDBCQUFmLENBQWdCO29CQUVsQyxxQkFBTSxPQUFPLENBQUMsTUFBTSxFQUFFLEVBQUE7O29CQUEvQixNQUFNLEdBQUcsU0FBc0I7b0JBQ3JDLElBQ0UsQ0FBQyx5QkFBeUI7d0JBQzFCLENBQUMseUJBQXlCLENBQUMsa0JBQWtCLEVBQzdDO3dCQUNBLElBQUksd0JBQ0MsSUFBSSxJQUNQLEtBQUssdUJBQ0EsSUFBSSxDQUFDLEtBQUssSUFDYix5QkFBeUIsRUFDdkIsTUFBTSxLQUFLLFdBQVcsQ0FBQyxDQUFDLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxFQUFFLGtCQUFrQixFQUFFL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ldENvbmZpZ3VyYXRpb24uTG9jYXRpb25Db25zdHJhaW50XG4gICAgKSB7XG4gICAgICBhcmdzID0ge1xuICAgICAgICAuLi5hcmdzLFxuICAgICAgICBpbnB1dDoge1xuICAgICAgICAgIC4uLmFyZ3MuaW5wdXQsXG4gICAgICAgICAgQ3JlYXRlQnVja2V0Q29uZmlndXJhdGlvbjpcbiAgICAgICAgICAgIHJlZ2lvbiA9PT0gXCJ1cy1lYXN0LTFcIiA/IHVuZGVmaW5lZCA6IHsgTG9jYXRpb25Db25zdHJhaW50OiByZWdpb24gfVxuICAgICAgICB9XG4gICAgICB9O1xuICAgIH1cblxuICAgIHJldHVybiBuZXh0KGFyZ3MpO1xuICB9O1xufVxuXG5leHBvcnQgY29uc3QgbG9jYXRpb25Db25zdHJhaW50TWlkZGxld2FyZU9wdGlvbnM6IEluaXRpYWxpemVIYW5kbGVyT3B0aW9ucyA9IHtcbiAgc3RlcDogXCJpbml0aWFsaXplXCIsXG4gIHRhZ3M6IFtcIkxPQ0FUSU9OX0NPTlNUUkFJTlRcIiwgXCJDUkVBVEVfQlVDS0VUX0NPTkZJR1VSQVRJT05cIl0sXG4gIG5hbWU6IFwibG9jYXRpb25Db25zdHJhaW50TWlkZGxld2FyZVwiXG59O1xuXG5leHBvcnQgY29uc3QgZ2V0TG9jYXRpb25Db25zdHJhaW50UGx1Z2luID0gKFxuICBjb25maWc6IExvY2F0aW9uQ29uc3RyYWludFJlc29sdmVkQ29uZmlnXG4pOiBQbHVnZ2FibGU8YW55LCBhbnk+ID0+ICh7XG4gIGFwcGx5VG9TdGFjazogY2xpZW50U3RhY2sgPT4ge1xuICAgIGNsaWVudFN0YWNrLmFkZChcbiAgICAgIGxvY2F0aW9uQ29uc3RyYWludE1pZGRsZXdhcmUoY29uZmlnKSxcbiAgICAgIGxvY2F0aW9uQ29uc3RyYWludE1pZGRsZXdhcmVPcHRpb25zXG4gICAgKTtcbiAgfVxufSk7XG4iXX0= | ||
//# sourceMappingURL=data:application/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1xuICB9O1xufVxuXG5leHBvcnQgY29uc3QgbG9jYXRpb25Db25zdHJhaW50TWlkZGxld2FyZU9wdGlvbnM6IEluaXRpYWxpemVIYW5kbGVyT3B0aW9ucyA9IHtcbiAgc3RlcDogXCJpbml0aWFsaXplXCIsXG4gIHRhZ3M6IFtcIkxPQ0FUSU9OX0NPTlNUUkFJTlRcIiwgXCJDUkVBVEVfQlVDS0VUX0NPTkZJR1VSQVRJT05cIl0sXG4gIG5hbWU6IFwibG9jYXRpb25Db25zdHJhaW50TWlkZGxld2FyZVwiXG59O1xuXG5leHBvcnQgY29uc3QgZ2V0TG9jYXRpb25Db25zdHJhaW50UGx1Z2luID0gKFxuICBjb25maWc6IExvY2F0aW9uQ29uc3RyYWludFJlc29sdmVkQ29uZmlnXG4pOiBQbHVnZ2FibGU8YW55LCBhbnk+ID0+ICh7XG4gIGFwcGx5VG9TdGFjazogY2xpZW50U3RhY2sgPT4ge1xuICAgIGNsaWVudFN0YWNrLmFkZChcbiAgICAgIGxvY2F0aW9uQ29uc3RyYWludE1pZGRsZXdhcmUoY29uZmlnKSxcbiAgICAgIGxvY2F0aW9uQ29uc3RyYWludE1pZGRsZXdhcmVPcHRpb25zXG4gICAgKTtcbiAgfVxufSk7XG4iXX0= |
@@ -6,2 +6,52 @@ # Change Log | ||
# 1.0.0-alpha.8 (2020-03-20) | ||
# 1.0.0-alpha.25 (2020-03-09) | ||
### Bug Fixes | ||
* no LocationConstraint for us-east-1 if not explicitly passed ([#985](https://github.com/aws/aws-sdk-js-v3/issues/985)) ([ecfe618](https://github.com/aws/aws-sdk-js-v3/commit/ecfe618bac289af4d788342e5fb0d0a9a8e75bd6)) | ||
# 1.0.0-alpha.24 (2020-02-19) | ||
# 1.0.0-alpha.17 (2020-02-05) | ||
### Bug Fixes | ||
* no LocationConstraint for us-east-1 ([#844](https://github.com/aws/aws-sdk-js-v3/issues/844)) ([67fd278](https://github.com/aws/aws-sdk-js-v3/commit/67fd278bb60e1f6691359fdf46be6add4e9e82fa)) | ||
# 1.0.0-alpha.13 (2020-01-24) | ||
# 1.0.0-alpha.12 (2020-01-22) | ||
# 0.9.0 (2020-01-09) | ||
### Bug Fixes | ||
* resolve region ([#560](https://github.com/aws/aws-sdk-js-v3/issues/560)) ([3aca84f](https://github.com/aws/aws-sdk-js-v3/commit/3aca84f37a3831ea12298523ad4dc8d5eeee9b15)) | ||
### Features | ||
* location constraint migration ([#497](https://github.com/aws/aws-sdk-js-v3/issues/497)) ([ad7f978](https://github.com/aws/aws-sdk-js-v3/commit/ad7f9780a3f0e5eedb23e216e92221aadc803753)) | ||
# 1.0.0-alpha.7 (2020-03-09) | ||
@@ -8,0 +58,0 @@ |
{ | ||
"name": "@aws-sdk/middleware-location-constraint", | ||
"version": "1.0.0-alpha.7", | ||
"version": "1.0.0-alpha.8", | ||
"scripts": { | ||
@@ -17,3 +17,3 @@ "prepublishOnly": "tsc", | ||
"dependencies": { | ||
"@aws-sdk/types": "^1.0.0-alpha.5", | ||
"@aws-sdk/types": "^1.0.0-alpha.6", | ||
"tslib": "^1.8.0" | ||
@@ -24,4 +24,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
29628