@shushed/helpers 0.0.50 → 0.0.52

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 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -959,14 +959,11 @@ var PubSubHelper = class extends Runtime {
959
959
  }
960
960
  if (subscription && nextMetadata) {
961
961
  try {
962
- await subscription.setMetadata(nextMetadata);
962
+ return null;
963
963
  } catch (err) {
964
- if (err.message.toLowerCase().indexOf("permission denied") !== -1) {
965
- console.error("Invariant: While updating subscription - " + err.message + ` - ${this.pubSub.projectId} - ${subscriptionName} - ${JSON.stringify(nextMetadata)}`);
966
- }
964
+ console.error("Invariant: While updating subscription - " + err.message + ` - ${this.pubSub.projectId} - ${subscriptionName} - ${JSON.stringify(nextMetadata)}`);
967
965
  throw new Error("Invariant: While updating subscription - " + err.message);
968
966
  }
969
- return null;
970
967
  }
971
968
  return nextMetadata;
972
969
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",