snowflake-sdk
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -64,2 +64,11 @@ /* | ||
// if region, cloud or any subdomain is included in account, split them | ||
// into account and region parameters. | ||
var dotPos = options.account.indexOf('.'); | ||
if (dotPos > 0 && dotPos < options.account.length - 1) | ||
{ | ||
options.region = options.account.substring(dotPos + 1); | ||
options.account = options.account.substring(0, dotPos); | ||
} | ||
// if no access url is specified, derive it from the account name and the | ||
@@ -76,6 +85,14 @@ // region if one is specified | ||
// the region will look something like 'eu-central-1'; add a dot to the | ||
// beginning so we can insert it after the account name when building | ||
// the access url | ||
region = '.' + options.region; | ||
if (options.region === 'us-west-2') | ||
{ | ||
// if region is us-west-2, no subdomain is required. | ||
options.region = '' | ||
} | ||
else | ||
{ | ||
// the region will look something like 'eu-central-1'; add a dot to the | ||
// beginning so we can insert it after the account name when building | ||
// the access url | ||
region = '.' + options.region; | ||
} | ||
} | ||
@@ -82,0 +99,0 @@ |
{ | ||
"name": "snowflake-sdk", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "Node.js driver for Snowflake", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
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
286517
9188