diff --git a/TODO.md b/TODO.md index f838f95..dd1ecc8 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,4 @@ ### TODOs | Filename | line # | TODO -|:------|:------:|:------ \ No newline at end of file +|:------|:------:|:------ +| main.js | 87 | @S.Panfilov not sure - error or warn here \ No newline at end of file diff --git a/dist/vue-notifications.js b/dist/vue-notifications.js index 65902c6..daea8ad 100644 --- a/dist/vue-notifications.js +++ b/dist/vue-notifications.js @@ -147,7 +147,6 @@ return /******/ (function(modules) { // webpackBootstrap * */ function addProtoMethods(targetObj, typesObj, options) { (0, _keys2['default'])(typesObj).forEach(function (v) { - debugger; targetObj[typesObj[v]] = function (config) { config.type = typesObj[v]; return showMessage(config, options); @@ -161,8 +160,13 @@ return /******/ (function(modules) { // webpackBootstrap * @param {Object} pluginOptions */ function setMethod(name, options, pluginOptions) { - if (options.methods[name]) throw console.error(MESSAGES.methodNameConflict + name); - options.methods[name] = makeMethod(name, options, pluginOptions); + // TODO (S.Panfilov)not sure - error or warn here + // if (options.methods[name]) throw console.error(MESSAGES.methodNameConflict + name) + if (options.methods[name]) { + console.warn(MESSAGES.methodNameConflict + name); + } else { + options.methods[name] = makeMethod(name, options, pluginOptions); + } } /** diff --git a/dist/vue-notifications.min.js b/dist/vue-notifications.min.js index f120882..818c1b4 100644 --- a/dist/vue-notifications.min.js +++ b/dist/vue-notifications.min.js @@ -1,2 +1,2 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("VueNotifications",[],e):"object"==typeof exports?exports.VueNotifications=e():t.VueNotifications=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t){var e=t.version.match(/(\d+)/g);return{major:+e[0],regular:+e[1],minor:+e[2]}}function i(t){var e=t.type,n=t.message,o=t.title,r=t.debugMsg,i="Title: "+o+", Message: "+n+", DebugMsg: "+r+", type: "+e;return e===x.error?console.error(i):e===x.warn?console.warn(i):e===x.success?console.info(i):console.log(i),i}function c(t,e){var n=e&&e[t.type]?e[t.type]:i;if(n(t),t.cb)return t.cb()}function u(t,e,n){(0,y.default)(e).forEach(function(o){t[e[o]]=function(t){return t.type=e[o],c(t,n)}})}function s(t,e,n){if(e.methods[t])throw console.error(j.methodNameConflict+t);e.methods[t]=f(t,e,n)}function f(t,e,n){return function(o){var r={};return(0,p.default)(r,_.config),(0,p.default)(r,e[_.propertyName][t]),(0,p.default)(r,o),c(r,n)}}function a(t,e){var n=this;t&&((0,y.default)(t).forEach(function(t){s(t,n.$options,e)}),this.$emit(m+"-initiated"))}Object.defineProperty(e,"__esModule",{value:!0});var l=n(1),p=o(l),d=n(16),y=o(d),h=n(20),v=o(h),g="VueNotifications",m="vue-notifications",b="notifications",x={error:"error",warn:"warn",info:"info",success:"success"},w={evangelion:1,ghostInTheShell:2},j={alreadyInstalled:g+": plugin already installed",methodNameConflict:g+": names conflict - "},_={type:x,propertyName:b,config:{type:x.info,timeout:3e3},installed:!1,install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},o=void 0;if((0,v.default)(t,this.propertyName),this.installed)throw console.error(j.alreadyInstalled);r(t).major===w.evangelion&&(o="init"),r(t).major===w.ghostInTheShell&&(o="beforeCreate"),n[o]=function(){a.call(this,this.$options[_.propertyName],e)},t.mixin(n),u(this,this.type,e),this.installed=!0}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(_),e.default=_},function(t,e,n){t.exports={default:n(2),__esModule:!0}},function(t,e,n){n(3),t.exports=n(6).Object.assign},function(t,e,n){var o=n(4);o(o.S+o.F,"Object",{assign:n(9)})},function(t,e,n){var o=n(5),r=n(6),i=n(7),c="prototype",u=function(t,e,n){var s,f,a,l=t&u.F,p=t&u.G,d=t&u.S,y=t&u.P,h=t&u.B,v=t&u.W,g=p?r:r[e]||(r[e]={}),m=p?o:d?o[e]:(o[e]||{})[c];p&&(n=e);for(s in n)f=!l&&m&&s in m,f&&s in g||(a=f?m[s]:n[s],g[s]=p&&"function"!=typeof m[s]?n[s]:h&&f?i(a,o):v&&m[s]==a?function(t){var e=function(e){return this instanceof t?new t(e):t(e)};return e[c]=t[c],e}(a):y&&"function"==typeof a?i(Function.call,a):a,y&&((g[c]||(g[c]={}))[s]=a))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,t.exports=u},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=n)},function(t,e,n){var o=n(8);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var o=n(10),r=n(11),i=n(13);t.exports=n(15)(function(){var t=Object.assign,e={},n={},o=Symbol(),r="abcdefghijklmnopqrst";return e[o]=7,r.split("").forEach(function(t){n[t]=t}),7!=t({},e)[o]||Object.keys(t({},n)).join("")!=r})?function(t,e){for(var n=r(t),c=arguments,u=c.length,s=1,f=o.getKeys,a=o.getSymbols,l=o.isEnum;u>s;)for(var p,d=i(c[s++]),y=a?f(d).concat(a(d)):f(d),h=y.length,v=0;h>v;)l.call(d,p=y[v++])&&(n[p]=d[p]);return n}:Object.assign},function(t,e){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(t,e,n){var o=n(12);t.exports=function(t){return Object(o(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var o=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){t.exports={default:n(17),__esModule:!0}},function(t,e,n){n(18),t.exports=n(6).Object.keys},function(t,e,n){var o=n(11);n(19)("keys",function(t){return function(e){return t(o(e))}})},function(t,e,n){var o=n(4),r=n(6),i=n(15);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],c={};c[t]=e(n),o(o.S+o.F*i(function(){n(1)}),"Object",c)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){function n(){if(this[e])throw console.error('Override: property "'+e+'" is already defined');this[e]={};var t=this.$options,n=t[e];n?this[e]=n:t.parent&&t.parent[e]&&(this[e]=t.parent[e])}var o=t.prototype._init,r=t.prototype._destroy;t.prototype._init=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.init=t.init?[n].concat(t.init):n,o.call(this,t)},t.prototype._destroy=function(){this[e]&&(this[e]=void 0,delete this[e]),r.apply(this,arguments)}}}])}); +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("VueNotifications",[],e):"object"==typeof exports?exports.VueNotifications=e():t.VueNotifications=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t){var e=t.version.match(/(\d+)/g);return{major:+e[0],regular:+e[1],minor:+e[2]}}function i(t){var e=t.type,n=t.message,o=t.title,r=t.debugMsg,i="Title: "+o+", Message: "+n+", DebugMsg: "+r+", type: "+e;return e===x.error?console.error(i):e===x.warn?console.warn(i):e===x.success?console.info(i):console.log(i),i}function c(t,e){var n=e&&e[t.type]?e[t.type]:i;if(n(t),t.cb)return t.cb()}function u(t,e,n){(0,y.default)(e).forEach(function(o){t[e[o]]=function(t){return t.type=e[o],c(t,n)}})}function s(t,e,n){e.methods[t]?console.warn(j.methodNameConflict+t):e.methods[t]=f(t,e,n)}function f(t,e,n){return function(o){var r={};return(0,p.default)(r,_.config),(0,p.default)(r,e[_.propertyName][t]),(0,p.default)(r,o),c(r,n)}}function a(t,e){var n=this;t&&((0,y.default)(t).forEach(function(t){s(t,n.$options,e)}),this.$emit(m+"-initiated"))}Object.defineProperty(e,"__esModule",{value:!0});var l=n(1),p=o(l),d=n(16),y=o(d),h=n(20),v=o(h),g="VueNotifications",m="vue-notifications",b="notifications",x={error:"error",warn:"warn",info:"info",success:"success"},w={evangelion:1,ghostInTheShell:2},j={alreadyInstalled:g+": plugin already installed",methodNameConflict:g+": names conflict - "},_={type:x,propertyName:b,config:{type:x.info,timeout:3e3},installed:!1,install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},o=void 0;if((0,v.default)(t,this.propertyName),this.installed)throw console.error(j.alreadyInstalled);r(t).major===w.evangelion&&(o="init"),r(t).major===w.ghostInTheShell&&(o="beforeCreate"),n[o]=function(){a.call(this,this.$options[_.propertyName],e)},t.mixin(n),u(this,this.type,e),this.installed=!0}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(_),e.default=_},function(t,e,n){t.exports={default:n(2),__esModule:!0}},function(t,e,n){n(3),t.exports=n(6).Object.assign},function(t,e,n){var o=n(4);o(o.S+o.F,"Object",{assign:n(9)})},function(t,e,n){var o=n(5),r=n(6),i=n(7),c="prototype",u=function(t,e,n){var s,f,a,l=t&u.F,p=t&u.G,d=t&u.S,y=t&u.P,h=t&u.B,v=t&u.W,g=p?r:r[e]||(r[e]={}),m=p?o:d?o[e]:(o[e]||{})[c];p&&(n=e);for(s in n)f=!l&&m&&s in m,f&&s in g||(a=f?m[s]:n[s],g[s]=p&&"function"!=typeof m[s]?n[s]:h&&f?i(a,o):v&&m[s]==a?function(t){var e=function(e){return this instanceof t?new t(e):t(e)};return e[c]=t[c],e}(a):y&&"function"==typeof a?i(Function.call,a):a,y&&((g[c]||(g[c]={}))[s]=a))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,t.exports=u},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=n)},function(t,e,n){var o=n(8);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var o=n(10),r=n(11),i=n(13);t.exports=n(15)(function(){var t=Object.assign,e={},n={},o=Symbol(),r="abcdefghijklmnopqrst";return e[o]=7,r.split("").forEach(function(t){n[t]=t}),7!=t({},e)[o]||Object.keys(t({},n)).join("")!=r})?function(t,e){for(var n=r(t),c=arguments,u=c.length,s=1,f=o.getKeys,a=o.getSymbols,l=o.isEnum;u>s;)for(var p,d=i(c[s++]),y=a?f(d).concat(a(d)):f(d),h=y.length,v=0;h>v;)l.call(d,p=y[v++])&&(n[p]=d[p]);return n}:Object.assign},function(t,e){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(t,e,n){var o=n(12);t.exports=function(t){return Object(o(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var o=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){t.exports={default:n(17),__esModule:!0}},function(t,e,n){n(18),t.exports=n(6).Object.keys},function(t,e,n){var o=n(11);n(19)("keys",function(t){return function(e){return t(o(e))}})},function(t,e,n){var o=n(4),r=n(6),i=n(15);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],c={};c[t]=e(n),o(o.S+o.F*i(function(){n(1)}),"Object",c)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){function n(){if(this[e])throw console.error('Override: property "'+e+'" is already defined');this[e]={};var t=this.$options,n=t[e];n?this[e]=n:t.parent&&t.parent[e]&&(this[e]=t.parent[e])}var o=t.prototype._init,r=t.prototype._destroy;t.prototype._init=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.init=t.init?[n].concat(t.init):n,o.call(this,t)},t.prototype._destroy=function(){this[e]&&(this[e]=void 0,delete this[e]),r.apply(this,arguments)}}}])}); //# sourceMappingURL=vue-notifications.min.js.map diff --git a/dist/vue-notifications.min.js.map b/dist/vue-notifications.min.js.map index 370d7c4..4be8d9b 100644 --- a/dist/vue-notifications.min.js.map +++ b/dist/vue-notifications.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["vue-notifications.js"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","getVersion","Vue","version","match","major","regular","minor","showDefaultMessage","_ref","type","message","title","debugMsg","msg","TYPE","error","console","warn","success","info","log","showMessage","config","options","method","cb","addProtoMethods","targetObj","typesObj","_keys2","forEach","v","setMethod","name","pluginOptions","methods","MESSAGES","methodNameConflict","makeMethod","configName","newConfig","_assign2","VueNotifications","propertyName","initVueNotificationPlugin","notifications","_this","$options","$emit","PACKAGE_NAME","Object","defineProperty","value","_assign","_keys","_override","_override2","PLUGIN_NAME","PROPERTY_NAME","VUE_VERSION","evangelion","ghostInTheShell","alreadyInstalled","timeout","installed","install","arguments","length","undefined","mixin","hook","window","use","assign","$export","S","F","global","core","ctx","PROTOTYPE","source","key","own","out","IS_FORCED","IS_GLOBAL","G","IS_STATIC","IS_PROTO","P","IS_BIND","B","IS_WRAP","W","target","C","param","Function","Math","self","__g","__e","aFunction","fn","that","a","b","apply","it","TypeError","$","toObject","IObject","A","Symbol","K","split","k","keys","join","T","$$","$$len","index","getKeys","getSymbols","isEnum","concat","j","$Object","create","getProto","getPrototypeOf","propertyIsEnumerable","getDesc","getOwnPropertyDescriptor","setDesc","setDescs","defineProperties","getNames","getOwnPropertyNames","getOwnPropertySymbols","each","defined","cof","toString","slice","exec","e","$keys","fails","KEY","exp","customInit","keyOption","parent","_init","prototype","_destroy","init"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,gBAAZC,UAA0C,gBAAXC,QACxCA,OAAOD,QAAUD,IACQ,kBAAXG,SAAyBA,OAAOC,IAC9CD,OAAO,sBAAwBH,GACL,gBAAZC,SACdA,QAA0B,iBAAID,IAE9BD,EAAuB,iBAAIC,KAC1BK,KAAM,WACT,MAAgB,UAAUC,GAKhB,QAASC,GAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,MAAOC,GAAiBD,GAAUP,OAGnC,IAAIC,GAASO,EAAiBD,IAC7BP,WACAS,GAAIF,EACJG,QAAQ,EAUT,OANAL,GAAQE,GAAUI,KAAKV,EAAOD,QAASC,EAAQA,EAAOD,QAASM,GAG/DL,EAAOS,QAAS,EAGTT,EAAOD,QAvBf,GAAIQ,KAqCJ,OATAF,GAAoBM,EAAIP,EAGxBC,EA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AAID,EAAQE,EAAI2E,EAAM,WAAY/C,EAAG,KAAQ,SAAUiD,KAKpE,SAAS3K,EAAQD,GAEtB,YAEAqE,QAAOC,eAAetE,EAAS,cAC7BuE,OAAO,IAGTvE,EAAiB,QAAI,SAAUoB,EAAKiF,GAoBlC,QAASwE,KACP,GAAIzK,KAAKiG,GAAM,KAAMlE,SAAQD,MAAM,uBAA0BmE,EAAM,uBACnEjG,MAAKiG,KAEL,IAAI3D,GAAUtC,KAAK8D,SACf4G,EAAYpI,EAAQ2D,EAEpByE,GACF1K,KAAKiG,GAAOyE,EACHpI,EAAQqI,QAAUrI,EAAQqI,OAAO1E,KAC1CjG,KAAKiG,GAAO3D,EAAQqI,OAAO1E,IA7B/B,GAAI2E,GAAQ5J,EAAI6J,UAAUD,MACtBE,EAAW9J,EAAI6J,UAAUC,QAE7B9J,GAAI6J,UAAUD,MAAQ,WACpB,GAAItI,GAAU2C,UAAUC,OAAS,GAAsBC,SAAjBF,UAAU,GAAmBA,UAAU,KAE7E3C,GAAQyI,KAAOzI,EAAQyI,MAAQN,GAAY1B,OAAOzG,EAAQyI,MAAQN,EAClEG,EAAMrK,KAAKP,KAAMsC,IAGnBtB,EAAI6J,UAAUC,SAAW,WACnB9K,KAAKiG,KACPjG,KAAKiG,GAAOd,aACLnF,MAAKiG,IAGd6E,EAASnD,MAAM3H,KAAMiF","file":"vue-notifications.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"VueNotifications\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueNotifications\"] = factory();\n\telse\n\t\troot[\"VueNotifications\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n\n\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\n\tvar _assign = __webpack_require__(1);\n\n\tvar _assign2 = _interopRequireDefault(_assign);\n\n\tvar _keys = __webpack_require__(16);\n\n\tvar _keys2 = _interopRequireDefault(_keys);\n\n\tvar _override = __webpack_require__(20);\n\n\tvar _override2 = _interopRequireDefault(_override);\n\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n\tvar PLUGIN_NAME = 'VueNotifications';\n\tvar PACKAGE_NAME = 'vue-notifications';\n\tvar PROPERTY_NAME = 'notifications';\n\n\tvar TYPE = {\n\t error: 'error',\n\t warn: 'warn',\n\t info: 'info',\n\t success: 'success'\n\t};\n\n\tvar VUE_VERSION = {\n\t evangelion: 1,\n\t ghostInTheShell: 2\n\t};\n\n\tvar MESSAGES = {\n\t alreadyInstalled: PLUGIN_NAME + ': plugin already installed',\n\t methodNameConflict: PLUGIN_NAME + ': names conflict - '\n\t};\n\n\t/**\n\t * @param {Object} Vue\n\t * @return {Object}\n\t */\n\tfunction getVersion(Vue) {\n\t var version = Vue.version.match(/(\\d+)/g);\n\t return {\n\t major: +version[0],\n\t regular: +version[1],\n\t minor: +version[2]\n\t };\n\t}\n\n\t/**\n\t * @param {String} type\n\t * @param {String} message\n\t * @param {String} title\n\t * @param {String} debugMsg\n\t * @return {String}\n\t */\n\tfunction showDefaultMessage(_ref) {\n\t var type = _ref.type;\n\t var message = _ref.message;\n\t var title = _ref.title;\n\t var debugMsg = _ref.debugMsg;\n\n\t var msg = 'Title: ' + title + ', Message: ' + message + ', DebugMsg: ' + debugMsg + ', type: ' + type;\n\n\t if (type === TYPE.error) console.error(msg);else if (type === TYPE.warn) console.warn(msg);else if (type === TYPE.success) console.info(msg);else console.log(msg);\n\n\t return msg;\n\t}\n\n\t/**\n\t * @param {Object} config\n\t * @param {Object} options\n\t */\n\tfunction showMessage(config, options) {\n\t var method = options && options[config.type] ? options[config.type] : showDefaultMessage;\n\t method(config);\n\n\t if (config.cb) return config.cb();\n\t}\n\n\t/**\n\t * @param {Object} targetObj\n\t * @param {Object} typesObj\n\t * @param {Object} options\n\t * @return {undefined}\n\t * */\n\tfunction addProtoMethods(targetObj, typesObj, options) {\n\t (0, _keys2['default'])(typesObj).forEach(function (v) {\n\t debugger;\n\t targetObj[typesObj[v]] = function (config) {\n\t config.type = typesObj[v];\n\t return showMessage(config, options);\n\t };\n\t });\n\t}\n\n\t/**\n\t * @param {String} name\n\t * @param {Object} options\n\t * @param {Object} pluginOptions\n\t */\n\tfunction setMethod(name, options, pluginOptions) {\n\t if (options.methods[name]) throw console.error(MESSAGES.methodNameConflict + name);\n\t options.methods[name] = makeMethod(name, options, pluginOptions);\n\t}\n\n\t/**\n\t * @param {String} configName\n\t * @param {Object} options\n\t * @param {Object} pluginOptions\n\t * @return {Function}\n\t */\n\tfunction makeMethod(configName, options, pluginOptions) {\n\t return function (config) {\n\t var newConfig = {};\n\t (0, _assign2['default'])(newConfig, VueNotifications.config);\n\t (0, _assign2['default'])(newConfig, options[VueNotifications.propertyName][configName]);\n\t (0, _assign2['default'])(newConfig, config);\n\n\t return showMessage(newConfig, pluginOptions);\n\t };\n\t}\n\n\t/**\n\t * @param {Object} notifications\n\t * @param {Object} pluginOptions\n\t */\n\tfunction initVueNotificationPlugin(notifications, pluginOptions) {\n\t var _this = this;\n\n\t if (!notifications) return;\n\t (0, _keys2['default'])(notifications).forEach(function (name) {\n\t setMethod(name, _this.$options, pluginOptions);\n\t });\n\n\t this.$emit(PACKAGE_NAME + '-initiated');\n\t}\n\n\tvar VueNotifications = {\n\t type: TYPE,\n\t propertyName: PROPERTY_NAME,\n\t config: {\n\t type: TYPE.info,\n\t timeout: 3000\n\t },\n\t installed: false,\n\t /**\n\t * Plugin | vue-notifications\n\t * @param {Function} Vue\n\t * @param {Object} pluginOptions\n\t * @this VueNotifications\n\t */\n\t install: function install(Vue) {\n\t var pluginOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n\t var mixin = {};\n\t var hook = void 0;\n\n\t (0, _override2['default'])(Vue, this.propertyName);\n\n\t if (this.installed) throw console.error(MESSAGES.alreadyInstalled);\n\t if (getVersion(Vue).major === VUE_VERSION.evangelion) hook = 'init';\n\t if (getVersion(Vue).major === VUE_VERSION.ghostInTheShell) hook = 'beforeCreate';\n\n\t mixin[hook] = function () {\n\t initVueNotificationPlugin.call(this, this.$options[VueNotifications.propertyName], pluginOptions);\n\t };\n\n\t Vue.mixin(mixin);\n\t addProtoMethods(this, this.type, pluginOptions);\n\n\t this.installed = true;\n\t }\n\t};\n\n\tif (typeof window !== 'undefined' && window.Vue) {\n\t window.Vue.use(VueNotifications);\n\t}\n\n\n\texports['default'] = VueNotifications;\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(2), __esModule: true };\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(3);\n\tmodule.exports = __webpack_require__(6).Object.assign;\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.3.1 Object.assign(target, source)\n\tvar $export = __webpack_require__(4);\n\n\t$export($export.S + $export.F, 'Object', {assign: __webpack_require__(9)});\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(5)\n\t , core = __webpack_require__(6)\n\t , ctx = __webpack_require__(7)\n\t , PROTOTYPE = 'prototype';\n\n\tvar $export = function(type, name, source){\n\t var IS_FORCED = type & $export.F\n\t , IS_GLOBAL = type & $export.G\n\t , IS_STATIC = type & $export.S\n\t , IS_PROTO = type & $export.P\n\t , IS_BIND = type & $export.B\n\t , IS_WRAP = type & $export.W\n\t , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n\t , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n\t , key, own, out;\n\t if(IS_GLOBAL)source = name;\n\t for(key in source){\n\t // contains in native\n\t own = !IS_FORCED && target && key in target;\n\t if(own && key in exports)continue;\n\t // export native or passed\n\t out = own ? target[key] : source[key];\n\t // prevent global pollution for namespaces\n\t exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n\t // bind timers to global for call from export context\n\t : IS_BIND && own ? ctx(out, global)\n\t // wrap global constructors for prevent change them in library\n\t : IS_WRAP && target[key] == out ? (function(C){\n\t var F = function(param){\n\t return this instanceof C ? new C(param) : C(param);\n\t };\n\t F[PROTOTYPE] = C[PROTOTYPE];\n\t return F;\n\t // make static versions for prototype methods\n\t })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n\t if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n\t }\n\t};\n\t// type bitmap\n\t$export.F = 1; // forced\n\t$export.G = 2; // global\n\t$export.S = 4; // static\n\t$export.P = 8; // proto\n\t$export.B = 16; // bind\n\t$export.W = 32; // wrap\n\tmodule.exports = $export;\n\n/***/ },\n/* 5 */\n/***/ function(module, exports) {\n\n\t// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n\tvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n\t ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\n\tif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n/***/ },\n/* 6 */\n/***/ function(module, exports) {\n\n\tvar core = module.exports = {version: '1.2.6'};\n\tif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// optional / simple context binding\n\tvar aFunction = __webpack_require__(8);\n\tmodule.exports = function(fn, that, length){\n\t aFunction(fn);\n\t if(that === undefined)return fn;\n\t switch(length){\n\t case 1: return function(a){\n\t return fn.call(that, a);\n\t };\n\t case 2: return function(a, b){\n\t return fn.call(that, a, b);\n\t };\n\t case 3: return function(a, b, c){\n\t return fn.call(that, a, b, c);\n\t };\n\t }\n\t return function(/* ...args */){\n\t return fn.apply(that, arguments);\n\t };\n\t};\n\n/***/ },\n/* 8 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it){\n\t if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n\t return it;\n\t};\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.2.1 Object.assign(target, source, ...)\n\tvar $ = __webpack_require__(10)\n\t , toObject = __webpack_require__(11)\n\t , IObject = __webpack_require__(13);\n\n\t// should work with symbols and should have deterministic property order (V8 bug)\n\tmodule.exports = __webpack_require__(15)(function(){\n\t var a = Object.assign\n\t , A = {}\n\t , B = {}\n\t , S = Symbol()\n\t , K = 'abcdefghijklmnopqrst';\n\t A[S] = 7;\n\t K.split('').forEach(function(k){ B[k] = k; });\n\t return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n\t}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n\t var T = toObject(target)\n\t , $$ = arguments\n\t , $$len = $$.length\n\t , index = 1\n\t , getKeys = $.getKeys\n\t , getSymbols = $.getSymbols\n\t , isEnum = $.isEnum;\n\t while($$len > index){\n\t var S = IObject($$[index++])\n\t , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n\t , length = keys.length\n\t , j = 0\n\t , key;\n\t while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n\t }\n\t return T;\n\t} : Object.assign;\n\n/***/ },\n/* 10 */\n/***/ function(module, exports) {\n\n\tvar $Object = Object;\n\tmodule.exports = {\n\t create: $Object.create,\n\t getProto: $Object.getPrototypeOf,\n\t isEnum: {}.propertyIsEnumerable,\n\t getDesc: $Object.getOwnPropertyDescriptor,\n\t setDesc: $Object.defineProperty,\n\t setDescs: $Object.defineProperties,\n\t getKeys: $Object.keys,\n\t getNames: $Object.getOwnPropertyNames,\n\t getSymbols: $Object.getOwnPropertySymbols,\n\t each: [].forEach\n\t};\n\n/***/ },\n/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.1.13 ToObject(argument)\n\tvar defined = __webpack_require__(12);\n\tmodule.exports = function(it){\n\t return Object(defined(it));\n\t};\n\n/***/ },\n/* 12 */\n/***/ function(module, exports) {\n\n\t// 7.2.1 RequireObjectCoercible(argument)\n\tmodule.exports = function(it){\n\t if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n\t return it;\n\t};\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// fallback for non-array-like ES3 and non-enumerable old V8 strings\n\tvar cof = __webpack_require__(14);\n\tmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n\t return cof(it) == 'String' ? it.split('') : Object(it);\n\t};\n\n/***/ },\n/* 14 */\n/***/ function(module, exports) {\n\n\tvar toString = {}.toString;\n\n\tmodule.exports = function(it){\n\t return toString.call(it).slice(8, -1);\n\t};\n\n/***/ },\n/* 15 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(exec){\n\t try {\n\t return !!exec();\n\t } catch(e){\n\t return true;\n\t }\n\t};\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(17), __esModule: true };\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(18);\n\tmodule.exports = __webpack_require__(6).Object.keys;\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.2.14 Object.keys(O)\n\tvar toObject = __webpack_require__(11);\n\n\t__webpack_require__(19)('keys', function($keys){\n\t return function keys(it){\n\t return $keys(toObject(it));\n\t };\n\t});\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// most Object methods by ES6 should accept primitives\n\tvar $export = __webpack_require__(4)\n\t , core = __webpack_require__(6)\n\t , fails = __webpack_require__(15);\n\tmodule.exports = function(KEY, exec){\n\t var fn = (core.Object || {})[KEY] || Object[KEY]\n\t , exp = {};\n\t exp[KEY] = exec(fn);\n\t $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n\t};\n\n/***/ },\n/* 20 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\n\texports[\"default\"] = function (Vue, key) {\n\t var _init = Vue.prototype._init;\n\t var _destroy = Vue.prototype._destroy;\n\n\t Vue.prototype._init = function () {\n\t var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n\t options.init = options.init ? [customInit].concat(options.init) : customInit;\n\t _init.call(this, options);\n\t };\n\n\t Vue.prototype._destroy = function () {\n\t if (this[key]) {\n\t this[key] = undefined;\n\t delete this[key];\n\t }\n\n\t _destroy.apply(this, arguments);\n\t };\n\n\t function customInit() {\n\t if (this[key]) throw console.error(\"Override: property \\\"\" + key + \"\\\" is already defined\");\n\t this[key] = {};\n\n\t var options = this.$options;\n\t var keyOption = options[key];\n\n\t if (keyOption) {\n\t this[key] = keyOption;\n\t } else if (options.parent && options.parent[key]) {\n\t this[key] = options.parent[key];\n\t }\n\t }\n\t};\n\n/***/ }\n/******/ ])\n});\n;"],"sourceRoot":"/source/"} \ No newline at end of file +{"version":3,"sources":["vue-notifications.js"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","getVersion","Vue","version","match","major","regular","minor","showDefaultMessage","_ref","type","message","title","debugMsg","msg","TYPE","error","console","warn","success","info","log","showMessage","config","options","method","cb","addProtoMethods","targetObj","typesObj","_keys2","forEach","v","setMethod","name","pluginOptions","methods","MESSAGES","methodNameConflict","makeMethod","configName","newConfig","_assign2","VueNotifications","propertyName","initVueNotificationPlugin","notifications","_this","$options","$emit","PACKAGE_NAME","Object","defineProperty","value","_assign","_keys","_override","_override2","PLUGIN_NAME","PROPERTY_NAME","VUE_VERSION","evangelion","ghostInTheShell","alreadyInstalled","timeout","installed","install","arguments","length","undefined","mixin","hook","window","use","assign","$export","S","F","global","core","ctx","PROTOTYPE","source","key","own","out","IS_FORCED","IS_GLOBAL","G","IS_STATIC","IS_PROTO","P","IS_BIND","B","IS_WRAP","W","target","C","param","Function","Math","self","__g","__e","aFunction","fn","that","a","b","apply","it","TypeError","$","toObject","IObject","A","Symbol","K","split","k","keys","join","T","$$","$$len","index","getKeys","getSymbols","isEnum","concat","j","$Object","create","getProto","getPrototypeOf","propertyIsEnumerable","getDesc","getOwnPropertyDescriptor","setDesc","setDescs","defineProperties","getNames","getOwnPropertyNames","getOwnPropertySymbols","each","defined","cof","toString","slice","exec","e","$keys","fails","KEY","exp","customInit","keyOption","parent","_init","prototype","_destroy","init"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,gBAAZC,UAA0C,gBAAXC,QACxCA,OAAOD,QAAUD,IACQ,kBA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iG,IAGd6E,EAASnD,MAAM3H,KAAMiF","file":"vue-notifications.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"VueNotifications\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueNotifications\"] = factory();\n\telse\n\t\troot[\"VueNotifications\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n\n\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\n\tvar _assign = __webpack_require__(1);\n\n\tvar _assign2 = _interopRequireDefault(_assign);\n\n\tvar _keys = __webpack_require__(16);\n\n\tvar _keys2 = _interopRequireDefault(_keys);\n\n\tvar _override = __webpack_require__(20);\n\n\tvar _override2 = _interopRequireDefault(_override);\n\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n\tvar PLUGIN_NAME = 'VueNotifications';\n\tvar PACKAGE_NAME = 'vue-notifications';\n\tvar PROPERTY_NAME = 'notifications';\n\n\tvar TYPE = {\n\t error: 'error',\n\t warn: 'warn',\n\t info: 'info',\n\t success: 'success'\n\t};\n\n\tvar VUE_VERSION = {\n\t evangelion: 1,\n\t ghostInTheShell: 2\n\t};\n\n\tvar MESSAGES = {\n\t alreadyInstalled: PLUGIN_NAME + ': plugin already installed',\n\t methodNameConflict: PLUGIN_NAME + ': names conflict - '\n\t};\n\n\t/**\n\t * @param {Object} Vue\n\t * @return {Object}\n\t */\n\tfunction getVersion(Vue) {\n\t var version = Vue.version.match(/(\\d+)/g);\n\t return {\n\t major: +version[0],\n\t regular: +version[1],\n\t minor: +version[2]\n\t };\n\t}\n\n\t/**\n\t * @param {String} type\n\t * @param {String} message\n\t * @param {String} title\n\t * @param {String} debugMsg\n\t * @return {String}\n\t */\n\tfunction showDefaultMessage(_ref) {\n\t var type = _ref.type;\n\t var message = _ref.message;\n\t var title = _ref.title;\n\t var debugMsg = _ref.debugMsg;\n\n\t var msg = 'Title: ' + title + ', Message: ' + message + ', DebugMsg: ' + debugMsg + ', type: ' + type;\n\n\t if (type === TYPE.error) console.error(msg);else if (type === TYPE.warn) console.warn(msg);else if (type === TYPE.success) console.info(msg);else console.log(msg);\n\n\t return msg;\n\t}\n\n\t/**\n\t * @param {Object} config\n\t * @param {Object} options\n\t */\n\tfunction showMessage(config, options) {\n\t var method = options && options[config.type] ? options[config.type] : showDefaultMessage;\n\t method(config);\n\n\t if (config.cb) return config.cb();\n\t}\n\n\t/**\n\t * @param {Object} targetObj\n\t * @param {Object} typesObj\n\t * @param {Object} options\n\t * @return {undefined}\n\t * */\n\tfunction addProtoMethods(targetObj, typesObj, options) {\n\t (0, _keys2['default'])(typesObj).forEach(function (v) {\n\t targetObj[typesObj[v]] = function (config) {\n\t config.type = typesObj[v];\n\t return showMessage(config, options);\n\t };\n\t });\n\t}\n\n\t/**\n\t * @param {String} name\n\t * @param {Object} options\n\t * @param {Object} pluginOptions\n\t */\n\tfunction setMethod(name, options, pluginOptions) {\n\t // TODO (S.Panfilov)not sure - error or warn here\n\t // if (options.methods[name]) throw console.error(MESSAGES.methodNameConflict + name)\n\t if (options.methods[name]) {\n\t console.warn(MESSAGES.methodNameConflict + name);\n\t } else {\n\t options.methods[name] = makeMethod(name, options, pluginOptions);\n\t }\n\t}\n\n\t/**\n\t * @param {String} configName\n\t * @param {Object} options\n\t * @param {Object} pluginOptions\n\t * @return {Function}\n\t */\n\tfunction makeMethod(configName, options, pluginOptions) {\n\t return function (config) {\n\t var newConfig = {};\n\t (0, _assign2['default'])(newConfig, VueNotifications.config);\n\t (0, _assign2['default'])(newConfig, options[VueNotifications.propertyName][configName]);\n\t (0, _assign2['default'])(newConfig, config);\n\n\t return showMessage(newConfig, pluginOptions);\n\t };\n\t}\n\n\t/**\n\t * @param {Object} notifications\n\t * @param {Object} pluginOptions\n\t */\n\tfunction initVueNotificationPlugin(notifications, pluginOptions) {\n\t var _this = this;\n\n\t if (!notifications) return;\n\t (0, _keys2['default'])(notifications).forEach(function (name) {\n\t setMethod(name, _this.$options, pluginOptions);\n\t });\n\n\t this.$emit(PACKAGE_NAME + '-initiated');\n\t}\n\n\tvar VueNotifications = {\n\t type: TYPE,\n\t propertyName: PROPERTY_NAME,\n\t config: {\n\t type: TYPE.info,\n\t timeout: 3000\n\t },\n\t installed: false,\n\t /**\n\t * Plugin | vue-notifications\n\t * @param {Function} Vue\n\t * @param {Object} pluginOptions\n\t * @this VueNotifications\n\t */\n\t install: function install(Vue) {\n\t var pluginOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n\t var mixin = {};\n\t var hook = void 0;\n\n\t (0, _override2['default'])(Vue, this.propertyName);\n\n\t if (this.installed) throw console.error(MESSAGES.alreadyInstalled);\n\t if (getVersion(Vue).major === VUE_VERSION.evangelion) hook = 'init';\n\t if (getVersion(Vue).major === VUE_VERSION.ghostInTheShell) hook = 'beforeCreate';\n\n\t mixin[hook] = function () {\n\t initVueNotificationPlugin.call(this, this.$options[VueNotifications.propertyName], pluginOptions);\n\t };\n\n\t Vue.mixin(mixin);\n\t addProtoMethods(this, this.type, pluginOptions);\n\n\t this.installed = true;\n\t }\n\t};\n\n\tif (typeof window !== 'undefined' && window.Vue) {\n\t window.Vue.use(VueNotifications);\n\t}\n\n\n\texports['default'] = VueNotifications;\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(2), __esModule: true };\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(3);\n\tmodule.exports = __webpack_require__(6).Object.assign;\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.3.1 Object.assign(target, source)\n\tvar $export = __webpack_require__(4);\n\n\t$export($export.S + $export.F, 'Object', {assign: __webpack_require__(9)});\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(5)\n\t , core = __webpack_require__(6)\n\t , ctx = __webpack_require__(7)\n\t , PROTOTYPE = 'prototype';\n\n\tvar $export = function(type, name, source){\n\t var IS_FORCED = type & $export.F\n\t , IS_GLOBAL = type & $export.G\n\t , IS_STATIC = type & $export.S\n\t , IS_PROTO = type & $export.P\n\t , IS_BIND = type & $export.B\n\t , IS_WRAP = type & $export.W\n\t , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n\t , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n\t , key, own, out;\n\t if(IS_GLOBAL)source = name;\n\t for(key in source){\n\t // contains in native\n\t own = !IS_FORCED && target && key in target;\n\t if(own && key in exports)continue;\n\t // export native or passed\n\t out = own ? target[key] : source[key];\n\t // prevent global pollution for namespaces\n\t exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n\t // bind timers to global for call from export context\n\t : IS_BIND && own ? ctx(out, global)\n\t // wrap global constructors for prevent change them in library\n\t : IS_WRAP && target[key] == out ? (function(C){\n\t var F = function(param){\n\t return this instanceof C ? new C(param) : C(param);\n\t };\n\t F[PROTOTYPE] = C[PROTOTYPE];\n\t return F;\n\t // make static versions for prototype methods\n\t })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n\t if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n\t }\n\t};\n\t// type bitmap\n\t$export.F = 1; // forced\n\t$export.G = 2; // global\n\t$export.S = 4; // static\n\t$export.P = 8; // proto\n\t$export.B = 16; // bind\n\t$export.W = 32; // wrap\n\tmodule.exports = $export;\n\n/***/ },\n/* 5 */\n/***/ function(module, exports) {\n\n\t// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n\tvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n\t ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\n\tif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n/***/ },\n/* 6 */\n/***/ function(module, exports) {\n\n\tvar core = module.exports = {version: '1.2.6'};\n\tif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// optional / simple context binding\n\tvar aFunction = __webpack_require__(8);\n\tmodule.exports = function(fn, that, length){\n\t aFunction(fn);\n\t if(that === undefined)return fn;\n\t switch(length){\n\t case 1: return function(a){\n\t return fn.call(that, a);\n\t };\n\t case 2: return function(a, b){\n\t return fn.call(that, a, b);\n\t };\n\t case 3: return function(a, b, c){\n\t return fn.call(that, a, b, c);\n\t };\n\t }\n\t return function(/* ...args */){\n\t return fn.apply(that, arguments);\n\t };\n\t};\n\n/***/ },\n/* 8 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it){\n\t if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n\t return it;\n\t};\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.2.1 Object.assign(target, source, ...)\n\tvar $ = __webpack_require__(10)\n\t , toObject = __webpack_require__(11)\n\t , IObject = __webpack_require__(13);\n\n\t// should work with symbols and should have deterministic property order (V8 bug)\n\tmodule.exports = __webpack_require__(15)(function(){\n\t var a = Object.assign\n\t , A = {}\n\t , B = {}\n\t , S = Symbol()\n\t , K = 'abcdefghijklmnopqrst';\n\t A[S] = 7;\n\t K.split('').forEach(function(k){ B[k] = k; });\n\t return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n\t}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n\t var T = toObject(target)\n\t , $$ = arguments\n\t , $$len = $$.length\n\t , index = 1\n\t , getKeys = $.getKeys\n\t , getSymbols = $.getSymbols\n\t , isEnum = $.isEnum;\n\t while($$len > index){\n\t var S = IObject($$[index++])\n\t , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n\t , length = keys.length\n\t , j = 0\n\t , key;\n\t while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n\t }\n\t return T;\n\t} : Object.assign;\n\n/***/ },\n/* 10 */\n/***/ function(module, exports) {\n\n\tvar $Object = Object;\n\tmodule.exports = {\n\t create: $Object.create,\n\t getProto: $Object.getPrototypeOf,\n\t isEnum: {}.propertyIsEnumerable,\n\t getDesc: $Object.getOwnPropertyDescriptor,\n\t setDesc: $Object.defineProperty,\n\t setDescs: $Object.defineProperties,\n\t getKeys: $Object.keys,\n\t getNames: $Object.getOwnPropertyNames,\n\t getSymbols: $Object.getOwnPropertySymbols,\n\t each: [].forEach\n\t};\n\n/***/ },\n/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.1.13 ToObject(argument)\n\tvar defined = __webpack_require__(12);\n\tmodule.exports = function(it){\n\t return Object(defined(it));\n\t};\n\n/***/ },\n/* 12 */\n/***/ function(module, exports) {\n\n\t// 7.2.1 RequireObjectCoercible(argument)\n\tmodule.exports = function(it){\n\t if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n\t return it;\n\t};\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// fallback for non-array-like ES3 and non-enumerable old V8 strings\n\tvar cof = __webpack_require__(14);\n\tmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n\t return cof(it) == 'String' ? it.split('') : Object(it);\n\t};\n\n/***/ },\n/* 14 */\n/***/ function(module, exports) {\n\n\tvar toString = {}.toString;\n\n\tmodule.exports = function(it){\n\t return toString.call(it).slice(8, -1);\n\t};\n\n/***/ },\n/* 15 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(exec){\n\t try {\n\t return !!exec();\n\t } catch(e){\n\t return true;\n\t }\n\t};\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(17), __esModule: true };\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(18);\n\tmodule.exports = __webpack_require__(6).Object.keys;\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.2.14 Object.keys(O)\n\tvar toObject = __webpack_require__(11);\n\n\t__webpack_require__(19)('keys', function($keys){\n\t return function keys(it){\n\t return $keys(toObject(it));\n\t };\n\t});\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// most Object methods by ES6 should accept primitives\n\tvar $export = __webpack_require__(4)\n\t , core = __webpack_require__(6)\n\t , fails = __webpack_require__(15);\n\tmodule.exports = function(KEY, exec){\n\t var fn = (core.Object || {})[KEY] || Object[KEY]\n\t , exp = {};\n\t exp[KEY] = exec(fn);\n\t $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n\t};\n\n/***/ },\n/* 20 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\n\texports[\"default\"] = function (Vue, key) {\n\t var _init = Vue.prototype._init;\n\t var _destroy = Vue.prototype._destroy;\n\n\t Vue.prototype._init = function () {\n\t var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n\t options.init = options.init ? [customInit].concat(options.init) : customInit;\n\t _init.call(this, options);\n\t };\n\n\t Vue.prototype._destroy = function () {\n\t if (this[key]) {\n\t this[key] = undefined;\n\t delete this[key];\n\t }\n\n\t _destroy.apply(this, arguments);\n\t };\n\n\t function customInit() {\n\t if (this[key]) throw console.error(\"Override: property \\\"\" + key + \"\\\" is already defined\");\n\t this[key] = {};\n\n\t var options = this.$options;\n\t var keyOption = options[key];\n\n\t if (keyOption) {\n\t this[key] = keyOption;\n\t } else if (options.parent && options.parent[key]) {\n\t this[key] = options.parent[key];\n\t }\n\t }\n\t};\n\n/***/ }\n/******/ ])\n});\n;"],"sourceRoot":"/source/"} \ No newline at end of file diff --git a/src/main.js b/src/main.js index e429949..2259ace 100644 --- a/src/main.js +++ b/src/main.js @@ -71,7 +71,6 @@ function showMessage (config, options) { * */ function addProtoMethods (targetObj, typesObj, options) { Object.keys(typesObj).forEach(v => { - debugger targetObj[typesObj[v]] = function (config) { config.type = typesObj[v] return showMessage(config, options) @@ -85,8 +84,13 @@ function addProtoMethods (targetObj, typesObj, options) { * @param {Object} pluginOptions */ function setMethod (name, options, pluginOptions) { - if (options.methods[name]) throw console.error(MESSAGES.methodNameConflict + name) - options.methods[name] = makeMethod(name, options, pluginOptions) + // TODO (S.Panfilov)not sure - error or warn here + // if (options.methods[name]) throw console.error(MESSAGES.methodNameConflict + name) + if (options.methods[name]) { + console.warn(MESSAGES.methodNameConflict + name) + } else { + options.methods[name] = makeMethod(name, options, pluginOptions) + } } /**