From c822a121973e9b15fc5d188776451f2e68fa3dcc Mon Sep 17 00:00:00 2001 From: Davor Grubelic Date: Sat, 10 Jun 2017 14:00:40 +0200 Subject: [PATCH] Repackaged library --- .vscode/settings.json | 3 +++ bower.json | 2 +- dist/vue-authenticate.common.js | 6 +++--- dist/vue-authenticate.es2015.js | 6 +++--- dist/vue-authenticate.js | 6 +++--- dist/vue-authenticate.min.js | 4 ++-- example/vue-authenticate.js | 6 +++--- package.json | 2 +- 8 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..a92f73f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "eslint.enable": false +} \ No newline at end of file diff --git a/bower.json b/bower.json index ee48356..53a3cdb 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "vue-authenticate", - "version": "1.2.6", + "version": "1.2.7", "main": "dist/vue-authenticate.js", "homepage": "https://github.com/dgrubelic/vue-authenticate", "ignore": [ diff --git a/dist/vue-authenticate.common.js b/dist/vue-authenticate.common.js index 0358df9..1657311 100644 --- a/dist/vue-authenticate.common.js +++ b/dist/vue-authenticate.common.js @@ -1,5 +1,5 @@ /*! - * vue-authenticate v1.2.5 + * vue-authenticate v1.2.7 * https://github.com/dgrubelic/vue-authenticate * Released under the MIT License. */ @@ -1072,8 +1072,8 @@ var VueAuthenticate = function VueAuthenticate($http, overrideOptions) { if (this.options.bindRequestInterceptor && isFunction(this.options.bindRequestInterceptor) && this.options.bindResponseInterceptor && isFunction(this.options.bindResponseInterceptor)) { - this.options.bindRequestInterceptor.call(this); - this.options.bindResponseInterceptor.call(this); + this.options.bindRequestInterceptor.call(this, this); + this.options.bindResponseInterceptor.call(this, this); } else { // By default, request and response interceptors are for vue-resource this.$http.interceptors.push(function (request, next) { diff --git a/dist/vue-authenticate.es2015.js b/dist/vue-authenticate.es2015.js index 131d9b3..e4810ae 100644 --- a/dist/vue-authenticate.es2015.js +++ b/dist/vue-authenticate.es2015.js @@ -1,5 +1,5 @@ /*! - * vue-authenticate v1.2.5 + * vue-authenticate v1.2.7 * https://github.com/dgrubelic/vue-authenticate * Released under the MIT License. */ @@ -1070,8 +1070,8 @@ var VueAuthenticate = function VueAuthenticate($http, overrideOptions) { if (this.options.bindRequestInterceptor && isFunction(this.options.bindRequestInterceptor) && this.options.bindResponseInterceptor && isFunction(this.options.bindResponseInterceptor)) { - this.options.bindRequestInterceptor.call(this); - this.options.bindResponseInterceptor.call(this); + this.options.bindRequestInterceptor.call(this, this); + this.options.bindResponseInterceptor.call(this, this); } else { // By default, request and response interceptors are for vue-resource this.$http.interceptors.push(function (request, next) { diff --git a/dist/vue-authenticate.js b/dist/vue-authenticate.js index b17aac1..c7f2444 100644 --- a/dist/vue-authenticate.js +++ b/dist/vue-authenticate.js @@ -1,5 +1,5 @@ /*! - * vue-authenticate v1.2.5 + * vue-authenticate v1.2.7 * https://github.com/dgrubelic/vue-authenticate * Released under the MIT License. */ @@ -1076,8 +1076,8 @@ var VueAuthenticate = function VueAuthenticate($http, overrideOptions) { if (this.options.bindRequestInterceptor && isFunction(this.options.bindRequestInterceptor) && this.options.bindResponseInterceptor && isFunction(this.options.bindResponseInterceptor)) { - this.options.bindRequestInterceptor.call(this); - this.options.bindResponseInterceptor.call(this); + this.options.bindRequestInterceptor.call(this, this); + this.options.bindResponseInterceptor.call(this, this); } else { // By default, request and response interceptors are for vue-resource this.$http.interceptors.push(function (request, next) { diff --git a/dist/vue-authenticate.min.js b/dist/vue-authenticate.min.js index befb771..3f8453f 100644 --- a/dist/vue-authenticate.min.js +++ b/dist/vue-authenticate.min.js @@ -1,7 +1,7 @@ /*! - * vue-authenticate v1.2.5 + * vue-authenticate v1.2.7 * https://github.com/dgrubelic/vue-authenticate * Released under the MIT License. */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueAuthenticate=e()}(this,function(){"use strict";function t(t){return t.replace(/([\:\-\_]+(.))/g,function(t,e,o,r){return r?o.toUpperCase():o})}function e(t){return null!==t&&"object"==typeof t}function o(t){return"string"==typeof t}function r(t){return"function"==typeof t}function n(t,e){return null==t||null==e?t:(Object.keys(e).forEach(function(o){"[object Object]"==Object.prototype.toString.call(e[o])?"[object Object]"!=Object.prototype.toString.call(t[o])?t[o]=e[o]:t[o]=n(t[o],e[o]):t[o]=e[o]}),t)}function i(t,e){if(/^(?:[a-z]+:)?\/\//i.test(e))return e;var o=[t,e].join("/");return function(t){return t.replace(/[\/]+/g,"/").replace(/\/\?/g,"?").replace(/\/\#/g,"#").replace(/\:\//g,"://")}(o)}function s(t){var e="https:"===t.protocol;return t.protocol+"//"+t.hostname+":"+(t.port||(e?"443":"80"))+(/^\//.test(t.pathname)?t.pathname:"/"+t.pathname)}function a(t){var e,o,r={};return(t||"").split("&").forEach(function(t){t&&(o=t.split("="),e=decodeURIComponent(o[0]),r[e]=!o[1]||decodeURIComponent(o[1]))}),r}function p(t){var e;if("undefined"!=typeof module&&module.exports)try{e=require("buffer").Buffer}catch(t){}var o=String.fromCharCode,r=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),n=function(t){switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return o(55296+(r>>>10))+o(56320+(1023&r));case 3:return o((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return o((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},i=function(t){return t.replace(r,n)};return(e?function(t){return(t.constructor===e.constructor?t:new e(t,"base64")).toString()}:function(t){return i(atob(t))})(String(t).replace(/[-_]/g,function(t){return"-"===t?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))}function u(){}function c(t,e){return function(){t.apply(e,arguments)}}function l(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],v(t,this)}function h(t,e){for(;3===t._state;)t=t._value;if(0===t._state)return void t._deferreds.push(e);t._handled=!0,l._immediateFn(function(){var o=1===t._state?e.onFulfilled:e.onRejected;if(null===o)return void(1===t._state?d:f)(e.promise,t._value);var r;try{r=o(t._value)}catch(t){return void f(e.promise,t)}d(e.promise,r)})}function d(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var o=e.then;if(e instanceof l)return t._state=3,t._value=e,void g(t);if("function"==typeof o)return void v(c(o,e),t)}t._state=1,t._value=e,g(t)}catch(e){f(t,e)}}function f(t,e){t._state=2,t._value=e,g(t)}function g(t){2===t._state&&0===t._deferreds.length&&l._immediateFn(function(){t._handled||l._unhandledRejectionFn(t._value)});for(var e=0,o=t._deferreds.length;e>>10))+o(56320+(1023&r));case 3:return o((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return o((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},i=function(t){return t.replace(r,n)};return(e?function(t){return(t.constructor===e.constructor?t:new e(t,"base64")).toString()}:function(t){return i(atob(t))})(String(t).replace(/[-_]/g,function(t){return"-"===t?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))}function u(){}function c(t,e){return function(){t.apply(e,arguments)}}function l(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],v(t,this)}function h(t,e){for(;3===t._state;)t=t._value;if(0===t._state)return void t._deferreds.push(e);t._handled=!0,l._immediateFn(function(){var o=1===t._state?e.onFulfilled:e.onRejected;if(null===o)return void(1===t._state?d:f)(e.promise,t._value);var r;try{r=o(t._value)}catch(t){return void f(e.promise,t)}d(e.promise,r)})}function d(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var o=e.then;if(e instanceof l)return t._state=3,t._value=e,void g(t);if("function"==typeof o)return void v(c(o,e),t)}t._state=1,t._value=e,g(t)}catch(e){f(t,e)}}function f(t,e){t._state=2,t._value=e,g(t)}function g(t){2===t._state&&0===t._deferreds.length&&l._immediateFn(function(){t._handled||l._unhandledRejectionFn(t._value)});for(var e=0,o=t._deferreds.length;e