Socket
Socket
Sign inDemoInstall

dynect

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynect - npm Package Compare versions

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 @@

10

lib/Record.js
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc