Update 'lib/index.js'

This commit is contained in:
AJ ONeal 2019-06-15 18:54:30 +00:00
parent df050816b3
commit bd7677b2fb
1 changed files with 10 additions and 2 deletions

View File

@ -1,8 +1,7 @@
'use strict'; 'use strict';
var util = require('util'); var util = require('util');
var request = require('@root/request'); var request; // = require('@root/request');
request = util.promisify(request);
var parseString = require('xml2js').parseString; var parseString = require('xml2js').parseString;
parseString = util.promisify(parseString); parseString = util.promisify(parseString);
@ -45,6 +44,15 @@ module.exports.create = function (config) {
}; };
return { return {
init: function (deps) {
request = deps.request;
return null;
},
zones: function(data) {
throw new Error("not implemented yet");
},
set: function (data) { set: function (data) {
var ch = data.challenge; var ch = data.challenge;
var domainname = ch.identifier.value; var domainname = ch.identifier.value;