@meticoeus/ddd-es 0.3.0 → 0.3.1

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meticoeus/ddd-es",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A Typescript library for using Event Sourcing and Domain Driven Design.",
5
5
  "keywords": [
6
6
  "DDD",
package/dist/src/types.js CHANGED
@@ -98,7 +98,7 @@ export class AuthorizationException extends Exception {
98
98
  userId;
99
99
  permission;
100
100
  constructor(entityName, entityId, userId, permission, code) {
101
- super('AuthorizationException', `User "${userId}" missing authorization for ${entityName}:"${entityId}" for permission "${permission}".`, code ?? 401);
101
+ super('AuthorizationException', `User "${userId}" missing authorization for ${entityName}:"${entityId}" for permission "${permission}".`, code ?? 403);
102
102
  this.entityName = entityName;
103
103
  this.entityId = entityId;
104
104
  this.userId = userId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meticoeus/ddd-es",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A Typescript library for using Event Sourcing and Domain Driven Design.",
5
5
  "keywords": [
6
6
  "DDD",