@xfe-repo/bff-micro 1.0.0 → 1.0.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.
@@ -20,13 +20,14 @@ __name(_ts_metadata, "_ts_metadata");
20
20
  var _MicroService = class _MicroService {
21
21
  constructor(httpService) {
22
22
  __publicField(this, "httpService");
23
- // eslint-disable-next-line @typescript-eslint/unbound-method
24
- __publicField(this, "request", this.axiosRef.request);
25
23
  this.httpService = httpService;
26
24
  }
27
25
  get axiosRef() {
28
26
  return this.httpService.axiosRef;
29
27
  }
28
+ request(config) {
29
+ return this.httpService.axiosRef.request(config);
30
+ }
30
31
  };
31
32
  __name(_MicroService, "MicroService");
32
33
  var MicroService = _MicroService;
@@ -2,7 +2,7 @@ import {
2
2
  MicroService,
3
3
  __name,
4
4
  __publicField
5
- } from "./chunk-IWNPXJTK.mjs";
5
+ } from "./chunk-F5EANDNT.mjs";
6
6
 
7
7
  // src/micro.interceptor.ts
8
8
  import { Injectable, Logger } from "@nestjs/common";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  MicroInterceptor
3
- } from "./chunk-DL5PCZRQ.mjs";
3
+ } from "./chunk-R2NQNPXU.mjs";
4
4
  import {
5
5
  MicroService,
6
6
  __name
7
- } from "./chunk-IWNPXJTK.mjs";
7
+ } from "./chunk-F5EANDNT.mjs";
8
8
 
9
9
  // src/micro.module.ts
10
10
  import { HttpModule } from "@nestjs/axios";
package/dist/index.js CHANGED
@@ -52,13 +52,14 @@ __name(_ts_metadata, "_ts_metadata");
52
52
  var _MicroService = class _MicroService {
53
53
  constructor(httpService) {
54
54
  __publicField(this, "httpService");
55
- // eslint-disable-next-line @typescript-eslint/unbound-method
56
- __publicField(this, "request", this.axiosRef.request);
57
55
  this.httpService = httpService;
58
56
  }
59
57
  get axiosRef() {
60
58
  return this.httpService.axiosRef;
61
59
  }
60
+ request(config) {
61
+ return this.httpService.axiosRef.request(config);
62
+ }
62
63
  };
63
64
  __name(_MicroService, "MicroService");
64
65
  var MicroService = _MicroService;
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  MicroModule
3
- } from "./chunk-MGUWQKV3.mjs";
3
+ } from "./chunk-ZAMMXFEP.mjs";
4
4
  import {
5
5
  MicroInterceptor
6
- } from "./chunk-DL5PCZRQ.mjs";
6
+ } from "./chunk-R2NQNPXU.mjs";
7
7
  import {
8
8
  MicroService
9
- } from "./chunk-IWNPXJTK.mjs";
9
+ } from "./chunk-F5EANDNT.mjs";
10
10
 
11
11
  // src/index.ts
12
12
  export * from "axios";
@@ -46,13 +46,14 @@ __name(_ts_metadata, "_ts_metadata");
46
46
  var _MicroService = class _MicroService {
47
47
  constructor(httpService) {
48
48
  __publicField(this, "httpService");
49
- // eslint-disable-next-line @typescript-eslint/unbound-method
50
- __publicField(this, "request", this.axiosRef.request);
51
49
  this.httpService = httpService;
52
50
  }
53
51
  get axiosRef() {
54
52
  return this.httpService.axiosRef;
55
53
  }
54
+ request(config) {
55
+ return this.httpService.axiosRef.request(config);
56
+ }
56
57
  };
57
58
  __name(_MicroService, "MicroService");
58
59
  var MicroService = _MicroService;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MicroInterceptor
3
- } from "./chunk-DL5PCZRQ.mjs";
4
- import "./chunk-IWNPXJTK.mjs";
3
+ } from "./chunk-R2NQNPXU.mjs";
4
+ import "./chunk-F5EANDNT.mjs";
5
5
  export {
6
6
  MicroInterceptor
7
7
  };
@@ -50,13 +50,14 @@ __name(_ts_metadata, "_ts_metadata");
50
50
  var _MicroService = class _MicroService {
51
51
  constructor(httpService) {
52
52
  __publicField(this, "httpService");
53
- // eslint-disable-next-line @typescript-eslint/unbound-method
54
- __publicField(this, "request", this.axiosRef.request);
55
53
  this.httpService = httpService;
56
54
  }
57
55
  get axiosRef() {
58
56
  return this.httpService.axiosRef;
59
57
  }
58
+ request(config) {
59
+ return this.httpService.axiosRef.request(config);
60
+ }
60
61
  };
61
62
  __name(_MicroService, "MicroService");
62
63
  var MicroService = _MicroService;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  MicroModule
3
- } from "./chunk-MGUWQKV3.mjs";
4
- import "./chunk-DL5PCZRQ.mjs";
5
- import "./chunk-IWNPXJTK.mjs";
3
+ } from "./chunk-ZAMMXFEP.mjs";
4
+ import "./chunk-R2NQNPXU.mjs";
5
+ import "./chunk-F5EANDNT.mjs";
6
6
  export {
7
7
  MicroModule
8
8
  };
@@ -10,7 +10,7 @@ declare class MicroService {
10
10
  private readonly httpService;
11
11
  constructor(httpService: HttpService);
12
12
  get axiosRef(): MicrAxiosInstance;
13
- readonly request: <P = any, R = any>(config: AxiosRequestConfig<P>) => Promise<R>;
13
+ request<P = any, R = any>(config: MicroRequestConfig): Promise<R>;
14
14
  }
15
15
 
16
16
  export { type MicrAxiosInstance, type MicroRequest, type MicroRequestConfig, MicroService };
@@ -10,7 +10,7 @@ declare class MicroService {
10
10
  private readonly httpService;
11
11
  constructor(httpService: HttpService);
12
12
  get axiosRef(): MicrAxiosInstance;
13
- readonly request: <P = any, R = any>(config: AxiosRequestConfig<P>) => Promise<R>;
13
+ request<P = any, R = any>(config: MicroRequestConfig): Promise<R>;
14
14
  }
15
15
 
16
16
  export { type MicrAxiosInstance, type MicroRequest, type MicroRequestConfig, MicroService };
@@ -42,13 +42,14 @@ __name(_ts_metadata, "_ts_metadata");
42
42
  var _MicroService = class _MicroService {
43
43
  constructor(httpService) {
44
44
  __publicField(this, "httpService");
45
- // eslint-disable-next-line @typescript-eslint/unbound-method
46
- __publicField(this, "request", this.axiosRef.request);
47
45
  this.httpService = httpService;
48
46
  }
49
47
  get axiosRef() {
50
48
  return this.httpService.axiosRef;
51
49
  }
50
+ request(config) {
51
+ return this.httpService.axiosRef.request(config);
52
+ }
52
53
  };
53
54
  __name(_MicroService, "MicroService");
54
55
  var MicroService = _MicroService;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MicroService
3
- } from "./chunk-IWNPXJTK.mjs";
3
+ } from "./chunk-F5EANDNT.mjs";
4
4
  export {
5
5
  MicroService
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/bff-micro",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "sideEffects": false,
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",