Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serverless-leo

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-leo - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc