@remnawave/node-contract
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -18,9 +18,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -27,0 +37,0 @@ exports.REST_API = exports.ROOT = void 0; |
@@ -11,4 +11,4 @@ export declare const XRAY_DEFAULT_POLICY_MODEL: { | ||
readonly system: { | ||
readonly statsInboundDownlink: true; | ||
readonly statsInboundUplink: true; | ||
readonly statsInboundDownlink: false; | ||
readonly statsInboundUplink: false; | ||
readonly statsOutboundDownlink: true; | ||
@@ -28,3 +28,20 @@ readonly statsOutboundUplink: true; | ||
}; | ||
readonly metrics: { | ||
readonly tag: "metrics_out"; | ||
}; | ||
}; | ||
export declare const XRAY_ROUTING_RULES_MODEL: { | ||
readonly type: "field"; | ||
readonly inboundTag: readonly ["metrics_in"]; | ||
readonly outboundTag: "metrics_out"; | ||
}; | ||
export declare const XRAY_API_INBOUND_MODEL: { | ||
readonly listen: "127.0.0.1"; | ||
readonly port: 61001; | ||
readonly protocol: "dokodemo-door"; | ||
readonly settings: { | ||
readonly address: "localhost"; | ||
}; | ||
readonly tag: "metrics_in"; | ||
}; | ||
//# sourceMappingURL=stats.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XRAY_DEFAULT_API_MODEL = exports.XRAY_DEFAULT_STATS_MODEL = exports.XRAY_DEFAULT_POLICY_MODEL = void 0; | ||
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; | ||
exports.XRAY_DEFAULT_POLICY_MODEL = { | ||
@@ -14,4 +14,4 @@ policy: { | ||
system: { | ||
statsInboundDownlink: true, | ||
statsInboundUplink: true, | ||
statsInboundDownlink: false, | ||
statsInboundUplink: false, | ||
statsOutboundDownlink: true, | ||
@@ -31,16 +31,19 @@ statsOutboundUplink: true, | ||
}, | ||
metrics: { | ||
tag: 'metrics_out', | ||
}, | ||
}; | ||
// export const XRAY_ROUTING_RULES_MODEL = { | ||
// inboundTag: ['API_INBOUND'], | ||
// outboundTag: 'API', | ||
// type: 'field', | ||
// } as const; | ||
// export const XRAY_API_INBOUND_MODEL = { | ||
// listen: '127.0.0.1', | ||
// port: 61000, | ||
// protocol: 'dokodemo-door', | ||
// settings: { | ||
// address: '0.0.0.0', | ||
// }, | ||
// tag: 'API_INBOUND', | ||
// } as const; | ||
exports.XRAY_ROUTING_RULES_MODEL = { | ||
type: 'field', | ||
inboundTag: ['metrics_in'], | ||
outboundTag: 'metrics_out', | ||
}; | ||
exports.XRAY_API_INBOUND_MODEL = { | ||
listen: '127.0.0.1', | ||
port: 61001, | ||
protocol: 'dokodemo-door', | ||
settings: { | ||
address: 'localhost', | ||
}, | ||
tag: 'metrics_in', | ||
}; |
{ | ||
"name": "@remnawave/node-contract", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "A node-contract library for Remnawave Panel", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75947
1819