ismx-nexo-node-app 0.4.86 → 0.4.88
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.
|
@@ -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(
|
|
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(
|
|
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
|
@@ -6,8 +6,11 @@ import FormalProxyBusiness from "./FormalProxyBusiness";
|
|
|
6
6
|
|
|
7
7
|
export default class LoopbackBusiness extends ProxyBusiness
|
|
8
8
|
{
|
|
9
|
-
constructor(
|
|
9
|
+
constructor() {
|
|
10
10
|
super();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public setLoopback(loopback = "http://localhost") {
|
|
11
14
|
this.modules = {
|
|
12
15
|
loopback: {
|
|
13
16
|
id: "loopback",
|
package/src/main/node/index.ts
CHANGED
|
@@ -34,6 +34,7 @@ export class FormalProxyBusiness extends _FormalProxyBusiness {}
|
|
|
34
34
|
import _FormalLoopbackBusiness from "./business/FormalLoopbackBusiness";
|
|
35
35
|
export class FormalLoopbackBusiness extends _FormalLoopbackBusiness {}
|
|
36
36
|
|
|
37
|
+
|
|
37
38
|
import _BusinessServer from "./business/BusinessServer";
|
|
38
39
|
export class BusinessServer extends _BusinessServer {}
|
|
39
40
|
|