Skip to content

Commit

Permalink
fix(manifold): format subscription message + bump dependencies (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
microwavekonijn authored Jan 28, 2024
1 parent 7d0353d commit 4240ef8
Show file tree
Hide file tree
Showing 12 changed files with 4,561 additions and 6,515 deletions.
11 changes: 11 additions & 0 deletions .changeset/perfect-planes-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"stream-collector": patch
"stream-manifold": patch
"@nss/ess-concerns": patch
"stream-auth": patch
"stream-api": patch
"@nss/rabbitmq": patch
"@nss/utils": patch
---

Bumped dependencies
5 changes: 5 additions & 0 deletions .changeset/serious-owls-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"stream-manifold": patch
---

Fixed format of subscription message
48 changes: 24 additions & 24 deletions apps/stream-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,42 @@
"start": "node dist/main"
},
"dependencies": {
"@nestjs/cache-manager": "^2.1.0",
"@nestjs/common": "^10.2.5",
"@nestjs/cache-manager": "^2.2.0",
"@nestjs/common": "^10.3.1",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.2.5",
"@nestjs/microservices": "^10.2.5",
"@nestjs/platform-fastify": "^10.2.5",
"@nestjs/terminus": "^10.1.1",
"@nestjs/core": "^10.3.1",
"@nestjs/microservices": "^10.3.1",
"@nestjs/platform-fastify": "^10.3.1",
"@nestjs/terminus": "^10.2.1",
"@nss/ess-concerns": "workspace:*",
"@nss/utils": "workspace:*",
"@willsoto/nestjs-prometheus": "^5.5.0",
"@willsoto/nestjs-prometheus": "^5.5.1",
"amqp-connection-manager": "^4.1.14",
"amqplib": "^0.10.3",
"cache-manager": "^5.2.3",
"class-validator": "^0.14.0",
"cache-manager": "^5.4.0",
"class-validator": "^0.14.1",
"prom-client": "^14.2.0",
"ps2census": "^4.6.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^5.0.1",
"ps2census": "^4.7.0",
"reflect-metadata": "^0.1.14",
"rimraf": "^5.0.5",
"rxjs": "^7.8.1"
},
"optionalDependencies": {
"bufferutil": "^4.0.7"
"bufferutil": "^4.0.8"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.2",
"@types/amqplib": "^0.10.1",
"@types/node": "^20.6.2",
"@types/validator": "^13.11.1",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"eslint": "^8.49.0",
"@types/amqplib": "^0.10.4",
"@types/node": "^20.11.10",
"@types/validator": "^13.11.8",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^3.0.3",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.4",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}
48 changes: 24 additions & 24 deletions apps/stream-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,40 @@
"start": "node dist/main"
},
"dependencies": {
"@nestjs/cache-manager": "^2.1.0",
"@nestjs/common": "^10.2.5",
"@nestjs/cache-manager": "^2.2.0",
"@nestjs/common": "^10.3.1",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.2.5",
"@nestjs/microservices": "^10.2.5",
"@nestjs/platform-fastify": "^10.2.5",
"@nestjs/terminus": "^10.1.1",
"@nestjs/core": "^10.3.1",
"@nestjs/microservices": "^10.3.1",
"@nestjs/platform-fastify": "^10.3.1",
"@nestjs/terminus": "^10.2.1",
"@nss/utils": "workspace:*",
"@willsoto/nestjs-prometheus": "^5.5.0",
"axios": "^1.5.0",
"@willsoto/nestjs-prometheus": "^5.5.1",
"axios": "^1.6.7",
"bcryptjs": "^2.4.3",
"cache-manager": "^5.2.3",
"cache-manager": "^5.4.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"fastify": "^4.23.2",
"class-validator": "^0.14.1",
"fastify": "^4.25.2",
"ioredis": "^5.3.2",
"prom-client": "^14.2.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^5.0.1",
"reflect-metadata": "^0.1.14",
"rimraf": "^5.0.5",
"rxjs": "^7.8.1"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.2",
"@types/bcryptjs": "^2.4.4",
"@types/node": "^20.6.2",
"@types/validator": "^13.11.1",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"eslint": "^8.49.0",
"@types/bcryptjs": "^2.4.6",
"@types/node": "^20.11.10",
"@types/validator": "^13.11.8",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^3.0.3",
"supertest": "^6.3.3",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.4",
"supertest": "^6.3.4",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}
42 changes: 21 additions & 21 deletions apps/stream-collector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,40 @@
"start": "node dist/main"
},
"dependencies": {
"@nestjs/common": "^10.2.5",
"@nestjs/common": "^10.3.1",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.2.5",
"@nestjs/microservices": "^10.2.5",
"@nestjs/platform-fastify": "^10.2.5",
"@nestjs/terminus": "^10.1.1",
"@nestjs/core": "^10.3.1",
"@nestjs/microservices": "^10.3.1",
"@nestjs/platform-fastify": "^10.3.1",
"@nestjs/terminus": "^10.2.1",
"@nss/ess-concerns": "workspace:*",
"@nss/rabbitmq": "workspace:*",
"@nss/utils": "workspace:*",
"@willsoto/nestjs-prometheus": "^5.5.0",
"@willsoto/nestjs-prometheus": "^5.5.1",
"amqp-connection-manager": "^4.1.14",
"amqplib": "^0.10.3",
"prom-client": "^14.2.0",
"ps2census": "^4.6.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^5.0.1",
"ps2census": "^4.7.0",
"reflect-metadata": "^0.1.14",
"rimraf": "^5.0.5",
"rxjs": "^7.8.1"
},
"optionalDependencies": {
"bufferutil": "^4.0.7"
"bufferutil": "^4.0.8"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.2",
"@types/amqplib": "^0.10.1",
"@types/node": "^20.6.2",
"@types/validator": "^13.11.1",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"eslint": "^8.49.0",
"@types/amqplib": "^0.10.4",
"@types/node": "^20.11.10",
"@types/validator": "^13.11.8",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^3.0.3",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.4",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}
52 changes: 26 additions & 26 deletions apps/stream-manifold/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,48 +14,48 @@
"start": "node dist/main"
},
"dependencies": {
"@nestjs/common": "^10.2.5",
"@nestjs/common": "^10.3.1",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.2.5",
"@nestjs/microservices": "^10.2.5",
"@nestjs/platform-fastify": "^10.2.5",
"@nestjs/platform-ws": "^10.2.5",
"@nestjs/terminus": "^10.1.1",
"@nestjs/websockets": "^10.2.5",
"@nestjs/core": "^10.3.1",
"@nestjs/microservices": "^10.3.1",
"@nestjs/platform-fastify": "^10.3.1",
"@nestjs/platform-ws": "^10.3.1",
"@nestjs/terminus": "^10.2.1",
"@nestjs/websockets": "^10.3.1",
"@nss/ess-concerns": "workspace:*",
"@nss/rabbitmq": "workspace:*",
"@nss/utils": "workspace:*",
"@willsoto/nestjs-prometheus": "^5.5.0",
"@willsoto/nestjs-prometheus": "^5.5.1",
"amqp-connection-manager": "^4.1.14",
"amqplib": "^0.10.3",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"class-validator": "^0.14.1",
"eventemitter3": "^5.0.1",
"iterare": "^1.2.1",
"prom-client": "^14.2.0",
"ps2census": "^4.6.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^5.0.1",
"ps2census": "^4.7.0",
"reflect-metadata": "^0.1.14",
"rimraf": "^5.0.5",
"rxjs": "^7.8.1",
"ws": "^8.14.1"
"ws": "^8.16.0"
},
"optionalDependencies": {
"bufferutil": "^4.0.7"
"bufferutil": "^4.0.8"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.2",
"@types/amqplib": "^0.10.1",
"@types/node": "^20.6.2",
"@types/supertest": "^2.0.12",
"@types/validator": "^13.11.1",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"eslint": "^8.49.0",
"@types/amqplib": "^0.10.4",
"@types/node": "^20.11.10",
"@types/supertest": "^2.0.16",
"@types/validator": "^13.11.8",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^3.0.3",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.4",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class EventSubscriptionQuery extends EventEmitter<EventSubscriptionQueryE
}

format(listCharacters = false): Stream.CensusMessages.Subscription {
if (this._characters.has('all') || listCharacters)
if (this._characters.has('all'))
return {
subscription: {
characters: ['all'],
Expand All @@ -127,6 +127,16 @@ export class EventSubscriptionQuery extends EventEmitter<EventSubscriptionQueryE
},
};

if (listCharacters)
return {
subscription: {
characters: Array.from(this._characters),
eventNames: Array.from(this._events) as any,
logicalAndCharactersWithWorlds: this._logicalAndCharactersWithWorlds,
worlds: Array.from(this._worlds),
},
};

return {
subscription: {
characterCount: this._characters.size,
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@nx-tools/container-metadata": "5.0.2",
"@nx-tools/nx-container": "5.0.2",
"@nx/js": "^16.8.1",
"@nx/js": "^16.10.0",
"husky": "^8.0.3",
"lint-staged": "^13.3.0",
"nodemon": "^3.0.1",
"nx": "^16.8.1",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
"nodemon": "^3.0.3",
"nx": "^16.10.0",
"prettier": "^3.2.4",
"typescript": "^5.3.3"
},
"lint-staged": {
"**/*.{ts,js,json}": [
Expand Down
Loading

0 comments on commit 4240ef8

Please sign in to comment.