@event-driven-io/emmett-testcontainers 0.4.0 → 0.5.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.
@@ -1,4 +1,6 @@
1
1
  import { EventStoreDBClient } from '@eventstore/db-client';
2
+ export { EventStoreDBContainer, StartedEventStoreDBContainer } from './eventStoreDBContainer.mjs';
3
+ import 'testcontainers';
2
4
 
3
5
  declare const getEventStoreDBTestClient: (useTestContainers?: boolean) => Promise<EventStoreDBClient>;
4
6
 
@@ -1,4 +1,6 @@
1
1
  import { EventStoreDBClient } from '@eventstore/db-client';
2
+ export { EventStoreDBContainer, StartedEventStoreDBContainer } from './eventStoreDBContainer.js';
3
+ import 'testcontainers';
2
4
 
3
5
  declare const getEventStoreDBTestClient: (useTestContainers?: boolean) => Promise<EventStoreDBClient>;
4
6
 
@@ -1,8 +1,9 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _dbclient = require('@eventstore/db-client');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _createStarExport(obj) { Object.keys(obj) .filter((key) => key !== "default" && key !== "__esModule") .forEach((key) => { if (exports.hasOwnProperty(key)) { return; } Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]}); }); }var _dbclient = require('@eventstore/db-client');
2
2
 
3
3
 
4
4
 
5
- var _eventStoreDBContainer = require('./eventStoreDBContainer');
5
+ var _eventStoreDBContainer = require('./eventStoreDBContainer'); _createStarExport(_eventStoreDBContainer);
6
+
6
7
  let esdbContainer;
7
8
  const getEventStoreDBTestClient = async (useTestContainers = false) => {
8
9
  let connectionString;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/eventStore/index.ts"],"names":[],"mappings":"AAAA,SAAS,0BAA0B;AACnC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEP,IAAI;AAEG,MAAM,4BAA4B,OACvC,oBAAoB,UACY;AAChC,MAAI;AAEJ,MAAI,mBAAmB;AACrB,QAAI,CAAC;AACH,sBAAgB,MAAM,IAAI,sBAAsB,EAAE,MAAM;AAE1D,uBAAmB,cAAc,oBAAoB;AAAA,EACvD,OAAO;AAEL,uBAAmB;AAAA,EACrB;AAIA,SAAO,mBAAmB,iBAAiB,gBAAgB;AAC7D","sourcesContent":["import { EventStoreDBClient } from '@eventstore/db-client';\nimport {\n EventStoreDBContainer,\n StartedEventStoreDBContainer,\n} from './eventStoreDBContainer';\n\nlet esdbContainer: StartedEventStoreDBContainer;\n\nexport const getEventStoreDBTestClient = async (\n useTestContainers = false,\n): Promise<EventStoreDBClient> => {\n let connectionString;\n\n if (useTestContainers) {\n if (!esdbContainer)\n esdbContainer = await new EventStoreDBContainer().start();\n\n connectionString = esdbContainer.getConnectionString();\n } else {\n // await compose.upAll();\n connectionString = 'esdb://localhost:2113?tls=false';\n }\n\n // That's how EventStoreDB client is setup\n // We're taking the connection string from container\n return EventStoreDBClient.connectionString(connectionString);\n};\n"]}
1
+ {"version":3,"sources":["../../src/eventStore/index.ts"],"names":[],"mappings":"AAAA,SAAS,0BAA0B;AACnC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEP,cAAc;AAEd,IAAI;AAEG,MAAM,4BAA4B,OACvC,oBAAoB,UACY;AAChC,MAAI;AAEJ,MAAI,mBAAmB;AACrB,QAAI,CAAC;AACH,sBAAgB,MAAM,IAAI,sBAAsB,EAAE,MAAM;AAE1D,uBAAmB,cAAc,oBAAoB;AAAA,EACvD,OAAO;AAEL,uBAAmB;AAAA,EACrB;AAIA,SAAO,mBAAmB,iBAAiB,gBAAgB;AAC7D","sourcesContent":["import { EventStoreDBClient } from '@eventstore/db-client';\nimport {\n EventStoreDBContainer,\n StartedEventStoreDBContainer,\n} from './eventStoreDBContainer';\n\nexport * from './eventStoreDBContainer';\n\nlet esdbContainer: StartedEventStoreDBContainer;\n\nexport const getEventStoreDBTestClient = async (\n useTestContainers = false,\n): Promise<EventStoreDBClient> => {\n let connectionString;\n\n if (useTestContainers) {\n if (!esdbContainer)\n esdbContainer = await new EventStoreDBContainer().start();\n\n connectionString = esdbContainer.getConnectionString();\n } else {\n // await compose.upAll();\n connectionString = 'esdb://localhost:2113?tls=false';\n }\n\n // That's how EventStoreDB client is setup\n // We're taking the connection string from container\n return EventStoreDBClient.connectionString(connectionString);\n};\n"]}
@@ -3,6 +3,7 @@ import {
3
3
  EventStoreDBContainer,
4
4
  StartedEventStoreDBContainer
5
5
  } from "./eventStoreDBContainer";
6
+ export * from "./eventStoreDBContainer";
6
7
  let esdbContainer;
7
8
  const getEventStoreDBTestClient = async (useTestContainers = false) => {
8
9
  let connectionString;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/eventStore/index.ts"],"sourcesContent":["import { EventStoreDBClient } from '@eventstore/db-client';\nimport {\n EventStoreDBContainer,\n StartedEventStoreDBContainer,\n} from './eventStoreDBContainer';\n\nlet esdbContainer: StartedEventStoreDBContainer;\n\nexport const getEventStoreDBTestClient = async (\n useTestContainers = false,\n): Promise<EventStoreDBClient> => {\n let connectionString;\n\n if (useTestContainers) {\n if (!esdbContainer)\n esdbContainer = await new EventStoreDBContainer().start();\n\n connectionString = esdbContainer.getConnectionString();\n } else {\n // await compose.upAll();\n connectionString = 'esdb://localhost:2113?tls=false';\n }\n\n // That's how EventStoreDB client is setup\n // We're taking the connection string from container\n return EventStoreDBClient.connectionString(connectionString);\n};\n"],"mappings":"AAAA,SAAS,0BAA0B;AACnC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEP,IAAI;AAEG,MAAM,4BAA4B,OACvC,oBAAoB,UACY;AAChC,MAAI;AAEJ,MAAI,mBAAmB;AACrB,QAAI,CAAC;AACH,sBAAgB,MAAM,IAAI,sBAAsB,EAAE,MAAM;AAE1D,uBAAmB,cAAc,oBAAoB;AAAA,EACvD,OAAO;AAEL,uBAAmB;AAAA,EACrB;AAIA,SAAO,mBAAmB,iBAAiB,gBAAgB;AAC7D;","names":[]}
1
+ {"version":3,"sources":["../../src/eventStore/index.ts"],"sourcesContent":["import { EventStoreDBClient } from '@eventstore/db-client';\nimport {\n EventStoreDBContainer,\n StartedEventStoreDBContainer,\n} from './eventStoreDBContainer';\n\nexport * from './eventStoreDBContainer';\n\nlet esdbContainer: StartedEventStoreDBContainer;\n\nexport const getEventStoreDBTestClient = async (\n useTestContainers = false,\n): Promise<EventStoreDBClient> => {\n let connectionString;\n\n if (useTestContainers) {\n if (!esdbContainer)\n esdbContainer = await new EventStoreDBContainer().start();\n\n connectionString = esdbContainer.getConnectionString();\n } else {\n // await compose.upAll();\n connectionString = 'esdb://localhost:2113?tls=false';\n }\n\n // That's how EventStoreDB client is setup\n // We're taking the connection string from container\n return EventStoreDBClient.connectionString(connectionString);\n};\n"],"mappings":"AAAA,SAAS,0BAA0B;AACnC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEP,cAAc;AAEd,IAAI;AAEG,MAAM,4BAA4B,OACvC,oBAAoB,UACY;AAChC,MAAI;AAEJ,MAAI,mBAAmB;AACrB,QAAI,CAAC;AACH,sBAAgB,MAAM,IAAI,sBAAsB,EAAE,MAAM;AAE1D,uBAAmB,cAAc,oBAAoB;AAAA,EACvD,OAAO;AAEL,uBAAmB;AAAA,EACrB;AAIA,SAAO,mBAAmB,iBAAiB,gBAAgB;AAC7D;","names":[]}
package/dist/index.d.mts CHANGED
@@ -1,2 +1,4 @@
1
1
  export { getEventStoreDBTestClient } from './eventStore/index.mjs';
2
+ export { EventStoreDBContainer, StartedEventStoreDBContainer } from './eventStore/eventStoreDBContainer.mjs';
2
3
  import '@eventstore/db-client';
4
+ import 'testcontainers';
package/dist/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
1
  export { getEventStoreDBTestClient } from './eventStore/index.js';
2
+ export { EventStoreDBContainer, StartedEventStoreDBContainer } from './eventStore/eventStoreDBContainer.js';
2
3
  import '@eventstore/db-client';
4
+ import 'testcontainers';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@event-driven-io/emmett-testcontainers",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Emmett - TestContainers - Event Sourcing development made simple",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -40,7 +40,7 @@
40
40
  "dist"
41
41
  ],
42
42
  "dependencies": {
43
- "@event-driven-io/emmett": "0.3.0",
43
+ "@event-driven-io/emmett": "0.5.0",
44
44
  "testcontainers": "^10.7.2"
45
45
  },
46
46
  "devDependencies": {