vue-gitlab-api
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -10,2 +10,6 @@ # Changelog | ||
## 0.1.4 - 2016-10-25 | ||
### Added | ||
- One can now send in a callback function to customize behavior on requests errors | ||
## 0.1.3 - 2016-10-25 | ||
@@ -37,2 +41,2 @@ ### Fixed | ||
[Unreleased]: https://gitlab.com/clorichel/vue-gitlab-api/compare/v0.1.3...master | ||
[Unreleased]: https://gitlab.com/clorichel/vue-gitlab-api/compare/v0.1.4...master |
@@ -1,2 +0,2 @@ | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.GitLabAPI=n():t.GitLabAPI=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};return n.m=t,n.c=e,n.p="/",n(0)}([function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var o=e(39),i=r(o);!function(){function e(t,n){var e="https://gitlab.com",r="you MUST provide your private token";"undefined"!=typeof n&&("undefined"!=typeof n.token&&(r=n.token),"undefined"!=typeof n.url&&(e=n.url.replace(/\/$/,"")));var o=e+"/api/v3";t.prototype.GitLabAPI={setUrl:function(t){"undefined"==typeof t?(console.warn("[vue-gitlab-api] This GitLab instance URL may not be correct"),e=""):e=t.replace(/\/$/,""),o=e+"/api/v3"},setToken:function(t){return"undefined"==typeof t||null==t||""===t?void console.error("[vue-gitlab-api] You MUST provide a non empty token to consume GitLab API"):void(r=t)},get:function(n,e,i){return"undefined"==typeof i||null==i||"undefined"==typeof i.__ob__||!(i instanceof Array)||i.length>0?void console.error("[vue-gitlab-api] You MUST define the Vue data you want to fill as an empty array"):(n=n.replace(/^\/?/,"/"),void t.http.get(o+n,{headers:{"PRIVATE-TOKEN":r},params:e}).then(function(t){i.length=0;for(var n=t.body.length-1;n>=0;n--)i.push(t.body[n])},function(t){console.error("[vue-gitlab-api] GET "+n+" failed on "+o+' with token "'+r+'"')}))}}}"object"===(0,i["default"])(n)&&(t.exports=e)}()},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(48),o=e(15);t.exports=function(t){return r(o(t))}},function(t,n,e){t.exports=!e(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(6),o=e(12);t.exports=e(4)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(8),o=e(30),i=e(24),u=Object.defineProperty;n.f=e(4)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(f){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(22)("wks"),o=e(13),i=e(1).Symbol,u="function"==typeof i,f=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};f.store=r},function(t,n,e){var r=e(10);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(35),o=e(16);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){t.exports={}},function(t,n){t.exports=!0},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(6).f,o=e(2),i=e(7)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(22)("keys"),o=e(13);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(1),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(10);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(1),o=e(14),i=e(18),u=e(26),f=e(6).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||f(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(7)},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(10),o=e(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){var r=e(1),o=e(14),i=e(45),u=e(5),f="prototype",c=function(t,n,e){var a,s,p,l=t&c.F,y=t&c.G,v=t&c.S,d=t&c.P,h=t&c.B,b=t&c.W,m=y?o:o[n]||(o[n]={}),g=m[f],x=y?r:v?r[n]:(r[n]||{})[f];y&&(e=n);for(a in e)s=!l&&x&&void 0!==x[a],s&&a in m||(p=s?x[a]:e[a],m[a]=y&&"function"!=typeof x[a]?e[a]:h&&s?i(p,r):b&&x[a]==p?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[f]=t[f],n}(p):d&&"function"==typeof p?i(Function.call,p):p,d&&((m.virtual||(m.virtual={}))[a]=p,t&c.R&&g&&!g[a]&&u(g,a,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n,e){t.exports=!e(4)&&!e(9)(function(){return 7!=Object.defineProperty(e(28)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){"use strict";var r=e(18),o=e(29),i=e(36),u=e(5),f=e(2),c=e(17),a=e(50),s=e(20),p=e(57),l=e(7)("iterator"),y=!([].keys&&"next"in[].keys()),v="@@iterator",d="keys",h="values",b=function(){return this};t.exports=function(t,n,e,m,g,x,O){a(e,n,m);var w,S,_,j=function(t){if(!y&&t in M)return M[t];switch(t){case d:return function(){return new e(this,t)};case h:return function(){return new e(this,t)}}return function(){return new e(this,t)}},P=n+" Iterator",E=g==h,k=!1,M=t.prototype,T=M[l]||M[v]||g&&M[g],A=T||j(g),I=g?E?j("entries"):A:void 0,F="Array"==n?M.entries||T:T;if(F&&(_=p(F.call(new t)),_!==Object.prototype&&(s(_,P,!0),r||f(_,l)||u(_,l,b))),E&&T&&T.name!==h&&(k=!0,A=function(){return T.call(this)}),r&&!O||!y&&!k&&M[l]||u(M,l,A),c[n]=A,c[P]=b,g)if(w={values:E?A:j(h),keys:x?A:j(d),entries:I},O)for(S in w)S in M||i(M,S,w[S]);else o(o.P+o.F*(y||k),n,w);return w}},function(t,n,e){var r=e(8),o=e(54),i=e(16),u=e(21)("IE_PROTO"),f=function(){},c="prototype",a=function(){var t,n=e(28)("iframe"),r=i.length,o="<",u=">";for(n.style.display="none",e(47).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),a=t.F;r--;)delete a[c][i[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(f[c]=r(t),e=new f,f[c]=null,e[u]=t):e=a(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(35),o=e(16).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(2),o=e(3),i=e(44)(!1),u=e(21)("IE_PROTO");t.exports=function(t,n){var e,f=o(t),c=0,a=[];for(e in f)e!=u&&r(f,e)&&a.push(e);for(;n.length>c;)r(f,e=n[c++])&&(~i(a,e)||a.push(e));return a}},function(t,n,e){t.exports=e(5)},function(t,n,e){t.exports={"default":e(40),__esModule:!0}},function(t,n,e){t.exports={"default":e(41),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var o=e(38),i=r(o),u=e(37),f=r(u),c="function"==typeof f["default"]&&"symbol"==typeof i["default"]?function(t){return typeof t}:function(t){return t&&"function"==typeof f["default"]&&t.constructor===f["default"]&&t!==f["default"].prototype?"symbol":typeof t};n["default"]="function"==typeof f["default"]&&"symbol"===c(i["default"])?function(t){return"undefined"==typeof t?"undefined":c(t)}:function(t){return t&&"function"==typeof f["default"]&&t.constructor===f["default"]&&t!==f["default"].prototype?"symbol":"undefined"==typeof t?"undefined":c(t)}},function(t,n,e){e(65),e(63),e(66),e(67),t.exports=e(14).Symbol},function(t,n,e){e(64),e(68),t.exports=e(26).f("iterator")},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){t.exports=function(){}},function(t,n,e){var r=e(3),o=e(60),i=e(59);t.exports=function(t){return function(n,e,u){var f,c=r(n),a=o(c.length),s=i(u,a);if(t&&e!=e){for(;a>s;)if(f=c[s++],f!=f)return!0}else for(;a>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(42);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(11),o=e(34),i=e(19);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,f=e(t),c=i.f,a=0;f.length>a;)c.call(t,u=f[a++])&&n.push(u);return n}},function(t,n,e){t.exports=e(1).document&&document.documentElement},function(t,n,e){var r=e(27);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(27);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){"use strict";var r=e(32),o=e(12),i=e(20),u={};e(5)(u,e(7)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(11),o=e(3);t.exports=function(t,n){for(var e,i=o(t),u=r(i),f=u.length,c=0;f>c;)if(i[e=u[c++]]===n)return e}},function(t,n,e){var r=e(13)("meta"),o=e(10),i=e(2),u=e(6).f,f=0,c=Object.isExtensible||function(){return!0},a=!e(9)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++f,w:{}}})},p=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!n)return"E";s(t)}return t[r].i},l=function(t,n){if(!i(t,r)){if(!c(t))return!0;if(!n)return!1;s(t)}return t[r].w},y=function(t){return a&&v.NEED&&c(t)&&!i(t,r)&&s(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:p,getWeak:l,onFreeze:y}},function(t,n,e){var r=e(6),o=e(8),i=e(11);t.exports=e(4)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),f=u.length,c=0;f>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(19),o=e(12),i=e(3),u=e(24),f=e(2),c=e(30),a=Object.getOwnPropertyDescriptor;n.f=e(4)?a:function(t,n){if(t=i(t),n=u(n,!0),c)try{return a(t,n)}catch(e){}if(f(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(3),o=e(33).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(t){try{return o(t)}catch(n){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?f(t):o(r(t))}},function(t,n,e){var r=e(2),o=e(61),i=e(21)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(23),o=e(15);t.exports=function(t){return function(n,e){var i,u,f=String(o(n)),c=r(e),a=f.length;return c<0||c>=a?t?"":void 0:(i=f.charCodeAt(c),i<55296||i>56319||c+1===a||(u=f.charCodeAt(c+1))<56320||u>57343?t?f.charAt(c):i:t?f.slice(c,c+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,n,e){var r=e(23),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(23),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(15);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";var r=e(43),o=e(51),i=e(17),u=e(3);t.exports=e(31)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){},function(t,n,e){"use strict";var r=e(58)(!0);e(31)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(1),o=e(2),i=e(4),u=e(29),f=e(36),c=e(53).KEY,a=e(9),s=e(22),p=e(20),l=e(13),y=e(7),v=e(26),d=e(25),h=e(52),b=e(46),m=e(49),g=e(8),x=e(3),O=e(24),w=e(12),S=e(32),_=e(56),j=e(55),P=e(6),E=e(11),k=j.f,M=P.f,T=_.f,A=r.Symbol,I=r.JSON,F=I&&I.stringify,N="prototype",L=y("_hidden"),G=y("toPrimitive"),C={}.propertyIsEnumerable,R=s("symbol-registry"),U=s("symbols"),W=s("op-symbols"),D=Object[N],J="function"==typeof A,K=r.QObject,Y=!K||!K[N]||!K[N].findChild,z=i&&a(function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=k(D,n);r&&delete D[n],M(t,n,e),r&&t!==D&&M(D,n,r)}:M,B=function(t){var n=U[t]=S(A[N]);return n._k=t,n},V=J&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},$=function(t,n,e){return t===D&&$(W,n,e),g(t),n=O(n,!0),g(e),o(U,n)?(e.enumerable?(o(t,L)&&t[L][n]&&(t[L][n]=!1),e=S(e,{enumerable:w(0,!1)})):(o(t,L)||M(t,L,w(1,{})),t[L][n]=!0),z(t,n,e)):M(t,n,e)},Q=function(t,n){g(t);for(var e,r=b(n=x(n)),o=0,i=r.length;i>o;)$(t,e=r[o++],n[e]);return t},q=function(t,n){return void 0===n?S(t):Q(S(t),n)},H=function(t){var n=C.call(this,t=O(t,!0));return!(this===D&&o(U,t)&&!o(W,t))&&(!(n||!o(this,t)||!o(U,t)||o(this,L)&&this[L][t])||n)},X=function(t,n){if(t=x(t),n=O(n,!0),t!==D||!o(U,n)||o(W,n)){var e=k(t,n);return!e||!o(U,n)||o(t,L)&&t[L][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=T(x(t)),r=[],i=0;e.length>i;)o(U,n=e[i++])||n==L||n==c||r.push(n);return r},tt=function(t){for(var n,e=t===D,r=T(e?W:x(t)),i=[],u=0;r.length>u;)!o(U,n=r[u++])||e&&!o(D,n)||i.push(U[n]);return i};J||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),n=function(e){this===D&&n.call(W,e),o(this,L)&&o(this[L],t)&&(this[L][t]=!1),z(this,t,w(1,e))};return i&&Y&&z(D,t,{configurable:!0,set:n}),B(t)},f(A[N],"toString",function(){return this._k}),j.f=X,P.f=$,e(33).f=_.f=Z,e(19).f=H,e(34).f=tt,i&&!e(18)&&f(D,"propertyIsEnumerable",H,!0),v.f=function(t){return B(y(t))}),u(u.G+u.W+u.F*!J,{Symbol:A});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)y(nt[et++]);for(var nt=E(y.store),et=0;nt.length>et;)d(nt[et++]);u(u.S+u.F*!J,"Symbol",{"for":function(t){return o(R,t+="")?R[t]:R[t]=A(t)},keyFor:function(t){if(V(t))return h(R,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),u(u.S+u.F*!J,"Object",{create:q,defineProperty:$,defineProperties:Q,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),I&&u(u.S+u.F*(!J||a(function(){var t=A();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!V(t)){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return n=r[1],"function"==typeof n&&(e=n),!e&&m(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!V(n))return n}),r[1]=n,F.apply(I,r)}}}),A[N][G]||e(5)(A[N],G,A[N].valueOf),p(A,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(t,n,e){e(25)("asyncIterator")},function(t,n,e){e(25)("observable")},function(t,n,e){e(62);for(var r=e(1),o=e(5),i=e(17),u=e(7)("toStringTag"),f=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var a=f[c],s=r[a],p=s&&s.prototype;p&&!p[u]&&o(p,u,a),i[a]=i.Array}}])}); | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.GitLabAPI=n():t.GitLabAPI=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};return n.m=t,n.c=e,n.p="/",n(0)}([function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var o=e(39),i=r(o);!function(){function e(t,n){var e="https://gitlab.com",r="you MUST provide your private token";"undefined"!=typeof n&&("undefined"!=typeof n.token&&(r=n.token),"undefined"!=typeof n.url&&(e=n.url.replace(/\/$/,"")));var o=e+"/api/v3";t.prototype.GitLabAPI={setUrl:function(t){"undefined"==typeof t?(console.warn("[vue-gitlab-api] This GitLab instance URL may not be correct"),e=""):e=t.replace(/\/$/,""),o=e+"/api/v3"},setToken:function(t){return"undefined"==typeof t||null==t||""===t?void console.error("[vue-gitlab-api] You MUST provide a non empty token to consume GitLab API"):void(r=t)},get:function(n,e,i,u){return"undefined"==typeof i||null==i||"undefined"==typeof i.__ob__||!(i instanceof Array)||i.length>0?void console.error("[vue-gitlab-api] You MUST define the Vue data you want to fill as an empty array"):(n=n.replace(/^\/?/,"/"),void t.http.get(o+n,{headers:{"PRIVATE-TOKEN":r},params:e}).then(function(t){i.length=0;for(var n=t.body.length-1;n>=0;n--)i.push(t.body[n])},function(t){"function"==typeof u?u(t):console.error("[vue-gitlab-api] GET "+n+" failed on "+o+' with token "'+r+'"')}))}}}"object"===(0,i["default"])(n)&&(t.exports=e)}()},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(48),o=e(15);t.exports=function(t){return r(o(t))}},function(t,n,e){t.exports=!e(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(6),o=e(12);t.exports=e(4)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(8),o=e(30),i=e(24),u=Object.defineProperty;n.f=e(4)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(f){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(22)("wks"),o=e(13),i=e(1).Symbol,u="function"==typeof i,f=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};f.store=r},function(t,n,e){var r=e(10);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(35),o=e(16);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){t.exports={}},function(t,n){t.exports=!0},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(6).f,o=e(2),i=e(7)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(22)("keys"),o=e(13);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(1),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(10);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(1),o=e(14),i=e(18),u=e(26),f=e(6).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||f(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(7)},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(10),o=e(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){var r=e(1),o=e(14),i=e(45),u=e(5),f="prototype",c=function(t,n,e){var a,s,p,l=t&c.F,y=t&c.G,v=t&c.S,d=t&c.P,h=t&c.B,b=t&c.W,m=y?o:o[n]||(o[n]={}),g=m[f],x=y?r:v?r[n]:(r[n]||{})[f];y&&(e=n);for(a in e)s=!l&&x&&void 0!==x[a],s&&a in m||(p=s?x[a]:e[a],m[a]=y&&"function"!=typeof x[a]?e[a]:h&&s?i(p,r):b&&x[a]==p?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[f]=t[f],n}(p):d&&"function"==typeof p?i(Function.call,p):p,d&&((m.virtual||(m.virtual={}))[a]=p,t&c.R&&g&&!g[a]&&u(g,a,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n,e){t.exports=!e(4)&&!e(9)(function(){return 7!=Object.defineProperty(e(28)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){"use strict";var r=e(18),o=e(29),i=e(36),u=e(5),f=e(2),c=e(17),a=e(50),s=e(20),p=e(57),l=e(7)("iterator"),y=!([].keys&&"next"in[].keys()),v="@@iterator",d="keys",h="values",b=function(){return this};t.exports=function(t,n,e,m,g,x,O){a(e,n,m);var w,S,_,j=function(t){if(!y&&t in M)return M[t];switch(t){case d:return function(){return new e(this,t)};case h:return function(){return new e(this,t)}}return function(){return new e(this,t)}},P=n+" Iterator",E=g==h,k=!1,M=t.prototype,T=M[l]||M[v]||g&&M[g],A=T||j(g),I=g?E?j("entries"):A:void 0,F="Array"==n?M.entries||T:T;if(F&&(_=p(F.call(new t)),_!==Object.prototype&&(s(_,P,!0),r||f(_,l)||u(_,l,b))),E&&T&&T.name!==h&&(k=!0,A=function(){return T.call(this)}),r&&!O||!y&&!k&&M[l]||u(M,l,A),c[n]=A,c[P]=b,g)if(w={values:E?A:j(h),keys:x?A:j(d),entries:I},O)for(S in w)S in M||i(M,S,w[S]);else o(o.P+o.F*(y||k),n,w);return w}},function(t,n,e){var r=e(8),o=e(54),i=e(16),u=e(21)("IE_PROTO"),f=function(){},c="prototype",a=function(){var t,n=e(28)("iframe"),r=i.length,o="<",u=">";for(n.style.display="none",e(47).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),a=t.F;r--;)delete a[c][i[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(f[c]=r(t),e=new f,f[c]=null,e[u]=t):e=a(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(35),o=e(16).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(2),o=e(3),i=e(44)(!1),u=e(21)("IE_PROTO");t.exports=function(t,n){var e,f=o(t),c=0,a=[];for(e in f)e!=u&&r(f,e)&&a.push(e);for(;n.length>c;)r(f,e=n[c++])&&(~i(a,e)||a.push(e));return a}},function(t,n,e){t.exports=e(5)},function(t,n,e){t.exports={"default":e(40),__esModule:!0}},function(t,n,e){t.exports={"default":e(41),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var o=e(38),i=r(o),u=e(37),f=r(u),c="function"==typeof f["default"]&&"symbol"==typeof i["default"]?function(t){return typeof t}:function(t){return t&&"function"==typeof f["default"]&&t.constructor===f["default"]&&t!==f["default"].prototype?"symbol":typeof t};n["default"]="function"==typeof f["default"]&&"symbol"===c(i["default"])?function(t){return"undefined"==typeof t?"undefined":c(t)}:function(t){return t&&"function"==typeof f["default"]&&t.constructor===f["default"]&&t!==f["default"].prototype?"symbol":"undefined"==typeof t?"undefined":c(t)}},function(t,n,e){e(65),e(63),e(66),e(67),t.exports=e(14).Symbol},function(t,n,e){e(64),e(68),t.exports=e(26).f("iterator")},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){t.exports=function(){}},function(t,n,e){var r=e(3),o=e(60),i=e(59);t.exports=function(t){return function(n,e,u){var f,c=r(n),a=o(c.length),s=i(u,a);if(t&&e!=e){for(;a>s;)if(f=c[s++],f!=f)return!0}else for(;a>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(42);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(11),o=e(34),i=e(19);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,f=e(t),c=i.f,a=0;f.length>a;)c.call(t,u=f[a++])&&n.push(u);return n}},function(t,n,e){t.exports=e(1).document&&document.documentElement},function(t,n,e){var r=e(27);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(27);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){"use strict";var r=e(32),o=e(12),i=e(20),u={};e(5)(u,e(7)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(11),o=e(3);t.exports=function(t,n){for(var e,i=o(t),u=r(i),f=u.length,c=0;f>c;)if(i[e=u[c++]]===n)return e}},function(t,n,e){var r=e(13)("meta"),o=e(10),i=e(2),u=e(6).f,f=0,c=Object.isExtensible||function(){return!0},a=!e(9)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++f,w:{}}})},p=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!n)return"E";s(t)}return t[r].i},l=function(t,n){if(!i(t,r)){if(!c(t))return!0;if(!n)return!1;s(t)}return t[r].w},y=function(t){return a&&v.NEED&&c(t)&&!i(t,r)&&s(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:p,getWeak:l,onFreeze:y}},function(t,n,e){var r=e(6),o=e(8),i=e(11);t.exports=e(4)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),f=u.length,c=0;f>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(19),o=e(12),i=e(3),u=e(24),f=e(2),c=e(30),a=Object.getOwnPropertyDescriptor;n.f=e(4)?a:function(t,n){if(t=i(t),n=u(n,!0),c)try{return a(t,n)}catch(e){}if(f(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(3),o=e(33).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(t){try{return o(t)}catch(n){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?f(t):o(r(t))}},function(t,n,e){var r=e(2),o=e(61),i=e(21)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(23),o=e(15);t.exports=function(t){return function(n,e){var i,u,f=String(o(n)),c=r(e),a=f.length;return c<0||c>=a?t?"":void 0:(i=f.charCodeAt(c),i<55296||i>56319||c+1===a||(u=f.charCodeAt(c+1))<56320||u>57343?t?f.charAt(c):i:t?f.slice(c,c+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,n,e){var r=e(23),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(23),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(15);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";var r=e(43),o=e(51),i=e(17),u=e(3);t.exports=e(31)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){},function(t,n,e){"use strict";var r=e(58)(!0);e(31)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(1),o=e(2),i=e(4),u=e(29),f=e(36),c=e(53).KEY,a=e(9),s=e(22),p=e(20),l=e(13),y=e(7),v=e(26),d=e(25),h=e(52),b=e(46),m=e(49),g=e(8),x=e(3),O=e(24),w=e(12),S=e(32),_=e(56),j=e(55),P=e(6),E=e(11),k=j.f,M=P.f,T=_.f,A=r.Symbol,I=r.JSON,F=I&&I.stringify,N="prototype",L=y("_hidden"),G=y("toPrimitive"),C={}.propertyIsEnumerable,R=s("symbol-registry"),U=s("symbols"),W=s("op-symbols"),D=Object[N],J="function"==typeof A,K=r.QObject,Y=!K||!K[N]||!K[N].findChild,z=i&&a(function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=k(D,n);r&&delete D[n],M(t,n,e),r&&t!==D&&M(D,n,r)}:M,B=function(t){var n=U[t]=S(A[N]);return n._k=t,n},V=J&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},$=function(t,n,e){return t===D&&$(W,n,e),g(t),n=O(n,!0),g(e),o(U,n)?(e.enumerable?(o(t,L)&&t[L][n]&&(t[L][n]=!1),e=S(e,{enumerable:w(0,!1)})):(o(t,L)||M(t,L,w(1,{})),t[L][n]=!0),z(t,n,e)):M(t,n,e)},Q=function(t,n){g(t);for(var e,r=b(n=x(n)),o=0,i=r.length;i>o;)$(t,e=r[o++],n[e]);return t},q=function(t,n){return void 0===n?S(t):Q(S(t),n)},H=function(t){var n=C.call(this,t=O(t,!0));return!(this===D&&o(U,t)&&!o(W,t))&&(!(n||!o(this,t)||!o(U,t)||o(this,L)&&this[L][t])||n)},X=function(t,n){if(t=x(t),n=O(n,!0),t!==D||!o(U,n)||o(W,n)){var e=k(t,n);return!e||!o(U,n)||o(t,L)&&t[L][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=T(x(t)),r=[],i=0;e.length>i;)o(U,n=e[i++])||n==L||n==c||r.push(n);return r},tt=function(t){for(var n,e=t===D,r=T(e?W:x(t)),i=[],u=0;r.length>u;)!o(U,n=r[u++])||e&&!o(D,n)||i.push(U[n]);return i};J||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),n=function(e){this===D&&n.call(W,e),o(this,L)&&o(this[L],t)&&(this[L][t]=!1),z(this,t,w(1,e))};return i&&Y&&z(D,t,{configurable:!0,set:n}),B(t)},f(A[N],"toString",function(){return this._k}),j.f=X,P.f=$,e(33).f=_.f=Z,e(19).f=H,e(34).f=tt,i&&!e(18)&&f(D,"propertyIsEnumerable",H,!0),v.f=function(t){return B(y(t))}),u(u.G+u.W+u.F*!J,{Symbol:A});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)y(nt[et++]);for(var nt=E(y.store),et=0;nt.length>et;)d(nt[et++]);u(u.S+u.F*!J,"Symbol",{"for":function(t){return o(R,t+="")?R[t]:R[t]=A(t)},keyFor:function(t){if(V(t))return h(R,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),u(u.S+u.F*!J,"Object",{create:q,defineProperty:$,defineProperties:Q,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),I&&u(u.S+u.F*(!J||a(function(){var t=A();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!V(t)){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return n=r[1],"function"==typeof n&&(e=n),!e&&m(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!V(n))return n}),r[1]=n,F.apply(I,r)}}}),A[N][G]||e(5)(A[N],G,A[N].valueOf),p(A,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(t,n,e){e(25)("asyncIterator")},function(t,n,e){e(25)("observable")},function(t,n,e){e(62);for(var r=e(1),o=e(5),i=e(17),u=e(7)("toStringTag"),f=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var a=f[c],s=r[a],p=s&&s.prototype;p&&!p[u]&&o(p,u,a),i[a]=i.Array}}])}); | ||
//# sourceMappingURL=vue-gitlab-api.js.map |
{ | ||
"name": "vue-gitlab-api", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A deadly simple Vue.js plugin to consume GitLab API.", | ||
@@ -5,0 +5,0 @@ "author": "clorichel <contact@clorichel.com>", |
@@ -84,7 +84,8 @@ # vue-gitlab-api | ||
* Issue a GET request on 'GitLabAPI_url/api/v3' with params and a variable to fill in | ||
* @param {String} uri The GitLab API uri to consume such as '/projects' | ||
* @param {Object} params A parameters object such as { 'project_id': 72 } | ||
* @param {Array} fillIn The Vue.js defined data to fill in with results from GitLab API | ||
* @param {String} uri The GitLab API uri to consume such as '/projects' | ||
* @param {Object} params A parameters object such as { 'project_id': 72 } | ||
* @param {Array} fillIn The Vue.js defined data to fill in with results from GitLab API | ||
* @param {Function} errorCb A callback function in case of error (response is passed to callback) | ||
*/ | ||
get: function (uri, params, fillIn) {} | ||
get: function (uri, params, fillIn, errorCb) {} | ||
@@ -91,0 +92,0 @@ /** |
@@ -57,7 +57,8 @@ (function () { | ||
* Issue a GET request on 'GitLabAPI_url/api/v3' with params and a variable to fill in | ||
* @param {String} uri The GitLab API uri to consume such as '/projects' | ||
* @param {Object} params A parameters object such as { 'project_id': 72 } | ||
* @param {Array} fillIn The Vue.js defined data to fill in with results from GitLab API | ||
* @param {String} uri The GitLab API uri to consume such as '/projects' | ||
* @param {Object} params A parameters object such as { 'project_id': 72 } | ||
* @param {Array} fillIn The Vue.js defined data to fill in with results from GitLab API | ||
* @param {Function} errorCb A callback function in case of error (response is passed to callback) | ||
*/ | ||
get: function (uri, params, fillIn) { | ||
get: function (uri, params, fillIn, errorCb) { | ||
// variable to fill in MUST be defined, as a Vue data (to be reactive), and as an empty Array | ||
@@ -91,3 +92,7 @@ if (typeof fillIn === 'undefined' || fillIn == null || | ||
}, (response) => { | ||
console.error('[vue-gitlab-api] GET ' + uri + ' failed on ' + apiUrl + ' with token "' + token + '"') | ||
if (typeof errorCb === 'function') { | ||
errorCb(response) | ||
} else { | ||
console.error('[vue-gitlab-api] GET ' + uri + ' failed on ' + apiUrl + ' with token "' + token + '"') | ||
} | ||
}) | ||
@@ -94,0 +99,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
174759
668
138