@shushed/helpers 0.0.62 → 0.0.63

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 +7 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1104,8 +1104,10 @@ var PubSubHelper = class extends Runtime {
1104
1104
  }
1105
1105
  }
1106
1106
  } else {
1107
- nextMetadata = nextMetadata || {};
1108
- nextMetadata.pushConfig = null;
1107
+ if (subscriptionMetaData?.pushConfig?.pushEndpoint) {
1108
+ nextMetadata = nextMetadata || {};
1109
+ nextMetadata.pushConfig = null;
1110
+ }
1109
1111
  }
1110
1112
  if (opts.dlqTopic) {
1111
1113
  if (opts.dlqTopic.name !== subscriptionMetaData?.deadLetterPolicy?.deadLetterTopic || opts.retryLimit !== subscriptionMetaData?.deadLetterPolicy.maxDeliveryAttempts) {
@@ -1116,11 +1118,10 @@ var PubSubHelper = class extends Runtime {
1116
1118
  };
1117
1119
  }
1118
1120
  } else if (subscriptionMetaData?.deadLetterPolicy?.deadLetterTopic) {
1119
- nextMetadata = nextMetadata || {
1120
- deadLetterPolicy: null
1121
- };
1121
+ nextMetadata = nextMetadata || {};
1122
+ nextMetadata.deadLetterPolicy = null;
1122
1123
  }
1123
- if (opts.retryMinDelay !== subscriptionMetaData?.retryPolicy?.minimumBackoff?.seconds || opts.retryMaxDelay !== subscriptionMetaData?.retryPolicy?.maximumBackoff?.seconds) {
1124
+ if (opts.retryMinDelay != subscriptionMetaData?.retryPolicy?.minimumBackoff?.seconds || opts.retryMaxDelay != subscriptionMetaData?.retryPolicy?.maximumBackoff?.seconds) {
1124
1125
  nextMetadata = nextMetadata || {};
1125
1126
  nextMetadata.retryPolicy = {
1126
1127
  minimumBackoff: { seconds: opts.retryMinDelay },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",