Comparing version 0.2.2 to 0.2.3
15
index.js
@@ -16,6 +16,9 @@ var events = require('events'); | ||
this.Record = new Record(this.session); | ||
this.ARecord = new Record(this.session, 'A', ['address']); | ||
this.CNAMERecord = new Record(this.session, 'CNAME', ['cname']); | ||
this.SRVRecord = new Record(this.session, 'SRV', ['port', 'priority', 'target', 'weight']); | ||
this.TXTRecord = new Record(this.session, 'TXT', ['txtdata']); | ||
this.ARecord = new Record(this.session, 'A', ['address']); | ||
this.AAAARecord = new Record(this.session, 'AAAA', ['address']); | ||
this.CERTRecord = new Record(this.session, 'CERT', ['format', 'tag', 'algorithm', 'certificate']); | ||
this.CNAMERecord = new Record(this.session, 'CNAME', ['cname']); | ||
this.MXRecord = new Record(this.session, 'MX', ['exchange', 'preference']); | ||
this.SRVRecord = new Record(this.session, 'SRV', ['port', 'priority', 'target', 'weight']); | ||
this.TXTRecord = new Record(this.session, 'TXT', ['txtdata']); | ||
@@ -95,4 +98,4 @@ this.services = null; | ||
Dynect.prototype.connect = function () { | ||
this.session.open(); | ||
Dynect.prototype.connect = function (callback) { | ||
this.session.open(callback); | ||
} | ||
@@ -99,0 +102,0 @@ |
var async = require('async'); | ||
function Record(session, type, rdataArgs) { | ||
function Record(session, type, model) { | ||
this.session = session; | ||
@@ -10,3 +10,3 @@ | ||
this._rdataArgs = rdataArgs; | ||
this._model = model; | ||
} | ||
@@ -132,5 +132,5 @@ | ||
if (this._rdataArgs) { | ||
for (var i = 0; i < this._rdataArgs.length; i++) { | ||
var arg = this._rdataArgs[i]; | ||
if (this._model) { | ||
for (var i = 0; i < this._model.length; i++) { | ||
var arg = this._model[i]; | ||
@@ -137,0 +137,0 @@ if (!item.rdata[arg]) { |
@@ -16,3 +16,3 @@ { | ||
], | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"keywords": [ | ||
@@ -19,0 +19,0 @@ "dynect", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21931
7
583