UNPKG

@duongtrungnguyen/nestro

Version:
52 lines 2.15 kB
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, { CONNECTION_ERROR_CODES: () => CONNECTION_ERROR_CODES, GATEWAY_CLASS: () => GATEWAY_CLASS, GLOBAL_GUARDS: () => GLOBAL_GUARDS, PROXY_ROUTES_CONFIG: () => PROXY_ROUTES_CONFIG, SOCKET_IO_PATH_REGEX: () => SOCKET_IO_PATH_REGEX, SSL_PROTOCOL_REGEX: () => SSL_PROTOCOL_REGEX, UPGRADE_HEADER_REGEX: () => UPGRADE_HEADER_REGEX, WEBSOCKET_UPGRADE_HEADER: () => WEBSOCKET_UPGRADE_HEADER, WEBSOCKET_UPGRADE_REGEX: () => WEBSOCKET_UPGRADE_REGEX }); module.exports = __toCommonJS(constants_exports); const WEBSOCKET_UPGRADE_HEADER = "websocket"; const SSL_PROTOCOL_REGEX = /^https:/i; const UPGRADE_HEADER_REGEX = /upgrade/i; const WEBSOCKET_UPGRADE_REGEX = /websocket/i; const SOCKET_IO_PATH_REGEX = /\/socket\.io\//i; const PROXY_ROUTES_CONFIG = "PROXY_ROUTES"; const GLOBAL_GUARDS = "GLOBAL_GUARDS"; const CONNECTION_ERROR_CODES = ["ECONNREFUSED", "ECONNRESET", "ETIMEDOUT", "EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND", "EPIPE"]; const GATEWAY_CLASS = "GATEWAY_CLASS"; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { CONNECTION_ERROR_CODES, GATEWAY_CLASS, GLOBAL_GUARDS, PROXY_ROUTES_CONFIG, SOCKET_IO_PATH_REGEX, SSL_PROTOCOL_REGEX, UPGRADE_HEADER_REGEX, WEBSOCKET_UPGRADE_HEADER, WEBSOCKET_UPGRADE_REGEX }); //# sourceMappingURL=constants.js.map