serverless-plugin-stage-variables
Advanced tools
Comparing version 1.9.5 to 1.10.0
@@ -17,8 +17,8 @@ { | ||
"dependencies": { | ||
"lodash": "~4.17.13", | ||
"class.extend": "~0.9.2" | ||
"class.extend": "^0.9.2", | ||
"lodash": "^4.17.21" | ||
}, | ||
"license": "MIT", | ||
"name": "serverless-plugin-stage-variables", | ||
"version": "1.9.5" | ||
"version": "1.10.0" | ||
} |
@@ -35,6 +35,3 @@ 'use strict'; | ||
// find the correct stage name | ||
var stage = this._serverless.service.provider.stage; | ||
if (this._serverless.variables.options.stage) { | ||
stage = this._serverless.variables.options.stage; | ||
} | ||
var stage = this._serverless.getProvider('aws').getStage(); | ||
@@ -53,3 +50,3 @@ // override the deployment config, which can be ignored, see: | ||
Description: stage, | ||
RestApiId: {"Ref": "ApiGatewayRestApi"}, | ||
RestApiId: this._serverless.service.provider.apiGateway.restApiId || {"Ref": "ApiGatewayRestApi"}, | ||
DeploymentId: {"Ref": "TestDeployment"}, | ||
@@ -56,0 +53,0 @@ Variables: variables, |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
4879
64
1
Updatedclass.extend@^0.9.2
Updatedlodash@^4.17.21