aws-fanout
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -48,3 +48,3 @@ 'use strict'; | ||
}).then(function (queueAttributesRes) { | ||
var arnList = getArnListFromPolicy(JSON.parse(queueAttributesRes.Attributes.Policy), scope.topicArns); | ||
var arnList = queueAttributesRes.Attributes.Policy ? getArnListFromPolicy(JSON.parse(queueAttributesRes.Attributes.Policy), scope.topicArns) : scope.topicArns; | ||
return createAttributes(arnList, scope.queueInfo.url, scope.queueInfo.arn); | ||
@@ -51,0 +51,0 @@ }).then(function (attributes) { |
@@ -32,3 +32,5 @@ import { SQS } from 'aws-sdk' | ||
.then(queueAttributesRes => { | ||
const arnList = getArnListFromPolicy(JSON.parse(queueAttributesRes.Attributes.Policy), scope.topicArns) | ||
const arnList = queueAttributesRes.Attributes.Policy | ||
? getArnListFromPolicy(JSON.parse(queueAttributesRes.Attributes.Policy), scope.topicArns) | ||
: scope.topicArns | ||
return createAttributes(arnList, scope.queueInfo.url, scope.queueInfo.arn) | ||
@@ -35,0 +37,0 @@ }) |
{ | ||
"name": "aws-fanout", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A library wrapping SNS and SQS to allow for human readable names when using a fanout technique", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
27879
695