@shushed/helpers 0.0.169 → 0.0.170

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 +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -108984,7 +108984,8 @@ var ActionHelper = class _ActionHelper {
108984
108984
  pubSubProjectId
108985
108985
  }) {
108986
108986
  const envEngine = this.getEnvEngine();
108987
- const subscriptionName = `projects/${pubSubProjectId}/subscriptions/${topicName}-${shortHash(this.runtime.triggerId)}`;
108987
+ const normTopicName = topicName.indexOf("---") !== -1 ? topicName : `${this.runtime.envName}---${topicName}`;
108988
+ const subscriptionName = `projects/${pubSubProjectId}/subscriptions/${normTopicName}-${shortHash(this.runtime.triggerId)}`;
108988
108989
  return envEngine.withGoogleIdentityToken({
108989
108990
  workflowId: rnWorkflowTriggerId.split("/")[0],
108990
108991
  triggerId: rnWorkflowTriggerId.split("/")[1]
@@ -109031,7 +109032,8 @@ var ActionHelper = class _ActionHelper {
109031
109032
  pubSubProjectId
109032
109033
  }) {
109033
109034
  const envEngine = this.getEnvEngine();
109034
- const subscriptionName = `projects/${pubSubProjectId}/subscriptions/${topicName}-${shortHash(this.runtime.triggerId)}`;
109035
+ const normTopicName = topicName.indexOf("---") !== -1 ? topicName : `${this.runtime.envName}---${topicName}`;
109036
+ const subscriptionName = `projects/${pubSubProjectId}/subscriptions/${normTopicName}-${shortHash(this.runtime.triggerId)}`;
109035
109037
  return envEngine.withGoogleIdentityToken({
109036
109038
  workflowId: rnWorkflowTriggerId.split("/")[0],
109037
109039
  triggerId: rnWorkflowTriggerId.split("/")[1]
@@ -109057,7 +109059,8 @@ var ActionHelper = class _ActionHelper {
109057
109059
  }
109058
109060
  createOrUpdateRespectfulNudge(topicName, rnConfig) {
109059
109061
  const envEngine = this.getEnvEngine();
109060
- const subscriptionName = `projects/${rnConfig.pubSubProjectId}/subscriptions/${topicName}-${shortHash(this.runtime.triggerId)}`;
109062
+ const normTopicName = topicName.indexOf("---") !== -1 ? topicName : `${this.runtime.envName}---${topicName}`;
109063
+ const subscriptionName = `projects/${rnConfig.pubSubProjectId}/subscriptions/${normTopicName}-${shortHash(this.runtime.triggerId)}`;
109061
109064
  return envEngine.withGoogleIdentityToken({
109062
109065
  workflowId: rnConfig.rnWorkflowTriggerId.split("/")[0],
109063
109066
  triggerId: rnConfig.rnWorkflowTriggerId.split("/")[1]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.169",
3
+ "version": "0.0.170",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",