@shushed/helpers 0.0.34 → 0.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -743,7 +743,7 @@ var PubSubHelper = class extends Runtime {
743
743
  return Promise.all(promises);
744
744
  }
745
745
  async createOrUpdate(opts) {
746
- const subscriptionName = `${this.envName === "prod" ? "" : `${this.envName}---`}${this.triggerId}`;
746
+ const subscriptionName = `${this.envName}---${this.triggerId}`;
747
747
  const topic = await this.ensureTopicExists(opts.topicName);
748
748
  let dlqTopic = null;
749
749
  let dlqSubscription = null;
@@ -854,7 +854,7 @@ var PubSubHelper = class extends Runtime {
854
854
  };
855
855
  if (opts.dlqTopic) {
856
856
  payload.deadLetterPolicy = {
857
- deadLetterTopic: opts.dlqTopic.name,
857
+ deadLetterTopic: this.getNameFromFullyQualifiedName(opts.dlqTopic.name),
858
858
  maxDeliveryAttempts: opts.retryLimit
859
859
  };
860
860
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",