ismx-nexo-node-app 0.4.87 → 0.4.89

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.
@@ -72,7 +72,7 @@ class FormalLoopbackBusiness extends LoopbackBusiness_1.default {
72
72
  loopback: { get: () => super.loopback }
73
73
  });
74
74
  return __awaiter(this, arguments, void 0, function* (tag, method, endpoint, request = {}) {
75
- return this.deformalize(() => _super.loopback.call(this, method, `${tag}/${endpoint}`, request));
75
+ return this.deformalize(() => _super.loopback.call(this, method, `${tag}${endpoint}`, request));
76
76
  });
77
77
  }
78
78
  deformalize(call) {
@@ -14,8 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const ProxyBusiness_1 = __importDefault(require("./ProxyBusiness"));
16
16
  class LoopbackBusiness extends ProxyBusiness_1.default {
17
- constructor(loopback = "http://localhost") {
17
+ constructor() {
18
18
  super();
19
+ }
20
+ setLoopback(loopback = "http://localhost") {
19
21
  this.modules = {
20
22
  loopback: {
21
23
  id: "loopback",
@@ -2,7 +2,8 @@ import { HttpRequest } from "../api/Service";
2
2
  import fetch from 'node-fetch';
3
3
  import ProxyBusiness, { Module } from "./ProxyBusiness";
4
4
  export default class LoopbackBusiness extends ProxyBusiness {
5
- constructor(loopback?: string);
5
+ constructor();
6
+ setLoopback(loopback?: string): void;
6
7
  call<Req, Res>(tag: string, method: string, endpoint: string, request: HttpRequest<Req>): Promise<fetch.Response>;
7
8
  loopback<Req, Res>(method: string, endpoint: string, request: HttpRequest<Req>): Promise<fetch.Response>;
8
9
  setModules(modules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ismx-nexo-node-app",
3
- "version": "0.4.87",
3
+ "version": "0.4.89",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist && npx tsc",
@@ -52,7 +52,7 @@ export default class FormalLoopbackBusiness extends LoopbackBusiness {
52
52
  }
53
53
 
54
54
  async call<Res>(tag: string, method: string, endpoint: string, request: HttpRequest = {}): Promise<Res> {
55
- return this.deformalize(() => super.loopback<any, Wrapper<Res>>(method, `${tag}/${endpoint}`, request));
55
+ return this.deformalize(() => super.loopback<any, Wrapper<Res>>(method, `${tag}${endpoint}`, request));
56
56
  }
57
57
 
58
58
  private async deformalize<Res>(call: () => Promise<fetch.Response>): Promise<Res> {
@@ -6,8 +6,11 @@ import FormalProxyBusiness from "./FormalProxyBusiness";
6
6
 
7
7
  export default class LoopbackBusiness extends ProxyBusiness
8
8
  {
9
- constructor(loopback = "http://localhost") {
9
+ constructor() {
10
10
  super();
11
+ }
12
+
13
+ public setLoopback(loopback = "http://localhost") {
11
14
  this.modules = {
12
15
  loopback: {
13
16
  id: "loopback",