@hg-ts/cqrs 0.3.4 → 0.4.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.
- package/dist/abstracts/base.command-handler.d.ts +2 -2
- package/dist/abstracts/base.command-handler.d.ts.map +1 -1
- package/dist/abstracts/base.command-handler.js +1 -5
- package/dist/abstracts/base.command-handler.js.map +1 -1
- package/dist/abstracts/base.command.js +1 -5
- package/dist/abstracts/base.command.js.map +1 -1
- package/dist/abstracts/base.executor.d.ts +3 -3
- package/dist/abstracts/base.executor.d.ts.map +1 -1
- package/dist/abstracts/base.executor.js +5 -10
- package/dist/abstracts/base.executor.js.map +1 -1
- package/dist/abstracts/base.executor.test-suite.d.ts +2 -2
- package/dist/abstracts/base.executor.test-suite.d.ts.map +1 -1
- package/dist/abstracts/base.executor.test-suite.js +31 -35
- package/dist/abstracts/base.executor.test-suite.js.map +1 -1
- package/dist/abstracts/base.query-handler.d.ts +2 -2
- package/dist/abstracts/base.query-handler.d.ts.map +1 -1
- package/dist/abstracts/base.query-handler.js +1 -5
- package/dist/abstracts/base.query-handler.js.map +1 -1
- package/dist/abstracts/base.query.js +1 -5
- package/dist/abstracts/base.query.js.map +1 -1
- package/dist/abstracts/index.d.ts +7 -7
- package/dist/abstracts/index.d.ts.map +1 -1
- package/dist/abstracts/index.js +7 -10
- package/dist/abstracts/index.js.map +1 -1
- package/dist/cqrs.module.js +36 -39
- package/dist/cqrs.module.js.map +1 -1
- package/dist/decorators/command-handler.decorator.d.ts +1 -1
- package/dist/decorators/command-handler.decorator.d.ts.map +1 -1
- package/dist/decorators/command-handler.decorator.js +3 -7
- package/dist/decorators/command-handler.decorator.js.map +1 -1
- package/dist/decorators/index.d.ts +2 -2
- package/dist/decorators/index.d.ts.map +1 -1
- package/dist/decorators/index.js +3 -6
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/query-handler.decorator.d.ts +1 -1
- package/dist/decorators/query-handler.decorator.d.ts.map +1 -1
- package/dist/decorators/query-handler.decorator.js +3 -7
- package/dist/decorators/query-handler.decorator.js.map +1 -1
- package/dist/exceptions/handler-already-added.exception.d.ts +1 -1
- package/dist/exceptions/handler-already-added.exception.d.ts.map +1 -1
- package/dist/exceptions/handler-already-added.exception.js +2 -6
- package/dist/exceptions/handler-already-added.exception.js.map +1 -1
- package/dist/exceptions/handler-not-found.exception.d.ts +1 -1
- package/dist/exceptions/handler-not-found.exception.d.ts.map +1 -1
- package/dist/exceptions/handler-not-found.exception.js +2 -6
- package/dist/exceptions/handler-not-found.exception.js.map +1 -1
- package/dist/exceptions/index.d.ts +2 -2
- package/dist/exceptions/index.d.ts.map +1 -1
- package/dist/exceptions/index.js +2 -5
- package/dist/exceptions/index.js.map +1 -1
- package/dist/executors/command.executor.d.ts +2 -2
- package/dist/executors/command.executor.d.ts.map +1 -1
- package/dist/executors/command.executor.js +2 -6
- package/dist/executors/command.executor.js.map +1 -1
- package/dist/executors/index.d.ts +2 -2
- package/dist/executors/index.d.ts.map +1 -1
- package/dist/executors/index.js +2 -5
- package/dist/executors/index.js.map +1 -1
- package/dist/executors/query.executor.d.ts +2 -2
- package/dist/executors/query.executor.d.ts.map +1 -1
- package/dist/executors/query.executor.js +2 -6
- package/dist/executors/query.executor.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -16
- package/dist/index.js.map +1 -1
- package/dist/tests/command-executor.test.d.ts +2 -2
- package/dist/tests/command-executor.test.d.ts.map +1 -1
- package/dist/tests/command-executor.test.js +14 -17
- package/dist/tests/command-executor.test.js.map +1 -1
- package/dist/tests/commands/index.d.ts +2 -2
- package/dist/tests/commands/index.d.ts.map +1 -1
- package/dist/tests/commands/index.js +2 -5
- package/dist/tests/commands/index.js.map +1 -1
- package/dist/tests/commands/test.command.d.ts +1 -1
- package/dist/tests/commands/test.command.d.ts.map +1 -1
- package/dist/tests/commands/test.command.js +2 -6
- package/dist/tests/commands/test.command.js.map +1 -1
- package/dist/tests/commands/unknown.command.d.ts +1 -1
- package/dist/tests/commands/unknown.command.d.ts.map +1 -1
- package/dist/tests/commands/unknown.command.js +2 -6
- package/dist/tests/commands/unknown.command.js.map +1 -1
- package/dist/tests/cqrs-test.module.js +8 -11
- package/dist/tests/cqrs-test.module.js.map +1 -1
- package/dist/tests/cqrs.module.test.js +50 -53
- package/dist/tests/cqrs.module.test.js.map +1 -1
- package/dist/tests/queries/index.d.ts +2 -2
- package/dist/tests/queries/index.d.ts.map +1 -1
- package/dist/tests/queries/index.js +2 -5
- package/dist/tests/queries/index.js.map +1 -1
- package/dist/tests/queries/test.query.d.ts +1 -1
- package/dist/tests/queries/test.query.d.ts.map +1 -1
- package/dist/tests/queries/test.query.js +2 -6
- package/dist/tests/queries/test.query.js.map +1 -1
- package/dist/tests/queries/unknown.query.d.ts +1 -1
- package/dist/tests/queries/unknown.query.d.ts.map +1 -1
- package/dist/tests/queries/unknown.query.js +2 -6
- package/dist/tests/queries/unknown.query.js.map +1 -1
- package/dist/tests/query-executor.test.d.ts +2 -2
- package/dist/tests/query-executor.test.d.ts.map +1 -1
- package/dist/tests/query-executor.test.js +14 -17
- package/dist/tests/query-executor.test.js.map +1 -1
- package/dist/tests/test-command.handler.d.ts +2 -2
- package/dist/tests/test-command.handler.d.ts.map +1 -1
- package/dist/tests/test-command.handler.js +11 -14
- package/dist/tests/test-command.handler.js.map +1 -1
- package/dist/tests/test-query.handler.d.ts +2 -2
- package/dist/tests/test-query.handler.d.ts.map +1 -1
- package/dist/tests/test-query.handler.js +11 -14
- package/dist/tests/test-query.handler.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -2
- package/package.json +8 -7
- package/tsconfig.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseException } from '@hg-ts/exception';
|
|
2
|
-
import { BaseCommandOrQuery } from '../types';
|
|
2
|
+
import { BaseCommandOrQuery } from '../types.js';
|
|
3
3
|
export declare class HandlerNotFoundException extends BaseException {
|
|
4
4
|
constructor(command: Class<BaseCommandOrQuery>);
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler-not-found.exception.d.ts","sourceRoot":"","sources":["../../src/exceptions/handler-not-found.exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"handler-not-found.exception.d.ts","sourceRoot":"","sources":["../../src/exceptions/handler-not-found.exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,wBAAyB,SAAQ,aAAa;gBACvC,OAAO,EAAE,KAAK,CAAC,kBAAkB,CAAC;CAGrD"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.HandlerNotFoundException = void 0;
|
|
4
|
-
const exception_1 = require("@hg-ts/exception");
|
|
5
|
-
class HandlerNotFoundException extends exception_1.BaseException {
|
|
1
|
+
import { BaseException } from '@hg-ts/exception';
|
|
2
|
+
export class HandlerNotFoundException extends BaseException {
|
|
6
3
|
constructor(command) {
|
|
7
4
|
super(`Handler for command "${command.name}" not found`);
|
|
8
5
|
}
|
|
9
6
|
}
|
|
10
|
-
exports.HandlerNotFoundException = HandlerNotFoundException;
|
|
11
7
|
//# sourceMappingURL=handler-not-found.exception.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler-not-found.exception.js","sourceRoot":"","sources":["../../src/exceptions/handler-not-found.exception.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"handler-not-found.exception.js","sourceRoot":"","sources":["../../src/exceptions/handler-not-found.exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,MAAM,OAAO,wBAAyB,SAAQ,aAAa;IAC1D,YAAmB,OAAkC;QACpD,KAAK,CAAC,wBAAwB,OAAO,CAAC,IAAI,aAAa,CAAC,CAAC;IAC1D,CAAC;CACD"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './handler-already-added.exception';
|
|
2
|
-
export * from './handler-not-found.exception';
|
|
1
|
+
export * from './handler-already-added.exception.js';
|
|
2
|
+
export * from './handler-not-found.exception.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC"}
|
package/dist/exceptions/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./handler-already-added.exception"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./handler-not-found.exception"), exports);
|
|
1
|
+
export * from './handler-already-added.exception.js';
|
|
2
|
+
export * from './handler-not-found.exception.js';
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseCommand, BaseExecutor } from '../abstracts';
|
|
2
|
-
import { CommonResult } from '../types';
|
|
1
|
+
import { BaseCommand, BaseExecutor } from '../abstracts/index.js';
|
|
2
|
+
import { CommonResult } from '../types.js';
|
|
3
3
|
export declare class CommandExecutor extends BaseExecutor<BaseCommand<any>> {
|
|
4
4
|
protected executeHandler<Command extends BaseCommand<any>>(command: Command): Promise<CommonResult<Command>>;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.executor.d.ts","sourceRoot":"","sources":["../../src/executors/command.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,EACX,YAAY,EACZ,MAAM,
|
|
1
|
+
{"version":3,"file":"command.executor.d.ts","sourceRoot":"","sources":["../../src/executors/command.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,EACX,YAAY,EACZ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,qBAAa,eAAgB,SAAQ,YAAY,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;cACzC,cAAc,CAAC,OAAO,SAAS,WAAW,CAAC,GAAG,CAAC,EACvE,OAAO,EAAE,OAAO,GACd,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;CAQjC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.CommandExecutor = void 0;
|
|
4
|
-
const abstracts_1 = require("../abstracts");
|
|
5
|
-
class CommandExecutor extends abstracts_1.BaseExecutor {
|
|
1
|
+
import { BaseExecutor, } from '../abstracts/index.js';
|
|
2
|
+
export class CommandExecutor extends BaseExecutor {
|
|
6
3
|
async executeHandler(command) {
|
|
7
4
|
const commandCtor = Object.getPrototypeOf(command).constructor;
|
|
8
5
|
const handler = this.handlers.get(commandCtor) ?? null;
|
|
@@ -10,5 +7,4 @@ class CommandExecutor extends abstracts_1.BaseExecutor {
|
|
|
10
7
|
return handler.execute(command);
|
|
11
8
|
}
|
|
12
9
|
}
|
|
13
|
-
exports.CommandExecutor = CommandExecutor;
|
|
14
10
|
//# sourceMappingURL=command.executor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.executor.js","sourceRoot":"","sources":["../../src/executors/command.executor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command.executor.js","sourceRoot":"","sources":["../../src/executors/command.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,YAAY,GACZ,MAAM,uBAAuB,CAAC;AAG/B,MAAM,OAAO,eAAgB,SAAQ,YAA8B;IAC/C,KAAK,CAAC,cAAc,CACtC,OAAgB;QAEhB,MAAM,WAAW,GAAG,MAAM,CAAC,cAAc,CAAC,OAAO,CAAE,CAAC,WAA6B,CAAC;QAClF,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC;QAEvD,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAEzC,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;CACD"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './command.executor';
|
|
2
|
-
export * from './query.executor';
|
|
1
|
+
export * from './command.executor.js';
|
|
2
|
+
export * from './query.executor.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/executors/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/executors/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
|
package/dist/executors/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./command.executor"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./query.executor"), exports);
|
|
1
|
+
export * from './command.executor.js';
|
|
2
|
+
export * from './query.executor.js';
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/executors/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/executors/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CommonResult } from '../types';
|
|
1
|
+
import { BaseExecutor, BaseQuery } from '../abstracts/index.js';
|
|
2
|
+
import { CommonResult } from '../types.js';
|
|
3
3
|
export declare class QueryExecutor extends BaseExecutor<BaseQuery<any>> {
|
|
4
4
|
protected executeHandler<Query extends BaseQuery<any>>(query: Query): Promise<CommonResult<Query>>;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.executor.d.ts","sourceRoot":"","sources":["../../src/executors/query.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,
|
|
1
|
+
{"version":3,"file":"query.executor.d.ts","sourceRoot":"","sources":["../../src/executors/query.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,SAAS,EACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,qBAAa,aAAc,SAAQ,YAAY,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;cACrC,cAAc,CAAC,KAAK,SAAS,SAAS,CAAC,GAAG,CAAC,EACnE,KAAK,EAAE,KAAK,GACV,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;CAQ/B"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.QueryExecutor = void 0;
|
|
4
|
-
const abstracts_1 = require("../abstracts");
|
|
5
|
-
class QueryExecutor extends abstracts_1.BaseExecutor {
|
|
1
|
+
import { BaseExecutor, } from '../abstracts/index.js';
|
|
2
|
+
export class QueryExecutor extends BaseExecutor {
|
|
6
3
|
async executeHandler(query) {
|
|
7
4
|
const queryCtor = Object.getPrototypeOf(query).constructor;
|
|
8
5
|
const handler = this.handlers.get(queryCtor) ?? null;
|
|
@@ -10,5 +7,4 @@ class QueryExecutor extends abstracts_1.BaseExecutor {
|
|
|
10
7
|
return handler.execute(query);
|
|
11
8
|
}
|
|
12
9
|
}
|
|
13
|
-
exports.QueryExecutor = QueryExecutor;
|
|
14
10
|
//# sourceMappingURL=query.executor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.executor.js","sourceRoot":"","sources":["../../src/executors/query.executor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"query.executor.js","sourceRoot":"","sources":["../../src/executors/query.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,GAEZ,MAAM,uBAAuB,CAAC;AAG/B,MAAM,OAAO,aAAc,SAAQ,YAA4B;IAC3C,KAAK,CAAC,cAAc,CACtC,KAAY;QAEZ,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAE,CAAC,WAA2B,CAAC;QAC5E,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC;QAErD,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAEvC,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { BaseQuery, BaseQueryHandler, BaseCommand, BaseCommandHandler, } from './abstracts';
|
|
2
|
-
export * from './exceptions';
|
|
3
|
-
export * from './executors';
|
|
4
|
-
export { CommandHandler, QueryHandler } from './decorators';
|
|
5
|
-
export { CqrsModule } from './cqrs.module';
|
|
1
|
+
export { BaseQuery, BaseQueryHandler, BaseCommand, BaseCommandHandler, } from './abstracts/index.js';
|
|
2
|
+
export * from './exceptions/index.js';
|
|
3
|
+
export * from './executors/index.js';
|
|
4
|
+
export { CommandHandler, QueryHandler } from './decorators/index.js';
|
|
5
|
+
export { CqrsModule } from './cqrs.module.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,gBAAgB,EAChB,WAAW,EACX,kBAAkB,GAClB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,gBAAgB,EAChB,WAAW,EACX,kBAAkB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Object.defineProperty(exports, "BaseQuery", { enumerable: true, get: function () { return abstracts_1.BaseQuery; } });
|
|
7
|
-
Object.defineProperty(exports, "BaseQueryHandler", { enumerable: true, get: function () { return abstracts_1.BaseQueryHandler; } });
|
|
8
|
-
Object.defineProperty(exports, "BaseCommand", { enumerable: true, get: function () { return abstracts_1.BaseCommand; } });
|
|
9
|
-
Object.defineProperty(exports, "BaseCommandHandler", { enumerable: true, get: function () { return abstracts_1.BaseCommandHandler; } });
|
|
10
|
-
tslib_1.__exportStar(require("./exceptions"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./executors"), exports);
|
|
12
|
-
var decorators_1 = require("./decorators");
|
|
13
|
-
Object.defineProperty(exports, "CommandHandler", { enumerable: true, get: function () { return decorators_1.CommandHandler; } });
|
|
14
|
-
Object.defineProperty(exports, "QueryHandler", { enumerable: true, get: function () { return decorators_1.QueryHandler; } });
|
|
15
|
-
var cqrs_module_1 = require("./cqrs.module");
|
|
16
|
-
Object.defineProperty(exports, "CqrsModule", { enumerable: true, get: function () { return cqrs_module_1.CqrsModule; } });
|
|
1
|
+
export { BaseQuery, BaseQueryHandler, BaseCommand, BaseCommandHandler, } from './abstracts/index.js';
|
|
2
|
+
export * from './exceptions/index.js';
|
|
3
|
+
export * from './executors/index.js';
|
|
4
|
+
export { CommandHandler, QueryHandler } from './decorators/index.js';
|
|
5
|
+
export { CqrsModule } from './cqrs.module.js';
|
|
17
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,gBAAgB,EAChB,WAAW,EACX,kBAAkB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseCommand, BaseCommandHandler, BaseExecutor, BaseExecutorTestSuite } from '../abstracts';
|
|
2
|
-
import { TestCommand } from './commands';
|
|
1
|
+
import { BaseCommand, BaseCommandHandler, BaseExecutor, BaseExecutorTestSuite } from '../abstracts/index.js';
|
|
2
|
+
import { TestCommand } from './commands/index.js';
|
|
3
3
|
export declare class CommandExecutorTest extends BaseExecutorTestSuite<BaseCommand<any>> {
|
|
4
4
|
protected getCommandOrQuery(input: string): TestCommand;
|
|
5
5
|
protected getExecutor(): BaseExecutor<BaseCommand<any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-executor.test.d.ts","sourceRoot":"","sources":["../../src/tests/command-executor.test.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,qBAAqB,EACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"command-executor.test.d.ts","sourceRoot":"","sources":["../../src/tests/command-executor.test.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,qBAAqB,EACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIlD,qBACa,mBAAoB,SAAQ,qBAAqB,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;cAC5D,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW;cAI7C,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;cAI7C,UAAU,IAAI,kBAAkB,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;cAIlD,qBAAqB,IAAI,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CAG7E"}
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const commands_1 = require("./commands");
|
|
9
|
-
const test_command_handler_1 = require("./test-command.handler");
|
|
10
|
-
let CommandExecutorTest = class CommandExecutorTest extends abstracts_1.BaseExecutorTestSuite {
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Describe } from '@hg-ts/tests';
|
|
3
|
+
import { BaseExecutorTestSuite, } from '../abstracts/index.js';
|
|
4
|
+
import { CommandExecutor } from '../executors/index.js';
|
|
5
|
+
import { TestCommand } from './commands/index.js';
|
|
6
|
+
import { TestCommandHandler } from './test-command.handler.js';
|
|
7
|
+
let CommandExecutorTest = class CommandExecutorTest extends BaseExecutorTestSuite {
|
|
11
8
|
getCommandOrQuery(input) {
|
|
12
|
-
return new
|
|
9
|
+
return new TestCommand(input);
|
|
13
10
|
}
|
|
14
11
|
getExecutor() {
|
|
15
|
-
return new
|
|
12
|
+
return new CommandExecutor();
|
|
16
13
|
}
|
|
17
14
|
getHandler() {
|
|
18
|
-
return new
|
|
15
|
+
return new TestCommandHandler();
|
|
19
16
|
}
|
|
20
17
|
getCommandOrQueryCtor() {
|
|
21
|
-
return
|
|
18
|
+
return TestCommand;
|
|
22
19
|
}
|
|
23
20
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
(0, tests_1.Describe)()
|
|
21
|
+
CommandExecutorTest = __decorate([
|
|
22
|
+
Describe()
|
|
27
23
|
], CommandExecutorTest);
|
|
24
|
+
export { CommandExecutorTest };
|
|
28
25
|
//# sourceMappingURL=command-executor.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-executor.test.js","sourceRoot":"","sources":["../../src/tests/command-executor.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command-executor.test.js","sourceRoot":"","sources":["../../src/tests/command-executor.test.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAIN,qBAAqB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAGxD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,qBAAuC;IAC5D,iBAAiB,CAAC,KAAa;QACjD,OAAO,IAAI,WAAW,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAEkB,WAAW;QAC7B,OAAO,IAAI,eAAe,EAAE,CAAC;IAC9B,CAAC;IAEkB,UAAU;QAC5B,OAAO,IAAI,kBAAkB,EAAE,CAAC;IACjC,CAAC;IAEkB,qBAAqB;QACvC,OAAO,WAAW,CAAC;IACpB,CAAC;CACD,CAAA;AAhBY,mBAAmB;IAD/B,QAAQ,EAAE;GACE,mBAAmB,CAgB/B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './unknown.command';
|
|
2
|
-
export * from './test.command';
|
|
1
|
+
export * from './unknown.command.js';
|
|
2
|
+
export * from './test.command.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tests/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tests/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./unknown.command"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./test.command"), exports);
|
|
1
|
+
export * from './unknown.command.js';
|
|
2
|
+
export * from './test.command.js';
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tests/commands/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tests/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.command.d.ts","sourceRoot":"","sources":["../../../src/tests/commands/test.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"test.command.d.ts","sourceRoot":"","sources":["../../../src/tests/commands/test.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,qBAAa,WAAY,SAAQ,WAAW,CAAC,MAAM,CAAC;IACnD,SAAgB,cAAc,EAAE,MAAM,CAAC;gBAEpB,cAAc,EAAE,MAAM;CAKzC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.TestCommand = void 0;
|
|
4
|
-
const abstracts_1 = require("../../abstracts");
|
|
5
|
-
class TestCommand extends abstracts_1.BaseCommand {
|
|
1
|
+
import { BaseCommand } from '../../abstracts/index.js';
|
|
2
|
+
export class TestCommand extends BaseCommand {
|
|
6
3
|
expectedResult;
|
|
7
4
|
constructor(expectedResult) {
|
|
8
5
|
super();
|
|
9
6
|
this.expectedResult = expectedResult;
|
|
10
7
|
}
|
|
11
8
|
}
|
|
12
|
-
exports.TestCommand = TestCommand;
|
|
13
9
|
//# sourceMappingURL=test.command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.command.js","sourceRoot":"","sources":["../../../src/tests/commands/test.command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test.command.js","sourceRoot":"","sources":["../../../src/tests/commands/test.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,OAAO,WAAY,SAAQ,WAAmB;IACnC,cAAc,CAAS;IAEvC,YAAmB,cAAsB;QACxC,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACtC,CAAC;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unknown.command.d.ts","sourceRoot":"","sources":["../../../src/tests/commands/unknown.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"unknown.command.d.ts","sourceRoot":"","sources":["../../../src/tests/commands/unknown.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,qBAAa,cAAe,SAAQ,WAAW,CAAC,MAAM,CAAC;IACtD,SAAgB,cAAc,EAAE,MAAM,CAAC;gBAEpB,cAAc,EAAE,MAAM;CAKzC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.UnknownCommand = void 0;
|
|
4
|
-
const abstracts_1 = require("../../abstracts");
|
|
5
|
-
class UnknownCommand extends abstracts_1.BaseCommand {
|
|
1
|
+
import { BaseCommand } from '../../abstracts/index.js';
|
|
2
|
+
export class UnknownCommand extends BaseCommand {
|
|
6
3
|
expectedResult;
|
|
7
4
|
constructor(expectedResult) {
|
|
8
5
|
super();
|
|
9
6
|
this.expectedResult = expectedResult;
|
|
10
7
|
}
|
|
11
8
|
}
|
|
12
|
-
exports.UnknownCommand = UnknownCommand;
|
|
13
9
|
//# sourceMappingURL=unknown.command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unknown.command.js","sourceRoot":"","sources":["../../../src/tests/commands/unknown.command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unknown.command.js","sourceRoot":"","sources":["../../../src/tests/commands/unknown.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,OAAO,cAAe,SAAQ,WAAmB;IACtC,cAAc,CAAS;IAEvC,YAAmB,cAAsB;QACxC,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACtC,CAAC;CACD"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const cqrs_module_1 = require("../cqrs.module");
|
|
7
|
-
const test_command_handler_1 = require("./test-command.handler");
|
|
8
|
-
const test_query_handler_1 = require("./test-query.handler");
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Module } from '@nestjs/common';
|
|
3
|
+
import { CqrsModule } from '../cqrs.module.js';
|
|
4
|
+
import { TestCommandHandler } from './test-command.handler.js';
|
|
5
|
+
import { TestQueryHandler } from './test-query.handler.js';
|
|
9
6
|
let CqrsTestModule = class CqrsTestModule {
|
|
10
7
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
(0, common_1.Module)({ imports: [cqrs_module_1.CqrsModule], providers: [test_command_handler_1.TestCommandHandler, test_query_handler_1.TestQueryHandler] })
|
|
8
|
+
CqrsTestModule = __decorate([
|
|
9
|
+
Module({ imports: [CqrsModule], providers: [TestCommandHandler, TestQueryHandler] })
|
|
14
10
|
], CqrsTestModule);
|
|
11
|
+
export { CqrsTestModule };
|
|
15
12
|
//# sourceMappingURL=cqrs-test.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cqrs-test.module.js","sourceRoot":"","sources":["../../src/tests/cqrs-test.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cqrs-test.module.js","sourceRoot":"","sources":["../../src/tests/cqrs-test.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGpD,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,cAAc;IAD1B,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,EAAE,CAAC;GACxE,cAAc,CAAG"}
|
|
@@ -1,79 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const cqrs_test_module_1 = require("./cqrs-test.module");
|
|
11
|
-
const queries_1 = require("./queries");
|
|
12
|
-
let QueryExecutorTest = class QueryExecutorTest extends tests_1.Suite {
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Describe, expect, ExpectException, Suite, Test, } from '@hg-ts/tests';
|
|
3
|
+
import { Test as TestFactory, } from '@nestjs/testing';
|
|
4
|
+
import { HandlerNotFoundException } from '../exceptions/index.js';
|
|
5
|
+
import { CommandExecutor, QueryExecutor, } from '../executors/index.js';
|
|
6
|
+
import { TestCommand, UnknownCommand, } from './commands/index.js';
|
|
7
|
+
import { CqrsTestModule } from './cqrs-test.module.js';
|
|
8
|
+
import { TestQuery, UnknownQuery, } from './queries/index.js';
|
|
9
|
+
let QueryExecutorTest = class QueryExecutorTest extends Suite {
|
|
13
10
|
container;
|
|
14
11
|
commandExecutor;
|
|
15
12
|
queryExecutor;
|
|
16
13
|
async executorProvides() {
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
expect(this.commandExecutor).toBeInstanceOf(CommandExecutor);
|
|
15
|
+
expect(this.queryExecutor).toBeInstanceOf(QueryExecutor);
|
|
19
16
|
}
|
|
20
17
|
async commandSuccess() {
|
|
21
18
|
const value = String(Math.random());
|
|
22
|
-
const result = await this.commandExecutor.execute(new
|
|
23
|
-
|
|
19
|
+
const result = await this.commandExecutor.execute(new TestCommand(value));
|
|
20
|
+
expect(result).toBe(value);
|
|
24
21
|
}
|
|
25
22
|
async unknownCommand() {
|
|
26
|
-
await this.commandExecutor.execute(new
|
|
23
|
+
await this.commandExecutor.execute(new UnknownCommand(''));
|
|
27
24
|
}
|
|
28
25
|
async querySuccess() {
|
|
29
26
|
const value = String(Math.random());
|
|
30
|
-
const result = await this.queryExecutor.execute(new
|
|
31
|
-
|
|
27
|
+
const result = await this.queryExecutor.execute(new TestQuery(value));
|
|
28
|
+
expect(result).toBe(value);
|
|
32
29
|
}
|
|
33
30
|
async unknownQuery() {
|
|
34
|
-
await this.queryExecutor.execute(new
|
|
31
|
+
await this.queryExecutor.execute(new UnknownQuery(''));
|
|
35
32
|
}
|
|
36
33
|
async beforeEach() {
|
|
37
|
-
this.container = await
|
|
34
|
+
this.container = await TestFactory.createTestingModule({ imports: [CqrsTestModule] }).compile();
|
|
38
35
|
await this.container.init();
|
|
39
|
-
this.queryExecutor = this.container.get(
|
|
40
|
-
this.commandExecutor = this.container.get(
|
|
36
|
+
this.queryExecutor = this.container.get(QueryExecutor);
|
|
37
|
+
this.commandExecutor = this.container.get(CommandExecutor);
|
|
41
38
|
}
|
|
42
39
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
40
|
+
__decorate([
|
|
41
|
+
Test(),
|
|
42
|
+
__metadata("design:type", Function),
|
|
43
|
+
__metadata("design:paramtypes", []),
|
|
44
|
+
__metadata("design:returntype", Promise)
|
|
49
45
|
], QueryExecutorTest.prototype, "executorProvides", null);
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
__decorate([
|
|
47
|
+
Test(),
|
|
48
|
+
__metadata("design:type", Function),
|
|
49
|
+
__metadata("design:paramtypes", []),
|
|
50
|
+
__metadata("design:returntype", Promise)
|
|
55
51
|
], QueryExecutorTest.prototype, "commandSuccess", null);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
52
|
+
__decorate([
|
|
53
|
+
Test(),
|
|
54
|
+
ExpectException(HandlerNotFoundException),
|
|
55
|
+
__metadata("design:type", Function),
|
|
56
|
+
__metadata("design:paramtypes", []),
|
|
57
|
+
__metadata("design:returntype", Promise)
|
|
62
58
|
], QueryExecutorTest.prototype, "unknownCommand", null);
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
__decorate([
|
|
60
|
+
Test(),
|
|
61
|
+
__metadata("design:type", Function),
|
|
62
|
+
__metadata("design:paramtypes", []),
|
|
63
|
+
__metadata("design:returntype", Promise)
|
|
68
64
|
], QueryExecutorTest.prototype, "querySuccess", null);
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
65
|
+
__decorate([
|
|
66
|
+
Test(),
|
|
67
|
+
ExpectException(HandlerNotFoundException),
|
|
68
|
+
__metadata("design:type", Function),
|
|
69
|
+
__metadata("design:paramtypes", []),
|
|
70
|
+
__metadata("design:returntype", Promise)
|
|
75
71
|
], QueryExecutorTest.prototype, "unknownQuery", null);
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
QueryExecutorTest = __decorate([
|
|
73
|
+
Describe()
|
|
78
74
|
], QueryExecutorTest);
|
|
75
|
+
export { QueryExecutorTest };
|
|
79
76
|
//# sourceMappingURL=cqrs.module.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cqrs.module.test.js","sourceRoot":"","sources":["../../src/tests/cqrs.module.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cqrs.module.test.js","sourceRoot":"","sources":["../../src/tests/cqrs.module.test.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,QAAQ,EACR,MAAM,EACN,eAAe,EACf,KAAK,EACL,IAAI,GACJ,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,IAAI,IAAI,WAAW,GAEnB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EACN,eAAe,EACf,aAAa,GACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACN,WAAW,EACX,cAAc,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACN,SAAS,EACT,YAAY,GACZ,MAAM,oBAAoB,CAAC;AAGrB,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,KAAK;IACnC,SAAS,CAAgB;IACzB,eAAe,CAAkB;IACjC,aAAa,CAAgB;IAGxB,AAAN,KAAK,CAAC,gBAAgB;QAC5B,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;QAC7D,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;IAC1D,CAAC;IAGY,AAAN,KAAK,CAAC,cAAc;QAC1B,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACpC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;QAE1E,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAIY,AAAN,KAAK,CAAC,cAAc;QAC1B,MAAM,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5D,CAAC;IAGY,AAAN,KAAK,CAAC,YAAY;QACxB,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACpC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QAEtE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAIY,AAAN,KAAK,CAAC,YAAY;QACxB,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC;IACxD,CAAC;IAEe,KAAK,CAAC,UAAU;QAC/B,IAAI,CAAC,SAAS,GAAG,MAAM,WAAW,CAAC,mBAAmB,CAAC,EAAE,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;QAEhG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QAE5B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QACvD,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAC5D,CAAC;CACD,CAAA;AAzCa;IADZ,IAAI,EAAE;;;;yDAIN;AAGY;IADZ,IAAI,EAAE;;;;uDAMN;AAIY;IAFZ,IAAI,EAAE;IACN,eAAe,CAAC,wBAAwB,CAAC;;;;uDAGzC;AAGY;IADZ,IAAI,EAAE;;;;qDAMN;AAIY;IAFZ,IAAI,EAAE;IACN,eAAe,CAAC,wBAAwB,CAAC;;;;qDAGzC;AArCW,iBAAiB;IAD7B,QAAQ,EAAE;GACE,iBAAiB,CA+C7B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './unknown.query';
|
|
2
|
-
export * from './test.query';
|
|
1
|
+
export * from './unknown.query.js';
|
|
2
|
+
export * from './test.query.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tests/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tests/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./unknown.query"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./test.query"), exports);
|
|
1
|
+
export * from './unknown.query.js';
|
|
2
|
+
export * from './test.query.js';
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tests/queries/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tests/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
|