From de088ba5501c5c282716baaaaf4fae557a67c9f1 Mon Sep 17 00:00:00 2001 From: PhilKunz Date: Sun, 31 Jul 2016 23:54:13 +0200 Subject: [PATCH] update dependencies --- .gitignore | 1 - dist/cflare.classes.cflareaccount.js | 116 +++++++++++++-------------- dist/cflare.classes.helpers.js | 3 +- dist/cflare.plugins.js | 3 +- dist/index.js | 3 +- package.json | 12 +-- test/test.js | 19 +++-- ts/typings.json | 9 --- 8 files changed, 73 insertions(+), 93 deletions(-) delete mode 100644 ts/typings.json diff --git a/.gitignore b/.gitignore index 5129e42..1054f47 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ coverage/ docs/ -ts/typings/ node_modules/ .nogit/ diff --git a/dist/cflare.classes.cflareaccount.js b/dist/cflare.classes.cflareaccount.js index 92ebc1c..9c45e60 100644 --- a/dist/cflare.classes.cflareaccount.js +++ b/dist/cflare.classes.cflareaccount.js @@ -1,22 +1,22 @@ "use strict"; require("typings-global"); -var plugins = require("./cflare.plugins"); -var CflareAccount = (function () { - function CflareAccount() { +const plugins = require("./cflare.plugins"); +class CflareAccount { + constructor() { } - CflareAccount.prototype.authCheck = function () { + authCheck() { return (this.authEmail && this.authKey); //check if auth is available - }; + } ; - CflareAccount.prototype.auth = function (optionsArg) { + auth(optionsArg) { this.authEmail = optionsArg.email; this.authKey = optionsArg.key; - }; - CflareAccount.prototype.getZoneId = function (domainName) { - var done = plugins.q.defer(); + } + getZoneId(domainName) { + let done = plugins.q.defer(); this.listZones(domainName) - .then(function (responseArg) { - var filteredResponse = responseArg.result.filter(function (zoneArg) { + .then((responseArg) => { + let filteredResponse = responseArg.result.filter((zoneArg) => { return zoneArg.name === domainName; }); if (filteredResponse.length >= 1) { @@ -28,49 +28,47 @@ var CflareAccount = (function () { } }); return done.promise; - }; - CflareAccount.prototype.getRecord = function (domainNameArg, typeArg) { - var done = plugins.q.defer(); - var domain = new plugins.smartstring.Domain(domainNameArg); + } + getRecord(domainNameArg, typeArg) { + let done = plugins.q.defer(); + let domain = new plugins.smartstring.Domain(domainNameArg); this.listRecords(domain.zoneName) - .then(function (responseArg) { - var filteredResponse = responseArg.result.filter(function (recordArg) { + .then((responseArg) => { + let filteredResponse = responseArg.result.filter((recordArg) => { return (recordArg.type == typeArg && recordArg.name == domainNameArg); }); done.resolve(filteredResponse[0]); }); return done.promise; - }; + } ; - CflareAccount.prototype.createRecord = function (domainNameArg, typeArg, contentArg) { - var _this = this; - var done = plugins.q.defer(); - var domain = new plugins.smartstring.Domain(domainNameArg); + createRecord(domainNameArg, typeArg, contentArg) { + let done = plugins.q.defer(); + let domain = new plugins.smartstring.Domain(domainNameArg); this.getZoneId(domain.zoneName) - .then(function (domainIdArg) { - var dataObject = { + .then((domainIdArg) => { + let dataObject = { name: domain.fullName, type: typeArg, content: contentArg }; - _this.request("POST", "/zones/" + domainIdArg + "/dns_records", dataObject) + this.request("POST", "/zones/" + domainIdArg + "/dns_records", dataObject) .then(function (responseArg) { done.resolve(responseArg); }); }); return done.promise; - }; + } ; - CflareAccount.prototype.removeRecord = function (domainNameArg, typeArg) { - var _this = this; - var done = plugins.q.defer(); - var domain = new plugins.smartstring.Domain(domainNameArg); + removeRecord(domainNameArg, typeArg) { + let done = plugins.q.defer(); + let domain = new plugins.smartstring.Domain(domainNameArg); this.getRecord(domain.fullName, typeArg) - .then(function (responseArg) { + .then((responseArg) => { if (responseArg) { - var requestRoute = "/zones/" + responseArg.zone_id + "/dns_records/" + responseArg.id; - _this.request("DELETE", requestRoute) - .then(function (responseArg) { + let requestRoute = "/zones/" + responseArg.zone_id + "/dns_records/" + responseArg.id; + this.request("DELETE", requestRoute) + .then((responseArg) => { done.resolve(responseArg); }); } @@ -79,46 +77,44 @@ var CflareAccount = (function () { } }); return done.promise; - }; + } ; - CflareAccount.prototype.updateRecord = function (domainNameArg, typeArg, valueArg) { - var done = plugins.q.defer(); - var domain = new plugins.smartstring.Domain(domainNameArg); + updateRecord(domainNameArg, typeArg, valueArg) { + let done = plugins.q.defer(); + let domain = new plugins.smartstring.Domain(domainNameArg); return done.promise; - }; + } ; - CflareAccount.prototype.listRecords = function (domainNameArg) { - var _this = this; - var done = plugins.q.defer(); - var domain = new plugins.smartstring.Domain(domainNameArg); + listRecords(domainNameArg) { + let done = plugins.q.defer(); + let domain = new plugins.smartstring.Domain(domainNameArg); this.getZoneId(domain.zoneName) - .then(function (domainIdArg) { - _this.request("GET", "/zones/" + domainIdArg + "/dns_records?per_page=100") + .then((domainIdArg) => { + this.request("GET", "/zones/" + domainIdArg + "/dns_records?per_page=100") .then(function (responseArg) { done.resolve(responseArg); }); }); return done.promise; - }; - CflareAccount.prototype.listZones = function (domainName) { - var done = plugins.q.defer(); - var requestRoute = "/zones?per_page=50"; + } + listZones(domainName) { + let done = plugins.q.defer(); + let requestRoute = "/zones?per_page=50"; if (domainName) requestRoute = requestRoute + "&name=" + domainName; - var result = {}; + let result = {}; this.request("GET", requestRoute) .then(function (responseArg) { result = responseArg; done.resolve(result); }); return done.promise; - }; + } ; - CflareAccount.prototype.request = function (methodArg, routeArg, dataArg) { - if (dataArg === void 0) { dataArg = {}; } - var done = plugins.q.defer(); - var jsonArg = JSON.stringify(dataArg); - var options = { + request(methodArg, routeArg, dataArg = {}) { + let done = plugins.q.defer(); + let jsonArg = JSON.stringify(dataArg); + let options = { method: methodArg, url: "https://api.cloudflare.com/client/v4" + routeArg, headers: { @@ -142,10 +138,8 @@ var CflareAccount = (function () { ; }); return done.promise; - }; - return CflareAccount; -}()); + } +} exports.CflareAccount = CflareAccount; ; - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNmbGFyZS5jbGFzc2VzLmNmbGFyZWFjY291bnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUN4QixJQUFPLE9BQU8sV0FBVyxrQkFBa0IsQ0FBQyxDQUFDO0FBRzdDO0lBT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25zZUFyZy5yZXN1bHQuZmlsdGVyKCh6b25lQXJnKT0+e1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gem9uZUFyZy5uYW1lID09PSBkb21haW5OYW1lO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIGlmIChmaWx0ZXJlZFJlc3BvbnNlLmxlbmd0aCA+PSAxKXtcbiAgICAgICAgICAgICAgICAgICAgZG9uZS5yZXNvbHZlKGZpbHRlcmVkUmVzcG9uc2VbMF0uaWQpO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHBsdWdpbnMuYmVhdXR5bG9nLmVycm9yKFwidGhlIGRvbWFpbiBcIiArIGRvbWFpbk5hbWUuYmx1ZSArIFwiIGRvZXMgbm90IGFwcGVhciB0byBiZSBpbiB0aGlzIGFjY291bnQhXCIpO1xuICAgICAgICAgICAgICAgICAgICBkb25lLnJlamVjdCh1bmRlZmluZWQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICByZXR1cm4gZG9uZS5wcm9taXNlO1xuICAgIH1cbiAgICBnZXRSZWNvcmQoZG9tYWluTmFtZUFyZzpzdHJpbmcsdHlwZUFyZzpzdHJpbmcpe1xuICAgICAgICBsZXQgZG9uZSA9IHBsdWdpbnMucS5kZWZlcigpO1xuICAgICAgICBsZXQgZG9tYWluID0gbmV3IHBsdWdpbnMuc21hcnRzdHJpbmcuRG9tYWluKGRvbWFpbk5hbWVBcmcpO1xuICAgICAgICB0aGlzLmxpc3RSZWNvcmRzKGRvbWFpbi56b25lTmFtZSlcbiAgICAgICAgICAgIC50aGVuKChyZXNwb25zZUFyZykgPT4ge1xuICAgICAgICAgICAgICAgIGxldCBmaWx0ZXJlZFJlc3BvbnNlID0gcmVzcG9uc2VBcmcucmVzdWx0LmZpbHRlcigocmVjb3JkQXJnKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAocmVjb3JkQXJnLnR5cGUgPT0gdHlwZUFyZyAmJiByZWNvcmRBcmcubmFtZSA9PSBkb21haW5OYW1lQXJnKTsgXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICBkb25lLnJlc29sdmUoZmlsdGVyZWRSZXNwb25zZVswXSk7XG4gICAgICAgICAgICB9KVxuICAgICAgICByZXR1cm4gZG9uZS5wcm9taXNlO1xuICAgIH07XG4gICAgY3JlYXRlUmVjb3JkKGRvbWFpbk5hbWVBcmc6c3RyaW5nLHR5cGVBcmc6c3RyaW5nLGNvbnRlbnRBcmc6c3RyaW5nKXtcbiAgICAgICAgbGV0IGRvbmUgPSBwbHVnaW5zLnEuZGVmZXIoKTtcbiAgICAgICAgbGV0IGRvbWFpbiA9IG5ldyBwbHVnaW5zLnNtYXJ0c3RyaW5nLkRvbWFpbihkb21haW5OYW1lQXJnKTtcbiAgICAgICAgdGhpcy5nZXRab25lSWQoZG9tYWluLnpvbmVOYW1lKVxuICAgICAgICAgICAgLnRoZW4oKGRvbWFpbklkQXJnKT0+e1xuICAgICAgICAgICAgICAgIGxldCBkYXRhT2JqZWN0ID0ge1xuICAgICAgICAgICAgICAgICAgICBuYW1lOiBkb21haW4uZnVsbE5hbWUsXG4gICAgICAgICAgICAgICAgICAgIHR5cGU6IHR5cGVBcmcsXG4gICAgICAgICAgICAgICAgICAgIGNvbnRlbnQ6IGNvbnRlbnRBcmdcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIHRoaXMucmVxdWVzdChcIlBPU1RcIixcIi96b25lcy9cIiArIGRvbWFpbklkQXJnICsgXCIvZG5zX3JlY29yZHNcIixkYXRhT2JqZWN0KVxuICAgICAgICAgICAgICAgICAgICAudGhlbihmdW5jdGlvbihyZXNwb25zZUFyZyl7XG4gICAgICAgICAgICAgICAgICAgICAgICBkb25lLnJlc29sdmUocmVzcG9uc2VBcmcpO1xuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICByZXR1cm4gZG9uZS5wcm9taXNlO1xuICAgIH07XG4gICAgcmVtb3ZlUmVjb3JkKGRvbWFpbk5hbWVBcmc6c3RyaW5nLHR5cGVBcmc6c3RyaW5nKXtcbiAgICAgICAgbGV0IGRvbmUgPSBwbHVnaW5zLnEuZGVmZXIoKTtcbiAgICAgICAgbGV0IGRvbWFpbiA9IG5ldyBwbHVnaW5zLnNtYXJ0c3RyaW5nLkRvbWFpbihkb21haW5OYW1lQXJnKTtcbiAgICAgICAgdGhpcy5nZXRSZWNvcmQoZG9tYWluLmZ1bGxOYW1lLHR5cGVBcmcpXG4gICAgICAgICAgICAudGhlbigocmVzcG9uc2VBcmcpID0+IHtcbiAgICAgICAgICAgICAgICBpZihyZXNwb25zZUFyZyl7XG4gICAgICAgICAgICAgICAgICAgIGxldCByZXF1ZXN0Um91dGU6c3RyaW5nID0gXCIvem9uZXMvXCIgKyByZXNwb25zZUFyZy56b25lX2lkICsgXCIvZG5zX3JlY29yZHMvXCIgKyByZXNwb25zZUFyZy5pZDsgXG4gICAgICAgICAgICAgICAgICAgIHRoaXMucmVxdWVzdChcIkRFTEVURVwiLHJlcXVlc3RSb3V0ZSlcbiAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKChyZXNwb25zZUFyZykgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRvbmUucmVzb2x2ZShyZXNwb25zZUFyZyk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBkb25lLnJlamVjdCgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICByZXR1cm4gZG9uZS5wcm9taXNlO1xuICAgIH07XG4gICAgdXBkYXRlUmVjb3JkKGRvbWFpbk5hbWVBcmc6c3RyaW5nLHR5cGVBcmc6c3RyaW5nLHZhbHVlQXJnKXtcbiAgICAgICAgbGV0IGRvbmUgPSBwb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Sb3V0ZSArIFwiJm5hbWU9XCIgKyBkb21haW5OYW1lO1xuICAgICAgICBsZXQgcmVzdWx0ID0ge307IFxuICAgICAgICB0aGlzLnJlcXVlc3QoXCJHRVRcIixyZXF1ZXN0Um91dGUpXG4gICAgICAgICAgICAudGhlbihmdW5jdGlvbihyZXNwb25zZUFyZyl7XG4gICAgICAgICAgICAgICAgcmVzdWx0ID0gcmVzcG9uc2VBcmc7XG4gICAgICAgICAgICAgICAgZG9uZS5yZXNvbHZlKHJlc3VsdCk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgcmV0dXJuIGRvbmUucHJvbWlzZTtcbiAgICB9O1xuICAgIHJlcXVlc3QobWV0aG9kQXJnOnN0cmluZyxyb3V0ZUFyZzpzdHJpbmcsZGF0YUFyZyA9IHt9KXtcbiAgICAgICAgbGV0IGRvbmUgPSBwbHVnaW5zLnEuZGVmZXIoKTtcbiAgICAgICAgbGV0IGpzb25Bcmc6c3RyaW5nID0gSlNPTi5zdHJpbmdpZnkoZGF0YUFyZyk7XG4gICAgICAgIGxldCBvcHRpb25zID0ge1xuICAgICAgICAgICAgbWV0aG9kOm1ldGhvZEFyZyxcbiAgICAgICAgICAgIHVybDpcImh0dHBzOi8vYXBpLmNsb3VkZmxhcmUuY29tL2NsaWVudC92NFwiICsgcm91dGVBcmcsXG4gICAgICAgICAgICBoZWFkZXJzOntcbiAgICAgICAgICAgICAgICBcIkNvbnRlbnQtVHlwZVwiOlwiYXBwbGljYXRpb24vanNvblwiLFxuICAgICAgICAgICAgICAgIFwiWC1BdXRoLUVtYWlsXCI6dGhpcy5hdXRoRW1haWwsXG4gICAgICAgICAgICAgICAgXCJYLUF1dGgtS2V5XCI6dGhpcy5hdXRoS2V5XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgYm9keTpqc29uQXJnXG4gICAgICAgIH07XG4gICAgICAgIC8vY29uc29sZS5sb2cob3B0aW9ucyk7XG4gICAgICAgIHBsdWdpbnMucmVxdWVzdChvcHRpb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k7WUFDM0MsRUFBRSxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksR0FBRyxDQUFDLFVBQVUsSUFBSSxHQUFHLENBQUMsQ0FBQyxDQUFDO2dCQUNoQyxJQUFJLFdBQVcsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO2dCQUNuQyxJQUFJLENBQUMsT0FBTyxDQUFDLFdBQVcsQ0FBQyxDQUFDO1lBQzlCLENBQUM7WUFBQyxJQUFJLENBQUMsQ0FBQztnQkFDSixPQUFPLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO2dCQUNqQixPQUFPLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO2dCQUNqQixJQUFJLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1lBQ3JCLENBQUM7WUFBQSxDQUFDO1FBQ04sQ0FBQyxDQUFDLENBQUM7UUFDSCxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztJQUN4QixDQUFDO0FBQ0wsQ0FBQztBQWxJWSxxQkFBYSxnQkFrSXpCLENBQUE7QUFBQSxDQUFDIn0= \ No newline at end of file diff --git a/dist/cflare.classes.helpers.js b/dist/cflare.classes.helpers.js index 02f9842..ded7d16 100644 --- a/dist/cflare.classes.helpers.js +++ b/dist/cflare.classes.helpers.js @@ -1,4 +1,3 @@ "use strict"; require("typings-global"); - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNmbGFyZS5jbGFzc2VzLmhlbHBlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQSIsImZpbGUiOiJjZmxhcmUuY2xhc3Nlcy5oZWxwZXJzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFwidHlwaW5ncy1nbG9iYWxcIjtcbmltcG9ydCBwbHVnaW5zID0gcmVxdWlyZShcIi4vY2ZsYXJlLnBsdWdpbnNcIik7Il19 +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2ZsYXJlLmNsYXNzZXMuaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2NmbGFyZS5jbGFzc2VzLmhlbHBlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQSJ9 \ No newline at end of file diff --git a/dist/cflare.plugins.js b/dist/cflare.plugins.js index 9a2f557..be2266b 100644 --- a/dist/cflare.plugins.js +++ b/dist/cflare.plugins.js @@ -4,5 +4,4 @@ exports.beautylog = require("beautylog"); exports.q = require("q"); exports.request = require("request"); exports.smartstring = require("smartstring"); - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNmbGFyZS5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFPLGdCQUFnQixDQUFDLENBQUE7QUFDYixpQkFBUyxHQUFHLE9BQU8sQ0FBQyxXQUFXLENBQUMsQ0FBQztBQUNqQyxTQUFDLEdBQUcsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBQ2pCLGVBQU8sR0FBRyxPQUFPLENBQUMsU0FBUyxDQUFDLENBQUM7QUFDMUIsbUJBQVcsV0FBVyxhQUFhLENBQUMsQ0FBQyIsImZpbGUiOiJjZmxhcmUucGx1Z2lucy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBcInR5cGluZ3MtZ2xvYmFsXCI7XG5leHBvcnQgbGV0IGJlYXV0eWxvZyA9IHJlcXVpcmUoXCJiZWF1dHlsb2dcIik7XG5leHBvcnQgbGV0IHEgPSByZXF1aXJlKFwicVwiKTtcbmV4cG9ydCBsZXQgcmVxdWVzdCA9IHJlcXVpcmUoXCJyZXF1ZXN0XCIpO1xuZXhwb3J0IGltcG9ydCBzbWFydHN0cmluZyA9IHJlcXVpcmUoXCJzbWFydHN0cmluZ1wiKTsiXX0= +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2ZsYXJlLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9jZmxhcmUucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQ2IsaUJBQVMsR0FBRyxPQUFPLENBQUMsV0FBVyxDQUFDLENBQUM7QUFDakMsU0FBQyxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNqQixlQUFPLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0FBQzFCLG1CQUFXLFdBQVcsYUFBYSxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 1c8176f..705e3b2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2,5 +2,4 @@ require("typings-global"); var cflare_classes_cflareaccount_1 = require("./cflare.classes.cflareaccount"); exports.CflareAccount = cflare_classes_cflareaccount_1.CflareAccount; - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFPLGdCQUFnQixDQUFDLENBQUE7QUFDeEIsNkNBQTRCLGdDQUFnQyxDQUFDO0FBQXJELHFFQUFxRCIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBcInR5cGluZ3MtZ2xvYmFsXCI7XG5leHBvcnQge0NmbGFyZUFjY291bnR9IGZyb20gXCIuL2NmbGFyZS5jbGFzc2VzLmNmbGFyZWFjY291bnRcIjsiXX0= +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQ3hCLDZDQUE0QixnQ0FBZ0MsQ0FBQztBQUFyRCxxRUFBcUQifQ== \ No newline at end of file diff --git a/package.json b/package.json index ccfb526..41f8769 100644 --- a/package.json +++ b/package.json @@ -22,16 +22,16 @@ }, "homepage": "https://github.com/pushrocks/cflare#readme", "dependencies": { - "beautylog": "^5.0.12", + "beautylog": "^5.0.18", "q": "^1.4.1", - "request": "^2.72.0", - "smartstring": "^2.0.10", - "typings-global": "^1.0.3" + "request": "^2.74.0", + "smartstring": "^2.0.15", + "typings-global": "^1.0.6" }, "devDependencies": { - "npmts-g": "^5.2.6", + "npmts-g": "^5.2.8", "qenv": "^1.0.8", - "should": "^9.0.2", + "should": "^10.0.0", "typings-test": "^1.0.1" } } diff --git a/test/test.js b/test/test.js index ec1d9ae..1c399ef 100644 --- a/test/test.js +++ b/test/test.js @@ -1,11 +1,11 @@ "use strict"; require("typings-test"); -var cflare = require("../dist/index"); -var should = require("should"); -var qenv_1 = require("qenv"); -var testQenv = new qenv_1.Qenv(process.cwd(), process.cwd() + "/.nogit"); +const cflare = require("../dist/index"); +let should = require("should"); +const qenv_1 = require("qenv"); +let testQenv = new qenv_1.Qenv(process.cwd(), process.cwd() + "/.nogit"); console.log(testQenv.missingEnvVars); -var testCflareAccount = new cflare.CflareAccount(); +let testCflareAccount = new cflare.CflareAccount(); testCflareAccount.auth({ email: process.env.CF_EMAIL, key: process.env.CF_KEY @@ -16,7 +16,7 @@ describe("cflare", function () { it("should display an entire account", function (done) { this.timeout(10000); testCflareAccount.listZones() - .then(function (responseArg) { + .then((responseArg) => { console.log(responseArg); done(); }); @@ -26,7 +26,7 @@ describe("cflare", function () { it("should get an Cloudflare Id for a domain string", function (done) { this.timeout(10000); testCflareAccount.getZoneId("bleu.de") - .then(function (responseArg) { + .then((responseArg) => { console.log(responseArg); done(); }); @@ -36,7 +36,7 @@ describe("cflare", function () { it("should list all records for a specific Domain Name", function (done) { this.timeout(10000); testCflareAccount.listRecords("bleu.de") - .then(function (responseArg) { + .then((responseArg) => { console.log(responseArg); done(); }); @@ -87,5 +87,4 @@ describe("cflare", function () { }); }); }); - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sY0FBYyxDQUFDLENBQUE7QUFDdEIsSUFBTyxNQUFNLFdBQVcsZUFBZSxDQUFDLENBQUM7QUFDekMsSUFBSSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0FBQy9CLHFCQUFtQixNQUFNLENBQUMsQ0FBQTtBQUMxQixJQUFJLFFBQVEsR0FBRyxJQUFJLFdBQUksQ0FBQyxPQUFPLENBQUMsR0FBRyxFQUFFLEVBQUMsT0FBTyxDQUFDLEdBQUcsRUFBRSxHQUFHLFNBQVMsQ0FBQyxDQUFDO0FBQ2pFLE9BQU8sQ0FBQyxHQUFHLENBQUMsUUFBUSxDQUFDLGNBQWMsQ0FBQyxDQUFDO0FBQ3JDLElBQUksaUJBQWlCLEdBQUcsSUFBSSxNQUFNLENBQUMsYUFBYSxFQUFFLENBQUM7QUFDbkQsaUJBQWlCLENBQUMsSUFBSSxDQUFDO0lBQ25CLEtBQUssRUFBRSxPQUFPLENBQUMsR0FBRyxDQUFDLFFBQVE7SUFDM0IsR0FBRyxFQUFFLE9BQU8sQ0FBQyxHQUFHLENBQUMsTUFBTTtDQUMxQixDQUFDLENBQUM7QUFFSCxRQUFRLENBQUMsUUFBUSxFQUFDO0lBQ2QsUUFBUSxD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IuZ2V0Wm9uZUlkKGRvbWFpbk5hbWUpXCIsZnVuY3Rpb24oKXtcbiAgICAgICAgICAgIGl0KFwic2hvdWxkIGdldCBhbiBDbG91ZGZsYXJlIElkIGZvciBhIGRvbWFpbiBzdHJpbmdcIixmdW5jdGlvbihkb25lKXtcbiAgICAgICAgICAgICAgICB0aGlzLnRpbWVvdXQoMTAwMDApXG4gICAgICAgICAgICAgICAgdGVzdENmbGFyZUFjY291bnQuZ2V0Wm9uZUlkKFwiYmxldS5kZVwiKVxuICAgICAgICAgICAgICAgICAgICAudGhlbigocmVzcG9uc2VBcmcpPT57XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXNwb25zZUFyZyk7XG4gICAgICAgICAgICAgICAgICAgICAgICBkb25lKCk7XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuICAgICAgICBkZXNjcmliZShcIi5saXN0UmVjb3Jkcyhkb21haW5OYW1lKVwiLGZ1bmN0aW9uKCl7XG4gICAgICAgICAgICBpdChcInNob3VsZCBsaXN0IGFsbCByZWNvcmRzIGZvciBhIHNwZWNpZmljIERvbWFpbiBOYW1lXCIsZnVuY3Rpb24oZG9uZSl7XG4gICAgICAgICAgICAgICAgdGhpcy50aW1lb3V0KDEwMDAwKTtcbiAgICAgICAgICAgICAgICB0ZXN0Q2ZsYXJlQWNjb3VudC5saXN0UmVjb3JkcyhcImJsZXUuZGVcIilcbiAgICAgICAgICAgICAgICAgICAgLnRoZW4oKHJlc3BvbnNlQXJnKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXNwb25zZUFyZyk7XG4gICAgICAgICAgICAgICAgICAgICAgICBkb25lKCk7XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0pXG4gICAgICAgIGRlc2NyaWJlKFwiLmNyZWF0ZVJlY29yZFwiLGZ1bmN0aW9uKCl7XG4gICAgICAgICAgICB0aGlzLnRpbWVvdXQoMTAwMDApO1xuICAgICAgICAgICAgaXQoXCJzaG91bGQgY3JlYXRlIGEgdmFsaWQgcmVjb3JkIGZvciBhIGxldmVsIDIgZG9tYWluXCIsZnVuY3Rpb24oZG9uZSl7XG4gICAgICAgICAgICAgICAgdGVzdENmbGFyZUFjY291bnQuY3JlYXRlUmVjb3JkKFwiYmxldS5kZVwiLFwiQVwiLFwiMTI3LjAuMC4xXCIpXG4gICAgICAgICAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uKHJlc3BvbnNlQXJnKXtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlc3BvbnNlQXJnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRvbmUoKTtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIGl0KFwic2hvdWxkIGNyZWF0ZSBhIHZhbGlkIHJlY29yZCBmb3IgYSBzdWJkb21haW5cIixmdW5jdGlvbihkb25lKXtcbiAgICAgICAgICAgICAgICB0ZXN0Q2ZsYXJlQWNjb3VudC5jcmVhdGVSZWNvcmQoXCJzdWJkb21haW4uYmxldS5kZVwiLFwiQVwiLFwiMTI3LjAuMC4xXCIpXG4gICAgICAgICAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uKHJlc3BvbnNlQXJnKXtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlc3BvbnNlQXJnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRvbmUoKTtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgICAgIGRlc2NyaWJlKFwiLmdldFJlY29yZFwiLGZ1bmN0aW9uKCl7XG4gICAgICAgICAgICBpdChcInNob3VsZCBnZXQgYSByZWNvcmQgZnJvbSBDbG91ZGZsYXJlXCIsZnVuY3Rpb24oZG9uZSl7XG4gICAgICAgICAgICAgICAgdGVzdENmbGFyZUFjY291bnQuZ2V0UmVjb3JkKFwiYmxldS5kZVwiLFwiQVwiKVxuICAgICAgICAgICAgICAgICAgICAudGhlbihmdW5jdGlvbihyZXNwb25zZUFyZyl7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXNwb25zZUFyZyk7XG4gICAgICAgICAgICAgICAgICAgICAgICBkb25lKCk7XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuICAgICAgICBkZXNjcmliZShcIi5yZW1vdmVSZWNvcmRcIixmdW5jdGlvbigpe1xuICAgICAgICAgICAgaXQoXCJzaG91bGQgcmVtb3ZlIGEgcmVjb3JkIGZyb20gQ2xvdWRmbGFyZVwiLGZ1bmN0aW9uKGRvbmUpe1xuICAgICAgICAgICAgICAgIHRlc3RDZmxhcmVBY2NvdW50LnJlbW92ZVJlY29yZChcImJsZXUuZGVcIixcIkFcIilcbiAgICAgICAgICAgICAgICAgICAgLnRoZW4oZnVuY3Rpb24ocmVzcG9uc2VBcmcpe1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzcG9uc2VBcmcpO1xuICAgICAgICAgICAgICAgICAgICAgICAgZG9uZSgpO1xuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgaXQoXCJzaG91bGQgcmVtb3ZlIGEgc3ViZG9tYWluIHJlY29yZCBmcm9tIENsb3VkZmxhcmVcIixmdW5jdGlvbihkb25lKXtcbiAgICAgICAgICAgICAgICB0aGlzLnRpbWVvdXQoNTAwMCk7XG4gICAgICAgICAgICAgICAgdGVzdENmbGFyZUFjY291bnQucmVtb3ZlUmVjb3JkKFwic3ViZG9tYWluLmJsZXUuZGVcIixcIkFcIilcbiAgICAgICAgICAgICAgICAgICAgLnRoZW4oZnVuY3Rpb24ocmVzcG9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QUFDLEdBQUcsQ0FBQyxXQUFXLENBQUMsQ0FBQztvQkFDekIsSUFBSSxFQUFFLENBQUM7Z0JBQ1gsQ0FBQyxDQUFDLENBQUM7WUFDWCxDQUFDLENBQUMsQ0FBQztRQUNQLENBQUMsQ0FBQyxDQUFDO1FBQ0gsUUFBUSxDQUFDLGVBQWUsRUFBQztZQUNyQixFQUFFLENBQUMsd0NBQXdDLEVBQUMsVUFBUyxJQUFJO2dCQUNyRCxpQkFBaUIsQ0FBQyxZQUFZLENBQUMsU0FBUyxFQUFDLEdBQUcsQ0FBQztxQkFDeEMsSUFBSSxDQUFDLFVBQVMsV0FBVztvQkFDdEIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxXQUFXLENBQUMsQ0FBQztvQkFDekIsSUFBSSxFQUFFLENBQUM7Z0JBQ1gsQ0FBQyxDQUFDLENBQUM7WUFDWCxDQUFDLENBQUMsQ0FBQztZQUNILEVBQUUsQ0FBQyxrREFBa0QsRUFBQyxVQUFTLElBQUk7Z0JBQy9ELElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7Z0JBQ25CLGlCQUFpQixDQUFDLFlBQVksQ0FBQyxtQkFBbUIsRUFBQyxHQUFHLENBQUM7cUJBQ2xELElBQUksQ0FBQyxVQUFTLFdBQVc7b0JBQ3RCLE9BQU8sQ0FBQyxHQUFHLENBQUMsV0FBVyxDQUFDLENBQUM7b0JBQ3pCLElBQUksRUFBRSxDQUFDO2dCQUNYLENBQUMsQ0FBQyxDQUFDO1lBQ1gsQ0FBQyxDQUFDLENBQUM7UUFDUCxDQUFDLENBQUMsQ0FBQztJQUNQLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/ts/typings.json b/ts/typings.json deleted file mode 100644 index 8f505d5..0000000 --- a/ts/typings.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "version": false, - "dependencies": {}, - "ambientDependencies": { - "colors": "registry:dt/colors#0.6.0-1+20160425153322", - "mocha": "registry:dt/mocha#2.2.5+20160317120654", - "node": "registry:dt/node#4.0.0+20160423143914" - } -}