Comparing version 5.0.0-beta.3 to 5.0.0-beta.4
@@ -1,7 +0,7 @@ | ||
function p(){p=Object.assign||function(a){for(var c=1;c<arguments.length;c++){var e=arguments[c],g;for(g in e)Object.prototype.hasOwnProperty.call(e,g)&&(a[g]=e[g])}return a};return p.apply(this,arguments)}var v=__DEV__?function(a){return Object.freeze(a)}:function(a){return a}; | ||
function w(a){function c(){var b=l.location,a=m.state||{};return[a.idx,v({pathname:b.pathname,search:b.search,hash:b.hash,state:a.usr||null,key:a.key||"default"})]}function e(b,a){void 0===a&&(a=null);var c=p,h=q;if("string"===typeof b){var e={};if(b){var d=b.indexOf("#");0<=d&&(e.hash=b.substr(d),b=b.substr(0,d));d=b.indexOf("?");0<=d&&(e.search=b.substr(d),b=b.substr(0,d));b&&(e.pathname=b)}b=e}return v(c({},h,{},b,{state:a,key:Math.random().toString(36).substr(2,8)}))}function g(b){t=b;b=c();k= | ||
b[0];q=b[1];x.call({action:t,location:q})}function y(b,a){function c(){y(b,a)}var h=e(b,a);if(!f.length||(f.call({action:"PUSH",location:h,retry:c}),!1)){var d=[{usr:h.state,key:h.key,idx:k+1},u(h)];h=d[0];d=d[1];try{m.pushState(h,null,d)}catch(E){l.location.assign(d)}g("PUSH")}}function z(a,d){function b(){z(a,d)}var c=e(a,d);f.length&&(f.call({action:"REPLACE",location:c,retry:b}),1)||(c=[{usr:c.state,key:c.key,idx:k},u(c)],m.replaceState(c[0],null,c[1]),g("REPLACE"))}function n(a){m.go(a)}a=(void 0=== | ||
a?{}:a).window;var l=void 0===a?document.defaultView:a,m=l.history,r=null;l.addEventListener("popstate",function(){if(r)f.call(r),r=null;else{var a=c(),d=a[0];a=a[1];if(f.length)if(null!=d){var e=k-d;e&&(r={action:"POP",location:a,retry:function(){n(-1*e)}},n(e))}else{if(__DEV__)throw Error("You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."); | ||
}else g("POP")}});var t="POP";a=c();var k=a[0],q=a[1],f=A(),x=A();null==k&&(k=0,m.replaceState(p({},m.state,{idx:k}),null));var u=B;return{get action(){return t},get location(){return q},createHref:u,push:y,replace:z,go:n,back:function(){n(-1)},forward:function(){n(1)},listen:function(a){return x.push(a)},block:function(a){var b=f.push(a);1===f.length&&l.addEventListener("beforeunload",C);return function(){b();f.length||l.removeEventListener("beforeunload",C)}}}} | ||
function C(a){a.preventDefault();a.returnValue=""}function A(){var a=[];return{get length(){return a.length},push:function(c){a.push(c);return function(){a=a.filter(function(a){return a!==c})}},call:function(c){a.forEach(function(a){return a&&a(c)})}}}function B(a){var c=a.pathname,e=a.search;a=a.hash;return(void 0===c?"/":c)+(void 0===e?"":e)+(void 0===a?"":a)}var D=w();export default D;var createBrowserHistory=w;export{createBrowserHistory}; | ||
function p(){p=Object.assign||function(a){for(var c=1;c<arguments.length;c++){var e=arguments[c],h;for(h in e)Object.prototype.hasOwnProperty.call(e,h)&&(a[h]=e[h])}return a};return p.apply(this,arguments)}var v=__DEV__?function(a){return Object.freeze(a)}:function(a){return a};function w(a,c){if(!a){"undefined"!==typeof console&&console.warn(c);try{throw Error(c);}catch(e){}}} | ||
function A(a){function c(){var b=l.location,a=m.state||{};return[a.idx,v({pathname:b.pathname,search:b.search,hash:b.hash,state:a.usr||null,key:a.key||"default"})]}function e(b){if("string"===typeof b)var a=b;else{a=b.pathname;var c=b.search;b=b.hash;a=(void 0===a?"/":a)+(void 0===c?"":c)+(void 0===b?"":b)}return a}function h(b,a){void 0===a&&(a=null);var c=p,g=q;if("string"===typeof b){var e={};if(b){var d=b.indexOf("#");0<=d&&(e.hash=b.substr(d),b=b.substr(0,d));d=b.indexOf("?");0<=d&&(e.search= | ||
b.substr(d),b=b.substr(0,d));b&&(e.pathname=b)}b=e}return v(c({},g,{},b,{state:a,key:Math.random().toString(36).substr(2,8)}))}function t(b){u=b;b=c();k=b[0];q=b[1];x.call({action:u,location:q})}function y(b,a){function c(){y(b,a)}var g=h(b,a);if(!f.length||(f.call({action:"PUSH",location:g,retry:c}),!1)){var d=[{usr:g.state,key:g.key,idx:k+1},e(g)];g=d[0];d=d[1];try{m.pushState(g,null,d)}catch(E){l.location.assign(d)}t("PUSH")}}function z(b,a){function c(){z(b,a)}var d=h(b,a);f.length&&(f.call({action:"REPLACE", | ||
location:d,retry:c}),1)||(d=[{usr:d.state,key:d.key,idx:k},e(d)],m.replaceState(d[0],null,d[1]),t("REPLACE"))}function n(b){m.go(b)}a=(void 0===a?{}:a).window;var l=void 0===a?document.defaultView:a,m=l.history,r=null;l.addEventListener("popstate",function(){if(r)f.call(r),r=null;else{var b=c(),a=b[0];b=b[1];if(f.length)if(null!=a){var e=k-a;e&&(r={action:"POP",location:b,retry:function(){n(-1*e)}},n(e))}else w(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."); | ||
else t("POP")}});var u="POP";a=c();var k=a[0],q=a[1],f=B(),x=B();null==k&&(k=0,m.replaceState(p({},m.state,{idx:k}),null));return{get action(){return u},get location(){return q},createHref:e,push:y,replace:z,go:n,back:function(){n(-1)},forward:function(){n(1)},listen:function(a){return x.push(a)},block:function(a){var b=f.push(a);1===f.length&&l.addEventListener("beforeunload",C);return function(){b();f.length||l.removeEventListener("beforeunload",C)}}}} | ||
function C(a){a.preventDefault();a.returnValue=""}function B(){var a=[];return{get length(){return a.length},push:function(c){a.push(c);return function(){a=a.filter(function(a){return a!==c})}},call:function(c){a.forEach(function(a){return a&&a(c)})}}}var D=A();export default D;var createBrowserHistory=A;export{createBrowserHistory}; | ||
//# sourceMappingURL=browser.js.map |
14
hash.js
@@ -1,8 +0,8 @@ | ||
function p(){p=Object.assign||function(a){for(var c=1;c<arguments.length;c++){var b=arguments[c],g;for(g in b)Object.prototype.hasOwnProperty.call(b,g)&&(a[g]=b[g])}return a};return p.apply(this,arguments)}var u=__DEV__?function(a){return Object.freeze(a)}:function(a){return a}; | ||
function w(a){function c(){var a=x(h.location.hash.substr(1)),z=a.pathname,b=a.search;a=a.hash;var d=l.state||{};return[d.idx,u({pathname:void 0===z?"/":z,search:void 0===b?"":b,hash:void 0===a?"":a,state:d.usr||null,key:d.key||"default"})]}function b(){if(q)f.call(q),q=null;else{var a=c(),b=a[0];a=a[1];if(f.length)if(null!=b){var r=k-b;r&&(q={action:"POP",location:a,retry:function(){m(-1*r)}},m(r))}else{if(__DEV__)throw Error("You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."); | ||
}else t("POP")}}function g(a){var b=document.querySelector("base"),e="";b&&b.getAttribute("href")&&(b=h.location.href,e=b.indexOf("#"),e=-1===e?b:b.slice(0,e));return e+"#"+y(a)}function A(a,b){void 0===b&&(b=null);return u(p({},n,{},"string"===typeof a?x(a):a,{state:b,key:Math.random().toString(36).substr(2,8)}))}function t(a){v=a;a=c();k=a[0];n=a[1];B.call({action:v,location:n})}function C(a,b){function c(){C(a,b)}var d=A(a,b);if(__DEV__&&"/"!==d.pathname.charAt(0))throw d=JSON.stringify(a),Error("Relative pathnames are not supported in hash history.push("+ | ||
d+")");if(!f.length||(f.call({action:"PUSH",location:d,retry:c}),!1)){var e=[{usr:d.state,key:d.key,idx:k+1},g(d)];d=e[0];e=e[1];try{l.pushState(d,null,e)}catch(H){h.location.assign(e)}t("PUSH")}}function D(a,b){function c(){D(a,b)}var d=A(a,b);if(__DEV__&&"/"!==d.pathname.charAt(0))throw d=JSON.stringify(a),Error("Relative pathnames are not supported in hash history.replace("+d+")");f.length&&(f.call({action:"REPLACE",location:d,retry:c}),1)||(d=[{usr:d.state,key:d.key,idx:k},g(d)],l.replaceState(d[0], | ||
null,d[1]),t("REPLACE"))}function m(a){l.go(a)}a=(void 0===a?{}:a).window;var h=void 0===a?document.defaultView:a,l=h.history,q=null;h.addEventListener("popstate",b);h.addEventListener("hashchange",function(){var a=c()[1];y(a)!==y(n)&&b()});var v="POP";a=c();var k=a[0],n=a[1],f=E(),B=E();null==k&&(k=0,l.replaceState(p({},l.state,{idx:k}),null));return{get action(){return v},get location(){return n},createHref:g,push:C,replace:D,go:m,back:function(){m(-1)},forward:function(){m(1)},listen:function(a){return B.push(a)}, | ||
block:function(a){var b=f.push(a);1===f.length&&h.addEventListener("beforeunload",F);return function(){b();f.length||h.removeEventListener("beforeunload",F)}}}}function F(a){a.preventDefault();a.returnValue=""}function E(){var a=[];return{get length(){return a.length},push:function(c){a.push(c);return function(){a=a.filter(function(a){return a!==c})}},call:function(c){a.forEach(function(a){return a&&a(c)})}}} | ||
function y(a){var c=a.pathname,b=a.search;a=a.hash;return(void 0===c?"/":c)+(void 0===b?"":b)+(void 0===a?"":a)}function x(a){var c={};if(a){var b=a.indexOf("#");0<=b&&(c.hash=a.substr(b),a=a.substr(0,b));b=a.indexOf("?");0<=b&&(c.search=a.substr(b),a=a.substr(0,b));a&&(c.pathname=a)}return c}var G=w();export default G;var createHashHistory=w;export{createHashHistory}; | ||
function p(){p=Object.assign||function(a){for(var c=1;c<arguments.length;c++){var b=arguments[c],f;for(f in b)Object.prototype.hasOwnProperty.call(b,f)&&(a[f]=b[f])}return a};return p.apply(this,arguments)}var r=__DEV__?function(a){return Object.freeze(a)}:function(a){return a};function v(a,c){if(!a){"undefined"!==typeof console&&console.warn(c);try{throw Error(c);}catch(b){}}} | ||
function x(a){function c(){var a=y(g.location.hash.substr(1)),c=a.pathname,b=a.search;a=a.hash;var d=k.state||{};return[d.idx,r({pathname:void 0===c?"/":c,search:void 0===b?"":b,hash:void 0===a?"":a,state:d.usr||null,key:d.key||"default"})]}function b(){if(q)e.call(q),q=null;else{var a=c(),b=a[0];a=a[1];if(e.length)if(null!=b){var t=h-b;t&&(q={action:"POP",location:a,retry:function(){m(-1*t)}},m(t))}else v(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."); | ||
else u("POP")}}function f(a){var b=document.querySelector("base"),c="";b&&b.getAttribute("href")&&(b=g.location.href,c=b.indexOf("#"),c=-1===c?b:b.slice(0,c));return c+"#"+("string"===typeof a?a:z(a))}function A(a,b){void 0===b&&(b=null);return r(p({},n,{},"string"===typeof a?y(a):a,{state:b,key:Math.random().toString(36).substr(2,8)}))}function u(a){w=a;a=c();h=a[0];n=a[1];B.call({action:w,location:n})}function C(a,b){function c(){C(a,b)}var d=A(a,b);v("/"===d.pathname.charAt(0),"Relative pathnames are not supported in hash history.push("+ | ||
JSON.stringify(a)+")");if(!e.length||(e.call({action:"PUSH",location:d,retry:c}),!1)){var l=[{usr:d.state,key:d.key,idx:h+1},f(d)];d=l[0];l=l[1];try{k.pushState(d,null,l)}catch(H){g.location.assign(l)}u("PUSH")}}function D(a,b){function c(){D(a,b)}var d=A(a,b);v("/"===d.pathname.charAt(0),"Relative pathnames are not supported in hash history.replace("+JSON.stringify(a)+")");e.length&&(e.call({action:"REPLACE",location:d,retry:c}),1)||(d=[{usr:d.state,key:d.key,idx:h},f(d)],k.replaceState(d[0],null, | ||
d[1]),u("REPLACE"))}function m(a){k.go(a)}a=(void 0===a?{}:a).window;var g=void 0===a?document.defaultView:a,k=g.history,q=null;g.addEventListener("popstate",b);g.addEventListener("hashchange",function(){var a=c()[1];z(a)!==z(n)&&b()});var w="POP";a=c();var h=a[0],n=a[1],e=E(),B=E();null==h&&(h=0,k.replaceState(p({},k.state,{idx:h}),null));return{get action(){return w},get location(){return n},createHref:f,push:C,replace:D,go:m,back:function(){m(-1)},forward:function(){m(1)},listen:function(a){return B.push(a)}, | ||
block:function(a){var b=e.push(a);1===e.length&&g.addEventListener("beforeunload",F);return function(){b();e.length||g.removeEventListener("beforeunload",F)}}}}function F(a){a.preventDefault();a.returnValue=""}function E(){var a=[];return{get length(){return a.length},push:function(c){a.push(c);return function(){a=a.filter(function(a){return a!==c})}},call:function(c){a.forEach(function(a){return a&&a(c)})}}} | ||
function z(a){var c=a.pathname,b=a.search;a=a.hash;return(void 0===c?"/":c)+(void 0===b?"":b)+(void 0===a?"":a)}function y(a){var c={};if(a){var b=a.indexOf("#");0<=b&&(c.hash=a.substr(b),a=a.substr(0,b));b=a.indexOf("?");0<=b&&(c.search=a.substr(b),a=a.substr(0,b));a&&(c.pathname=a)}return c}var G=x();export default G;var createHashHistory=x;export{createHashHistory}; | ||
//# sourceMappingURL=hash.js.map |
@@ -1,15 +0,16 @@ | ||
function x(d){d.preventDefault();d.returnValue=""}function y(){let d=[];return{get length(){return d.length},push(e){d.push(e);return function(){d=d.filter(d=>d!==e)}},call(e){d.forEach(d=>d&&d(e))}}}function z(){return Math.random().toString(36).substr(2,8)}function A(d){var {pathname:e="/",search:h="",hash:n=""}=d;return e+h+n} | ||
function B(d){let e={};if(d){var h=d.indexOf("#");0<=h&&(e.hash=d.substr(h),d=d.substr(0,h));h=d.indexOf("?");0<=h&&(e.search=d.substr(h),d=d.substr(0,h));d&&(e.pathname=d)}return e} | ||
var createBrowserHistory=function(d){function e(){let {pathname:a,search:b,hash:c}=r.location,d=m.state||{};return[d.idx,Object.freeze({pathname:a,search:b,hash:c,state:d.usr||null,key:d.key||"default"})]}function h(a,b){b=void 0===b?null:b;return Object.freeze(Object.assign({},p,"string"===typeof a?B(a):a,{state:b,key:z()}))}function n(a){k=a;[l,p]=e();t.call({action:k,location:p})}function w(a,b){function d(){w(a,b)}let u=h(a,b);if(!f.length||(f.call({action:"PUSH",location:u,retry:d}),!1)){let [b, | ||
a]=[{usr:u.state,key:u.key,idx:l+1},c(u)];try{m.pushState(b,null,a)}catch(C){r.location.assign(a)}n("PUSH")}}function v(a,b){function d(){v(a,b)}let u=h(a,b);if(!f.length||(f.call({action:"REPLACE",location:u,retry:d}),!1)){let [b,a]=[{usr:u.state,key:u.key,idx:l},c(u)];m.replaceState(b,null,a);n("REPLACE")}}function q(a){m.go(a)}var {window:r=document.defaultView}=void 0===d?{}:d;let m=r.history,g=null;r.addEventListener("popstate",function(){if(g)f.call(g),g=null;else{let [a,b]=e();if(f.length)if(null!= | ||
a){let c=l-a;c&&(g={action:"POP",location:b,retry(){q(-1*c)}},q(c))}else throw Error("You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else n("POP")}});let k="POP",[l,p]=e(),f=y(),t=y();null==l&&(l=0,m.replaceState(Object.assign({},m.state,{idx:l}),null));let c= | ||
A;return{get action(){return k},get location(){return p},createHref:c,push:w,replace:v,go:q,back(){q(-1)},forward(){q(1)},listen(a){return t.push(a)},block(a){let b=f.push(a);1===f.length&&r.addEventListener("beforeunload",x);return function(){b();f.length||r.removeEventListener("beforeunload",x)}}}}; | ||
var createHashHistory=function(d){function e(){let {pathname:b="/",search:a="",hash:c=""}=B(g.location.hash.substr(1)),d=k.state||{};return[d.idx,Object.freeze({pathname:b,search:a,hash:c,state:d.usr||null,key:d.key||"default"})]}function h(){if(l)c.call(l),l=null;else{let [b,a]=e();if(c.length)if(null!=b){let c=f-b;c&&(l={action:"POP",location:a,retry(){m(-1*c)}},m(c))}else throw Error("You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."); | ||
else v("POP")}}function n(b){var a=document.querySelector("base"),c="";a&&a.getAttribute("href")&&(a=g.location.href,c=a.indexOf("#"),c=-1===c?a:a.slice(0,c));return c+"#"+A(b)}function w(b,a){a=void 0===a?null:a;return Object.freeze(Object.assign({},t,"string"===typeof b?B(b):b,{state:a,key:z()}))}function v(b){p=b;[f,t]=e();a.call({action:p,location:t})}function q(b,a){function d(){q(b,a)}var e=w(b,a);if("/"!==e.pathname.charAt(0))throw e=JSON.stringify(b),Error(`Relative pathnames are not supported in hash history.push(${e})`); | ||
if(!c.length||(c.call({action:"PUSH",location:e,retry:d}),!1)){let [a,b]=[{usr:e.state,key:e.key,idx:f+1},n(e)];try{k.pushState(a,null,b)}catch(D){g.location.assign(b)}v("PUSH")}}function r(a,d){function b(){r(a,d)}var e=w(a,d);if("/"!==e.pathname.charAt(0))throw e=JSON.stringify(a),Error(`Relative pathnames are not supported in hash history.replace(${e})`);if(!c.length||(c.call({action:"REPLACE",location:e,retry:b}),!1)){let [a,b]=[{usr:e.state,key:e.key,idx:f},n(e)];k.replaceState(a,null,b);v("REPLACE")}} | ||
function m(a){k.go(a)}var {window:g=document.defaultView}=void 0===d?{}:d;let k=g.history,l=null;g.addEventListener("popstate",h);g.addEventListener("hashchange",()=>{let [,a]=e();A(a)!==A(t)&&h()});let p="POP",[f,t]=e(),c=y(),a=y();null==f&&(f=0,k.replaceState(Object.assign({},k.state,{idx:f}),null));return{get action(){return p},get location(){return t},createHref:n,push:q,replace:r,go:m,back(){m(-1)},forward(){m(1)},listen(b){return a.push(b)},block(a){let b=c.push(a);1===c.length&&g.addEventListener("beforeunload", | ||
x);return function(){b();c.length||g.removeEventListener("beforeunload",x)}}}}; | ||
var createMemoryHistory=function(d){function e(c,a){a=void 0===a?null:a;return Object.freeze(Object.assign({},p,"string"===typeof c?B(c):c,{state:a,key:z()}))}function h(c,a,b){return!f.length||(f.call({action:c,location:a,retry:b}),!1)}function n(c,a){l=c;p=a;t.call({action:l,location:p})}function w(c,a){var b=e(c,a);if("/"!==b.pathname.charAt(0))throw b=JSON.stringify(c),Error(`Relative pathnames are not supported in memory history.push(${b})`);h("PUSH",b,function(){w(c,a)})&&(k+=1,g.splice(k, | ||
g.length,b),n("PUSH",b))}function v(c,a){var b=e(c,a);if("/"!==b.pathname.charAt(0))throw b=JSON.stringify(c),Error(`Relative pathnames are not supported in memory history.replace(${b})`);h("REPLACE",b,function(){v(c,a)})&&(g[k]=b,n("REPLACE",b))}function q(c){let a=Math.min(Math.max(k+c,0),g.length-1),b=g[a];h("POP",b,function(){q(c)})&&(k=a,n("POP",b))}var {initialEntries:r=["/"],initialIndex:m=0}=void 0===d?{}:d;let g=r.map(c=>{let a=Object.freeze(Object.assign({},{pathname:"/",search:"",hash:"", | ||
state:null,key:z()},"string"===typeof c?B(c):c));if("/"!==a.pathname.charAt(0))throw c=JSON.stringify(c),Error(`Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: ${c})`);return a}),k=Math.min(Math.max(m,0),g.length-1),l="POP",p=g[k],f=y(),t=y();return{get index(){return k},get action(){return l},get location(){return p},createHref:A,push:w,replace:v,go:q,back(){q(-1)},forward(){q(1)},listen(c){return t.push(c)},block(c){return f.push(c)}}};export{createBrowserHistory,createHashHistory,createMemoryHistory}; | ||
function w(a,d){if(!a){"undefined"!==typeof console&&console.warn(d);try{throw Error(d);}catch(g){}}}function x(a){a.preventDefault();a.returnValue=""}function y(){let a=[];return{get length(){return a.length},push(d){a.push(d);return function(){a=a.filter(a=>a!==d)}},call(d){a.forEach(a=>a&&a(d))}}}function z(){return Math.random().toString(36).substr(2,8)}function A(a){var {pathname:d="/",search:g="",hash:p=""}=a;return d+g+p} | ||
function B(a){let d={};if(a){var g=a.indexOf("#");0<=g&&(d.hash=a.substr(g),a=a.substr(0,g));g=a.indexOf("?");0<=g&&(d.search=a.substr(g),a=a.substr(0,g));a&&(d.pathname=a)}return d} | ||
var createBrowserHistory=function(a){function d(){let {pathname:c,search:b,hash:e}=n.location,a=f.state||{};return[a.idx,Object.freeze({pathname:c,search:b,hash:e,state:a.usr||null,key:a.key||"default"})]}function g(c){return"string"===typeof c?c:A(c)}function p(c,b){b=void 0===b?null:b;return Object.freeze(Object.assign({},m,"string"===typeof c?B(c):c,{state:b,key:z()}))}function u(c){q=c;[k,m]=d();e.call({action:q,location:m})}function v(c,b){function e(){v(c,b)}let a=p(c,b);if(!l.length||(l.call({action:"PUSH", | ||
location:a,retry:e}),!1)){let [b,c]=[{usr:a.state,key:a.key,idx:k+1},g(a)];try{f.pushState(b,null,c)}catch(C){n.location.assign(c)}u("PUSH")}}function r(c,b){function e(){r(c,b)}let a=p(c,b);if(!l.length||(l.call({action:"REPLACE",location:a,retry:e}),!1)){let [b,c]=[{usr:a.state,key:a.key,idx:k},g(a)];f.replaceState(b,null,c);u("REPLACE")}}function t(c){f.go(c)}var {window:n=document.defaultView}=void 0===a?{}:a;let f=n.history,h=null;n.addEventListener("popstate",function(){if(h)l.call(h),h=null; | ||
else{let [c,b]=d();if(l.length)if(null!=c){let a=k-c;a&&(h={action:"POP",location:b,retry(){t(-1*a)}},t(a))}else w(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else u("POP")}});let q="POP",[k,m]=d(),l=y(),e=y();null==k&&(k=0,f.replaceState(Object.assign({}, | ||
f.state,{idx:k}),null));return{get action(){return q},get location(){return m},createHref:g,push:v,replace:r,go:t,back(){t(-1)},forward(){t(1)},listen(a){return e.push(a)},block(a){let b=l.push(a);1===l.length&&n.addEventListener("beforeunload",x);return function(){b();l.length||n.removeEventListener("beforeunload",x)}}}}; | ||
var createHashHistory=function(a){function d(){let {pathname:b="/",search:a="",hash:c=""}=B(f.location.hash.substr(1)),e=h.state||{};return[e.idx,Object.freeze({pathname:b,search:a,hash:c,state:e.usr||null,key:e.key||"default"})]}function g(){if(q)e.call(q),q=null;else{let [b,a]=d();if(e.length)if(null!=b){let e=m-b;e&&(q={action:"POP",location:a,retry(){n(-1*e)}},n(e))}else w(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."); | ||
else v("POP")}}function p(a){var b=document.querySelector("base");var e="";b&&b.getAttribute("href")&&(b=f.location.href,e=b.indexOf("#"),e=-1===e?b:b.slice(0,e));b=e;return b+"#"+("string"===typeof a?a:A(a))}function u(b,a){a=void 0===a?null:a;return Object.freeze(Object.assign({},l,"string"===typeof b?B(b):b,{state:a,key:z()}))}function v(a){k=a;[m,l]=d();c.call({action:k,location:l})}function r(a,c){function b(){r(a,c)}let d=u(a,c);w("/"===d.pathname.charAt(0),`Relative pathnames are not supported in hash history.push(${JSON.stringify(a)})`); | ||
if(!e.length||(e.call({action:"PUSH",location:d,retry:b}),!1)){let [a,b]=[{usr:d.state,key:d.key,idx:m+1},p(d)];try{h.pushState(a,null,b)}catch(D){f.location.assign(b)}v("PUSH")}}function t(a,c){function b(){t(a,c)}let d=u(a,c);w("/"===d.pathname.charAt(0),`Relative pathnames are not supported in hash history.replace(${JSON.stringify(a)})`);if(!e.length||(e.call({action:"REPLACE",location:d,retry:b}),!1)){let [a,b]=[{usr:d.state,key:d.key,idx:m},p(d)];h.replaceState(a,null,b);v("REPLACE")}}function n(a){h.go(a)} | ||
var {window:f=document.defaultView}=void 0===a?{}:a;let h=f.history,q=null;f.addEventListener("popstate",g);f.addEventListener("hashchange",()=>{let [,a]=d();A(a)!==A(l)&&g()});let k="POP",[m,l]=d(),e=y(),c=y();null==m&&(m=0,h.replaceState(Object.assign({},h.state,{idx:m}),null));return{get action(){return k},get location(){return l},createHref:p,push:r,replace:t,go:n,back(){n(-1)},forward(){n(1)},listen(a){return c.push(a)},block(a){let b=e.push(a);1===e.length&&f.addEventListener("beforeunload", | ||
x);return function(){b();e.length||f.removeEventListener("beforeunload",x)}}}}; | ||
var createMemoryHistory=function(a){function d(a,c){c=void 0===c?null:c;return Object.freeze(Object.assign({},k,"string"===typeof a?B(a):a,{state:c,key:z()}))}function g(a,c,b){return!m.length||(m.call({action:a,location:c,retry:b}),!1)}function p(a,c){q=a;k=c;l.call({action:q,location:k})}function u(a,c){let b=d(a,c);w("/"===k.pathname.charAt(0),`Relative pathnames are not supported in memory history.push(${JSON.stringify(a)})`);g("PUSH",b,function(){u(a,c)})&&(h+=1,f.splice(h,f.length,b),p("PUSH", | ||
b))}function v(a,c){let b=d(a,c);w("/"===k.pathname.charAt(0),`Relative pathnames are not supported in memory history.replace(${JSON.stringify(a)})`);g("REPLACE",b,function(){v(a,c)})&&(f[h]=b,p("REPLACE",b))}function r(a){let c=Math.min(Math.max(h+a,0),f.length-1),b=f[c];g("POP",b,function(){r(a)})&&(h=c,p("POP",b))}var {initialEntries:t=["/"],initialIndex:n=0}=void 0===a?{}:a;let f=t.map(a=>{let c=Object.freeze(Object.assign({},{pathname:"/",search:"",hash:"",state:null,key:z()},"string"===typeof a? | ||
B(a):a));w("/"===c.pathname.charAt(0),`Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: ${JSON.stringify(a)})`);return c}),h=Math.min(Math.max(n,0),f.length-1),q="POP",k=f[h],m=y(),l=y();return{get index(){return h},get action(){return q},get location(){return k},createHref:function(a){return"string"===typeof a?a:A(a)},push:u,replace:v,go:r,back(){r(-1)},forward(){r(1)},listen(a){return l.push(a)},block(a){return m.push(a)}}};var createPath=A; | ||
var parsePath=B;export{createBrowserHistory,createHashHistory,createMemoryHistory,createPath,parsePath}; | ||
//# sourceMappingURL=history.development.js.map |
@@ -1,16 +0,16 @@ | ||
import _extends from '@babel/runtime/helpers/esm/extends';var w="production"!==process.env.NODE_ENV?function(a){return Object.freeze(a)}:function(a){return a};function x(a){a.preventDefault();a.returnValue=""}function y(){var a=[];return{get length(){return a.length},push:function(f){a.push(f);return function(){a=a.filter(function(a){return a!==f})}},call:function(f){a.forEach(function(a){return a&&a(f)})}}}function z(){return Math.random().toString(36).substr(2,8)} | ||
function B(a){var f=a.pathname,h=a.search;a=a.hash;return(void 0===f?"/":f)+(void 0===h?"":h)+(void 0===a?"":a)}function C(a){var f={};if(a){var h=a.indexOf("#");0<=h&&(f.hash=a.substr(h),a=a.substr(0,h));h=a.indexOf("?");0<=h&&(f.search=a.substr(h),a=a.substr(0,h));a&&(f.pathname=a)}return f} | ||
var createBrowserHistory=function(a){function f(){var a=m.location,d=k.state||{};return[d.idx,w({pathname:a.pathname,search:a.search,hash:a.hash,state:d.usr||null,key:d.key||"default"})]}function h(a,d){void 0===d&&(d=null);return w(_extends({},r,{},"string"===typeof a?C(a):a,{state:d,key:z()}))}function t(a){p=a;a=f();n=a[0];r=a[1];c.call({action:p,location:r})}function v(a,d){function c(){v(a,d)}var b=h(a,d);if(!l.length||(l.call({action:"PUSH",location:b,retry:c}),!1)){var A=[{usr:b.state,key:b.key, | ||
idx:n+1},e(b)];b=A[0];A=A[1];try{k.pushState(b,null,A)}catch(D){m.location.assign(A)}t("PUSH")}}function u(a,d){function c(){u(a,d)}var b=h(a,d);l.length&&(l.call({action:"REPLACE",location:b,retry:c}),1)||(b=[{usr:b.state,key:b.key,idx:n},e(b)],k.replaceState(b[0],null,b[1]),t("REPLACE"))}function q(a){k.go(a)}a=(void 0===a?{}:a).window;var m=void 0===a?document.defaultView:a,k=m.history,g=null;m.addEventListener("popstate",function(){if(g)l.call(g),g=null;else{var a=f(),d=a[0];a=a[1];if(l.length)if(null!= | ||
d){var c=n-d;c&&(g={action:"POP",location:a,retry:function(){q(-1*c)}},q(c))}else{if("production"!==process.env.NODE_ENV)throw Error("You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");}else t("POP")}});var p="POP";a=f();var n=a[0],r=a[1],l=y(),c=y();null==n&& | ||
(n=0,k.replaceState(_extends({},k.state,{idx:n}),null));var e=B;return{get action(){return p},get location(){return r},createHref:e,push:v,replace:u,go:q,back:function(){q(-1)},forward:function(){q(1)},listen:function(a){return c.push(a)},block:function(a){var d=l.push(a);1===l.length&&m.addEventListener("beforeunload",x);return function(){d();l.length||m.removeEventListener("beforeunload",x)}}}}; | ||
var createHashHistory=function(a){function f(){var a=C(g.location.hash.substr(1)),c=a.pathname,b=a.search;a=a.hash;var e=p.state||{};return[e.idx,w({pathname:void 0===c?"/":c,search:void 0===b?"":b,hash:void 0===a?"":a,state:e.usr||null,key:e.key||"default"})]}function h(){if(n)e.call(n),n=null;else{var a=f(),c=a[0];a=a[1];if(e.length)if(null!=c){var b=l-c;b&&(n={action:"POP",location:a,retry:function(){k(-1*b)}},k(b))}else{if("production"!==process.env.NODE_ENV)throw Error("You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."); | ||
}else u("POP")}}function t(a){var c=document.querySelector("base"),b="";c&&c.getAttribute("href")&&(c=g.location.href,b=c.indexOf("#"),b=-1===b?c:c.slice(0,b));return b+"#"+B(a)}function v(a,b){void 0===b&&(b=null);return w(_extends({},c,{},"string"===typeof a?C(a):a,{state:b,key:z()}))}function u(a){r=a;a=f();l=a[0];c=a[1];b.call({action:r,location:c})}function q(a,c){function b(){q(a,c)}var d=v(a,c);if("production"!==process.env.NODE_ENV&&"/"!==d.pathname.charAt(0))throw d=JSON.stringify(a),Error("Relative pathnames are not supported in hash history.push("+ | ||
d+")");if(!e.length||(e.call({action:"PUSH",location:d,retry:b}),!1)){var f=[{usr:d.state,key:d.key,idx:l+1},t(d)];d=f[0];f=f[1];try{p.pushState(d,null,f)}catch(E){g.location.assign(f)}u("PUSH")}}function m(a,c){function b(){m(a,c)}var d=v(a,c);if("production"!==process.env.NODE_ENV&&"/"!==d.pathname.charAt(0))throw d=JSON.stringify(a),Error("Relative pathnames are not supported in hash history.replace("+d+")");e.length&&(e.call({action:"REPLACE",location:d,retry:b}),1)||(d=[{usr:d.state,key:d.key, | ||
idx:l},t(d)],p.replaceState(d[0],null,d[1]),u("REPLACE"))}function k(a){p.go(a)}a=(void 0===a?{}:a).window;var g=void 0===a?document.defaultView:a,p=g.history,n=null;g.addEventListener("popstate",h);g.addEventListener("hashchange",function(){var a=f()[1];B(a)!==B(c)&&h()});var r="POP";a=f();var l=a[0],c=a[1],e=y(),b=y();null==l&&(l=0,p.replaceState(_extends({},p.state,{idx:l}),null));return{get action(){return r},get location(){return c},createHref:t,push:q,replace:m,go:k,back:function(){k(-1)},forward:function(){k(1)}, | ||
listen:function(a){return b.push(a)},block:function(a){var c=e.push(a);1===e.length&&g.addEventListener("beforeunload",x);return function(){c();e.length||g.removeEventListener("beforeunload",x)}}}}; | ||
var createMemoryHistory=function(a){function f(a,e){void 0===e&&(e=null);return w(_extends({},n,{},"string"===typeof a?C(a):a,{state:e,key:z()}))}function h(a,e,b){return!r.length||(r.call({action:a,location:e,retry:b}),!1)}function t(a,e){p=a;n=e;l.call({action:p,location:n})}function v(a,e){var b=f(a,e);if("production"!==process.env.NODE_ENV&&"/"!==b.pathname.charAt(0))throw b=JSON.stringify(a),Error("Relative pathnames are not supported in memory history.push("+b+")");h("PUSH",b,function(){v(a, | ||
e)})&&(g+=1,k.splice(g,k.length,b),t("PUSH",b))}function u(a,e){var b=f(a,e);if("production"!==process.env.NODE_ENV&&"/"!==b.pathname.charAt(0))throw b=JSON.stringify(a),Error("Relative pathnames are not supported in memory history.replace("+b+")");h("REPLACE",b,function(){u(a,e)})&&(k[g]=b,t("REPLACE",b))}function q(a){var c=Math.min(Math.max(g+a,0),k.length-1),b=k[c];h("POP",b,function(){q(a)})&&(g=c,t("POP",b))}var m=void 0===a?{}:a;a=m.initialEntries;m=m.initialIndex;m=void 0===m?0:m;var k=(void 0=== | ||
a?["/"]:a).map(function(a){var c=w(_extends({pathname:"/",search:"",hash:"",state:null,key:z()},"string"===typeof a?C(a):a));if("production"!==process.env.NODE_ENV&&"/"!==c.pathname.charAt(0))throw a=JSON.stringify(a),Error("Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: "+a+")");return c}),g=Math.min(Math.max(m,0),k.length-1),p="POP",n=k[g],r=y(),l=y();return{get index(){return g},get action(){return p},get location(){return n},createHref:B,push:v, | ||
replace:u,go:q,back:function(){q(-1)},forward:function(){q(1)},listen:function(a){return l.push(a)},block:function(a){return r.push(a)}}};export{createBrowserHistory,createHashHistory,createMemoryHistory}; | ||
import _extends from '@babel/runtime/helpers/esm/extends';var w="production"!==process.env.NODE_ENV?function(a){return Object.freeze(a)}:function(a){return a};function x(a,f){if(!a){"undefined"!==typeof console&&console.warn(f);try{throw Error(f);}catch(h){}}}function y(a){a.preventDefault();a.returnValue=""}function z(){var a=[];return{get length(){return a.length},push:function(f){a.push(f);return function(){a=a.filter(function(a){return a!==f})}},call:function(f){a.forEach(function(a){return a&&a(f)})}}} | ||
function A(){return Math.random().toString(36).substr(2,8)}function C(a){var f=a.pathname,h=a.search;a=a.hash;return(void 0===f?"/":f)+(void 0===h?"":h)+(void 0===a?"":a)}function D(a){var f={};if(a){var h=a.indexOf("#");0<=h&&(f.hash=a.substr(h),a=a.substr(0,h));h=a.indexOf("?");0<=h&&(f.search=a.substr(h),a=a.substr(0,h));a&&(f.pathname=a)}return f} | ||
var createBrowserHistory=function(a){function f(){var a=k.location,e=g.state||{};return[e.idx,w({pathname:a.pathname,search:a.search,hash:a.hash,state:e.usr||null,key:e.key||"default"})]}function h(a){return"string"===typeof a?a:C(a)}function r(a,e){void 0===e&&(e=null);return w(_extends({},m,{},"string"===typeof a?D(a):a,{state:e,key:A()}))}function u(a){n=a;a=f();p=a[0];m=a[1];c.call({action:n,location:m})}function v(a,e){function c(){v(a,e)}var B=r(a,e);if(!b.length||(b.call({action:"PUSH", | ||
location:B,retry:c}),!1)){var d=[{usr:B.state,key:B.key,idx:p+1},h(B)];B=d[0];d=d[1];try{g.pushState(B,null,d)}catch(E){k.location.assign(d)}u("PUSH")}}function t(a,e){function c(){t(a,e)}var d=r(a,e);b.length&&(b.call({action:"REPLACE",location:d,retry:c}),1)||(d=[{usr:d.state,key:d.key,idx:p},h(d)],g.replaceState(d[0],null,d[1]),u("REPLACE"))}function l(a){g.go(a)}a=(void 0===a?{}:a).window;var k=void 0===a?document.defaultView:a,g=k.history,q=null;k.addEventListener("popstate",function(){if(q)b.call(q), | ||
q=null;else{var a=f(),e=a[0];a=a[1];if(b.length)if(null!=e){var c=p-e;c&&(q={action:"POP",location:a,retry:function(){l(-1*c)}},l(c))}else"production"!==process.env.NODE_ENV?x(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."):void 0;else u("POP")}});var n= | ||
"POP";a=f();var p=a[0],m=a[1],b=z(),c=z();null==p&&(p=0,g.replaceState(_extends({},g.state,{idx:p}),null));return{get action(){return n},get location(){return m},createHref:h,push:v,replace:t,go:l,back:function(){l(-1)},forward:function(){l(1)},listen:function(a){return c.push(a)},block:function(a){var e=b.push(a);1===b.length&&k.addEventListener("beforeunload",y);return function(){e();b.length||k.removeEventListener("beforeunload",y)}}}}; | ||
var createHashHistory=function(a){function f(){var a=D(g.location.hash.substr(1)),b=a.pathname,c=a.search;a=a.hash;var d=q.state||{};return[d.idx,w({pathname:void 0===b?"/":b,search:void 0===c?"":c,hash:void 0===a?"":a,state:d.usr||null,key:d.key||"default"})]}function h(){if(n)c.call(n),n=null;else{var a=f(),b=a[0];a=a[1];if(c.length)if(null!=b){var d=m-b;d&&(n={action:"POP",location:a,retry:function(){k(-1*d)}},k(d))}else"production"!==process.env.NODE_ENV?x(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."): | ||
void 0;else v("POP")}}function r(a){var b=document.querySelector("base"),e="";b&&b.getAttribute("href")&&(b=g.location.href,e=b.indexOf("#"),e=-1===e?b:b.slice(0,e));return e+"#"+("string"===typeof a?a:C(a))}function u(a,c){void 0===c&&(c=null);return w(_extends({},b,{},"string"===typeof a?D(a):a,{state:c,key:A()}))}function v(a){p=a;a=f();m=a[0];b=a[1];d.call({action:p,location:b})}function t(a,b){function d(){t(a,b)}var e=u(a,b);"production"!==process.env.NODE_ENV?x("/"===e.pathname.charAt(0),"Relative pathnames are not supported in hash history.push("+ | ||
JSON.stringify(a)+")"):void 0;if(!c.length||(c.call({action:"PUSH",location:e,retry:d}),!1)){var f=[{usr:e.state,key:e.key,idx:m+1},r(e)];e=f[0];f=f[1];try{q.pushState(e,null,f)}catch(F){g.location.assign(f)}v("PUSH")}}function l(a,b){function e(){l(a,b)}var d=u(a,b);"production"!==process.env.NODE_ENV?x("/"===d.pathname.charAt(0),"Relative pathnames are not supported in hash history.replace("+JSON.stringify(a)+")"):void 0;c.length&&(c.call({action:"REPLACE",location:d,retry:e}),1)||(d=[{usr:d.state, | ||
key:d.key,idx:m},r(d)],q.replaceState(d[0],null,d[1]),v("REPLACE"))}function k(a){q.go(a)}a=(void 0===a?{}:a).window;var g=void 0===a?document.defaultView:a,q=g.history,n=null;g.addEventListener("popstate",h);g.addEventListener("hashchange",function(){var a=f()[1];C(a)!==C(b)&&h()});var p="POP";a=f();var m=a[0],b=a[1],c=z(),d=z();null==m&&(m=0,q.replaceState(_extends({},q.state,{idx:m}),null));return{get action(){return p},get location(){return b},createHref:r,push:t,replace:l,go:k,back:function(){k(-1)}, | ||
forward:function(){k(1)},listen:function(a){return d.push(a)},block:function(a){var b=c.push(a);1===c.length&&g.addEventListener("beforeunload",y);return function(){b();c.length||g.removeEventListener("beforeunload",y)}}}}; | ||
var createMemoryHistory=function(a){function f(a,c){void 0===c&&(c=null);return w(_extends({},n,{},"string"===typeof a?D(a):a,{state:c,key:A()}))}function h(a,c,d){return!p.length||(p.call({action:a,location:c,retry:d}),!1)}function r(a,c){q=a;n=c;m.call({action:q,location:n})}function u(a,c){var b=f(a,c);"production"!==process.env.NODE_ENV?x("/"===n.pathname.charAt(0),"Relative pathnames are not supported in memory history.push("+JSON.stringify(a)+")"):void 0;h("PUSH",b,function(){u(a,c)})&&(g+= | ||
1,k.splice(g,k.length,b),r("PUSH",b))}function v(a,c){var b=f(a,c);"production"!==process.env.NODE_ENV?x("/"===n.pathname.charAt(0),"Relative pathnames are not supported in memory history.replace("+JSON.stringify(a)+")"):void 0;h("REPLACE",b,function(){v(a,c)})&&(k[g]=b,r("REPLACE",b))}function t(a){var b=Math.min(Math.max(g+a,0),k.length-1),d=k[b];h("POP",d,function(){t(a)})&&(g=b,r("POP",d))}var l=void 0===a?{}:a;a=l.initialEntries;l=l.initialIndex;l=void 0===l?0:l;var k=(void 0===a?["/"]:a).map(function(a){var b= | ||
w(_extends({pathname:"/",search:"",hash:"",state:null,key:A()},"string"===typeof a?D(a):a));"production"!==process.env.NODE_ENV?x("/"===b.pathname.charAt(0),"Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: "+JSON.stringify(a)+")"):void 0;return b}),g=Math.min(Math.max(l,0),k.length-1),q="POP",n=k[g],p=z(),m=z();return{get index(){return g},get action(){return q},get location(){return n},createHref:function(a){return"string"===typeof a?a:C(a)},push:u, | ||
replace:v,go:t,back:function(){t(-1)},forward:function(){t(1)},listen:function(a){return m.push(a)},block:function(a){return p.push(a)}}};var createPath=C;var parsePath=D;export{createBrowserHistory,createHashHistory,createMemoryHistory,createPath,parsePath}; | ||
//# sourceMappingURL=history.js.map |
@@ -1,2 +0,2 @@ | ||
function t(t){t.preventDefault(),t.returnValue=""}function e(){let t=[];return{get length(){return t.length},push:e=>(t.push(e),function(){t=t.filter(t=>t!==e)}),call(e){t.forEach(t=>t&&t(e))}}}function n(){return Math.random().toString(36).substr(2,8)}function l(t){var{pathname:e="/",search:n="",hash:l=""}=t;return e+n+l}function a(t){let e={};if(t){var n=t.indexOf("#");0<=n&&(e.hash=t.substr(n),t=t.substr(0,n)),0<=(n=t.indexOf("?"))&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}var r=function(r){function i(){let{pathname:t,search:e,hash:n}=s.location,l=f.state||{};return[l.idx,{pathname:t,search:e,hash:n,state:l.usr||null,key:l.key||"default"}]}function o(t,e){return e=void 0===e?null:e,Object.assign({},p,"string"==typeof t?a(t):t,{state:e,key:n()})}function u(t){d=t,[g,p]=i(),P.call({action:d,location:p})}function c(t){f.go(t)}var{window:s=document.defaultView}=void 0===r?{}:r;let f=s.history,h=null;s.addEventListener("popstate",(function(){if(h)y.call(h),h=null;else{let[t,e]=i();if(y.length){if(null!=t){let n=g-t;n&&(h={action:"POP",location:e,retry(){c(-1*n)}},c(n))}}else u("POP")}}));let d="POP",[g,p]=i(),y=e(),P=e();null==g&&(g=0,f.replaceState(Object.assign({},f.state,{idx:g}),null));let b=l;return{get action(){return d},get location(){return p},createHref:b,push:function t(e,n){let l=o(e,n);if(!y.length||(y.call({action:"PUSH",location:l,retry:function(){t(e,n)}}),0)){let[t,e]=[{usr:l.state,key:l.key,idx:g+1},b(l)];try{f.pushState(t,null,e)}catch(a){s.location.assign(e)}u("PUSH")}},replace:function t(e,n){let l=o(e,n);if(!y.length||(y.call({action:"REPLACE",location:l,retry:function(){t(e,n)}}),0)){let[t,e]=[{usr:l.state,key:l.key,idx:g},b(l)];f.replaceState(t,null,e),u("REPLACE")}},go:c,back(){c(-1)},forward(){c(1)},listen:t=>P.push(t),block(e){let n=y.push(e);return 1===y.length&&s.addEventListener("beforeunload",t),function(){n(),y.length||s.removeEventListener("beforeunload",t)}}}},i=function(r){function i(){let{pathname:t="/",search:e="",hash:n=""}=a(h.location.hash.substr(1)),l=d.state||{};return[l.idx,{pathname:t,search:e,hash:n,state:l.usr||null,key:l.key||"default"}]}function o(){if(g)b.call(g),g=null;else{let[t,e]=i();if(b.length){if(null!=t){let n=y-t;n&&(g={action:"POP",location:e,retry(){f(-1*n)}},f(n))}}else s("POP")}}function u(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=-1===(n=(e=h.location.href).indexOf("#"))?e:e.slice(0,n)),n+"#"+l(t)}function c(t,e){return e=void 0===e?null:e,Object.assign({},P,"string"==typeof t?a(t):t,{state:e,key:n()})}function s(t){p=t,[y,P]=i(),v.call({action:p,location:P})}function f(t){d.go(t)}var{window:h=document.defaultView}=void 0===r?{}:r;let d=h.history,g=null;h.addEventListener("popstate",o),h.addEventListener("hashchange",()=>{let[,t]=i();l(t)!==l(P)&&o()});let p="POP",[y,P]=i(),b=e(),v=e();return null==y&&(y=0,d.replaceState(Object.assign({},d.state,{idx:y}),null)),{get action(){return p},get location(){return P},createHref:u,push:function t(e,n){let l=c(e,n);if(!b.length||(b.call({action:"PUSH",location:l,retry:function(){t(e,n)}}),0)){let[t,e]=[{usr:l.state,key:l.key,idx:y+1},u(l)];try{d.pushState(t,null,e)}catch(a){h.location.assign(e)}s("PUSH")}},replace:function t(e,n){let l=c(e,n);if(!b.length||(b.call({action:"REPLACE",location:l,retry:function(){t(e,n)}}),0)){let[t,e]=[{usr:l.state,key:l.key,idx:y},u(l)];d.replaceState(t,null,e),s("REPLACE")}},go:f,back(){f(-1)},forward(){f(1)},listen:t=>v.push(t),block(e){let n=b.push(e);return 1===b.length&&h.addEventListener("beforeunload",t),function(){n(),b.length||h.removeEventListener("beforeunload",t)}}}},o=function(t){function r(t,e){return e=void 0===e?null:e,Object.assign({},g,"string"==typeof t?a(t):t,{state:e,key:n()})}function i(t,e,n){return!p.length||(p.call({action:t,location:e,retry:n}),!1)}function o(t,e){d=t,g=e,y.call({action:d,location:g})}function u(t){let e=Math.min(Math.max(h+t,0),f.length-1),n=f[e];i("POP",n,(function(){u(t)}))&&(h=e,o("POP",n))}var{initialEntries:c=["/"],initialIndex:s=0}=void 0===t?{}:t;let f=c.map(t=>Object.assign({},{pathname:"/",search:"",hash:"",state:null,key:n()},"string"==typeof t?a(t):t)),h=Math.min(Math.max(s,0),f.length-1),d="POP",g=f[h],p=e(),y=e();return{get index(){return h},get action(){return d},get location(){return g},createHref:l,push:function t(e,n){let l=r(e,n);i("PUSH",l,(function(){t(e,n)}))&&(h+=1,f.splice(h,f.length,l),o("PUSH",l))},replace:function t(e,n){let l=r(e,n);i("REPLACE",l,(function(){t(e,n)}))&&(f[h]=l,o("REPLACE",l))},go:u,back(){u(-1)},forward(){u(1)},listen:t=>y.push(t),block:t=>p.push(t)}};export{r as createBrowserHistory,i as createHashHistory,o as createMemoryHistory}; | ||
function t(t){t.preventDefault(),t.returnValue=""}function e(){let t=[];return{get length(){return t.length},push:e=>(t.push(e),function(){t=t.filter(t=>t!==e)}),call(e){t.forEach(t=>t&&t(e))}}}function n(){return Math.random().toString(36).substr(2,8)}function a(t){var{pathname:e="/",search:n="",hash:a=""}=t;return e+n+a}function l(t){let e={};if(t){var n=t.indexOf("#");0<=n&&(e.hash=t.substr(n),t=t.substr(0,n)),0<=(n=t.indexOf("?"))&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}var r=function(r){function i(){let{pathname:t,search:e,hash:n}=f.location,a=h.state||{};return[a.idx,{pathname:t,search:e,hash:n,state:a.usr||null,key:a.key||"default"}]}function o(t){return"string"==typeof t?t:a(t)}function u(t,e){return e=void 0===e?null:e,Object.assign({},y,"string"==typeof t?l(t):t,{state:e,key:n()})}function c(t){d=t,[p,y]=i(),b.call({action:d,location:y})}function s(t){h.go(t)}var{window:f=document.defaultView}=void 0===r?{}:r;let h=f.history,g=null;f.addEventListener("popstate",(function(){if(g)P.call(g),g=null;else{let[t,e]=i();if(P.length){if(null!=t){let n=p-t;n&&(g={action:"POP",location:e,retry(){s(-1*n)}},s(n))}}else c("POP")}}));let d="POP",[p,y]=i(),P=e(),b=e();return null==p&&(p=0,h.replaceState(Object.assign({},h.state,{idx:p}),null)),{get action(){return d},get location(){return y},createHref:o,push:function t(e,n){let a=u(e,n);if(!P.length||(P.call({action:"PUSH",location:a,retry:function(){t(e,n)}}),0)){let[t,e]=[{usr:a.state,key:a.key,idx:p+1},o(a)];try{h.pushState(t,null,e)}catch(l){f.location.assign(e)}c("PUSH")}},replace:function t(e,n){let a=u(e,n);if(!P.length||(P.call({action:"REPLACE",location:a,retry:function(){t(e,n)}}),0)){let[t,e]=[{usr:a.state,key:a.key,idx:p},o(a)];h.replaceState(t,null,e),c("REPLACE")}},go:s,back(){s(-1)},forward(){s(1)},listen:t=>b.push(t),block(e){let n=P.push(e);return 1===P.length&&f.addEventListener("beforeunload",t),function(){n(),P.length||f.removeEventListener("beforeunload",t)}}}},i=function(r){function i(){let{pathname:t="/",search:e="",hash:n=""}=l(h.location.hash.substr(1)),a=g.state||{};return[a.idx,{pathname:t,search:e,hash:n,state:a.usr||null,key:a.key||"default"}]}function o(){if(d)b.call(d),d=null;else{let[t,e]=i();if(b.length){if(null!=t){let n=y-t;n&&(d={action:"POP",location:e,retry(){f(-1*n)}},f(n))}}else s("POP")}}function u(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=-1===(n=(e=h.location.href).indexOf("#"))?e:e.slice(0,n)),(e=n)+"#"+("string"==typeof t?t:a(t))}function c(t,e){return e=void 0===e?null:e,Object.assign({},P,"string"==typeof t?l(t):t,{state:e,key:n()})}function s(t){p=t,[y,P]=i(),v.call({action:p,location:P})}function f(t){g.go(t)}var{window:h=document.defaultView}=void 0===r?{}:r;let g=h.history,d=null;h.addEventListener("popstate",o),h.addEventListener("hashchange",()=>{let[,t]=i();a(t)!==a(P)&&o()});let p="POP",[y,P]=i(),b=e(),v=e();return null==y&&(y=0,g.replaceState(Object.assign({},g.state,{idx:y}),null)),{get action(){return p},get location(){return P},createHref:u,push:function t(e,n){let a=c(e,n);if(!b.length||(b.call({action:"PUSH",location:a,retry:function(){t(e,n)}}),0)){let[t,e]=[{usr:a.state,key:a.key,idx:y+1},u(a)];try{g.pushState(t,null,e)}catch(l){h.location.assign(e)}s("PUSH")}},replace:function t(e,n){let a=c(e,n);if(!b.length||(b.call({action:"REPLACE",location:a,retry:function(){t(e,n)}}),0)){let[t,e]=[{usr:a.state,key:a.key,idx:y},u(a)];g.replaceState(t,null,e),s("REPLACE")}},go:f,back(){f(-1)},forward(){f(1)},listen:t=>v.push(t),block(e){let n=b.push(e);return 1===b.length&&h.addEventListener("beforeunload",t),function(){n(),b.length||h.removeEventListener("beforeunload",t)}}}},o=function(t){function r(t,e){return e=void 0===e?null:e,Object.assign({},d,"string"==typeof t?l(t):t,{state:e,key:n()})}function i(t,e,n){return!p.length||(p.call({action:t,location:e,retry:n}),!1)}function o(t,e){g=t,d=e,y.call({action:g,location:d})}function u(t){let e=Math.min(Math.max(h+t,0),f.length-1),n=f[e];i("POP",n,(function(){u(t)}))&&(h=e,o("POP",n))}var{initialEntries:c=["/"],initialIndex:s=0}=void 0===t?{}:t;let f=c.map(t=>Object.assign({},{pathname:"/",search:"",hash:"",state:null,key:n()},"string"==typeof t?l(t):t)),h=Math.min(Math.max(s,0),f.length-1),g="POP",d=f[h],p=e(),y=e();return{get index(){return h},get action(){return g},get location(){return d},createHref:function(t){return"string"==typeof t?t:a(t)},push:function t(e,n){let a=r(e,n);i("PUSH",a,(function(){t(e,n)}))&&(h+=1,f.splice(h,f.length,a),o("PUSH",a))},replace:function t(e,n){let a=r(e,n);i("REPLACE",a,(function(){t(e,n)}))&&(f[h]=a,o("REPLACE",a))},go:u,back(){u(-1)},forward(){u(1)},listen:t=>y.push(t),block:t=>p.push(t)}},u=a,c=l;export{r as createBrowserHistory,i as createHashHistory,o as createMemoryHistory,u as createPath,c as parsePath}; | ||
//# sourceMappingURL=history.production.min.js.map |
@@ -1,7 +0,7 @@ | ||
function l(){l=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],e;for(e in c)Object.prototype.hasOwnProperty.call(c,e)&&(a[e]=c[e])}return a};return l.apply(this,arguments)}var r=__DEV__?function(a){return Object.freeze(a)}:function(a){return a};function t(){var a=[];return{get length(){return a.length},push:function(b){a.push(b);return function(){a=a.filter(function(a){return a!==b})}},call:function(b){a.forEach(function(a){return a&&a(b)})}}} | ||
function u(a){var b=a.pathname,c=a.search;a=a.hash;return(void 0===b?"/":b)+(void 0===c?"":c)+(void 0===a?"":a)}function y(a){var b={};if(a){var c=a.indexOf("#");0<=c&&(b.hash=a.substr(c),a=a.substr(0,c));c=a.indexOf("?");0<=c&&(b.search=a.substr(c),a=a.substr(0,c));a&&(b.pathname=a)}return b} | ||
var createMemoryHistory=function(a){function b(a,b){void 0===b&&(b=null);return r(l({},m,{},"string"===typeof a?y(a):a,{state:b,key:Math.random().toString(36).substr(2,8)}))}function c(a,b,c){return!p.length||(p.call({action:a,location:b,retry:c}),!1)}function e(a,b){q=a;m=b;v.call({action:q,location:m})}function w(a,k){var d=b(a,k);if(__DEV__&&"/"!==d.pathname.charAt(0))throw d=JSON.stringify(a),Error("Relative pathnames are not supported in memory history.push("+d+")");c("PUSH",d,function(){w(a, | ||
k)})&&(f+=1,g.splice(f,g.length,d),e("PUSH",d))}function x(a,k){var d=b(a,k);if(__DEV__&&"/"!==d.pathname.charAt(0))throw d=JSON.stringify(a),Error("Relative pathnames are not supported in memory history.replace("+d+")");c("REPLACE",d,function(){x(a,k)})&&(g[f]=d,e("REPLACE",d))}function n(a){var b=Math.min(Math.max(f+a,0),g.length-1),d=g[b];c("POP",d,function(){n(a)})&&(f=b,e("POP",d))}var h=void 0===a?{}:a;a=h.initialEntries;h=h.initialIndex;h=void 0===h?0:h;var g=(void 0===a?["/"]:a).map(function(a){var b= | ||
r(l({pathname:"/",search:"",hash:"",state:null,key:Math.random().toString(36).substr(2,8)},"string"===typeof a?y(a):a));if(__DEV__&&"/"!==b.pathname.charAt(0))throw a=JSON.stringify(a),Error("Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: "+a+")");return b}),f=Math.min(Math.max(h,0),g.length-1),q="POP",m=g[f],p=t(),v=t();return{get index(){return f},get action(){return q},get location(){return m},createHref:u,push:w,replace:x,go:n,back:function(){n(-1)}, | ||
forward:function(){n(1)},listen:function(a){return v.push(a)},block:function(a){return p.push(a)}}};export{createMemoryHistory}; | ||
function m(){m=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],f;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(a[f]=c[f])}return a};return m.apply(this,arguments)}var p=__DEV__?function(a){return Object.freeze(a)}:function(a){return a};function t(a,b){if(!a){"undefined"!==typeof console&&console.warn(b);try{throw Error(b);}catch(c){}}} | ||
function u(){var a=[];return{get length(){return a.length},push:function(b){a.push(b);return function(){a=a.filter(function(a){return a!==b})}},call:function(b){a.forEach(function(a){return a&&a(b)})}}}function v(a){var b={};if(a){var c=a.indexOf("#");0<=c&&(b.hash=a.substr(c),a=a.substr(0,c));c=a.indexOf("?");0<=c&&(b.search=a.substr(c),a=a.substr(0,c));a&&(b.pathname=a)}return b} | ||
var createMemoryHistory=function(a){function b(a,d){void 0===d&&(d=null);return p(m({},l,{},"string"===typeof a?v(a):a,{state:d,key:Math.random().toString(36).substr(2,8)}))}function c(a,d,b){return!q.length||(q.call({action:a,location:d,retry:b}),!1)}function f(a,d){r=a;l=d;w.call({action:r,location:l})}function x(a,d){var e=b(a,d);t("/"===l.pathname.charAt(0),"Relative pathnames are not supported in memory history.push("+JSON.stringify(a)+")");c("PUSH",e,function(){x(a,d)})&&(g+=1,h.splice(g, | ||
h.length,e),f("PUSH",e))}function y(a,d){var e=b(a,d);t("/"===l.pathname.charAt(0),"Relative pathnames are not supported in memory history.replace("+JSON.stringify(a)+")");c("REPLACE",e,function(){y(a,d)})&&(h[g]=e,f("REPLACE",e))}function n(a){var e=Math.min(Math.max(g+a,0),h.length-1),b=h[e];c("POP",b,function(){n(a)})&&(g=e,f("POP",b))}var k=void 0===a?{}:a;a=k.initialEntries;k=k.initialIndex;k=void 0===k?0:k;var h=(void 0===a?["/"]:a).map(function(a){var b=p(m({pathname:"/",search:"",hash:"", | ||
state:null,key:Math.random().toString(36).substr(2,8)},"string"===typeof a?v(a):a));t("/"===b.pathname.charAt(0),"Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: "+JSON.stringify(a)+")");return b}),g=Math.min(Math.max(k,0),h.length-1),r="POP",l=h[g],q=u(),w=u();return{get index(){return g},get action(){return r},get location(){return l},createHref:function(a){if("string"===typeof a)var b=a;else{b=a.pathname;var c=a.search;a=a.hash;b=(void 0===b?"/": | ||
b)+(void 0===c?"":c)+(void 0===a?"":a)}return b},push:x,replace:y,go:n,back:function(){n(-1)},forward:function(){n(1)},listen:function(a){return w.push(a)},block:function(a){return q.push(a)}}};export{createMemoryHistory}; | ||
//# sourceMappingURL=memory.js.map |
{ | ||
"name": "history", | ||
"version": "5.0.0-beta.3", | ||
"version": "5.0.0-beta.4", | ||
"description": "Manage session history with JavaScript", | ||
@@ -8,3 +8,3 @@ "repository": "ReactTraining/history", | ||
"author": "React Training <hello@reacttraining.com>", | ||
"main": "index.js", | ||
"main": "node-main.js", | ||
"module": "history.js", | ||
@@ -11,0 +11,0 @@ "unpkg": "umd/history.production.min.js", |
@@ -1,15 +0,15 @@ | ||
'use strict';(function(x,t){"object"===typeof exports&&"undefined"!==typeof module?t(exports):"function"===typeof define&&define.amd?define(["exports"],t):t(x.HistoryLibrary={})})(this,function(x){function t(){t=Object.assign||function(a){for(var e=1;e<arguments.length;e++){var g=arguments[e],p;for(p in g)Object.prototype.hasOwnProperty.call(g,p)&&(a[p]=g[p])}return a};return t.apply(this,arguments)}function C(a){a.preventDefault();a.returnValue=""}function y(){var a=[];return{get length(){return a.length}, | ||
push:function(e){a.push(e);return function(){a=a.filter(function(a){return a!==e})}},call:function(e){a.forEach(function(a){return a&&a(e)})}}}function D(){return Math.random().toString(36).substr(2,8)}function z(a){var e=a.pathname,g=a.search;a=a.hash;return(void 0===e?"/":e)+(void 0===g?"":g)+(void 0===a?"":a)}function A(a){var e={};if(a){var g=a.indexOf("#");0<=g&&(e.hash=a.substr(g),a=a.substr(0,g));g=a.indexOf("?");0<=g&&(e.search=a.substr(g),a=a.substr(0,g));a&&(e.pathname=a)}return e}x.createBrowserHistory= | ||
function(a){function e(){var a=m.location,c=k.state||{};return[c.idx,Object.freeze({pathname:a.pathname,search:a.search,hash:a.hash,state:c.usr||null,key:c.key||"default"})]}function g(a,c){void 0===c&&(c=null);return Object.freeze(t({},u,{},"string"===typeof a?A(a):a,{state:c,key:D()}))}function p(a){q=a;a=e();n=a[0];u=a[1];b.call({action:q,location:u})}function w(a,c){function b(){w(a,c)}var d=g(a,c);if(!l.length||(l.call({action:"PUSH",location:d,retry:b}),!1)){var B=[{usr:d.state,key:d.key,idx:n+ | ||
1},f(d)];d=B[0];B=B[1];try{k.pushState(d,null,B)}catch(E){m.location.assign(B)}p("PUSH")}}function v(a,c){function b(){v(a,c)}var d=g(a,c);l.length&&(l.call({action:"REPLACE",location:d,retry:b}),1)||(d=[{usr:d.state,key:d.key,idx:n},f(d)],k.replaceState(d[0],null,d[1]),p("REPLACE"))}function r(a){k.go(a)}a=(void 0===a?{}:a).window;var m=void 0===a?document.defaultView:a,k=m.history,h=null;m.addEventListener("popstate",function(){if(h)l.call(h),h=null;else{var a=e(),c=a[0];a=a[1];if(l.length)if(null!= | ||
c){var b=n-c;b&&(h={action:"POP",location:a,retry:function(){r(-1*b)}},r(b))}else throw Error("You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else p("POP")}});var q="POP";a=e();var n=a[0],u=a[1],l=y(),b=y();null==n&&(n=0,k.replaceState(t({},k.state,{idx:n}), | ||
null));var f=z;return{get action(){return q},get location(){return u},createHref:f,push:w,replace:v,go:r,back:function(){r(-1)},forward:function(){r(1)},listen:function(a){return b.push(a)},block:function(a){var c=l.push(a);1===l.length&&m.addEventListener("beforeunload",C);return function(){c();l.length||m.removeEventListener("beforeunload",C)}}}};x.createHashHistory=function(a){function e(){var a=A(h.location.hash.substr(1)),b=a.pathname,d=a.search;a=a.hash;var f=q.state||{};return[f.idx,Object.freeze({pathname:void 0=== | ||
b?"/":b,search:void 0===d?"":d,hash:void 0===a?"":a,state:f.usr||null,key:f.key||"default"})]}function g(){if(n)f.call(n),n=null;else{var a=e(),b=a[0];a=a[1];if(f.length)if(null!=b){var d=l-b;d&&(n={action:"POP",location:a,retry:function(){k(-1*d)}},k(d))}else throw Error("You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."); | ||
else v("POP")}}function p(a){var b=document.querySelector("base"),c="";b&&b.getAttribute("href")&&(b=h.location.href,c=b.indexOf("#"),c=-1===c?b:b.slice(0,c));return c+"#"+z(a)}function w(a,d){void 0===d&&(d=null);return Object.freeze(t({},b,{},"string"===typeof a?A(a):a,{state:d,key:D()}))}function v(a){u=a;a=e();l=a[0];b=a[1];d.call({action:u,location:b})}function r(a,b){function d(){r(a,b)}var c=w(a,b);if("/"!==c.pathname.charAt(0))throw c=JSON.stringify(a),Error("Relative pathnames are not supported in hash history.push("+ | ||
c+")");if(!f.length||(f.call({action:"PUSH",location:c,retry:d}),!1)){var e=[{usr:c.state,key:c.key,idx:l+1},p(c)];c=e[0];e=e[1];try{q.pushState(c,null,e)}catch(F){h.location.assign(e)}v("PUSH")}}function m(a,b){function d(){m(a,b)}var c=w(a,b);if("/"!==c.pathname.charAt(0))throw c=JSON.stringify(a),Error("Relative pathnames are not supported in hash history.replace("+c+")");f.length&&(f.call({action:"REPLACE",location:c,retry:d}),1)||(c=[{usr:c.state,key:c.key,idx:l},p(c)],q.replaceState(c[0],null, | ||
c[1]),v("REPLACE"))}function k(a){q.go(a)}a=(void 0===a?{}:a).window;var h=void 0===a?document.defaultView:a,q=h.history,n=null;h.addEventListener("popstate",g);h.addEventListener("hashchange",function(a){a=e()[1];z(a)!==z(b)&&g()});var u="POP";a=e();var l=a[0],b=a[1],f=y(),d=y();null==l&&(l=0,q.replaceState(t({},q.state,{idx:l}),null));return{get action(){return u},get location(){return b},createHref:p,push:r,replace:m,go:k,back:function(){k(-1)},forward:function(){k(1)},listen:function(a){return d.push(a)}, | ||
block:function(a){var b=f.push(a);1===f.length&&h.addEventListener("beforeunload",C);return function(){b();f.length||h.removeEventListener("beforeunload",C)}}}};x.createMemoryHistory=function(a){function e(a,f){void 0===f&&(f=null);return Object.freeze(t({},n,{},"string"===typeof a?A(a):a,{state:f,key:D()}))}function g(a,f,d){return!u.length||(u.call({action:a,location:f,retry:d}),!1)}function p(a,f){q=a;n=f;l.call({action:q,location:n})}function w(a,f){var b=e(a,f);if("/"!==b.pathname.charAt(0))throw b= | ||
JSON.stringify(a),Error("Relative pathnames are not supported in memory history.push("+b+")");g("PUSH",b,function(){w(a,f)})&&(h+=1,k.splice(h,k.length,b),p("PUSH",b))}function v(a,f){var b=e(a,f);if("/"!==b.pathname.charAt(0))throw b=JSON.stringify(a),Error("Relative pathnames are not supported in memory history.replace("+b+")");g("REPLACE",b,function(){v(a,f)})&&(k[h]=b,p("REPLACE",b))}function r(a){var b=Math.min(Math.max(h+a,0),k.length-1),d=k[b];g("POP",d,function(){r(a)})&&(h=b,p("POP",d))} | ||
var m=void 0===a?{}:a;a=m.initialEntries;m=m.initialIndex;m=void 0===m?0:m;var k=(void 0===a?["/"]:a).map(function(a){var b=Object.freeze(t({pathname:"/",search:"",hash:"",state:null,key:D()},"string"===typeof a?A(a):a));if("/"!==b.pathname.charAt(0))throw a=JSON.stringify(a),Error("Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: "+a+")");return b}),h=Math.min(Math.max(m,0),k.length-1),q="POP",n=k[h],u=y(),l=y();return{get index(){return h},get action(){return q}, | ||
get location(){return n},createHref:z,push:w,replace:v,go:r,back:function(){r(-1)},forward:function(){r(1)},listen:function(a){return l.push(a)},block:function(a){return u.push(a)}}};Object.defineProperty(x,"__esModule",{value:!0})}); | ||
'use strict';(function(h,r){"object"===typeof exports&&"undefined"!==typeof module?r(exports):"function"===typeof define&&define.amd?define(["exports"],r):(h=h||self,r(h.HistoryLibrary={}))})(this,function(h){function r(){r=Object.assign||function(a){for(var c=1;c<arguments.length;c++){var e=arguments[c],t;for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t])}return a};return r.apply(this,arguments)}function x(a,c){if(!a){"undefined"!==typeof console&&console.warn(c);try{throw Error(c); | ||
}catch(e){}}}function y(a){a.preventDefault();a.returnValue=""}function z(){var a=[];return{get length(){return a.length},push:function(c){a.push(c);return function(){a=a.filter(function(a){return a!==c})}},call:function(c){a.forEach(function(a){return a&&a(c)})}}}function C(){return Math.random().toString(36).substr(2,8)}function A(a){var c=a.pathname,e=a.search;a=a.hash;return(void 0===c?"/":c)+(void 0===e?"":e)+(void 0===a?"":a)}function B(a){var c={};if(a){var e=a.indexOf("#");0<=e&&(c.hash=a.substr(e), | ||
a=a.substr(0,e));e=a.indexOf("?");0<=e&&(c.search=a.substr(e),a=a.substr(0,e));a&&(c.pathname=a)}return c}h.createBrowserHistory=function(a){function c(){var a=k.location,f=g.state||{};return[f.idx,Object.freeze({pathname:a.pathname,search:a.search,hash:a.hash,state:f.usr||null,key:f.key||"default"})]}function e(a){return"string"===typeof a?a:A(a)}function t(a,f){void 0===f&&(f=null);return Object.freeze(r({},m,{},"string"===typeof a?B(a):a,{state:f,key:C()}))}function h(a){n=a;a=c();p=a[0];m=a[1]; | ||
b.call({action:n,location:m})}function v(a,f){function b(){v(a,f)}var c=t(a,f);if(!d.length||(d.call({action:"PUSH",location:c,retry:b}),!1)){var w=[{usr:c.state,key:c.key,idx:p+1},e(c)];c=w[0];w=w[1];try{g.pushState(c,null,w)}catch(D){k.location.assign(w)}h("PUSH")}}function u(a,f){function c(){u(a,f)}var b=t(a,f);d.length&&(d.call({action:"REPLACE",location:b,retry:c}),1)||(b=[{usr:b.state,key:b.key,idx:p},e(b)],g.replaceState(b[0],null,b[1]),h("REPLACE"))}function l(a){g.go(a)}a=(void 0===a?{}: | ||
a).window;var k=void 0===a?document.defaultView:a,g=k.history,q=null;k.addEventListener("popstate",function(){if(q)d.call(q),q=null;else{var a=c(),f=a[0];a=a[1];if(d.length)if(null!=f){var b=p-f;b&&(q={action:"POP",location:a,retry:function(){l(-1*b)}},l(b))}else x(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."); | ||
else h("POP")}});var n="POP";a=c();var p=a[0],m=a[1],d=z(),b=z();null==p&&(p=0,g.replaceState(r({},g.state,{idx:p}),null));return{get action(){return n},get location(){return m},createHref:e,push:v,replace:u,go:l,back:function(){l(-1)},forward:function(){l(1)},listen:function(a){return b.push(a)},block:function(a){var f=d.push(a);1===d.length&&k.addEventListener("beforeunload",y);return function(){f();d.length||k.removeEventListener("beforeunload",y)}}}};h.createHashHistory=function(a){function c(){var a= | ||
B(g.location.hash.substr(1)),d=a.pathname,b=a.search;a=a.hash;var c=q.state||{};return[c.idx,Object.freeze({pathname:void 0===d?"/":d,search:void 0===b?"":b,hash:void 0===a?"":a,state:c.usr||null,key:c.key||"default"})]}function e(){if(n)b.call(n),n=null;else{var a=c(),d=a[0];a=a[1];if(b.length)if(null!=d){var e=m-d;e&&(n={action:"POP",location:a,retry:function(){k(-1*e)}},k(e))}else x(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."); | ||
else v("POP")}}function t(a){var d=document.querySelector("base"),b="";d&&d.getAttribute("href")&&(d=g.location.href,b=d.indexOf("#"),b=-1===b?d:d.slice(0,b));return b+"#"+("string"===typeof a?a:A(a))}function h(a,b){void 0===b&&(b=null);return Object.freeze(r({},d,{},"string"===typeof a?B(a):a,{state:b,key:C()}))}function v(a){p=a;a=c();m=a[0];d=a[1];w.call({action:p,location:d})}function u(a,d){function c(){u(a,d)}var f=h(a,d);x("/"===f.pathname.charAt(0),"Relative pathnames are not supported in hash history.push("+ | ||
JSON.stringify(a)+")");if(!b.length||(b.call({action:"PUSH",location:f,retry:c}),!1)){var e=[{usr:f.state,key:f.key,idx:m+1},t(f)];f=e[0];e=e[1];try{q.pushState(f,null,e)}catch(E){g.location.assign(e)}v("PUSH")}}function l(a,d){function c(){l(a,d)}var e=h(a,d);x("/"===e.pathname.charAt(0),"Relative pathnames are not supported in hash history.replace("+JSON.stringify(a)+")");b.length&&(b.call({action:"REPLACE",location:e,retry:c}),1)||(e=[{usr:e.state,key:e.key,idx:m},t(e)],q.replaceState(e[0],null, | ||
e[1]),v("REPLACE"))}function k(a){q.go(a)}a=(void 0===a?{}:a).window;var g=void 0===a?document.defaultView:a,q=g.history,n=null;g.addEventListener("popstate",e);g.addEventListener("hashchange",function(a){a=c()[1];A(a)!==A(d)&&e()});var p="POP";a=c();var m=a[0],d=a[1],b=z(),w=z();null==m&&(m=0,q.replaceState(r({},q.state,{idx:m}),null));return{get action(){return p},get location(){return d},createHref:t,push:u,replace:l,go:k,back:function(){k(-1)},forward:function(){k(1)},listen:function(a){return w.push(a)}, | ||
block:function(a){var d=b.push(a);1===b.length&&g.addEventListener("beforeunload",y);return function(){d();b.length||g.removeEventListener("beforeunload",y)}}}};h.createMemoryHistory=function(a){function c(a,b){void 0===b&&(b=null);return Object.freeze(r({},n,{},"string"===typeof a?B(a):a,{state:b,key:C()}))}function e(a,b,c){return!p.length||(p.call({action:a,location:b,retry:c}),!1)}function h(a,b){q=a;n=b;m.call({action:q,location:n})}function y(a,b){var d=c(a,b);x("/"===n.pathname.charAt(0),"Relative pathnames are not supported in memory history.push("+ | ||
JSON.stringify(a)+")");e("PUSH",d,function(){y(a,b)})&&(g+=1,k.splice(g,k.length,d),h("PUSH",d))}function v(a,b){var d=c(a,b);x("/"===n.pathname.charAt(0),"Relative pathnames are not supported in memory history.replace("+JSON.stringify(a)+")");e("REPLACE",d,function(){v(a,b)})&&(k[g]=d,h("REPLACE",d))}function u(a){var b=Math.min(Math.max(g+a,0),k.length-1),d=k[b];e("POP",d,function(){u(a)})&&(g=b,h("POP",d))}var l=void 0===a?{}:a;a=l.initialEntries;l=l.initialIndex;l=void 0===l?0:l;var k=(void 0=== | ||
a?["/"]:a).map(function(a){var b=Object.freeze(r({pathname:"/",search:"",hash:"",state:null,key:C()},"string"===typeof a?B(a):a));x("/"===b.pathname.charAt(0),"Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: "+JSON.stringify(a)+")");return b}),g=Math.min(Math.max(l,0),k.length-1),q="POP",n=k[g],p=z(),m=z();return{get index(){return g},get action(){return q},get location(){return n},createHref:function(a){return"string"===typeof a?a:A(a)},push:y,replace:v, | ||
go:u,back:function(){u(-1)},forward:function(){u(1)},listen:function(a){return m.push(a)},block:function(a){return p.push(a)}}};h.createPath=A;h.parsePath=B;Object.defineProperty(h,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=history.development.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.HistoryLibrary={})}(this,(function(t){function n(){return(n=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e,r=arguments[n];for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}).apply(this,arguments)}function e(t){t.preventDefault(),t.returnValue=""}function r(){var t=[];return{get length(){return t.length},push:function(n){return t.push(n),function(){t=t.filter((function(t){return t!==n}))}},call:function(n){t.forEach((function(t){return t&&t(n)}))}}}function o(){return Math.random().toString(36).substr(2,8)}function a(t){var n=t.pathname,e=t.search;return(void 0===n?"/":n)+(void 0===e?"":e)+(void 0===(t=t.hash)?"":t)}function i(t){var n={};if(t){var e=t.indexOf("#");0<=e&&(n.hash=t.substr(e),t=t.substr(0,e)),0<=(e=t.indexOf("?"))&&(n.search=t.substr(e),t=t.substr(0,e)),t&&(n.pathname=t)}return n}t.createBrowserHistory=function(t){function u(){var t=s.location,n=h.state||{};return[n.idx,{pathname:t.pathname,search:t.search,hash:t.hash,state:n.usr||null,key:n.key||"default"}]}function c(t,e){return void 0===e&&(e=null),n({},y,{},"string"==typeof t?i(t):t,{state:e,key:o()})}function l(t){v=t,t=u(),p=t[0],y=t[1],P.call({action:v,location:y})}function f(t){h.go(t)}var s=void 0===(t=(void 0===t?{}:t).window)?document.defaultView:t,h=s.history,d=null;s.addEventListener("popstate",(function(){if(d)g.call(d),d=null;else{var t=u(),n=t[0];if(t=t[1],g.length){if(null!=n){var e=p-n;e&&(d={action:"POP",location:t,retry:function(){f(-1*e)}},f(e))}}else l("POP")}}));var v="POP",p=(t=u())[0],y=t[1],g=r(),P=r();null==p&&(p=0,h.replaceState(n({},h.state,{idx:p}),null));var b=a;return{get action(){return v},get location(){return y},createHref:b,push:function t(n,e){var r=c(n,e);if(!g.length||(g.call({action:"PUSH",location:r,retry:function(){t(n,e)}}),0)){var o=[{usr:r.state,key:r.key,idx:p+1},b(r)];r=o[0],o=o[1];try{h.pushState(r,null,o)}catch(t){s.location.assign(o)}l("PUSH")}},replace:function t(n,e){var r=c(n,e);g.length&&(g.call({action:"REPLACE",location:r,retry:function(){t(n,e)}}),1)||(r=[{usr:r.state,key:r.key,idx:p},b(r)],h.replaceState(r[0],null,r[1]),l("REPLACE"))},go:f,back:function(){f(-1)},forward:function(){f(1)},listen:function(t){return P.push(t)},block:function(t){var n=g.push(t);return 1===g.length&&s.addEventListener("beforeunload",e),function(){n(),g.length||s.removeEventListener("beforeunload",e)}}}},t.createHashHistory=function(t){function u(){var t=i(d.location.hash.substr(1)),n=t.pathname,e=t.search;t=t.hash;var r=v.state||{};return[r.idx,{pathname:void 0===n?"/":n,search:void 0===e?"":e,hash:void 0===t?"":t,state:r.usr||null,key:r.key||"default"}]}function c(){if(p)b.call(p),p=null;else{var t=u(),n=t[0];if(t=t[1],b.length){if(null!=n){var e=g-n;e&&(p={action:"POP",location:t,retry:function(){h(-1*e)}},h(e))}}else s("POP")}}function l(t){var n=document.querySelector("base"),e="";return n&&n.getAttribute("href")&&(e=-1===(e=(n=d.location.href).indexOf("#"))?n:n.slice(0,e)),e+"#"+a(t)}function f(t,e){return void 0===e&&(e=null),n({},P,{},"string"==typeof t?i(t):t,{state:e,key:o()})}function s(t){y=t,t=u(),g=t[0],P=t[1],k.call({action:y,location:P})}function h(t){v.go(t)}var d=void 0===(t=(void 0===t?{}:t).window)?document.defaultView:t,v=d.history,p=null;d.addEventListener("popstate",c),d.addEventListener("hashchange",(function(t){a(u()[1])!==a(P)&&c()}));var y="POP",g=(t=u())[0],P=t[1],b=r(),k=r();return null==g&&(g=0,v.replaceState(n({},v.state,{idx:g}),null)),{get action(){return y},get location(){return P},createHref:l,push:function t(n,e){var r=f(n,e);if(!b.length||(b.call({action:"PUSH",location:r,retry:function(){t(n,e)}}),0)){var o=[{usr:r.state,key:r.key,idx:g+1},l(r)];r=o[0],o=o[1];try{v.pushState(r,null,o)}catch(t){d.location.assign(o)}s("PUSH")}},replace:function t(n,e){var r=f(n,e);b.length&&(b.call({action:"REPLACE",location:r,retry:function(){t(n,e)}}),1)||(r=[{usr:r.state,key:r.key,idx:g},l(r)],v.replaceState(r[0],null,r[1]),s("REPLACE"))},go:h,back:function(){h(-1)},forward:function(){h(1)},listen:function(t){return k.push(t)},block:function(t){var n=b.push(t);return 1===b.length&&d.addEventListener("beforeunload",e),function(){n(),b.length||d.removeEventListener("beforeunload",e)}}}},t.createMemoryHistory=function(t){function e(t,e){return void 0===e&&(e=null),n({},v,{},"string"==typeof t?i(t):t,{state:e,key:o()})}function u(t,n,e){return!p.length||(p.call({action:t,location:n,retry:e}),!1)}function c(t,n){d=t,v=n,y.call({action:d,location:v})}function l(t){var n=Math.min(Math.max(h+t,0),s.length-1),e=s[n];u("POP",e,(function(){l(t)}))&&(h=n,c("POP",e))}var f=void 0===t?{}:t;t=f.initialEntries,f=void 0===(f=f.initialIndex)?0:f;var s=(void 0===t?["/"]:t).map((function(t){return n({pathname:"/",search:"",hash:"",state:null,key:o()},"string"==typeof t?i(t):t)})),h=Math.min(Math.max(f,0),s.length-1),d="POP",v=s[h],p=r(),y=r();return{get index(){return h},get action(){return d},get location(){return v},createHref:a,push:function t(n,r){var o=e(n,r);u("PUSH",o,(function(){t(n,r)}))&&(h+=1,s.splice(h,s.length,o),c("PUSH",o))},replace:function t(n,r){var o=e(n,r);u("REPLACE",o,(function(){t(n,r)}))&&(s[h]=o,c("REPLACE",o))},go:l,back:function(){l(-1)},forward:function(){l(1)},listen:function(t){return y.push(t)},block:function(t){return p.push(t)}}},Object.defineProperty(t,"__esModule",{value:!0})})); | ||
"use strict";!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).HistoryLibrary={})}(this,(function(t){function n(){return(n=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e,r=arguments[n];for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}).apply(this,arguments)}function e(t){t.preventDefault(),t.returnValue=""}function r(){var t=[];return{get length(){return t.length},push:function(n){return t.push(n),function(){t=t.filter((function(t){return t!==n}))}},call:function(n){t.forEach((function(t){return t&&t(n)}))}}}function o(){return Math.random().toString(36).substr(2,8)}function a(t){var n=t.pathname,e=t.search;return(void 0===n?"/":n)+(void 0===e?"":e)+(void 0===(t=t.hash)?"":t)}function i(t){var n={};if(t){var e=t.indexOf("#");0<=e&&(n.hash=t.substr(e),t=t.substr(0,e)),0<=(e=t.indexOf("?"))&&(n.search=t.substr(e),t=t.substr(0,e)),t&&(n.pathname=t)}return n}t.createBrowserHistory=function(t){function u(){var t=h.location,n=d.state||{};return[n.idx,{pathname:t.pathname,search:t.search,hash:t.hash,state:n.usr||null,key:n.key||"default"}]}function c(t){return"string"==typeof t?t:a(t)}function l(t,e){return void 0===e&&(e=null),n({},g,{},"string"==typeof t?i(t):t,{state:e,key:o()})}function f(t){p=t,t=u(),y=t[0],g=t[1],b.call({action:p,location:g})}function s(t){d.go(t)}var h=void 0===(t=(void 0===t?{}:t).window)?document.defaultView:t,d=h.history,v=null;h.addEventListener("popstate",(function(){if(v)P.call(v),v=null;else{var t=u(),n=t[0];if(t=t[1],P.length){if(null!=n){var e=y-n;e&&(v={action:"POP",location:t,retry:function(){s(-1*e)}},s(e))}}else f("POP")}}));var p="POP",y=(t=u())[0],g=t[1],P=r(),b=r();return null==y&&(y=0,d.replaceState(n({},d.state,{idx:y}),null)),{get action(){return p},get location(){return g},createHref:c,push:function t(n,e){var r=l(n,e);if(!P.length||(P.call({action:"PUSH",location:r,retry:function(){t(n,e)}}),0)){var o=[{usr:r.state,key:r.key,idx:y+1},c(r)];r=o[0],o=o[1];try{d.pushState(r,null,o)}catch(t){h.location.assign(o)}f("PUSH")}},replace:function t(n,e){var r=l(n,e);P.length&&(P.call({action:"REPLACE",location:r,retry:function(){t(n,e)}}),1)||(r=[{usr:r.state,key:r.key,idx:y},c(r)],d.replaceState(r[0],null,r[1]),f("REPLACE"))},go:s,back:function(){s(-1)},forward:function(){s(1)},listen:function(t){return b.push(t)},block:function(t){var n=P.push(t);return 1===P.length&&h.addEventListener("beforeunload",e),function(){n(),P.length||h.removeEventListener("beforeunload",e)}}}},t.createHashHistory=function(t){function u(){var t=i(d.location.hash.substr(1)),n=t.pathname,e=t.search;t=t.hash;var r=v.state||{};return[r.idx,{pathname:void 0===n?"/":n,search:void 0===e?"":e,hash:void 0===t?"":t,state:r.usr||null,key:r.key||"default"}]}function c(){if(p)b.call(p),p=null;else{var t=u(),n=t[0];if(t=t[1],b.length){if(null!=n){var e=g-n;e&&(p={action:"POP",location:t,retry:function(){h(-1*e)}},h(e))}}else s("POP")}}function l(t){var n=document.querySelector("base"),e="";return n&&n.getAttribute("href")&&(e=-1===(e=(n=d.location.href).indexOf("#"))?n:n.slice(0,e)),e+"#"+("string"==typeof t?t:a(t))}function f(t,e){return void 0===e&&(e=null),n({},P,{},"string"==typeof t?i(t):t,{state:e,key:o()})}function s(t){y=t,t=u(),g=t[0],P=t[1],k.call({action:y,location:P})}function h(t){v.go(t)}var d=void 0===(t=(void 0===t?{}:t).window)?document.defaultView:t,v=d.history,p=null;d.addEventListener("popstate",c),d.addEventListener("hashchange",(function(t){a(u()[1])!==a(P)&&c()}));var y="POP",g=(t=u())[0],P=t[1],b=r(),k=r();return null==g&&(g=0,v.replaceState(n({},v.state,{idx:g}),null)),{get action(){return y},get location(){return P},createHref:l,push:function t(n,e){var r=f(n,e);if(!b.length||(b.call({action:"PUSH",location:r,retry:function(){t(n,e)}}),0)){var o=[{usr:r.state,key:r.key,idx:g+1},l(r)];r=o[0],o=o[1];try{v.pushState(r,null,o)}catch(t){d.location.assign(o)}s("PUSH")}},replace:function t(n,e){var r=f(n,e);b.length&&(b.call({action:"REPLACE",location:r,retry:function(){t(n,e)}}),1)||(r=[{usr:r.state,key:r.key,idx:g},l(r)],v.replaceState(r[0],null,r[1]),s("REPLACE"))},go:h,back:function(){h(-1)},forward:function(){h(1)},listen:function(t){return k.push(t)},block:function(t){var n=b.push(t);return 1===b.length&&d.addEventListener("beforeunload",e),function(){n(),b.length||d.removeEventListener("beforeunload",e)}}}},t.createMemoryHistory=function(t){function e(t,e){return void 0===e&&(e=null),n({},v,{},"string"==typeof t?i(t):t,{state:e,key:o()})}function u(t,n,e){return!p.length||(p.call({action:t,location:n,retry:e}),!1)}function c(t,n){d=t,v=n,y.call({action:d,location:v})}function l(t){var n=Math.min(Math.max(h+t,0),s.length-1),e=s[n];u("POP",e,(function(){l(t)}))&&(h=n,c("POP",e))}var f=void 0===t?{}:t;t=f.initialEntries,f=void 0===(f=f.initialIndex)?0:f;var s=(void 0===t?["/"]:t).map((function(t){return n({pathname:"/",search:"",hash:"",state:null,key:o()},"string"==typeof t?i(t):t)})),h=Math.min(Math.max(f,0),s.length-1),d="POP",v=s[h],p=r(),y=r();return{get index(){return h},get action(){return d},get location(){return v},createHref:function(t){return"string"==typeof t?t:a(t)},push:function t(n,r){var o=e(n,r);u("PUSH",o,(function(){t(n,r)}))&&(h+=1,s.splice(h,s.length,o),c("PUSH",o))},replace:function t(n,r){var o=e(n,r);u("REPLACE",o,(function(){t(n,r)}))&&(s[h]=o,c("REPLACE",o))},go:l,back:function(){l(-1)},forward:function(){l(1)},listen:function(t){return y.push(t)},block:function(t){return p.push(t)}}},t.createPath=a,t.parsePath=i,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=history.production.min.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
255741
178