@nest-yalc-2/api-strategy 2.0.0 → 2.1.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nest-yalc-2/api-strategy",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "exports": {
@@ -1,4 +1,4 @@
1
- import { ClassType } from '@node-yalc/types/globals.js';
1
+ import { ClassType } from '@node-yalc/types/globals';
2
2
  import { IApiCallStrategy } from './context-call.interface.js';
3
3
  export interface IApiCallService<Strategy extends IApiCallStrategy> {
4
4
  setStrategy(strategy: Strategy): void;
@@ -1,4 +1,4 @@
1
- import { ClassType } from '@node-yalc/types/globals.js';
1
+ import { ClassType } from '@node-yalc/types/globals';
2
2
  import { Injectable } from '@nestjs/common';
3
3
  import { IApiCallStrategy } from './context-call.interface.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { ClassType } from '@node-yalc/types/globals.js';
1
+ import { ClassType } from '@node-yalc/types/globals';
2
2
  import { IEventStrategy } from './context-event.interface.js';
3
3
  export interface IApiMessageService<Strategy extends IEventStrategy> {
4
4
  setStrategy(strategy: Strategy): void;
@@ -1,4 +1,4 @@
1
- import { ClassType } from '@node-yalc/types/globals.js';
1
+ import { ClassType } from '@node-yalc/types/globals';
2
2
  import { Injectable } from '@nestjs/common';
3
3
  import { IEventStrategy } from './context-event.interface.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { HTTPMethods } from '@node-yalc/types/globals.js';
1
+ import { HTTPMethods } from '@node-yalc/types/globals';
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 { HTTPMethods } from '@node-yalc/types/globals.js';
1
+ import { HTTPMethods } from '@node-yalc/types/globals';
2
2
  import { OutgoingHttpHeaders, IncomingHttpHeaders } from 'node:http2';
3
3
  import { IApiCallStrategy } from '../context-call.interface.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { ClassType } from '@node-yalc/types/globals.js';
1
+ import { ClassType } from '@node-yalc/types/globals';
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,4 +1,4 @@
1
- import { ClassType } from '@node-yalc/types/globals.js';
1
+ import { ClassType } from '@node-yalc/types/globals';
2
2
  import { HttpService } from '@nestjs/axios';
3
3
  import {
4
4
  HttpAbstractStrategy,
@@ -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 '@node-yalc/types/globals.js';
3
+ import { ClassType } from '@node-yalc/types/globals';
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 '@node-yalc/types/globals.js';
9
+ import { ClassType } from '@node-yalc/types/globals';
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 '@node-yalc/types/globals.js';
3
+ import { ClassType } from '@node-yalc/types/globals';
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 '@node-yalc/types/globals.js';
3
+ import { ClassType } from '@node-yalc/types/globals';
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 '@node-yalc/types/globals.js';
2
+ import type { ClassType } from '@node-yalc/types/globals';
3
3
  import { Options } from 'amqplib';
4
4
  import { IEventStrategy } from '../context-event.interface.js';
5
5
  export interface RabbitMqEventStrategyOptions<P = any> {
@@ -1,5 +1,5 @@
1
1
  import { OnModuleDestroy } from '@nestjs/common';
2
- import type { ClassType } from '@node-yalc/types/globals.js';
2
+ import type { ClassType } from '@node-yalc/types/globals';
3
3
  import amqp, { Channel, ChannelModel, Options } from 'amqplib';
4
4
  import { IEventStrategy } from '../context-event.interface.js';
5
5