From 5973bbc003d83a74db1f4e913cfe01a0ed5b4381 Mon Sep 17 00:00:00 2001 From: Maayan Glikser Date: Thu, 1 Feb 2018 10:44:47 +0200 Subject: [PATCH] Release 1.4.7 --- GruntSource.json | 2 +- dist/xhook.js | 2 +- dist/xhook.min.js | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/GruntSource.json b/GruntSource.json index 8fb89e7..c99ba6d 100644 --- a/GruntSource.json +++ b/GruntSource.json @@ -1,7 +1,7 @@ { "name": "xhook", "title": "XHook", - "version": "1.4.6", + "version": "1.4.7", "license": "MIT", "homepage": "https://github.com/jpillora/xhook", "author": "Jaime Pillora ", diff --git a/dist/xhook.js b/dist/xhook.js index 4e3881e..a7aff6a 100644 --- a/dist/xhook.js +++ b/dist/xhook.js @@ -1,4 +1,4 @@ -// XHook - v1.4.6 - https://github.com/jpillora/xhook +// XHook - v1.4.7 - https://github.com/jpillora/xhook // Jaime Pillora - MIT Copyright 2018 (function(undefined) { var AFTER, BEFORE, COMMON_EVENTS, EventEmitter, FETCH, FIRE, FormData, NativeFetch, NativeFormData, NativeXMLHttp, OFF, ON, READY_STATE, UPLOAD_EVENTS, WINDOW, XHookFetchRequest, XHookFormData, XHookHttpRequest, XMLHTTP, convertHeaders, depricatedProp, document, fakeEvent, mergeObjects, msie, nullify, proxyEvents, slice, useragent, xhook, _base, diff --git a/dist/xhook.min.js b/dist/xhook.min.js index a305e4b..230abab 100644 --- a/dist/xhook.min.js +++ b/dist/xhook.min.js @@ -1,3 +1,3 @@ -// XHook - v1.4.6 - https://github.com/jpillora/xhook +// XHook - v1.4.7 - https://github.com/jpillora/xhook // Jaime Pillora - MIT Copyright 2018 (function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H=[].indexOf||function(a){for(var b=0,c=this.length;b=0||(f=f===b?d[a].length:f,d[a].splice(f,0,c))},c[m]=function(a,c){var f;if(a===b)return void(d={});c===b&&(d[a]=[]),f=e(a).indexOf(c),f!==-1&&e(a).splice(f,1)},c[h]=function(){var b,d,f,g,h,i,j,k;for(b=D(arguments),d=b.shift(),a||(b[0]=z(b[0],y(d))),g=c["on"+d],g&&g.apply(c,b),k=e(d).concat(e("*")),f=i=0,j=k.length;i2)throw"invalid hook";return F[n](d,a,b)},F[c]=function(a,b){if(a.length<2||a.length>3)throw"invalid hook";return F[n](c,a,b)},F.enable=function(){q[u]=t,"function"==typeof r&&(q[g]=r),k&&(q[i]=s)},F.disable=function(){q[u]=F[u],q[g]=F[g],k&&(q[i]=k)},v=F.headers=function(a,b){var c,d,e,f,g,h,i,j,k;switch(null==b&&(b={}),typeof a){case"object":d=[];for(e in a)g=a[e],f=e.toLowerCase(),d.push(f+":\t"+g);return d.join("\n")+"\n";case"string":for(d=a.split("\n"),i=0,j=d.length;ib&&b<4;)k[o]=++b,1===b&&k[h]("loadstart",{}),2===b&&G(),4===b&&(G(),E()),k[h]("readystatechange",{}),4===b&&(t.async===!1?g():setTimeout(g,0))},g=function(){l||k[h]("load",{}),k[h]("loadend",{}),l&&(k[o]=0)},b=0,x=function(a){var b,d;if(4!==a)return void i(a);b=F.listeners(c),(d=function(){var a;return b.length?(a=b.shift(),2===a.length?(a(t,w),d()):3===a.length&&t.async?a(t,w,d):d()):i(4)})()},k=t.xhr=f(),I.onreadystatechange=function(a){try{2===I[o]&&r()}catch(a){}4===I[o]&&(D=!1,r(),q()),x(I[o])},m=function(){l=!0},k[n]("error",m),k[n]("timeout",m),k[n]("abort",m),k[n]("progress",function(){b<3?x(3):k[h]("readystatechange",{})}),("withCredentials"in I||F.addWithCredentials)&&(k.withCredentials=!1),k.status=0,L=e.concat(p);for(J=0,K=L.length;J