@duongtrungnguyen/nestro
Version:
Service registry for Nest JS
46 lines • 1.78 kB
JavaScript
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var constants_exports = {};
__export(constants_exports, {
CLASS_REGEX: () => CLASS_REGEX,
DEFAULT_CLEANUP_TTL: () => DEFAULT_CLEANUP_TTL,
DEFAULT_EVICTATION_THRESHOLD: () => DEFAULT_EVICTATION_THRESHOLD,
DEFAULT_HEARBEAT_INTERVAL: () => DEFAULT_HEARBEAT_INTERVAL,
DEFAULT_HOST: () => DEFAULT_HOST,
DEFAULT_PROTOCOL: () => DEFAULT_PROTOCOL,
DEFAULT_SERVER_PORT: () => DEFAULT_SERVER_PORT
});
module.exports = __toCommonJS(constants_exports);
const DEFAULT_CLEANUP_TTL = 30 * 1e3;
const DEFAULT_HEARBEAT_INTERVAL = 30 * 1e3;
const DEFAULT_EVICTATION_THRESHOLD = 3;
const DEFAULT_PROTOCOL = "http";
const DEFAULT_SERVER_PORT = 4444;
const DEFAULT_HOST = "localhost";
const CLASS_REGEX = /^class\s/;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
CLASS_REGEX,
DEFAULT_CLEANUP_TTL,
DEFAULT_EVICTATION_THRESHOLD,
DEFAULT_HEARBEAT_INTERVAL,
DEFAULT_HOST,
DEFAULT_PROTOCOL,
DEFAULT_SERVER_PORT
});
//# sourceMappingURL=constants.js.map