diff --git a/lib/request.d.ts b/lib/request.d.ts
index 4674131..96b8c01 100644
--- a/lib/request.d.ts
+++ b/lib/request.d.ts
@@ -1,6 +1,6 @@
///
import { Message, MessageHeader, MessageQuestion, MessageRecourceRecord } from "./types";
-export declare enum queryTypes {
+export declare enum QueryTypes {
/**
* IPv4 address
*/
diff --git a/lib/request.js b/lib/request.js
index 41a78e3..f36a27a 100644
--- a/lib/request.js
+++ b/lib/request.js
@@ -2,97 +2,97 @@
Object.defineProperty(exports, "__esModule", { value: true });
const binary_parser_1 = require("binary-parser");
const MAX_LABEL_SIZE = 63;
-var queryTypes;
-(function (queryTypes) {
+var QueryTypes;
+(function (QueryTypes) {
/**
* IPv4 address
*/
- queryTypes[queryTypes["A"] = 1] = "A";
+ QueryTypes[QueryTypes["A"] = 1] = "A";
/**
* Nameserver
*/
- queryTypes[queryTypes["NS"] = 2] = "NS";
+ QueryTypes[QueryTypes["NS"] = 2] = "NS";
/**
* Obsolete
*/
- queryTypes[queryTypes["MD"] = 3] = "MD";
+ QueryTypes[QueryTypes["MD"] = 3] = "MD";
/**
* Obsolete
*/
- queryTypes[queryTypes["MF"] = 4] = "MF";
+ QueryTypes[QueryTypes["MF"] = 4] = "MF";
/**
* Alias
*/
- queryTypes[queryTypes["CNAME"] = 5] = "CNAME";
+ QueryTypes[QueryTypes["CNAME"] = 5] = "CNAME";
/**
* Start of authority
*/
- queryTypes[queryTypes["SOA"] = 6] = "SOA";
+ QueryTypes[QueryTypes["SOA"] = 6] = "SOA";
/**
* Experimental
*/
- queryTypes[queryTypes["MB"] = 7] = "MB";
+ QueryTypes[QueryTypes["MB"] = 7] = "MB";
/**
* Experimental
*/
- queryTypes[queryTypes["MG"] = 8] = "MG";
+ QueryTypes[QueryTypes["MG"] = 8] = "MG";
/**
* Experimental
*/
- queryTypes[queryTypes["MR"] = 9] = "MR";
+ QueryTypes[QueryTypes["MR"] = 9] = "MR";
/**
* Experimental
*/
- queryTypes[queryTypes["NULL"] = 10] = "NULL";
+ QueryTypes[QueryTypes["NULL"] = 10] = "NULL";
/**
* Service description
*/
- queryTypes[queryTypes["WKS"] = 11] = "WKS";
+ QueryTypes[QueryTypes["WKS"] = 11] = "WKS";
/**
* Reverse entry (inaddr.arpa)
*/
- queryTypes[queryTypes["PTR"] = 12] = "PTR";
+ QueryTypes[QueryTypes["PTR"] = 12] = "PTR";
/**
* Host information
*/
- queryTypes[queryTypes["HINFO"] = 13] = "HINFO";
+ QueryTypes[QueryTypes["HINFO"] = 13] = "HINFO";
/**
* Mailbox / Mail-list information
*/
- queryTypes[queryTypes["MINFO"] = 14] = "MINFO";
+ QueryTypes[QueryTypes["MINFO"] = 14] = "MINFO";
/**
* Mail exchange
*/
- queryTypes[queryTypes["MX"] = 15] = "MX";
+ QueryTypes[QueryTypes["MX"] = 15] = "MX";
/**
* Text strings
*/
- queryTypes[queryTypes["TXT"] = 16] = "TXT";
+ QueryTypes[QueryTypes["TXT"] = 16] = "TXT";
/**
* IPv6 address
*/
- queryTypes[queryTypes["AAAA"] = 28] = "AAAA";
+ QueryTypes[QueryTypes["AAAA"] = 28] = "AAAA";
/**
* SRV records
*/
- queryTypes[queryTypes["SRV"] = 33] = "SRV";
+ QueryTypes[QueryTypes["SRV"] = 33] = "SRV";
/**
* Request to transfer entire zone
*/
- queryTypes[queryTypes["AXFR"] = 252] = "AXFR";
+ QueryTypes[QueryTypes["AXFR"] = 252] = "AXFR";
/**
* Request for mailbox related records
*/
- queryTypes[queryTypes["MAILA"] = 254] = "MAILA";
+ QueryTypes[QueryTypes["MAILA"] = 254] = "MAILA";
/**
* Request for mail agend RRs
*/
- queryTypes[queryTypes["MAILB"] = 253] = "MAILB";
+ QueryTypes[QueryTypes["MAILB"] = 253] = "MAILB";
/**
* Any class
*/
- queryTypes[queryTypes["ANY"] = 255] = "ANY";
-})(queryTypes = exports.queryTypes || (exports.queryTypes = {}));
+ QueryTypes[QueryTypes["ANY"] = 255] = "ANY";
+})(QueryTypes = exports.QueryTypes || (exports.QueryTypes = {}));
const headerParser = new binary_parser_1.Parser()
.endianess("big")
.uint16("ID")
diff --git a/package.json b/package.json
index cea6cb8..823da8c 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "nodename-core",
- "version": "0.1.1",
+ "version": "0.1.2",
"main": "lib/listener.js",
"types": "lib/listener.d.ts",
"author": "Fabian Stamm ",
diff --git a/src/request.ts b/src/request.ts
index 6f019ae..021fcfd 100644
--- a/src/request.ts
+++ b/src/request.ts
@@ -3,7 +3,7 @@ import { Message, MessageHeader, MessageQuestion, MessageRecourceRecord } from "
const MAX_LABEL_SIZE = 63;
-export enum queryTypes {
+export enum QueryTypes {
/**
* IPv4 address
*/