@shushed/helpers 0.0.128 → 0.0.129-main-20250818084646
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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -35682,7 +35682,7 @@ declare class ActionHelper<C extends Record<string, any>, O extends RequiredTrig
|
|
|
35682
35682
|
lock: RateLimiterRedis;
|
|
35683
35683
|
request: RateLimiterRedis;
|
|
35684
35684
|
};
|
|
35685
|
-
preOnExecute(): Promise<void>;
|
|
35685
|
+
protected preOnExecute(): Promise<void>;
|
|
35686
35686
|
onExecute(config: C, opts: O, message: null | ReceivedMessage): Promise<Awaited<R>>;
|
|
35687
35687
|
static create<C extends Record<string, any>, O extends RequiredTriggerOptions, R>(options: ActionHelperOptions, onExecuteFunction: (config: C, opts: O, message: ReceivedMessage | null, actionHelper: ActionHelper<C, O, R>) => R): ActionHelper<C, O, R>;
|
|
35688
35688
|
}
|
package/dist/index.js
CHANGED
|
@@ -171283,7 +171283,7 @@ var ActionHelper = class _ActionHelper {
|
|
|
171283
171283
|
throw new Error("Invariant. preOnExecute must be called first");
|
|
171284
171284
|
}
|
|
171285
171285
|
const allowProductionTopic = this.config.allowProductionTopic;
|
|
171286
|
-
return `${this.config.topicName.indexOf("---") === -1 && this.runtime.envName !== "prod" &&
|
|
171286
|
+
return `${this.config.topicName.indexOf("---") === -1 && this.runtime.envName !== "prod" && !allowProductionTopic ? `${this.runtime.envName}---${this.config.topicName}` : this.config.topicName}${internal ? "-internal" : ""}`;
|
|
171287
171287
|
}
|
|
171288
171288
|
getRuntime() {
|
|
171289
171289
|
if (!this.opts) {
|