serverless-leo
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -65,3 +65,3 @@ 'use strict' | ||
if (this.validated.errors.length > 0) { | ||
return Promise.reject(this.validated.errors) | ||
return Promise.reject(this.validated.errors.join('\n')) | ||
} | ||
@@ -68,0 +68,0 @@ |
@@ -24,6 +24,6 @@ 'use strict' | ||
if (functionObject.events) { | ||
forEach(functionObject.events, (functionEvent, functionName) => { | ||
forEach(functionObject.events, (functionEvent) => { | ||
if (typeof functionEvent.leo === 'object') { | ||
if (!functionEvent.leo.queue && !functionEvent.leo.cron && !functionEvent.leo.register) { | ||
errors.push(new Error('Error in serverless.yml ' + functionName + ' : Leo event requires queue, cron, or register.')) | ||
errors.push(new Error('Error in serverless.yml ' + (functionEvent.leo.name || functionObject.name) + ' : Leo event requires queue, cron, or register.')) | ||
return false | ||
@@ -35,3 +35,3 @@ } | ||
} else { | ||
errors.push(new Error('Error in serverless.yml ' + functionName + ' : Leo events should be specified as a string, or as an object.')) | ||
errors.push(new Error('Error in serverless.yml ' + (functionEvent.leo.name || functionObject.name) + ' : Leo events should be specified as a string, or as an object.')) | ||
return false | ||
@@ -38,0 +38,0 @@ } |
{ | ||
"name": "serverless-leo", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Serverless plugin for leo microservices", | ||
@@ -5,0 +5,0 @@ "main": "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
38884