UNPKG

http-directives

Version:

A TypeScript-friendly package that provides strongly-typed HTTP constants

68 lines (66 loc) 2.05 kB
"use strict"; 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); // src/directives/protocols.ts var protocols_exports = {}; __export(protocols_exports, { Protocols: () => Protocols }); module.exports = __toCommonJS(protocols_exports); var Protocols = class { }; Protocols.HTTP = "http:"; Protocols.HTTPS = "https:"; Protocols.WS = "ws:"; Protocols.WSS = "wss:"; Protocols.DATA = "data:"; Protocols.ABOUT = "about:"; Protocols.JAVASCRIPT = "javascript:"; Protocols.MAILTO = "mailto:"; Protocols.FILE = "file:"; Protocols.FTP = "ftp:"; Protocols.FTPS = "ftps:"; Protocols.SFTP = "sftp:"; Protocols.TFTP = "tftp:"; Protocols.RSYNC = "rsync:"; Protocols.SMB = "smb:"; Protocols.NFS = "nfs:"; Protocols.SMTP = "smtp:"; Protocols.SMTPS = "smtps:"; Protocols.POP3 = "pop3:"; Protocols.IMAP = "imap:"; Protocols.IMAPS = "imaps:"; Protocols.RTSP = "rtsp:"; Protocols.RTMP = "rtmp:"; Protocols.RTMPS = "rtmps:"; Protocols.HLS = "hls:"; Protocols.RTP = "rtp:"; Protocols.MQTT = "mqtt:"; Protocols.COAP = "coap:"; Protocols.DNS = "dns:"; Protocols.NTP = "ntp:"; Protocols.SSH = "ssh:"; Protocols.TELNET = "telnet:"; Protocols.SNMP = "snmp:"; Protocols.LDAP = "ldap:"; Protocols.LDAPS = "ldaps:"; Protocols.GOPHER = "gopher:"; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { Protocols });