All files / lib index.js

68.42% Statements 13/19
66.67% Branches 12/18
66.67% Functions 6/9
68.42% Lines 13/19

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101                                  1x           1x 1x               3x 3x                                 1x 1x                                       1x             1x               2x 2x               3x 3x        
"use strict";
/**
 * `GlaceJS` proxy.
 *
 * @module
 */
 
var Commands,
    config,
    GlobalProxy,
    HttpProxy,
    interactive,
    middleware,
    mw,
    pluginHelp,
    Steps;
 
Object.defineProperties(exports, {
    /**
     * @type {Commands}
     */
    Commands: {
        get: function () {
            Commands = Commands || require("./commands");
            return Commands;
        },
    },
    /**
     * @type {GlaceProxyConfig}
     */
    config: {
        get: function () {
            config = config || require("./config");
            return config;
        },
    },
    /**
     * @type {GlobalProxy}
     */
    GlobalProxy: {
        get: function () {
            GlobalProxy = GlobalProxy || require("./globalProxy");
            return GlobalProxy;
        },
    },
    /**
     * @type {HttpProxy}
     */
    HttpProxy: {
        get: function () {
            HttpProxy = HttpProxy || require("./httpProxy");
            return HttpProxy;
        },
    },
    /**
     * @type {interactive}
     */
    interactive: {
        get: function () {
            interactive = interactive || require("./interactive");
            return interactive;
        },
    },
    middleware: {
        get: function () {
            middleware = middleware || require("./middleware");
            return middleware;
        },
    },
    mw: {
        get: function () {
            mw = mw || {
                cache: require("./middleware/cache"),
                info: require("./middleware/info"),
                reqBody: require("./middleware/reqBody"),
                resHead: require("./middleware/resHead"),
                speed: require("./middleware/speed"),
            };
            return mw;
        },
    },
    /**
     * @type {pluginHelp}
     */
    pluginHelp: {
        get: function () {
            pluginHelp = pluginHelp || require("./pluginHelp");
            return pluginHelp;
        },
    },
    /**
     * @type {ProxySteps}
     */
    Steps: {
        get: function () {
            Steps = Steps || require("./steps");
            return Steps;
        },
    },
});