@aws-sdk/middleware-location-constraint
Advanced tools
Comparing version 3.460.0 to 3.461.0
@@ -8,3 +8,3 @@ "use strict"; | ||
const region = await options.region(); | ||
if (!CreateBucketConfiguration || !CreateBucketConfiguration.LocationConstraint) { | ||
if (!(CreateBucketConfiguration === null || CreateBucketConfiguration === void 0 ? void 0 : CreateBucketConfiguration.LocationConstraint) && !(CreateBucketConfiguration === null || CreateBucketConfiguration === void 0 ? void 0 : CreateBucketConfiguration.Location)) { | ||
args = { | ||
@@ -11,0 +11,0 @@ ...args, |
@@ -5,3 +5,3 @@ export function locationConstraintMiddleware(options) { | ||
const region = await options.region(); | ||
if (!CreateBucketConfiguration || !CreateBucketConfiguration.LocationConstraint) { | ||
if (!CreateBucketConfiguration?.LocationConstraint && !CreateBucketConfiguration?.Location) { | ||
args = { | ||
@@ -8,0 +8,0 @@ ...args, |
{ | ||
"name": "@aws-sdk/middleware-location-constraint", | ||
"version": "3.460.0", | ||
"version": "3.461.0", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", |
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
18562