@remnawave/node-contract 0.3.1 → 0.3.2
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/build/api/controllers/handler.d.ts.map +1 -1
- package/build/api/controllers/stats.d.ts.map +1 -1
- package/build/api/controllers/xray.d.ts.map +1 -1
- package/build/api/routes.d.ts.map +1 -1
- package/build/api/routes.js +17 -7
- package/build/constants/xray/stats.d.ts +19 -2
- package/build/constants/xray/stats.d.ts.map +1 -1
- package/build/constants/xray/stats.js +20 -17
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../api/controllers/handler.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../api/controllers/handler.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAG,SAAkB,CAAC;AAErD,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../api/controllers/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../api/controllers/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;;;CAUf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xray.d.ts","sourceRoot":"","sources":["../../../api/controllers/xray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"xray.d.ts","sourceRoot":"","sources":["../../../api/controllers/xray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW;;;;CAId,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,OAAgB,CAAC;AAErC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;CAqBX,CAAC"}
|
package/build/api/routes.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.REST_API = exports.ROOT = void 0;
|
|
27
37
|
const CONTROLLERS = __importStar(require("./controllers"));
|
|
@@ -8,8 +8,8 @@ export declare const XRAY_DEFAULT_POLICY_MODEL: {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
readonly system: {
|
|
11
|
-
readonly statsInboundDownlink:
|
|
12
|
-
readonly statsInboundUplink:
|
|
11
|
+
readonly statsInboundDownlink: false;
|
|
12
|
+
readonly statsInboundUplink: false;
|
|
13
13
|
readonly statsOutboundDownlink: true;
|
|
14
14
|
readonly statsOutboundUplink: true;
|
|
15
15
|
};
|
|
@@ -24,5 +24,22 @@ export declare const XRAY_DEFAULT_API_MODEL: {
|
|
|
24
24
|
readonly listen: "127.0.0.1:61000";
|
|
25
25
|
readonly tag: "API";
|
|
26
26
|
};
|
|
27
|
+
readonly metrics: {
|
|
28
|
+
readonly tag: "metrics_out";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const XRAY_ROUTING_RULES_MODEL: {
|
|
32
|
+
readonly type: "field";
|
|
33
|
+
readonly inboundTag: readonly ["metrics_in"];
|
|
34
|
+
readonly outboundTag: "metrics_out";
|
|
35
|
+
};
|
|
36
|
+
export declare const XRAY_API_INBOUND_MODEL: {
|
|
37
|
+
readonly listen: "127.0.0.1";
|
|
38
|
+
readonly port: 61001;
|
|
39
|
+
readonly protocol: "dokodemo-door";
|
|
40
|
+
readonly settings: {
|
|
41
|
+
readonly address: "localhost";
|
|
42
|
+
};
|
|
43
|
+
readonly tag: "metrics_in";
|
|
27
44
|
};
|
|
28
45
|
//# sourceMappingURL=stats.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../constants/xray/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAgB5B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;CAE3B,CAAC;AAEX,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../constants/xray/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAgB5B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;CAE3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;CASzB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;CAQzB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.XRAY_DEFAULT_API_MODEL = exports.XRAY_DEFAULT_STATS_MODEL = exports.XRAY_DEFAULT_POLICY_MODEL = void 0;
|
|
3
|
+
exports.XRAY_API_INBOUND_MODEL = exports.XRAY_ROUTING_RULES_MODEL = exports.XRAY_DEFAULT_API_MODEL = exports.XRAY_DEFAULT_STATS_MODEL = exports.XRAY_DEFAULT_POLICY_MODEL = void 0;
|
|
4
4
|
exports.XRAY_DEFAULT_POLICY_MODEL = {
|
|
5
5
|
policy: {
|
|
6
6
|
levels: {
|
|
@@ -11,8 +11,8 @@ exports.XRAY_DEFAULT_POLICY_MODEL = {
|
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
system: {
|
|
14
|
-
statsInboundDownlink:
|
|
15
|
-
statsInboundUplink:
|
|
14
|
+
statsInboundDownlink: false,
|
|
15
|
+
statsInboundUplink: false,
|
|
16
16
|
statsOutboundDownlink: true,
|
|
17
17
|
statsOutboundUplink: true,
|
|
18
18
|
},
|
|
@@ -27,18 +27,21 @@ exports.XRAY_DEFAULT_API_MODEL = {
|
|
|
27
27
|
listen: '127.0.0.1:61000',
|
|
28
28
|
tag: 'API',
|
|
29
29
|
},
|
|
30
|
+
metrics: {
|
|
31
|
+
tag: 'metrics_out',
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
exports.XRAY_ROUTING_RULES_MODEL = {
|
|
35
|
+
type: 'field',
|
|
36
|
+
inboundTag: ['metrics_in'],
|
|
37
|
+
outboundTag: 'metrics_out',
|
|
38
|
+
};
|
|
39
|
+
exports.XRAY_API_INBOUND_MODEL = {
|
|
40
|
+
listen: '127.0.0.1',
|
|
41
|
+
port: 61001,
|
|
42
|
+
protocol: 'dokodemo-door',
|
|
43
|
+
settings: {
|
|
44
|
+
address: 'localhost',
|
|
45
|
+
},
|
|
46
|
+
tag: 'metrics_in',
|
|
30
47
|
};
|
|
31
|
-
// export const XRAY_ROUTING_RULES_MODEL = {
|
|
32
|
-
// inboundTag: ['API_INBOUND'],
|
|
33
|
-
// outboundTag: 'API',
|
|
34
|
-
// type: 'field',
|
|
35
|
-
// } as const;
|
|
36
|
-
// export const XRAY_API_INBOUND_MODEL = {
|
|
37
|
-
// listen: '127.0.0.1',
|
|
38
|
-
// port: 61000,
|
|
39
|
-
// protocol: 'dokodemo-door',
|
|
40
|
-
// settings: {
|
|
41
|
-
// address: '0.0.0.0',
|
|
42
|
-
// },
|
|
43
|
-
// tag: 'API_INBOUND',
|
|
44
|
-
// } as const;
|