@credo-ts/tenants 0.5.0-alpha.120 → 0.5.0-alpha.122

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.
@@ -14,6 +14,7 @@ export declare class TenantsApi<AgentModules extends ModulesMap = DefaultAgentMo
14
14
  withTenantAgent(options: GetTenantAgentOptions, withTenantAgentCallback: WithTenantAgentCallback<AgentModules>): Promise<void>;
15
15
  createTenant(options: CreateTenantOptions): Promise<TenantRecord>;
16
16
  getTenantById(tenantId: string): Promise<TenantRecord>;
17
+ findTenantsByLabel(label: string): Promise<TenantRecord[]>;
17
18
  deleteTenantById(tenantId: string): Promise<void>;
18
19
  updateTenant(tenant: TenantRecord): Promise<void>;
19
20
  findTenantsByQuery(query: Query<TenantRecord>): Promise<TenantRecord[]>;
@@ -61,6 +61,10 @@ let TenantsApi = class TenantsApi {
61
61
  this.logger.debug(`Getting tenant by id '${tenantId}'`);
62
62
  return this.tenantRecordService.getTenantById(this.rootAgentContext, tenantId);
63
63
  }
64
+ async findTenantsByLabel(label) {
65
+ this.logger.debug(`Finding tenants by label '${label}'`);
66
+ return this.tenantRecordService.findTenantsByLabel(this.rootAgentContext, label);
67
+ }
64
68
  async deleteTenantById(tenantId) {
65
69
  this.logger.debug(`Deleting tenant by id '${tenantId}'`);
66
70
  // TODO: force remove context from the context provider (or session manager)
@@ -1 +1 @@
1
- {"version":3,"file":"TenantsApi.js","sourceRoot":"","sources":["../src/TenantsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAIA,yCAAiH;AAEjH,+CAA2C;AAC3C,yCAAgD;AAGzC,IAAM,UAAU,GAAhB,MAAM,UAAU;IAMrB,YACE,mBAAwC,EACxC,gBAA8B,EACiB,oBAA0C,EACxD,MAAc;QAE/C,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAA;QAC9C,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;QACxC,IAAI,CAAC,oBAAoB,GAAG,oBAA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,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAA;QAE3D,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,QAAQ,GAAG,CAAC,CAAA;QAC7D,MAAM,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,CAAA;QACjC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,mCAAmC,QAAQ,GAAG,CAAC,CAAA;QACjE,MAAM,WAAW,CAAC,UAAU,EAAE,CAAA;QAE9B,OAAO,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAA;IACnF,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,MAAoB;QAC5C,MAAM,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;IAC5E,CAAC;IAEM,KAAK,CAAC,kBAAkB,CAAC,KAA0B;QACxD,OAAO,IAAI,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAA;IAClF,CAAC;IAEM,KAAK,CAAC,aAAa;QACxB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAA;QACxC,OAAO,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;IACtE,CAAC;CACF,CAAA;AAjGY,UAAU;IADtB,IAAA,iBAAU,GAAE;IAUR,WAAA,IAAA,aAAM,EAAC,uBAAgB,CAAC,oBAAoB,CAAC,CAAA;IAC7C,WAAA,IAAA,aAAM,EAAC,uBAAgB,CAAC,MAAM,CAAC,CAAA;qCAHX,8BAAmB;QACtB,mBAAY;GARrB,UAAU,CAiGtB;AAjGY,gCAAU"}
@@ -2,6 +2,7 @@ import type { TenantsModuleConfigOptions } from './TenantsModuleConfig';
2
2
  import type { Constructor, ModulesMap, DependencyManager, Module, EmptyModuleMap } from '@credo-ts/core';
3
3
  import { TenantsApi } from './TenantsApi';
4
4
  import { TenantsModuleConfig } from './TenantsModuleConfig';
5
+ import { updateTenantsModuleV0_4ToV0_5 } from './updates/0.4-0.5';
5
6
  export declare class TenantsModule<AgentModules extends ModulesMap = EmptyModuleMap> implements Module {
6
7
  readonly config: TenantsModuleConfig;
7
8
  readonly api: Constructor<TenantsApi<AgentModules>>;
@@ -10,4 +11,9 @@ export declare class TenantsModule<AgentModules extends ModulesMap = EmptyModule
10
11
  * Registers the dependencies of the tenants module on the dependency manager.
11
12
  */
12
13
  register(dependencyManager: DependencyManager): void;
14
+ updates: {
15
+ fromVersion: "0.4";
16
+ toVersion: "0.5";
17
+ doUpdate: typeof updateTenantsModuleV0_4ToV0_5;
18
+ }[];
13
19
  }
@@ -8,9 +8,17 @@ const TenantAgentContextProvider_1 = require("./context/TenantAgentContextProvid
8
8
  const TenantSessionCoordinator_1 = require("./context/TenantSessionCoordinator");
9
9
  const repository_1 = require("./repository");
10
10
  const services_1 = require("./services");
11
+ const _0_4_0_5_1 = require("./updates/0.4-0.5");
11
12
  class TenantsModule {
12
13
  constructor(config) {
13
14
  this.api = TenantsApi_1.TenantsApi;
15
+ this.updates = [
16
+ {
17
+ fromVersion: '0.4',
18
+ toVersion: '0.5',
19
+ doUpdate: _0_4_0_5_1.updateTenantsModuleV0_4ToV0_5,
20
+ },
21
+ ];
14
22
  this.config = new TenantsModuleConfig_1.TenantsModuleConfig(config);
15
23
  }
16
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"TenantsModule.js","sourceRoot":"","sources":["../src/TenantsModule.ts"],"names":[],"mappings":";;;AAGA,yCAA8D;AAE9D,6CAAyC;AACzC,+DAA2D;AAC3D,qFAAiF;AACjF,iFAA6E;AAC7E,6CAAwE;AACxE,yCAAgD;AAEhD,MAAa,aAAa;IAKxB,YAAmB,MAAmC;QAFtC,QAAG,GAA0C,uBAAU,CAAA;QAGrE,IAAI,CAAC,MAAM,GAAG,IAAI,yCAAm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oC;QAClD,iCAAiC;QACjC,iBAAiB;aACd,OAAO,CAAC,kBAAW,CAAC;aACpB,MAAM,CAAC,IAAI,CACV,iLAAiL,CAClL,CAAA;QAEH,MAAM;QACN,oJAAoJ;QACpJ,iBAAiB,CAAC,iBAAiB,CAAC,uBAAU,CAAC,CAAA;QAE/C,SAAS;QACT,iBAAiB,CAAC,gBAAgB,CAAC,yCAAmB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAEpE,WAAW;QACX,iBAAiB,CAAC,iBAAiB,CAAC,8BAAmB,CAAC,CAAA;QAExD,eAAe;QACf,iBAAiB,CAAC,iBAAiB,CAAC,6BAAgB,CAAC,CAAA;QACrD,iBAAiB,CAAC,iBAAiB,CAAC,oCAAuB,CAAC,CAAA;QAE5D,iBAAiB,CAAC,iBAAiB,CAAC,uBAAgB,CAAC,oBAAoB,EAAE,uDAA0B,CAAC,CAAA;QACtG,iBAAiB,CAAC,iBAAiB,CAAC,mDAAwB,CAAC,CAAA;IAC/D,CAAC;CASF;AA7CD,sCA6CC"}
@@ -8,13 +8,15 @@ export interface TenantRecordProps {
8
8
  config: TenantConfig;
9
9
  tags?: TagsBase;
10
10
  }
11
- export declare class TenantRecord extends BaseRecord {
11
+ export type DefaultTenantRecordTags = {
12
+ label: string;
13
+ };
14
+ export declare class TenantRecord extends BaseRecord<DefaultTenantRecordTags> {
12
15
  static readonly type = "TenantRecord";
13
16
  readonly type = "TenantRecord";
14
17
  config: TenantConfig;
15
18
  constructor(props: TenantRecordProps);
16
19
  getTags(): {
17
- [x: string]: import("@credo-ts/core").TagValue;
18
- [x: number]: never;
20
+ label: string;
19
21
  };
20
22
  }
@@ -15,7 +15,7 @@ class TenantRecord extends core_1.BaseRecord {
15
15
  }
16
16
  }
17
17
  getTags() {
18
- return Object.assign({}, this._tags);
18
+ return Object.assign(Object.assign({}, this._tags), { label: this.config.label });
19
19
  }
20
20
  }
21
21
  exports.TenantRecord = TenantRecord;
@@ -1 +1 @@
1
- {"version":3,"file":"TenantRecord.js","sourceRoot":"","sources":["../../src/repository/TenantRecord.ts"],"names":[],"mappings":";;;AAGA,yCAAkD;AAWlD,MAAa,YAAa,SAAQ,iBAAU;IAM1C,YAAmB,KAAwB;;QACzC,KAAK,EAAE,CAAA;QALO,SAAI,GAAG,YAAY,CAAC,IAAI,CAAA;QAOtC,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,EAAE,GAAG,MAAA,KAAK,CAAC,EAAE,mCAAI,YAAK,CAAC,IAAI,EAAE,CAAA;YAClC,IAAI,CAAC,SAAS,GAAG,MAAA,KAAK,CAAC,SAAS,mCAAI,IAAI,IAAI,EAAE,CAAA;YAC9C,IAAI,CAAC,KAAK,GAAG,MAAA,KAAK,CAAC,IAAI,mCAAI,EAAE,CAAA;YAC7B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;SAC3B;IACH,CAAC;IAEM,OAAO;QACZ,yBACK,IAAI,CAAC,KAAK,EACd;IACH,CAAC;;AArBH,oCAsBC;AArBwB,iBAAI,GAAG,cAAc,CAAA"}
1
+ {"version":3,"file":"TenantRecord.js","sourceRoot":"","sources":["../../src/repository/TenantRecord.ts"],"names":[],"mappings":";;;AAGA,yCAAkD;AAelD,MAAa,YAAa,SAAQ,iBAAmC;IAMnE,YAAmB,KAAwB;;QACzC,KAAK,EAAE,CAAA;QALO,SAAI,GAAG,YAAY,CAAC,IAAI,CAAA;QAOtC,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,EAAE,GAAG,MAAA,KAAK,CAAC,EAAE,mCAAI,YAAK,CAAC,IAAI,EAAE,CAAA;YAClC,IAAI,CAAC,SAAS,GAAG,MAAA,KAAK,CAAC,SAAS,mCAAI,IAAI,IAAI,EAAE,CAAA;YAC9C,IAAI,CAAC,KAAK,GAAG,MAAA,KAAK,CAAC,IAAI,mCAAI,EAAE,CAAA;YAC7B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;SAC3B;IACH,CAAC;IAEM,OAAO;QACZ,uCACK,IAAI,CAAC,KAAK,KACb,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,IACzB;IACH,CAAC;;AAtBH,oCAuBC;AAtBwB,iBAAI,GAAG,cAAc,CAAA"}
@@ -1,5 +1,7 @@
1
+ import type { AgentContext } from '@credo-ts/core';
1
2
  import { Repository, StorageService, EventEmitter } from '@credo-ts/core';
2
3
  import { TenantRecord } from './TenantRecord';
3
4
  export declare class TenantRepository extends Repository<TenantRecord> {
4
5
  constructor(storageService: StorageService<TenantRecord>, eventEmitter: EventEmitter);
6
+ findByLabel(agentContext: AgentContext, label: string): Promise<TenantRecord[]>;
5
7
  }
@@ -19,6 +19,9 @@ let TenantRepository = class TenantRepository extends core_1.Repository {
19
19
  constructor(storageService, eventEmitter) {
20
20
  super(TenantRecord_1.TenantRecord, storageService, eventEmitter);
21
21
  }
22
+ async findByLabel(agentContext, label) {
23
+ return this.findByQuery(agentContext, { label });
24
+ }
22
25
  };
23
26
  TenantRepository = __decorate([
24
27
  (0, core_1.injectable)(),
@@ -1 +1 @@
1
- {"version":3,"file":"TenantRepository.js","sourceRoot":"","sources":["../../src/repository/TenantRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yCAA+G;AAE/G,iDAA6C;AAGtC,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,iBAAwB;IAC5D,YAC2C,cAA4C,EACrF,YAA0B;QAE1B,KAAK,CAAC,2BAAY,EAAE,cAAc,EAAE,YAAY,CAAC,CAAA;IACnD,CAAC;CACF,CAAA;AAPY,gBAAgB;IAD5B,IAAA,iBAAU,GAAE;IAGR,WAAA,IAAA,aAAM,EAAC,uBAAgB,CAAC,cAAc,CAAC,CAAA;6CAC1B,mBAAY;GAHjB,gBAAgB,CAO5B;AAPY,4CAAgB"}
1
+ {"version":3,"file":"TenantRepository.js","sourceRoot":"","sources":["../../src/repository/TenantRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,yCAA+G;AAE/G,iDAA6C;AAGtC,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,iBAAwB;IAC5D,YAC2C,cAA4C,EACrF,YAA0B;QAE1B,KAAK,CAAC,2BAAY,EAAE,cAAc,EAAE,YAAY,CAAC,CAAA;IACnD,CAAC;IAEM,KAAK,CAAC,WAAW,CAAC,YAA0B,EAAE,KAAa;QAChE,OAAO,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,CAAA;IAClD,CAAC;CACF,CAAA;AAXY,gBAAgB;IAD5B,IAAA,iBAAU,GAAE;IAGR,WAAA,IAAA,aAAM,EAAC,uBAAgB,CAAC,cAAc,CAAC,CAAA;6CAC1B,mBAAY;GAHjB,gBAAgB,CAW5B;AAXY,4CAAgB"}
@@ -7,6 +7,7 @@ export declare class TenantRecordService {
7
7
  constructor(tenantRepository: TenantRepository, tenantRoutingRepository: TenantRoutingRepository);
8
8
  createTenant(agentContext: AgentContext, config: Omit<TenantConfig, 'walletConfig'>): Promise<TenantRecord>;
9
9
  getTenantById(agentContext: AgentContext, tenantId: string): Promise<TenantRecord>;
10
+ findTenantsByLabel(agentContext: AgentContext, label: string): Promise<TenantRecord[]>;
10
11
  getAllTenants(agentContext: AgentContext): Promise<TenantRecord[]>;
11
12
  deleteTenantById(agentContext: AgentContext, tenantId: string): Promise<void>;
12
13
  updateTenant(agentContext: AgentContext, tenantRecord: TenantRecord): Promise<void>;
@@ -35,6 +35,9 @@ let TenantRecordService = class TenantRecordService {
35
35
  async getTenantById(agentContext, tenantId) {
36
36
  return this.tenantRepository.getById(agentContext, tenantId);
37
37
  }
38
+ async findTenantsByLabel(agentContext, label) {
39
+ return this.tenantRepository.findByLabel(agentContext, label);
40
+ }
38
41
  async getAllTenants(agentContext) {
39
42
  return this.tenantRepository.getAll(agentContext);
40
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TenantRecordService.js","sourceRoot":"","sources":["../../src/services/TenantRecordService.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,YAAiB;QAEjB,MAAM,mBAAmB,GAAG,IAAI,gCAAmB,CAAC;YAClD,QAAQ;YACR,uBAAuB,EAAE,YAAY,CAAC,WAAW;SAClD,CAAC,CAAA;QAEF,MAAM,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,YAAY,EAAE,mBAAmB,CAAC,CAAA;QAE1E,OAAO,mBAAmB,CAAA;IAC5B,CAAC;CACF,CAAA;AA3FY,mBAAmB;IAD/B,IAAA,iBAAU,GAAE;qCAK0B,6BAAgB,EAA2B,oCAAuB;GAJ5F,mBAAmB,CA2F/B;AA3FY,kDAAmB"}
@@ -0,0 +1,2 @@
1
+ import type { BaseAgent } from '@credo-ts/core';
2
+ export declare function updateTenantsModuleV0_4ToV0_5<Agent extends BaseAgent>(agent: Agent): Promise<void>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateTenantsModuleV0_4ToV0_5 = void 0;
4
+ const tenantRecord_1 = require("./tenantRecord");
5
+ async function updateTenantsModuleV0_4ToV0_5(agent) {
6
+ await (0, tenantRecord_1.migrateTenantRecordToV0_5)(agent);
7
+ }
8
+ exports.updateTenantsModuleV0_4ToV0_5 = updateTenantsModuleV0_4ToV0_5;
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/updates/0.4-0.5/index.ts"],"names":[],"mappings":";;;AAEA,iDAA0D;AAEnD,KAAK,UAAU,6BAA6B,CAA0B,KAAY;IACvF,MAAM,IAAA,wCAAyB,EAAC,KAAK,CAAC,CAAA;AACxC,CAAC;AAFD,sEAEC"}
@@ -0,0 +1,10 @@
1
+ import type { BaseAgent } from '@credo-ts/core';
2
+ /**
3
+ * Migrates the {@link TenantRecord} to 0.5 compatible format. It fetches all tenant records from
4
+ * storage and applies the needed updates to the records. After a record has been transformed, it is updated
5
+ * in storage and the next record will be transformed.
6
+ *
7
+ * The following transformations are applied:
8
+ * - Re-save record to store new `label` tag
9
+ */
10
+ export declare function migrateTenantRecordToV0_5<Agent extends BaseAgent>(agent: Agent): Promise<void>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.migrateTenantRecordToV0_5 = void 0;
4
+ const repository_1 = require("../../repository");
5
+ /**
6
+ * Migrates the {@link TenantRecord} to 0.5 compatible format. It fetches all tenant records from
7
+ * storage and applies the needed updates to the records. After a record has been transformed, it is updated
8
+ * in storage and the next record will be transformed.
9
+ *
10
+ * The following transformations are applied:
11
+ * - Re-save record to store new `label` tag
12
+ */
13
+ async function migrateTenantRecordToV0_5(agent) {
14
+ agent.config.logger.info('Migrating tenant records to storage version 0.5');
15
+ const tenantRepository = agent.dependencyManager.resolve(repository_1.TenantRepository);
16
+ agent.config.logger.debug(`Fetching all tenant records from storage`);
17
+ const tenantRecords = await tenantRepository.getAll(agent.context);
18
+ agent.config.logger.debug(`Found a total of ${tenantRecords.length} tenant records to update.`);
19
+ for (const tenantRecord of tenantRecords) {
20
+ agent.config.logger.debug(`Migrating tenant record with id ${tenantRecord.id} to storage version 0.5`);
21
+ // NOTE: Record only has change in tags, we need to re-save the record
22
+ await tenantRepository.update(agent.context, tenantRecord);
23
+ agent.config.logger.debug(`Successfully migrated tenant record with id ${tenantRecord.id} to storage version 0.5`);
24
+ }
25
+ }
26
+ exports.migrateTenantRecordToV0_5 = migrateTenantRecordToV0_5;
27
+ //# sourceMappingURL=tenantRecord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantRecord.js","sourceRoot":"","sources":["../../../src/updates/0.4-0.5/tenantRecord.ts"],"names":[],"mappings":";;;AAEA,iDAAmD;AAEnD;;;;;;;GAOG;AACI,KAAK,UAAU,yBAAyB,CAA0B,KAAY;IACnF,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAA;IAC3E,MAAM,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,6BAAgB,CAAC,CAAA;IAE1E,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAA;IACrE,MAAM,aAAa,GAAG,MAAM,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IAElE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB,aAAa,CAAC,MAAM,4BAA4B,CAAC,CAAA;IAC/F,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE;QACxC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,mCAAmC,YAAY,CAAC,EAAE,yBAAyB,CAAC,CAAA;QAEtG,sEAAsE;QACtE,MAAM,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;QAE1D,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,+CAA+C,YAAY,CAAC,EAAE,yBAAyB,CAAC,CAAA;KACnH;AACH,CAAC;AAhBD,8DAgBC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@credo-ts/tenants",
3
3
  "main": "build/index",
4
4
  "types": "build/index",
5
- "version": "0.5.0-alpha.120+c5c5b850",
5
+ "version": "0.5.0-alpha.122+f245386e",
6
6
  "files": [
7
7
  "build"
8
8
  ],
@@ -24,14 +24,14 @@
24
24
  "test": "jest"
25
25
  },
26
26
  "dependencies": {
27
- "@credo-ts/core": "0.5.0-alpha.120+c5c5b850",
27
+ "@credo-ts/core": "0.5.0-alpha.122+f245386e",
28
28
  "async-mutex": "^0.4.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@credo-ts/node": "0.5.0-alpha.120+c5c5b850",
31
+ "@credo-ts/node": "0.5.0-alpha.122+f245386e",
32
32
  "reflect-metadata": "^0.1.13",
33
33
  "rimraf": "^4.4.0",
34
34
  "typescript": "~4.9.5"
35
35
  },
36
- "gitHead": "c5c5b850f27e66f7a2e39acd5fc14267babee208"
36
+ "gitHead": "f245386eef2e0daad7a5c948df29625f60a020ea"
37
37
  }