@shushed/helpers 0.0.49 → 0.0.50

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 +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -961,6 +961,9 @@ var PubSubHelper = class extends Runtime {
961
961
  try {
962
962
  await subscription.setMetadata(nextMetadata);
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
967
  throw new Error("Invariant: While updating subscription - " + err.message);
965
968
  }
966
969
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",