Socket
Socket
Sign inDemoInstall

serverless-leo

Package Overview
Dependencies
Maintainers
1
Versions
69
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.5 to 1.3.6

4

index.js

@@ -18,3 +18,3 @@ 'use strict'

class AwsCompileLeo {
class ServerlessLeo {
constructor (serverless, options) {

@@ -81,2 +81,2 @@ this.serverless = serverless

module.exports = AwsCompileLeo
module.exports = ServerlessLeo

@@ -60,3 +60,3 @@ 'use strict'

botNumbers.forEach(botNumber => {
const botSuffix = botNumber > 0 ? '_' + botNumber : ''
const botSuffix = botNumber > 0 ? '-' + botNumber : ''
let botId = `${this.serverless.service.service}-${stage}-${ymlFunctionName}${botSuffix}`

@@ -77,3 +77,3 @@ const installProperty = {

if (sourceQueue) {
botId = `${this.serverless.service.service}-${stage}-${ymlFunctionName}_${sourceQueue}${botSuffix}`
botId = `${this.serverless.service.service}-${stage}-${sourceQueue}-to-${ymlFunctionName}${botSuffix}`
installProperty.id = botId

@@ -80,0 +80,0 @@ installProperty.settings.source = sourceQueue

{
"name": "serverless-leo",
"version": "1.3.5",
"version": "1.3.6",
"description": "Serverless plugin for leo microservices",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -139,9 +139,9 @@ 'use strict'

expect(sls.serverless.service.provider.compiledCloudFormationTemplate.Resources['LeoRegister0']
.Properties['hello-serverless-leo-world-dev-helloNodeWorld_test_hello'].name).to.equal('helloNodeWorld_test_hello')
.Properties['hello-serverless-leo-world-dev-test_hello-to-helloNodeWorld'].name).to.equal('test_hello-to-helloNodeWorld')
expect(sls.serverless.service.provider.compiledCloudFormationTemplate.Resources['LeoRegister0']
.Properties['hello-serverless-leo-world-dev-helloNodeWorld_test_hello2'].name).to.equal('helloNodeWorld_test_hello2')
.Properties['hello-serverless-leo-world-dev-test_hello2-to-helloNodeWorld'].name).to.equal('test_hello2-to-helloNodeWorld')
expect(sls.serverless.service.provider.compiledCloudFormationTemplate.Resources['LeoRegister0']
.Properties['hello-serverless-leo-world-dev-helloNodeWorld_test_hello_1'].name).to.equal('helloNodeWorld_test_hello_1')
.Properties['hello-serverless-leo-world-dev-test_hello-to-helloNodeWorld-1'].name).to.equal('test_hello-to-helloNodeWorld-1')
expect(sls.serverless.service.provider.compiledCloudFormationTemplate.Resources['LeoRegister0']
.Properties['hello-serverless-leo-world-dev-helloNodeWorld_test_hello2_1'].name).to.equal('helloNodeWorld_test_hello2_1')
.Properties['hello-serverless-leo-world-dev-test_hello2-to-helloNodeWorld-1'].name).to.equal('test_hello2-to-helloNodeWorld-1')
})

@@ -160,3 +160,3 @@ it('names the bot according to the config', async () => {

expect(sls.serverless.service.provider.compiledCloudFormationTemplate.Resources['LeoRegister0']
.Properties['hello-serverless-leo-world-dev-helloNodeWorld_test_hello'].name).to.equal('bot1')
.Properties['hello-serverless-leo-world-dev-test_hello-to-helloNodeWorld'].name).to.equal('bot1')
})

@@ -177,4 +177,4 @@ it('names the bot according to the config in events', async () => {

expect(sls.serverless.service.provider.compiledCloudFormationTemplate.Resources['LeoRegister0']
.Properties['hello-serverless-leo-world-dev-helloNodeWorld_test_hello'].name).to.equal('bot2')
.Properties['hello-serverless-leo-world-dev-test_hello-to-helloNodeWorld'].name).to.equal('bot2')
})
})
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