@stackone/transport 2.0.0 → 2.1.1

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.mts CHANGED
@@ -243,6 +243,7 @@ declare abstract class ScriptManager<T extends string, S extends ScriptManager<T
243
243
  protected cacheClient: ICacheClient<RedisClientType>;
244
244
  protected logger: ILogger;
245
245
  protected additionalArgs: unknown[];
246
+ protected isInitialConnection: boolean;
246
247
  protected initInstance({
247
248
  redisClientConfig,
248
249
  cacheClient,
@@ -252,6 +253,8 @@ declare abstract class ScriptManager<T extends string, S extends ScriptManager<T
252
253
  additionalArgs
253
254
  }: ScriptManagerOptions<T>): Promise<S>;
254
255
  protected abstract additionalInitialization(...args: unknown[]): Promise<void>;
256
+ protected setupReconnectHandler(): void;
257
+ protected reloadScripts(): Promise<void>;
255
258
  protected loadScripts(scripts: Scripts<T>, scriptMap?: Map<T, string>): Promise<void>;
256
259
  protected executeScript<U>(method: T, keys: string[], args: string[]): Promise<U | null>;
257
260
  protected isRedisReady(): boolean;
@@ -309,7 +312,7 @@ declare const CUSTOM_ERROR_CONFIG_SCHEMA: z.ZodObject<{
309
312
  targetStatus: z.ZodNumber;
310
313
  message: z.ZodOptional<z.ZodString>;
311
314
  condition: z.ZodOptional<z.ZodString>;
312
- }, z.core.$strip>;
315
+ }, z.core.$strict>;
313
316
  //#endregion
314
317
  //#region src/customErrors/types.d.ts
315
318
  type CustomErrorConfig = z.infer<typeof CUSTOM_ERROR_CONFIG_SCHEMA>;
@@ -903,6 +906,7 @@ declare class SubscriptionManager {
903
906
  private subscriptionMap;
904
907
  private subscriptionClient;
905
908
  private logger?;
909
+ name: string;
906
910
  constructor(options: SubscriptionManagerOptions);
907
911
  initialize(options?: SubscriptionManagerOptions): Promise<void>;
908
912
  subscribe<T extends boolean = false>(key: string, listener: PubSubListener<T>): Promise<boolean>;
package/dist/index.d.ts CHANGED
@@ -243,6 +243,7 @@ declare abstract class ScriptManager<T extends string, S extends ScriptManager<T
243
243
  protected cacheClient: ICacheClient<RedisClientType>;
244
244
  protected logger: ILogger;
245
245
  protected additionalArgs: unknown[];
246
+ protected isInitialConnection: boolean;
246
247
  protected initInstance({
247
248
  redisClientConfig,
248
249
  cacheClient,
@@ -252,6 +253,8 @@ declare abstract class ScriptManager<T extends string, S extends ScriptManager<T
252
253
  additionalArgs
253
254
  }: ScriptManagerOptions<T>): Promise<S>;
254
255
  protected abstract additionalInitialization(...args: unknown[]): Promise<void>;
256
+ protected setupReconnectHandler(): void;
257
+ protected reloadScripts(): Promise<void>;
255
258
  protected loadScripts(scripts: Scripts<T>, scriptMap?: Map<T, string>): Promise<void>;
256
259
  protected executeScript<U>(method: T, keys: string[], args: string[]): Promise<U | null>;
257
260
  protected isRedisReady(): boolean;
@@ -309,7 +312,7 @@ declare const CUSTOM_ERROR_CONFIG_SCHEMA: z.ZodObject<{
309
312
  targetStatus: z.ZodNumber;
310
313
  message: z.ZodOptional<z.ZodString>;
311
314
  condition: z.ZodOptional<z.ZodString>;
312
- }, z.core.$strip>;
315
+ }, z.core.$strict>;
313
316
  //#endregion
314
317
  //#region src/customErrors/types.d.ts
315
318
  type CustomErrorConfig = z.infer<typeof CUSTOM_ERROR_CONFIG_SCHEMA>;
@@ -903,6 +906,7 @@ declare class SubscriptionManager {
903
906
  private subscriptionMap;
904
907
  private subscriptionClient;
905
908
  private logger?;
909
+ name: string;
906
910
  constructor(options: SubscriptionManagerOptions);
907
911
  initialize(options?: SubscriptionManagerOptions): Promise<void>;
908
912
  subscribe<T extends boolean = false>(key: string, listener: PubSubListener<T>): Promise<boolean>;