@oldzy/conduit 1.0.3 → 1.0.4
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/{IRequestHandler-D8MPY7jr.d.mts → IRequestHandler-x0c3xSqH.d.mts} +2 -2
- package/dist/{IRequestHandler-D8MPY7jr.d.ts → IRequestHandler-x0c3xSqH.d.ts} +2 -2
- package/dist/{Mediator-DHJ4zHMn.d.mts → Mediator-CBq5EqK5.d.mts} +1 -1
- package/dist/{Mediator-D3eBV427.d.ts → Mediator-CnBmWM_n.d.ts} +1 -1
- package/dist/application/index.d.mts +2 -2
- package/dist/application/index.d.ts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/mediator/index.d.mts +3 -3
- package/dist/mediator/index.d.ts +3 -3
- package/dist/pipeline/index.d.mts +1 -1
- package/dist/pipeline/index.d.ts +1 -1
- package/package.json +3 -2
|
@@ -6,14 +6,14 @@ declare abstract class BaseCommunicationObject {
|
|
|
6
6
|
declare abstract class BaseRequest extends BaseCommunicationObject {
|
|
7
7
|
readonly uuid: string;
|
|
8
8
|
readonly timestamp: Date;
|
|
9
|
-
constructor(type: string);
|
|
9
|
+
constructor(type: string | symbol);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
declare abstract class BaseResponse extends BaseCommunicationObject {
|
|
13
13
|
success: boolean;
|
|
14
14
|
errors?: string[];
|
|
15
15
|
readonly timestamp: Date;
|
|
16
|
-
constructor(type: string);
|
|
16
|
+
constructor(type: string | symbol);
|
|
17
17
|
setErrors(errors: string[]): this;
|
|
18
18
|
addError(error: string): this;
|
|
19
19
|
}
|
|
@@ -6,14 +6,14 @@ declare abstract class BaseCommunicationObject {
|
|
|
6
6
|
declare abstract class BaseRequest extends BaseCommunicationObject {
|
|
7
7
|
readonly uuid: string;
|
|
8
8
|
readonly timestamp: Date;
|
|
9
|
-
constructor(type: string);
|
|
9
|
+
constructor(type: string | symbol);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
declare abstract class BaseResponse extends BaseCommunicationObject {
|
|
13
13
|
success: boolean;
|
|
14
14
|
errors?: string[];
|
|
15
15
|
readonly timestamp: Date;
|
|
16
|
-
constructor(type: string);
|
|
16
|
+
constructor(type: string | symbol);
|
|
17
17
|
setErrors(errors: string[]): this;
|
|
18
18
|
addError(error: string): this;
|
|
19
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as ServiceProvider } from './ServiceProvider-BcW9XXlN.mjs';
|
|
2
|
-
import { b as BaseResponse, a as BaseRequest } from './IRequestHandler-
|
|
2
|
+
import { b as BaseResponse, a as BaseRequest } from './IRequestHandler-x0c3xSqH.mjs';
|
|
3
3
|
|
|
4
4
|
declare class Mediator {
|
|
5
5
|
private serviceProvider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as ServiceProvider } from './ServiceProvider-BcW9XXlN.js';
|
|
2
|
-
import { b as BaseResponse, a as BaseRequest } from './IRequestHandler-
|
|
2
|
+
import { b as BaseResponse, a as BaseRequest } from './IRequestHandler-x0c3xSqH.js';
|
|
3
3
|
|
|
4
4
|
declare class Mediator {
|
|
5
5
|
private serviceProvider;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { S as ServiceCollection } from '../ServiceCollection-3wUO7p8g.mjs';
|
|
2
2
|
import { S as ServiceProvider, b as ServiceLifetime } from '../ServiceProvider-BcW9XXlN.mjs';
|
|
3
|
-
import { b as BaseResponse, a as BaseRequest, I as IRequestHandler } from '../IRequestHandler-
|
|
3
|
+
import { b as BaseResponse, a as BaseRequest, I as IRequestHandler } from '../IRequestHandler-x0c3xSqH.mjs';
|
|
4
4
|
import { IPipelineBehavior } from '../pipeline/index.mjs';
|
|
5
|
-
import { M as Mediator } from '../Mediator-
|
|
5
|
+
import { M as Mediator } from '../Mediator-CBq5EqK5.mjs';
|
|
6
6
|
|
|
7
7
|
interface IApplicationAdapter {
|
|
8
8
|
readonly name: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { S as ServiceCollection } from '../ServiceCollection-B8PXr0Uo.js';
|
|
2
2
|
import { S as ServiceProvider, b as ServiceLifetime } from '../ServiceProvider-BcW9XXlN.js';
|
|
3
|
-
import { b as BaseResponse, a as BaseRequest, I as IRequestHandler } from '../IRequestHandler-
|
|
3
|
+
import { b as BaseResponse, a as BaseRequest, I as IRequestHandler } from '../IRequestHandler-x0c3xSqH.js';
|
|
4
4
|
import { IPipelineBehavior } from '../pipeline/index.js';
|
|
5
|
-
import { M as Mediator } from '../Mediator-
|
|
5
|
+
import { M as Mediator } from '../Mediator-CnBmWM_n.js';
|
|
6
6
|
|
|
7
7
|
interface IApplicationAdapter {
|
|
8
8
|
readonly name: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { S as ServiceCollection } from './ServiceCollection-3wUO7p8g.mjs';
|
|
2
2
|
export { I as IServiceScope, a as ServiceDescriptor, b as ServiceLifetime, S as ServiceProvider } from './ServiceProvider-BcW9XXlN.mjs';
|
|
3
3
|
export { Inject } from './di/index.mjs';
|
|
4
|
-
export { B as BaseCommunicationObject, a as BaseRequest, b as BaseResponse, H as HandlerResult, I as IRequestHandler } from './IRequestHandler-
|
|
5
|
-
export { M as Mediator } from './Mediator-
|
|
4
|
+
export { B as BaseCommunicationObject, a as BaseRequest, b as BaseResponse, H as HandlerResult, I as IRequestHandler } from './IRequestHandler-x0c3xSqH.mjs';
|
|
5
|
+
export { M as Mediator } from './Mediator-CBq5EqK5.mjs';
|
|
6
6
|
export { SimpleHandler, StreamingHandler } from './mediator/index.mjs';
|
|
7
7
|
export { IPipelineBehavior, PipelineContext, PipelineDelegate } from './pipeline/index.mjs';
|
|
8
8
|
export { Application, ApplicationBuilder, IApplicationAdapter } from './application/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { S as ServiceCollection } from './ServiceCollection-B8PXr0Uo.js';
|
|
2
2
|
export { I as IServiceScope, a as ServiceDescriptor, b as ServiceLifetime, S as ServiceProvider } from './ServiceProvider-BcW9XXlN.js';
|
|
3
3
|
export { Inject } from './di/index.js';
|
|
4
|
-
export { B as BaseCommunicationObject, a as BaseRequest, b as BaseResponse, H as HandlerResult, I as IRequestHandler } from './IRequestHandler-
|
|
5
|
-
export { M as Mediator } from './Mediator-
|
|
4
|
+
export { B as BaseCommunicationObject, a as BaseRequest, b as BaseResponse, H as HandlerResult, I as IRequestHandler } from './IRequestHandler-x0c3xSqH.js';
|
|
5
|
+
export { M as Mediator } from './Mediator-CnBmWM_n.js';
|
|
6
6
|
export { SimpleHandler, StreamingHandler } from './mediator/index.js';
|
|
7
7
|
export { IPipelineBehavior, PipelineContext, PipelineDelegate } from './pipeline/index.js';
|
|
8
8
|
export { Application, ApplicationBuilder, IApplicationAdapter } from './application/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as BaseRequest, b as BaseResponse, I as IRequestHandler } from '../IRequestHandler-
|
|
2
|
-
export { H as HandlerResult } from '../IRequestHandler-
|
|
3
|
-
export { M as Mediator } from '../Mediator-
|
|
1
|
+
import { a as BaseRequest, b as BaseResponse, I as IRequestHandler } from '../IRequestHandler-x0c3xSqH.mjs';
|
|
2
|
+
export { H as HandlerResult } from '../IRequestHandler-x0c3xSqH.mjs';
|
|
3
|
+
export { M as Mediator } from '../Mediator-CBq5EqK5.mjs';
|
|
4
4
|
import '../ServiceProvider-BcW9XXlN.mjs';
|
|
5
5
|
|
|
6
6
|
declare abstract class SimpleHandler<TRequest extends BaseRequest, TResponse extends BaseResponse> implements IRequestHandler<TRequest, TResponse> {
|
package/dist/mediator/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as BaseRequest, b as BaseResponse, I as IRequestHandler } from '../IRequestHandler-
|
|
2
|
-
export { H as HandlerResult } from '../IRequestHandler-
|
|
3
|
-
export { M as Mediator } from '../Mediator-
|
|
1
|
+
import { a as BaseRequest, b as BaseResponse, I as IRequestHandler } from '../IRequestHandler-x0c3xSqH.js';
|
|
2
|
+
export { H as HandlerResult } from '../IRequestHandler-x0c3xSqH.js';
|
|
3
|
+
export { M as Mediator } from '../Mediator-CnBmWM_n.js';
|
|
4
4
|
import '../ServiceProvider-BcW9XXlN.js';
|
|
5
5
|
|
|
6
6
|
declare abstract class SimpleHandler<TRequest extends BaseRequest, TResponse extends BaseResponse> implements IRequestHandler<TRequest, TResponse> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BaseRequest, b as BaseResponse, H as HandlerResult } from '../IRequestHandler-
|
|
1
|
+
import { a as BaseRequest, b as BaseResponse, H as HandlerResult } from '../IRequestHandler-x0c3xSqH.mjs';
|
|
2
2
|
|
|
3
3
|
declare class PipelineContext {
|
|
4
4
|
readonly request: BaseRequest;
|
package/dist/pipeline/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BaseRequest, b as BaseResponse, H as HandlerResult } from '../IRequestHandler-
|
|
1
|
+
import { a as BaseRequest, b as BaseResponse, H as HandlerResult } from '../IRequestHandler-x0c3xSqH.js';
|
|
2
2
|
|
|
3
3
|
declare class PipelineContext {
|
|
4
4
|
readonly request: BaseRequest;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oldzy/conduit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Transport-agnostic request/response pipeline framework with mediator pattern, dependency injection, and middleware support",
|
|
5
5
|
"author": "oldzy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"test:coverage": "vitest --coverage",
|
|
52
52
|
"test:watch": "vitest --watch",
|
|
53
53
|
"lint": "eslint src",
|
|
54
|
-
"prepublishOnly": "npm run build:prod && npm test"
|
|
54
|
+
"prepublishOnly": "npm run build:prod && npm test",
|
|
55
|
+
"publish:npm": "npm run build:prod && npm test && npm publish --access public"
|
|
55
56
|
},
|
|
56
57
|
"keywords": [
|
|
57
58
|
"mediator",
|