MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/.trash/node_modules/vue-infinite-loading/src/index.js
import config from './config';
import InfiniteLoading from './components/InfiniteLoading.vue';

function syncModeFromVue(Vue) {
  config.mode = Vue.config.productionTip ? 'development' : 'production';
}

Object.defineProperty(InfiniteLoading, 'install', {
  configurable: false,
  enumerable: false,
  value(Vue, options) {
    // override default props
    Object.assign(config.props, options && options.props);

    // override default slots
    Object.assign(config.slots, options && options.slots);

    // override default system settings
    Object.assign(config.system, options && options.system);

    // register component
    Vue.component('infinite-loading', InfiniteLoading);

    syncModeFromVue(Vue);
  },
});

// register component automatically if there has global Vue
/* istanbul ignore else */
if (typeof window !== 'undefined' && window.Vue) {
  window.Vue.component('infinite-loading', InfiniteLoading);
  syncModeFromVue(window.Vue);
}

export default InfiniteLoading;