@nest-yalc-2/api-strategy 1.3.3 → 2.0.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/package.json +1 -1
- package/src/context-call.service.d.ts +1 -1
- package/src/context-call.service.js +3 -11
- package/src/context-call.service.js.map +1 -1
- package/src/context-call.service.ts +1 -1
- package/src/context-event.service.d.ts +1 -1
- package/src/context-event.service.js +3 -11
- package/src/context-event.service.js.map +1 -1
- package/src/context-event.service.ts +1 -1
- package/src/index.js +16 -29
- package/src/index.js.map +1 -1
- package/src/strategies/http-abstract-call.strategy.d.ts +1 -1
- package/src/strategies/http-abstract-call.strategy.ts +1 -1
- package/src/strategies/nest-http-call.strategy.d.ts +1 -1
- package/src/strategies/nest-http-call.strategy.ts +1 -1
- package/src/strategies/nest-local-call.strategy.d.ts +1 -1
- package/src/strategies/nest-local-call.strategy.ts +1 -1
- package/src/strategies/nest-local-event.strategy.d.ts +1 -1
- package/src/strategies/nest-local-event.strategy.ts +1 -1
- package/src/strategies/rabbitmq-event.strategy.d.ts +1 -1
- package/src/strategies/rabbitmq-event.strategy.js +2 -4
- package/src/strategies/rabbitmq-event.strategy.js.map +1 -1
- package/src/strategies/rabbitmq-event.strategy.ts +1 -1
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClassType } from '@
|
|
1
|
+
import { ClassType } from '@node-yalc/types/globals.js';
|
|
2
2
|
import { IApiCallStrategy } from './context-call.interface.js';
|
|
3
3
|
export interface IApiCallService<Strategy extends IApiCallStrategy> {
|
|
4
4
|
setStrategy(strategy: Strategy): void;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.ContextCallServiceFactory = ContextCallServiceFactory;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const common_1 = require("@nestjs/common");
|
|
14
6
|
function ContextCallServiceFactory(defaultStrategy) {
|
|
15
7
|
let ContextCallService = class ContextCallService {
|
|
@@ -23,9 +15,9 @@ function ContextCallServiceFactory(defaultStrategy) {
|
|
|
23
15
|
return this.strategy;
|
|
24
16
|
}
|
|
25
17
|
};
|
|
26
|
-
ContextCallService = __decorate([
|
|
18
|
+
ContextCallService = tslib_1.__decorate([
|
|
27
19
|
(0, common_1.Injectable)(),
|
|
28
|
-
__metadata("design:paramtypes", [Object])
|
|
20
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
29
21
|
], ContextCallService);
|
|
30
22
|
return ContextCallService;
|
|
31
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-call.service.js","sourceRoot":"","sources":["context-call.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context-call.service.js","sourceRoot":"","sources":["context-call.service.ts"],"names":[],"mappings":";;AASA,8DAqBC;;AA7BD,2CAA4C;AAQ5C,SAAgB,yBAAyB,CACvC,eAAyB;IAEzB,IACM,kBAAkB,GADxB,MACM,kBAAkB;QAKtB,YAAsB,WAAqB,eAAe;YAApC,aAAQ,GAAR,QAAQ,CAA4B;QAAG,CAAC;QAE9D,WAAW,CAAC,QAAkB;YAC5B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC3B,CAAC;QAED,WAAW;YACT,OAAO,IAAI,CAAC,QAAQ,CAAC;QACvB,CAAC;KACF,CAAA;IAdK,kBAAkB;QADvB,IAAA,mBAAU,GAAE;;OACP,kBAAkB,CAcvB;IAED,OAAO,kBAAkB,CAAC;AAC5B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClassType } from '@
|
|
1
|
+
import { ClassType } from '@node-yalc/types/globals.js';
|
|
2
2
|
import { IEventStrategy } from './context-event.interface.js';
|
|
3
3
|
export interface IApiMessageService<Strategy extends IEventStrategy> {
|
|
4
4
|
setStrategy(strategy: Strategy): void;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.ContextEventServiceFactory = ContextEventServiceFactory;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const common_1 = require("@nestjs/common");
|
|
14
6
|
function ContextEventServiceFactory(defaultStrategy) {
|
|
15
7
|
let ContextEventService = class ContextEventService {
|
|
@@ -23,9 +15,9 @@ function ContextEventServiceFactory(defaultStrategy) {
|
|
|
23
15
|
return this.strategy;
|
|
24
16
|
}
|
|
25
17
|
};
|
|
26
|
-
ContextEventService = __decorate([
|
|
18
|
+
ContextEventService = tslib_1.__decorate([
|
|
27
19
|
(0, common_1.Injectable)(),
|
|
28
|
-
__metadata("design:paramtypes", [Object])
|
|
20
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
29
21
|
], ContextEventService);
|
|
30
22
|
return ContextEventService;
|
|
31
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-event.service.js","sourceRoot":"","sources":["context-event.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context-event.service.js","sourceRoot":"","sources":["context-event.service.ts"],"names":[],"mappings":";;AASA,gEAqBC;;AA7BD,2CAA4C;AAQ5C,SAAgB,0BAA0B,CACxC,eAAyB;IAEzB,IACM,mBAAmB,GADzB,MACM,mBAAmB;QAKvB,YAAsB,WAAqB,eAAe;YAApC,aAAQ,GAAR,QAAQ,CAA4B;QAAG,CAAC;QAE9D,WAAW,CAAC,QAAkB;YAC5B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC3B,CAAC;QAED,WAAW;YACT,OAAO,IAAI,CAAC,QAAQ,CAAC;QACvB,CAAC;KACF,CAAA;IAdK,mBAAmB;QADxB,IAAA,mBAAU,GAAE;;OACP,mBAAmB,CAcxB;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC"}
|
package/src/index.js
CHANGED
|
@@ -1,32 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./context-event.
|
|
19
|
-
__exportStar(require("./context-
|
|
20
|
-
__exportStar(require("./context-call.
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./strategies/
|
|
24
|
-
__exportStar(require("./strategies/conditional-
|
|
25
|
-
__exportStar(require("./strategies/
|
|
26
|
-
__exportStar(require("./strategies/
|
|
27
|
-
__exportStar(require("./strategies/
|
|
28
|
-
__exportStar(require("./strategies/nest-
|
|
29
|
-
__exportStar(require("./strategies/nest-local-
|
|
30
|
-
__exportStar(require("./strategies/
|
|
31
|
-
__exportStar(require("./strategies/
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./context-event.service.js"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./context-event.interface.js"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./context-call.service.js"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./context-call.interface.js"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./strategy-selector.provider.js"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./strategies/composite-event.strategy.js"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./strategies/conditional-call.strategy.js"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./strategies/conditional-event.strategy.js"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./strategies/fallback-call.strategy.js"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./strategies/http-abstract-call.strategy.js"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./strategies/nest-http-call.strategy.js"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./strategies/nest-local-call.strategy.js"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./strategies/nest-local-event.strategy.js"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./strategies/rabbitmq-event.strategy.js"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./strategies/shadow-call.strategy.js"), exports);
|
|
32
19
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAEA,qEAA2C;AAC3C,uEAA6C;AAC7C,oEAA0C;AAC1C,sEAA4C;AAC5C,0EAAgD;AAChD,mFAAyD;AACzD,oFAA0D;AAC1D,qFAA2D;AAC3D,iFAAuD;AACvD,sFAA4D;AAC5D,kFAAwD;AACxD,mFAAyD;AACzD,oFAA0D;AAC1D,kFAAwD;AACxD,+EAAqD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTTPMethods } from '@
|
|
1
|
+
import { HTTPMethods } from '@node-yalc/types/globals.js';
|
|
2
2
|
import { OutgoingHttpHeaders, IncomingHttpHeaders } from 'node:http2';
|
|
3
3
|
import { IApiCallStrategy } from '../context-call.interface.js';
|
|
4
4
|
export interface IHttpCallStrategyOptions {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClassType } from '@
|
|
1
|
+
import { ClassType } from '@node-yalc/types/globals.js';
|
|
2
2
|
import { HttpService } from '@nestjs/axios';
|
|
3
3
|
import { HttpAbstractStrategy, IHttpCallStrategyResponse, HttpOptions, IHttpCallStrategyOptions } from './http-abstract-call.strategy.js';
|
|
4
4
|
import { YalcGlobalClsService } from '@nest-yalc-2/app/cls.module.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpAdapterHost } from '@nestjs/core';
|
|
2
2
|
import { HttpAbstractStrategy, HttpOptions, IHttpCallStrategyOptions, IHttpCallStrategyResponse } from './http-abstract-call.strategy.js';
|
|
3
|
-
import { ClassType } from '@
|
|
3
|
+
import { ClassType } from '@node-yalc/types/globals.js';
|
|
4
4
|
import { YalcGlobalClsService } from '@nest-yalc-2/app/cls.module.js';
|
|
5
5
|
import { AppConfigService } from '@nest-yalc-2/app/app-config.service.js';
|
|
6
6
|
export type NestLocalCallStrategyOptions = IHttpCallStrategyOptions & {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
IHttpCallStrategyResponse,
|
|
7
7
|
} from './http-abstract-call.strategy.js';
|
|
8
8
|
import { FastifyAdapter } from '@nestjs/platform-fastify';
|
|
9
|
-
import { ClassType } from '@
|
|
9
|
+
import { ClassType } from '@node-yalc/types/globals.js';
|
|
10
10
|
import { InjectOptions } from 'fastify';
|
|
11
11
|
import { YalcGlobalClsService } from '@nest-yalc-2/app/cls.module.js';
|
|
12
12
|
import { filterHeaders } from '../header-whitelist.helper.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IEventStrategy } from '../context-event.interface.js';
|
|
2
2
|
import { EventEmitter2 } from '@nestjs/event-emitter';
|
|
3
|
-
import { ClassType } from '@
|
|
3
|
+
import { ClassType } from '@node-yalc/types/globals.js';
|
|
4
4
|
export declare class NestLocalEventStrategy<P = any, O = any> implements IEventStrategy {
|
|
5
5
|
private eventEmitter;
|
|
6
6
|
constructor(eventEmitter: EventEmitter2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IEventStrategy } from '../context-event.interface.js';
|
|
2
2
|
import { EventEmitter2 } from '@nestjs/event-emitter';
|
|
3
|
-
import { ClassType } from '@
|
|
3
|
+
import { ClassType } from '@node-yalc/types/globals.js';
|
|
4
4
|
|
|
5
5
|
export class NestLocalEventStrategy<
|
|
6
6
|
P = any,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnModuleDestroy } from '@nestjs/common';
|
|
2
|
-
import type { ClassType } from '@
|
|
2
|
+
import type { ClassType } from '@node-yalc/types/globals.js';
|
|
3
3
|
import { Options } from 'amqplib';
|
|
4
4
|
import { IEventStrategy } from '../context-event.interface.js';
|
|
5
5
|
export interface RabbitMqEventStrategyOptions<P = any> {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.RabbitMqEventStrategyProvider = exports.RabbitMqEventStrategy = void 0;
|
|
7
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const amqplib_1 = tslib_1.__importDefault(require("amqplib"));
|
|
8
6
|
class RabbitMqEventStrategy {
|
|
9
7
|
constructor(options) {
|
|
10
8
|
this.options = options;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rabbitmq-event.strategy.js","sourceRoot":"","sources":["rabbitmq-event.strategy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rabbitmq-event.strategy.js","sourceRoot":"","sources":["rabbitmq-event.strategy.ts"],"names":[],"mappings":";;;;AAEA,8DAA+D;AAmB/D,MAAa,qBAAqB;IAMhC,YAA6B,OAAwC;QAAxC,YAAO,GAAP,OAAO,CAAiC;IAAG,CAAC;IAEzE,IAAI,CAAC,IAAY,EAAE,OAAU;QAC3B,KAAK,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,S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AC;SACH,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YACpE,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;YAAS,CAAC;QACT,IAAI,OAAO,EAAE,CAAC;YACZ,YAAY,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC;QAED,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC;AACH,CAAC;AAED,SAAS,wBAAwB,CAAC,QAIjC;IACC,MAAM,UAAU,GAAG,QAAQ,CAAC,UAEf,CAAC;IAEd,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;IACjC,QAAQ,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC;IAC9B,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;AAC7B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnModuleDestroy } from '@nestjs/common';
|
|
2
|
-
import type { ClassType } from '@
|
|
2
|
+
import type { ClassType } from '@node-yalc/types/globals.js';
|
|
3
3
|
import amqp, { Channel, ChannelModel, Options } from 'amqplib';
|
|
4
4
|
import { IEventStrategy } from '../context-event.interface.js';
|
|
5
5
|
|