diff --git a/lib/client.js b/lib/client.js index 9d22c8c..0815596 100644 --- a/lib/client.js +++ b/lib/client.js @@ -2,8 +2,7 @@ * vim: expandtab shiftwidth=4 softtabstop=4 */ -/* global dav */ -var dav = dav || {} +const dav = {} dav._XML_CHAR_MAP = { '<': '<', @@ -482,6 +481,7 @@ dav.Client.prototype = { }; -if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { - module.exports.Client = dav.Client; +module.exports = { + dav, + Client: dav.Client, }