Rename queryTypes to QueryTypes

This commit is contained in:
Fabian Stamm 2018-05-13 18:57:13 +02:00
parent 50b8ff7b34
commit f8868c7a22
4 changed files with 28 additions and 28 deletions

2
lib/request.d.ts vendored
View File

@ -1,6 +1,6 @@
/// <reference types="node" /> /// <reference types="node" />
import { Message, MessageHeader, MessageQuestion, MessageRecourceRecord } from "./types"; import { Message, MessageHeader, MessageQuestion, MessageRecourceRecord } from "./types";
export declare enum queryTypes { export declare enum QueryTypes {
/** /**
* IPv4 address * IPv4 address
*/ */

View File

@ -2,97 +2,97 @@
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const binary_parser_1 = require("binary-parser"); const binary_parser_1 = require("binary-parser");
const MAX_LABEL_SIZE = 63; const MAX_LABEL_SIZE = 63;
var queryTypes; var QueryTypes;
(function (queryTypes) { (function (QueryTypes) {
/** /**
* IPv4 address * IPv4 address
*/ */
queryTypes[queryTypes["A"] = 1] = "A"; QueryTypes[QueryTypes["A"] = 1] = "A";
/** /**
* Nameserver * Nameserver
*/ */
queryTypes[queryTypes["NS"] = 2] = "NS"; QueryTypes[QueryTypes["NS"] = 2] = "NS";
/** /**
* Obsolete * Obsolete
*/ */
queryTypes[queryTypes["MD"] = 3] = "MD"; QueryTypes[QueryTypes["MD"] = 3] = "MD";
/** /**
* Obsolete * Obsolete
*/ */
queryTypes[queryTypes["MF"] = 4] = "MF"; QueryTypes[QueryTypes["MF"] = 4] = "MF";
/** /**
* Alias * Alias
*/ */
queryTypes[queryTypes["CNAME"] = 5] = "CNAME"; QueryTypes[QueryTypes["CNAME"] = 5] = "CNAME";
/** /**
* Start of authority * Start of authority
*/ */
queryTypes[queryTypes["SOA"] = 6] = "SOA"; QueryTypes[QueryTypes["SOA"] = 6] = "SOA";
/** /**
* Experimental * Experimental
*/ */
queryTypes[queryTypes["MB"] = 7] = "MB"; QueryTypes[QueryTypes["MB"] = 7] = "MB";
/** /**
* Experimental * Experimental
*/ */
queryTypes[queryTypes["MG"] = 8] = "MG"; QueryTypes[QueryTypes["MG"] = 8] = "MG";
/** /**
* Experimental * Experimental
*/ */
queryTypes[queryTypes["MR"] = 9] = "MR"; QueryTypes[QueryTypes["MR"] = 9] = "MR";
/** /**
* Experimental * Experimental
*/ */
queryTypes[queryTypes["NULL"] = 10] = "NULL"; QueryTypes[QueryTypes["NULL"] = 10] = "NULL";
/** /**
* Service description * Service description
*/ */
queryTypes[queryTypes["WKS"] = 11] = "WKS"; QueryTypes[QueryTypes["WKS"] = 11] = "WKS";
/** /**
* Reverse entry (inaddr.arpa) * Reverse entry (inaddr.arpa)
*/ */
queryTypes[queryTypes["PTR"] = 12] = "PTR"; QueryTypes[QueryTypes["PTR"] = 12] = "PTR";
/** /**
* Host information * Host information
*/ */
queryTypes[queryTypes["HINFO"] = 13] = "HINFO"; QueryTypes[QueryTypes["HINFO"] = 13] = "HINFO";
/** /**
* Mailbox / Mail-list information * Mailbox / Mail-list information
*/ */
queryTypes[queryTypes["MINFO"] = 14] = "MINFO"; QueryTypes[QueryTypes["MINFO"] = 14] = "MINFO";
/** /**
* Mail exchange * Mail exchange
*/ */
queryTypes[queryTypes["MX"] = 15] = "MX"; QueryTypes[QueryTypes["MX"] = 15] = "MX";
/** /**
* Text strings * Text strings
*/ */
queryTypes[queryTypes["TXT"] = 16] = "TXT"; QueryTypes[QueryTypes["TXT"] = 16] = "TXT";
/** /**
* IPv6 address * IPv6 address
*/ */
queryTypes[queryTypes["AAAA"] = 28] = "AAAA"; QueryTypes[QueryTypes["AAAA"] = 28] = "AAAA";
/** /**
* SRV records * SRV records
*/ */
queryTypes[queryTypes["SRV"] = 33] = "SRV"; QueryTypes[QueryTypes["SRV"] = 33] = "SRV";
/** /**
* Request to transfer entire zone * Request to transfer entire zone
*/ */
queryTypes[queryTypes["AXFR"] = 252] = "AXFR"; QueryTypes[QueryTypes["AXFR"] = 252] = "AXFR";
/** /**
* Request for mailbox related records * Request for mailbox related records
*/ */
queryTypes[queryTypes["MAILA"] = 254] = "MAILA"; QueryTypes[QueryTypes["MAILA"] = 254] = "MAILA";
/** /**
* Request for mail agend RRs * Request for mail agend RRs
*/ */
queryTypes[queryTypes["MAILB"] = 253] = "MAILB"; QueryTypes[QueryTypes["MAILB"] = 253] = "MAILB";
/** /**
* Any class * Any class
*/ */
queryTypes[queryTypes["ANY"] = 255] = "ANY"; QueryTypes[QueryTypes["ANY"] = 255] = "ANY";
})(queryTypes = exports.queryTypes || (exports.queryTypes = {})); })(QueryTypes = exports.QueryTypes || (exports.QueryTypes = {}));
const headerParser = new binary_parser_1.Parser() const headerParser = new binary_parser_1.Parser()
.endianess("big") .endianess("big")
.uint16("ID") .uint16("ID")

View File

@ -1,6 +1,6 @@
{ {
"name": "nodename-core", "name": "nodename-core",
"version": "0.1.1", "version": "0.1.2",
"main": "lib/listener.js", "main": "lib/listener.js",
"types": "lib/listener.d.ts", "types": "lib/listener.d.ts",
"author": "Fabian Stamm <dev@fabianstamm.de>", "author": "Fabian Stamm <dev@fabianstamm.de>",

View File

@ -3,7 +3,7 @@ import { Message, MessageHeader, MessageQuestion, MessageRecourceRecord } from "
const MAX_LABEL_SIZE = 63; const MAX_LABEL_SIZE = 63;
export enum queryTypes { export enum QueryTypes {
/** /**
* IPv4 address * IPv4 address
*/ */