serverless-leo
Advanced tools
Comparing version 1.3.5 to 1.3.6
@@ -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') | ||
}) | ||
}) |
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
39578