swgg-google-all (v2018.1.12)

Code coverage report for node-swgg-google-all/lib.swgg_google_all.js

Statements: 100% (20 / 20)      Branches: 100% (20 / 20)      Functions: 100% (4 / 4)      Lines: 100% (20 / 20)      Ignored: none     

All files » node-swgg-google-all/ » lib.swgg_google_all.js
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                      2   2         2   2   2 2 2         1             2       2   2   2 1     1 83 33     1 1 1 1            
/* istanbul instrument in package swgg_google_all */
/*jslint
    bitwise: true,
    browser: true,
    maxerr: 8,
    maxlen: 100,
    node: true,
    nomen: true,
    regexp: true,
    stupid: true
*/
(function () {
    'use strict';
    var local;
 
 
 
    // run shared js-env code - init-before
    (function () {
        // init local
        local = {};
        // init modeJs
        local.modeJs = (function () {
            try {
                return typeof navigator.userAgent === 'string' &&
                    typeof document.querySelector('body') === 'object' &&
                    typeof XMLHttpRequest.prototype.open === 'function' &&
                    'browser';
            } catch (errorCaughtBrowser) {
                return module.exports &&
                    typeof process.versions.node === 'string' &&
                    typeof require('http').createServer === 'function' &&
                    'node';
            }
        }());
        // init global
        local.global = local.modeJs === 'browser'
            ? window
            : global;
        // init utility2_rollup
        local = local.global.utility2_rollup || local;
        // init lib
        local.local = local.swgg_google_all = local;
        // init exports
        if (local.modeJs === 'browser') {
            local.global.utility2_swgg_google_all = local;
        } else {
            // require builtins
            Object.keys(process.binding('natives')).forEach(function (key) {
                if (!local[key] && !(/\/|^_|^sys$/).test(key)) {
                    local[key] = require(key);
                }
            });
            module.exports = local;
            module.exports.__dirname = __dirname;
            module.exports.module = module;
            module.exports = local.global.utility2_rollup ||
                require('./assets.utility2.rollup.js');
        }
    }());
}());