We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee36fd1 commit 065c696Copy full SHA for 065c696
templates/javascript/browser.mustache
@@ -36,6 +36,7 @@ export function {{apiName}}(
36
throw new Error("`region` is missing.");
37
}
38
{{/fallbackToAliasHost}}
39
+
40
if (region && (typeof region !== 'string' || !REGIONS.includes(region))) {
41
throw new Error(`\`region\` must be one of the following: ${REGIONS.join(', ')}`);
42
templates/javascript/node.mustache
0 commit comments