Skip to content

Commit

Permalink
fix(deps): update @juicycleff/nestjs-event-store to v3.1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
hardyscc committed Sep 3, 2020
1 parent 5f6a2dc commit 6a62f18
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm install # cannot use 'npm ci' bcos of @juicycleff/nestjs-event-store
- run: npm run lint
- run: npm run build service-user
- run: npm run build service-account
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ mutation {
OR

```bash
curl -H 'Content-Type: application/json' \
curl -X POST -H 'Content-Type: application/json' \
-d '{"query": "mutation { createUser(input: { name: \"John\" }) { id name } }"}' \
http://localhost:3000/graphql
```
Expand Down Expand Up @@ -154,6 +154,14 @@ query {
}
```

OR

```bash
curl -X POST -H 'Content-Type: application/json' \
-d '{"query": "query { users { id name accounts { id name balance } } }"}' \
http://localhost:3000/graphql
```

Output :

```json
Expand All @@ -175,3 +183,4 @@ Output :
}
}
```

1 change: 1 addition & 0 deletions apps/service-account/src/account/account.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const Sagas = [CreateUserSaga];
imports: [
CqrsModule,
EventStoreModule.registerFeature({
type: 'event-store',
featureStreamName: '$svc-account',
subscriptions: [
{
Expand Down
1 change: 1 addition & 0 deletions apps/service-account/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const databaseUrl =
autoSchemaFile: true,
}),
EventStoreModule.register({
type: 'event-store',
tcpEndpoint: {
host: 'localhost',
port: 1113,
Expand Down
1 change: 1 addition & 0 deletions apps/service-user/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const databaseUrl =
autoSchemaFile: true,
}),
EventStoreModule.register({
type: 'event-store',
tcpEndpoint: {
host: 'localhost',
port: 1113,
Expand Down
1 change: 1 addition & 0 deletions apps/service-user/src/user/user.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const Sagas = [CreateUserSaga];
imports: [
CqrsModule,
EventStoreModule.registerFeature({
type: 'event-store',
featureStreamName: '$svc-user',
subscriptions: [
{
Expand Down
123 changes: 91 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"test:e2e": "jest --config ./apps/gateway/test/jest-e2e.json"
},
"dependencies": {
"@juicycleff/nestjs-event-store": "3.0.5",
"@juicycleff/nestjs-event-store": "3.1.18",
"@nestjs/common": "7.4.4",
"@nestjs/core": "7.4.4",
"@nestjs/cqrs": "7.0.1",
Expand All @@ -32,6 +32,8 @@
"graphql": "15.3.0",
"graphql-tools": "6.2.0",
"mysql": "2.18.1",
"node-eventstore-client": "0.2.16",
"node-nats-streaming": "0.3.2",
"reflect-metadata": "0.1.13",
"rimraf": "3.0.2",
"rxjs": "6.6.2",
Expand Down

0 comments on commit 6a62f18

Please sign in to comment.