@hg-ts/redis 0.3.4 → 0.4.0

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 CHANGED
@@ -1,3 +1,3 @@
1
- export * from './redis.module';
2
- export * from './redis.client';
1
+ export * from './redis.module.js';
2
+ export * from './redis.client.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./redis.module"), exports);
5
- tslib_1.__exportStar(require("./redis.client"), exports);
1
+ export * from './redis.module.js';
2
+ export * from './redis.client.js';
6
3
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,yDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { OnModuleDestroy, OnModuleInit } from '@nestjs/common';
2
- import Redis from 'ioredis';
3
- import { RedisConfig } from './redis.config';
2
+ import { Redis } from 'ioredis';
3
+ import { RedisConfig } from './redis.config.js';
4
4
  export declare class RedisClient extends Redis implements OnModuleInit, OnModuleDestroy {
5
5
  constructor(config: RedisConfig);
6
6
  onModuleInit(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"redis.client.d.ts","sourceRoot":"","sources":["../src/redis.client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,eAAe,EACf,YAAY,EACZ,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBACa,WAAY,SAAQ,KAAM,YAAW,YAAY,EAAE,eAAe;gBAC3D,MAAM,EAAE,WAAW;IAUzB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAI7B,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7C"}
1
+ {"version":3,"file":"redis.client.d.ts","sourceRoot":"","sources":["../src/redis.client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,eAAe,EACf,YAAY,EACZ,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,qBACa,WAAY,SAAQ,KAAM,YAAW,YAAY,EAAE,eAAe;gBAC3D,MAAM,EAAE,WAAW;IAUzB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAI7B,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7C"}
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RedisClient = void 0;
4
- const tslib_1 = require("tslib");
5
- const common_1 = require("@nestjs/common");
6
- const ioredis_1 = tslib_1.__importDefault(require("ioredis"));
7
- const redis_config_1 = require("./redis.config");
8
- let RedisClient = class RedisClient extends ioredis_1.default {
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { Injectable, } from '@nestjs/common';
3
+ import { Redis } from 'ioredis';
4
+ import { RedisConfig } from './redis.config.js';
5
+ let RedisClient = class RedisClient extends Redis {
9
6
  constructor(config) {
10
7
  super({
11
8
  host: config.host,
@@ -22,9 +19,9 @@ let RedisClient = class RedisClient extends ioredis_1.default {
22
19
  await this.quit();
23
20
  }
24
21
  };
25
- exports.RedisClient = RedisClient;
26
- exports.RedisClient = RedisClient = tslib_1.__decorate([
27
- (0, common_1.Injectable)(),
28
- tslib_1.__metadata("design:paramtypes", [redis_config_1.RedisConfig])
22
+ RedisClient = __decorate([
23
+ Injectable(),
24
+ __metadata("design:paramtypes", [RedisConfig])
29
25
  ], RedisClient);
26
+ export { RedisClient };
30
27
  //# sourceMappingURL=redis.client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"redis.client.js","sourceRoot":"","sources":["../src/redis.client.ts"],"names":[],"mappings":";;;;AAAA,2CAIwB;AAExB,8DAA4B;AAE5B,iDAA6C;AAGtC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,iBAAK;IACrC,YAAmB,MAAmB;QACrC,KAAK,CAAC;YACL,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,EAAE,EAAE,MAAM,CAAC,QAAQ;YACnB,gBAAgB,EAAE,IAAI;YACtB,WAAW,EAAE,IAAI;SACjB,CAAC,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,YAAY;QACxB,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;IACtB,CAAC;IAEM,KAAK,CAAC,eAAe;QAC3B,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;IACnB,CAAC;CACD,CAAA;AAlBY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;6CAEe,0BAAW;GAD1B,WAAW,CAkBvB"}
1
+ {"version":3,"file":"redis.client.js","sourceRoot":"","sources":["../src/redis.client.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,UAAU,GAGV,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGzC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,KAAK;IACrC,YAAmB,MAAmB;QACrC,KAAK,CAAC;YACL,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,EAAE,EAAE,MAAM,CAAC,QAAQ;YACnB,gBAAgB,EAAE,IAAI;YACtB,WAAW,EAAE,IAAI;SACjB,CAAC,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,YAAY;QACxB,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;IACtB,CAAC;IAEM,KAAK,CAAC,eAAe;QAC3B,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;IACnB,CAAC;CACD,CAAA;AAlBY,WAAW;IADvB,UAAU,EAAE;qCAEe,WAAW;GAD1B,WAAW,CAkBvB"}
@@ -3,7 +3,7 @@ export declare const REDIS_CONFIG_SCHEMA: zod.ZodObject<{
3
3
  host: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, unknown>>;
4
4
  database: zod.ZodNumber;
5
5
  port: zod.ZodNumber;
6
- }, zod.core.$strip>;
6
+ }, zod.z.core.$strip>;
7
7
  declare const RedisConfig_base: import("@hg-ts/validation").ZodDto<{
8
8
  host: string;
9
9
  database: number;
@@ -1 +1 @@
1
- {"version":3,"file":"redis.config.d.ts","sourceRoot":"","sources":["../src/redis.config.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,eAAO,MAAM,mBAAmB;;;;mBAI9B,CAAC;;;;;;AAEH,qBAAa,WAAY,SAAQ,gBAA6B;CAAG"}
1
+ {"version":3,"file":"redis.config.d.ts","sourceRoot":"","sources":["../src/redis.config.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,eAAO,MAAM,mBAAmB;;;;qBAI9B,CAAC;;;;;;AAEH,qBAAa,WAAY,SAAQ,gBAA6B;CAAG"}
@@ -1,14 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RedisConfig = exports.REDIS_CONFIG_SCHEMA = void 0;
4
- const tslib_1 = require("tslib");
5
- const validation_1 = tslib_1.__importDefault(require("@hg-ts/validation"));
6
- exports.REDIS_CONFIG_SCHEMA = validation_1.default.object({
7
- host: validation_1.default.string().enforceEnv('REDIS_HOST'),
8
- database: validation_1.default.number().int().min(0),
9
- port: validation_1.default.number().positive().int(),
1
+ import zod from '@hg-ts/validation';
2
+ export const REDIS_CONFIG_SCHEMA = zod.object({
3
+ host: zod.string().enforceEnv('REDIS_HOST'),
4
+ database: zod.number().int().min(0),
5
+ port: zod.number().positive().int(),
10
6
  });
11
- class RedisConfig extends exports.REDIS_CONFIG_SCHEMA.toClass() {
7
+ export class RedisConfig extends REDIS_CONFIG_SCHEMA.toClass() {
12
8
  }
13
- exports.RedisConfig = RedisConfig;
14
9
  //# sourceMappingURL=redis.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"redis.config.js","sourceRoot":"","sources":["../src/redis.config.ts"],"names":[],"mappings":";;;;AAAA,2EAAoC;AAEvB,QAAA,mBAAmB,GAAG,oBAAG,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,oBAAG,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IAC3C,QAAQ,EAAE,oBAAG,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,IAAI,EAAE,oBAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE;CACnC,CAAC,CAAC;AAEH,MAAa,WAAY,SAAQ,2BAAmB,CAAC,OAAO,EAAE;CAAG;AAAjE,kCAAiE"}
1
+ {"version":3,"file":"redis.config.js","sourceRoot":"","sources":["../src/redis.config.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IAC3C,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE;CACnC,CAAC,CAAC;AAEH,MAAM,OAAO,WAAY,SAAQ,mBAAmB,CAAC,OAAO,EAAE;CAAG"}
@@ -1,28 +1,25 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RedisModule = void 0;
4
- const tslib_1 = require("tslib");
5
- const config_loader_1 = require("@hg-ts/config-loader");
6
- const common_1 = require("@nestjs/common");
7
- const redis_client_1 = require("./redis.client");
8
- const redis_config_1 = require("./redis.config");
1
+ import { __decorate } from "tslib";
2
+ import { ConfigLoader } from '@hg-ts/config-loader';
3
+ import { Global, Module, } from '@nestjs/common';
4
+ import { RedisClient } from './redis.client.js';
5
+ import { RedisConfig } from './redis.config.js';
9
6
  let RedisModule = class RedisModule {
10
7
  };
11
- exports.RedisModule = RedisModule;
12
- exports.RedisModule = RedisModule = tslib_1.__decorate([
13
- (0, common_1.Global)(),
14
- (0, common_1.Module)({
8
+ RedisModule = __decorate([
9
+ Global(),
10
+ Module({
15
11
  providers: [
16
12
  {
17
- provide: redis_config_1.RedisConfig,
13
+ provide: RedisConfig,
18
14
  async useFactory(configLoader) {
19
- return configLoader.load(redis_config_1.RedisConfig, 'redis');
15
+ return configLoader.load(RedisConfig, 'redis');
20
16
  },
21
- inject: [config_loader_1.ConfigLoader],
17
+ inject: [ConfigLoader],
22
18
  },
23
- redis_client_1.RedisClient,
19
+ RedisClient,
24
20
  ],
25
- exports: [redis_client_1.RedisClient, redis_config_1.RedisConfig],
21
+ exports: [RedisClient, RedisConfig],
26
22
  })
27
23
  ], RedisModule);
24
+ export { RedisModule };
28
25
  //# sourceMappingURL=redis.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"redis.module.js","sourceRoot":"","sources":["../src/redis.module.ts"],"names":[],"mappings":";;;;AAAA,wDAAoD;AAEpD,2CAGwB;AAExB,iDAA6C;AAC7C,iDAA6C;AAgBtC,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAG,CAAA;AAAd,kCAAW;sBAAX,WAAW;IAdvB,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC;QACP,SAAS,EAAE;YACV;gBACC,OAAO,EAAE,0BAAW;gBACpB,KAAK,CAAC,UAAU,CAAC,YAA0B;oBAC1C,OAAO,YAAY,CAAC,IAAI,CAAC,0BAAW,EAAE,OAAO,CAAC,CAAC;gBAChD,CAAC;gBACD,MAAM,EAAE,CAAC,4BAAY,CAAC;aACtB;YACD,0BAAW;SACX;QACD,OAAO,EAAE,CAAC,0BAAW,EAAE,0BAAW,CAAC;KACnC,CAAC;GACW,WAAW,CAAG"}
1
+ {"version":3,"file":"redis.module.js","sourceRoot":"","sources":["../src/redis.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EACN,MAAM,EACN,MAAM,GACN,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgBzC,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAG,CAAA;AAAd,WAAW;IAdvB,MAAM,EAAE;IACR,MAAM,CAAC;QACP,SAAS,EAAE;YACV;gBACC,OAAO,EAAE,WAAW;gBACpB,KAAK,CAAC,UAAU,CAAC,YAA0B;oBAC1C,OAAO,YAAY,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;gBAChD,CAAC;gBACD,MAAM,EAAE,CAAC,YAAY,CAAC;aACtB;YACD,WAAW;SACX;QACD,OAAO,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;KACnC,CAAC;GACW,WAAW,CAAG"}
@@ -1,2 +1,2 @@
1
- export * from './redis-testcontainer.module';
1
+ export * from './redis-testcontainer.module.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-container/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-container/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
@@ -1,5 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./redis-testcontainer.module"), exports);
1
+ export * from './redis-testcontainer.module.js';
5
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test-container/index.ts"],"names":[],"mappings":";;;AAAA,uEAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test-container/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RedisTestContainerModule = void 0;
4
- const tslib_1 = require("tslib");
5
- const common_1 = require("@nestjs/common");
6
- const redis_module_1 = require("../redis.module");
7
- const redis_testcontainer_service_1 = require("./redis-testcontainer.service");
1
+ import { __decorate } from "tslib";
2
+ import { Global, Module, } from '@nestjs/common';
3
+ import { RedisModule } from '../redis.module.js';
4
+ import { RedisTestContainerService } from './redis-testcontainer.service.js';
8
5
  let RedisTestContainerModule = class RedisTestContainerModule {
9
6
  };
10
- exports.RedisTestContainerModule = RedisTestContainerModule;
11
- exports.RedisTestContainerModule = RedisTestContainerModule = tslib_1.__decorate([
12
- (0, common_1.Global)(),
13
- (0, common_1.Module)({ imports: [redis_module_1.RedisModule], providers: [redis_testcontainer_service_1.RedisTestContainerService] })
7
+ RedisTestContainerModule = __decorate([
8
+ Global(),
9
+ Module({ imports: [RedisModule], providers: [RedisTestContainerService] })
14
10
  ], RedisTestContainerModule);
11
+ export { RedisTestContainerModule };
15
12
  //# sourceMappingURL=redis-testcontainer.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"redis-testcontainer.module.js","sourceRoot":"","sources":["../../src/test-container/redis-testcontainer.module.ts"],"names":[],"mappings":";;;;AAAA,2CAGwB;AAExB,kDAA8C;AAE9C,+EAA0E;AAInE,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,4DAAwB;mCAAxB,wBAAwB;IAFpC,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,OAAO,EAAE,CAAC,0BAAW,CAAC,EAAE,SAAS,EAAE,CAAC,uDAAyB,CAAC,EAAE,CAAC;GAC9D,wBAAwB,CAAG"}
1
+ {"version":3,"file":"redis-testcontainer.module.js","sourceRoot":"","sources":["../../src/test-container/redis-testcontainer.module.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,MAAM,EACN,MAAM,GACN,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAItE,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,wBAAwB;IAFpC,MAAM,EAAE;IACR,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC,yBAAyB,CAAC,EAAE,CAAC;GAC9D,wBAAwB,CAAG"}
@@ -1,12 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RedisTestContainerService = void 0;
4
- const tslib_1 = require("tslib");
5
- const common_1 = require("@nestjs/common");
6
- const redis_1 = require("@testcontainers/redis");
7
- const redis_client_1 = require("../redis.client");
8
- const redis_config_1 = require("../redis.config");
9
- class RedisTestContainerService {
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { Inject, } from '@nestjs/common';
3
+ import { RedisContainer, } from '@testcontainers/redis';
4
+ import { RedisClient } from '../redis.client.js';
5
+ import { RedisConfig } from '../redis.config.js';
6
+ export class RedisTestContainerService {
10
7
  config;
11
8
  container;
12
9
  initPromise = null;
@@ -23,7 +20,7 @@ class RedisTestContainerService {
23
20
  await this.stopContainer();
24
21
  }
25
22
  async startContainer() {
26
- const container = new redis_1.RedisContainer('redis')
23
+ const container = new RedisContainer('redis')
27
24
  .withExposedPorts({ container: 6379, host: this.config.port });
28
25
  this.container = await container.start();
29
26
  }
@@ -31,17 +28,16 @@ class RedisTestContainerService {
31
28
  await this.container.stop();
32
29
  }
33
30
  enrichClient() {
34
- const originalInitHook = redis_client_1.RedisClient.prototype.onModuleInit;
31
+ const originalInitHook = RedisClient.prototype.onModuleInit;
35
32
  const self = this;
36
- redis_client_1.RedisClient.prototype.onModuleInit = async function () {
33
+ RedisClient.prototype.onModuleInit = async function () {
37
34
  await self.onModuleInit();
38
35
  return originalInitHook.call(this);
39
36
  };
40
37
  }
41
38
  }
42
- exports.RedisTestContainerService = RedisTestContainerService;
43
- tslib_1.__decorate([
44
- (0, common_1.Inject)(),
45
- tslib_1.__metadata("design:type", redis_config_1.RedisConfig)
39
+ __decorate([
40
+ Inject(),
41
+ __metadata("design:type", RedisConfig)
46
42
  ], RedisTestContainerService.prototype, "config", void 0);
47
43
  //# sourceMappingURL=redis-testcontainer.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"redis-testcontainer.service.js","sourceRoot":"","sources":["../../src/test-container/redis-testcontainer.service.ts"],"names":[],"mappings":";;;;AAAA,2CAIwB;AAExB,iDAG+B;AAE/B,kDAA8C;AAC9C,kDAA8C;AAE9C,MAAa,yBAAyB;IAEpB,MAAM,CAAc;IAE7B,SAAS,CAAwB;IAEjC,WAAW,GAA4B,IAAI,CAAC;IAEpD;QACC,IAAI,CAAC,YAAY,EAAE,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,YAAY;QACxB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACvB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAC1C,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC;IACzB,CAAC;IAEM,KAAK,CAAC,eAAe;QAC3B,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;IAC5B,CAAC;IAEO,KAAK,CAAC,cAAc;QAC3B,MAAM,SAAS,GAAG,IAAI,sBAAc,CAAC,OAAO,CAAC;aAC3C,gBAAgB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QAEhE,IAAI,CAAC,SAAS,GAAG,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;IAC1C,CAAC;IAEO,KAAK,CAAC,aAAa;QAC1B,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC7B,CAAC;IAEO,YAAY;QAEnB,MAAM,gBAAgB,GAAG,0BAAW,CAAC,SAAS,CAAC,YAAY,CAAC;QAE5D,MAAM,IAAI,GAAG,IAAI,CAAC;QAElB,0BAAW,CAAC,SAAS,CAAC,YAAY,GAAG,KAAK;YACzC,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;YAC1B,OAAO,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC,CAAC;IACH,CAAC;CACD;AA9CD,8DA8CC;AA5CiB;IADhB,IAAA,eAAM,GAAE;sCACgB,0BAAW;yDAAC"}
1
+ {"version":3,"file":"redis-testcontainer.service.js","sourceRoot":"","sources":["../../src/test-container/redis-testcontainer.service.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,MAAM,GAGN,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACN,cAAc,GAEd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,OAAO,yBAAyB;IAEpB,MAAM,CAAc;IAE7B,SAAS,CAAwB;IAEjC,WAAW,GAA4B,IAAI,CAAC;IAEpD;QACC,IAAI,CAAC,YAAY,EAAE,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,YAAY;QACxB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACvB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAC1C,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC;IACzB,CAAC;IAEM,KAAK,CAAC,eAAe;QAC3B,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;IAC5B,CAAC;IAEO,KAAK,CAAC,cAAc;QAC3B,MAAM,SAAS,GAAG,IAAI,cAAc,CAAC,OAAO,CAAC;aAC3C,gBAAgB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QAEhE,IAAI,CAAC,SAAS,GAAG,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;IAC1C,CAAC;IAEO,KAAK,CAAC,aAAa;QAC1B,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC7B,CAAC;IAEO,YAAY;QAEnB,MAAM,gBAAgB,GAAG,WAAW,CAAC,SAAS,CAAC,YAAY,CAAC;QAE5D,MAAM,IAAI,GAAG,IAAI,CAAC;QAElB,WAAW,CAAC,SAAS,CAAC,YAAY,GAAG,KAAK;YACzC,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;YAC1B,OAAO,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC,CAAC;IACH,CAAC;CACD;AA5CiB;IADhB,MAAM,EAAE;8BACgB,WAAW;yDAAC"}
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@hg-ts/redis",
3
- "version": "0.3.4",
3
+ "version": "0.4.0",
4
4
  "main": "dist/index.js",
5
+ "type": "module",
5
6
  "exports": {
6
7
  ".": "./dist/index.js"
7
8
  },
@@ -15,11 +16,11 @@
15
16
  "lint:ts:fix": "lint-ts --fix"
16
17
  },
17
18
  "devDependencies": {
18
- "@hg-ts-config/typescript": "0.3.4",
19
- "@hg-ts/config-loader": "0.3.4",
20
- "@hg-ts/linter": "0.3.4",
21
- "@hg-ts/types": "0.3.4",
22
- "@hg-ts/validation": "0.3.4",
19
+ "@hg-ts-config/typescript": "0.4.0",
20
+ "@hg-ts/config-loader": "0.4.0",
21
+ "@hg-ts/linter": "0.4.0",
22
+ "@hg-ts/types": "0.4.0",
23
+ "@hg-ts/validation": "0.4.0",
23
24
  "@nestjs/common": "11.1.0",
24
25
  "@types/node": "22.19.1",
25
26
  "eslint": "9.18.0",
@@ -30,8 +31,8 @@
30
31
  "typescript": "5.7.3"
31
32
  },
32
33
  "peerDependencies": {
33
- "@hg-ts/config-loader": "0.3.4",
34
- "@hg-ts/validation": "0.3.4",
34
+ "@hg-ts/config-loader": "0.4.0",
35
+ "@hg-ts/validation": "0.4.0",
35
36
  "@nestjs/common": "*",
36
37
  "reflect-metadata": "*",
37
38
  "rxjs": "*",
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "@hg-ts-config/typescript/commonjs",
2
+ "extends": "@hg-ts-config/typescript/esm",
3
3
  "compilerOptions": {
4
4
  "baseUrl": "src",
5
5
  "rootDir": "src",