@event-driven-io/emmett-testcontainers 0.5.0 → 0.5.2

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/package.json CHANGED
@@ -1,17 +1,11 @@
1
1
  {
2
2
  "name": "@event-driven-io/emmett-testcontainers",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Emmett - TestContainers - Event Sourcing development made simple",
5
5
  "scripts": {
6
6
  "build": "tsup",
7
7
  "build:ts": "tsc",
8
8
  "build:ts:watch": "tsc --watch",
9
- "lint": "npm run lint:eslint && npm run lint:prettier",
10
- "lint:prettier": "prettier --check \"**/**/!(*.d).{ts,json,md}\"",
11
- "lint:eslint": "eslint **/*.ts",
12
- "fix": "run-s fix:eslint fix:prettier",
13
- "fix:prettier": "prettier --write \"**/**/!(*.d).{ts,json,md}\"",
14
- "fix:eslint": "eslint **/*.ts --fix",
15
9
  "test": "run-s test:unit test:int test:e2e",
16
10
  "test:unit": "glob -c \"node --import tsx --test\" **/*.unit.spec.ts",
17
11
  "test:int": "glob -c \"node --import tsx --test\" **/*.int.spec.ts",
@@ -33,6 +27,18 @@
33
27
  "url": "https://github.com/event-driven-io/emmett/issues"
34
28
  },
35
29
  "homepage": "https://event-driven-io.github.io/emmett/",
30
+ "exports": {
31
+ ".": {
32
+ "import": {
33
+ "types": "./dist/index.d.mts",
34
+ "default": "./dist/index.mjs"
35
+ },
36
+ "require": {
37
+ "types": "./dist/index.d.ts",
38
+ "default": "./dist/index.js"
39
+ }
40
+ }
41
+ },
36
42
  "main": "./dist/index.js",
37
43
  "module": "./dist/index.mjs",
38
44
  "types": "./dist/index.d.ts",
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,26 +0,0 @@
1
- "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _dbclient = require('@eventstore/db-client');
2
- var _strict = require('node:assert/strict'); var _strict2 = _interopRequireDefault(_strict);
3
- var _nodetest = require('node:test');
4
- var _uuid = require('uuid');
5
-
6
-
7
-
8
- var _eventStoreDBContainer = require('./eventStoreDBContainer');
9
- _nodetest.describe.call(void 0, "EventStoreDBContainer", () => {
10
- let container;
11
- _nodetest.beforeEach.call(void 0, async () => {
12
- container = await new (0, _eventStoreDBContainer.EventStoreDBContainer)().start();
13
- });
14
- _nodetest.it.call(void 0, "should connect to EventStoreDB and append new event", async () => {
15
- const client = container.getClient();
16
- const result = await client.appendToStream(
17
- `test-${_uuid.v4.call(void 0, )}`,
18
- _dbclient.jsonEvent.call(void 0, { type: "test-event", data: { test: "test" } })
19
- );
20
- _strict2.default.ok(result.success);
21
- });
22
- _nodetest.after.call(void 0, async () => {
23
- await container.stop();
24
- });
25
- });
26
- //# sourceMappingURL=eventStoreDBContainer.e2e.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/eventStore/eventStoreDBContainer.e2e.spec.ts"],"names":[],"mappings":"AACA,SAAS,iBAAiB;AAC1B,OAAO,YAAY;AACnB,SAAS,OAAO,YAAY,UAAU,UAAU;AAChD,SAAS,MAAM,YAAY;AAC3B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEP,SAAS,yBAAyB,MAAM;AACtC,MAAI;AAEJ,aAAW,YAAY;AACrB,gBAAY,MAAM,IAAI,sBAAsB,EAAE,MAAM;AAAA,EACtD,CAAC;AAED,KAAG,uDAAuD,YAAY;AACpE,UAAM,SAAS,UAAU,UAAU;AAEnC,UAAM,SAAS,MAAM,OAAO;AAAA,MAC1B,QAAQ,KAAK,CAAC;AAAA,MACd,UAAU,EAAE,MAAM,cAAc,MAAM,EAAE,MAAM,OAAO,EAAE,CAAC;AAAA,IAC1D;AAEA,WAAO,GAAG,OAAO,OAAO;AAAA,EAC1B,CAAC;AAED,QAAM,YAAY;AAChB,UAAM,UAAU,KAAK;AAAA,EACvB,CAAC;AACH,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { jsonEvent } from '@eventstore/db-client';\nimport assert from 'node:assert/strict';\nimport { after, beforeEach, describe, it } from 'node:test';\nimport { v4 as uuid } from 'uuid';\nimport {\n EventStoreDBContainer,\n StartedEventStoreDBContainer,\n} from './eventStoreDBContainer';\n\ndescribe('EventStoreDBContainer', () => {\n let container: StartedEventStoreDBContainer;\n\n beforeEach(async () => {\n container = await new EventStoreDBContainer().start();\n });\n\n it('should connect to EventStoreDB and append new event', async () => {\n const client = container.getClient();\n\n const result = await client.appendToStream(\n `test-${uuid()}`,\n jsonEvent({ type: 'test-event', data: { test: 'test' } }),\n );\n\n assert.ok(result.success);\n });\n\n after(async () => {\n await container.stop();\n });\n});\n"]}
@@ -1,26 +0,0 @@
1
- import { jsonEvent } from "@eventstore/db-client";
2
- import assert from "node:assert/strict";
3
- import { after, beforeEach, describe, it } from "node:test";
4
- import { v4 as uuid } from "uuid";
5
- import {
6
- EventStoreDBContainer,
7
- StartedEventStoreDBContainer
8
- } from "./eventStoreDBContainer";
9
- describe("EventStoreDBContainer", () => {
10
- let container;
11
- beforeEach(async () => {
12
- container = await new EventStoreDBContainer().start();
13
- });
14
- it("should connect to EventStoreDB and append new event", async () => {
15
- const client = container.getClient();
16
- const result = await client.appendToStream(
17
- `test-${uuid()}`,
18
- jsonEvent({ type: "test-event", data: { test: "test" } })
19
- );
20
- assert.ok(result.success);
21
- });
22
- after(async () => {
23
- await container.stop();
24
- });
25
- });
26
- //# sourceMappingURL=eventStoreDBContainer.e2e.spec.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/eventStore/eventStoreDBContainer.e2e.spec.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { jsonEvent } from '@eventstore/db-client';\nimport assert from 'node:assert/strict';\nimport { after, beforeEach, describe, it } from 'node:test';\nimport { v4 as uuid } from 'uuid';\nimport {\n EventStoreDBContainer,\n StartedEventStoreDBContainer,\n} from './eventStoreDBContainer';\n\ndescribe('EventStoreDBContainer', () => {\n let container: StartedEventStoreDBContainer;\n\n beforeEach(async () => {\n container = await new EventStoreDBContainer().start();\n });\n\n it('should connect to EventStoreDB and append new event', async () => {\n const client = container.getClient();\n\n const result = await client.appendToStream(\n `test-${uuid()}`,\n jsonEvent({ type: 'test-event', data: { test: 'test' } }),\n );\n\n assert.ok(result.success);\n });\n\n after(async () => {\n await container.stop();\n });\n});\n"],"mappings":"AACA,SAAS,iBAAiB;AAC1B,OAAO,YAAY;AACnB,SAAS,OAAO,YAAY,UAAU,UAAU;AAChD,SAAS,MAAM,YAAY;AAC3B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEP,SAAS,yBAAyB,MAAM;AACtC,MAAI;AAEJ,aAAW,YAAY;AACrB,gBAAY,MAAM,IAAI,sBAAsB,EAAE,MAAM;AAAA,EACtD,CAAC;AAED,KAAG,uDAAuD,YAAY;AACpE,UAAM,SAAS,UAAU,UAAU;AAEnC,UAAM,SAAS,MAAM,OAAO;AAAA,MAC1B,QAAQ,KAAK,CAAC;AAAA,MACd,UAAU,EAAE,MAAM,cAAc,MAAM,EAAE,MAAM,OAAO,EAAE,CAAC;AAAA,IAC1D;AAEA,WAAO,GAAG,OAAO,OAAO;AAAA,EAC1B,CAAC;AAED,QAAM,YAAY;AAChB,UAAM,UAAU,KAAK;AAAA,EACvB,CAAC;AACH,CAAC;","names":[]}