@adastradev/serverless-discovery-sdk
Advanced tools
Comparing version 2.0.0-beta.2 to 2.0.0-beta.3
@@ -70,5 +70,10 @@ "use strict"; | ||
case 0: | ||
if (!stageName) { | ||
// Only use the default stageName if other filters are not provided | ||
if (!stageName && !version && !externalID) { | ||
stageName = this.defaultStageName; | ||
} | ||
// Using a stageName with version or externalID is not compatible | ||
if (stageName && (version || externalID)) { | ||
throw new Error('Providing a stageName along with version or externalID is not compatible'); | ||
} | ||
// If version hasn't been specified, try to find one from the cloudDependencies | ||
@@ -75,0 +80,0 @@ if (!version) { |
{ | ||
"name": "@adastradev/serverless-discovery-sdk", | ||
"version": "2.0.0-beta.2", | ||
"version": "2.0.0-beta.3", | ||
"description": "Serverless Service Discovery API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
17479
264