UNPKG

1.3 kBJavaScriptView Raw
1"use strict";function isFunction(e){return"function"==typeof e}function isPlainObject(e){return isObject(e)&&Object.getPrototypeOf(e)==Object.prototype}function isObject(e){return null!==e&&"object"===("undefined"==typeof e?"undefined":_typeof(e))}function _merge(e,o,t){for(var n in o)t&&(isPlainObject(o[n])||isArray(o[n]))?(isPlainObject(o[n])&&!isPlainObject(e[n])&&(e[n]={}),isArray(o[n])&&!isArray(e[n])&&(e[n]=[]),_merge(e[n],o[n],t)):void 0!==o[n]&&(e[n]=o[n])}function merge(e){var o=slice.call(arguments,1);return o.forEach(function(o){_merge(e,o,!0)}),e}function options(e,o,t){return t=t||{},isFunction(t)&&(t=t.call(o)),merge(e.bind({$vm:o,$options:t}),e,{$options:t})}function plugin(e,o){if(!plugin.installed){if(!o)return void console.error("You have to install axios");e.axios=o,Object.defineProperties(e.prototype,{axios:{get:function(){return options(e.axios,this,this.$options.axios)}}})}}Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},slice=[].slice,isArray=Array.isArray;"undefined"!=typeof window&&window.Vue&&window.Vue.use(plugin),exports.default=plugin;
\No newline at end of file