deep-core
Advanced tools
Comparing version 1.12.16 to 1.12.17
@@ -101,4 +101,28 @@ /** | ||
value: function getRegionPrefix(region) { | ||
let regionsWithDifferentPrefix = [Region.EU_FRANKFURT, Region.ASIA_PACIFIC_SEOUL]; | ||
return regionsWithDifferentPrefix.indexOf(region) !== -1 ? '.' : '-'; | ||
let prefix = null; | ||
switch (region) { | ||
case Region.US_EAST_OHIO: | ||
case Region.AP_SOUTH_MUMBAI: | ||
case Region.ASIA_PACIFIC_SEOUL: | ||
case Region.EU_FRANKFURT: | ||
case Region.EU_LONDON: | ||
prefix = '.'; | ||
break; | ||
case Region.US_EAST_N_VIRGINIA: | ||
case Region.US_WEST_N_CALIFORNIA: | ||
case Region.US_WEST_OREGON: | ||
case Region.ASIA_PACIFIC_SINGAPORE: | ||
case Region.ASIA_PACIFIC_SYDNEY: | ||
case Region.ASIA_PACIFIC_TOKYO: | ||
case Region.EU_IRELAND: | ||
case Region.SOUTH_AMERICA_SAO_PAULO: | ||
prefix = '-'; | ||
break; | ||
default: | ||
console.warn(`No s3 website endpoint format specified for ${region}. Fallback to '-' separator.`); | ||
prefix = '-'; | ||
} | ||
return prefix; | ||
} | ||
@@ -105,0 +129,0 @@ }, { |
@@ -174,6 +174,30 @@ /** | ||
static getRegionPrefix(region) { | ||
let regionsWithDifferentPrefix = [Region.EU_FRANKFURT, Region.ASIA_PACIFIC_SEOUL]; | ||
return regionsWithDifferentPrefix.indexOf(region) !== -1 ? '.' : '-'; | ||
let prefix = null; | ||
switch (region) { | ||
case Region.US_EAST_OHIO: | ||
case Region.AP_SOUTH_MUMBAI: | ||
case Region.ASIA_PACIFIC_SEOUL: | ||
case Region.EU_FRANKFURT: | ||
case Region.EU_LONDON: | ||
prefix = '.'; | ||
break; | ||
case Region.US_EAST_N_VIRGINIA: | ||
case Region.US_WEST_N_CALIFORNIA: | ||
case Region.US_WEST_OREGON: | ||
case Region.ASIA_PACIFIC_SINGAPORE: | ||
case Region.ASIA_PACIFIC_SYDNEY: | ||
case Region.ASIA_PACIFIC_TOKYO: | ||
case Region.EU_IRELAND: | ||
case Region.SOUTH_AMERICA_SAO_PAULO: | ||
prefix = '-'; | ||
break; | ||
default: | ||
console.warn(`No s3 website endpoint format specified for ${region}. Fallback to '-' separator.`); | ||
prefix = '-'; | ||
} | ||
return prefix; | ||
} | ||
} | ||
exports.Region = Region; |
{ | ||
"name": "deep-core", | ||
"version": "1.12.16", | ||
"version": "1.12.17", | ||
"description": "DEEP Core Library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
177905
5297