Comparing version 1.0.0 to 1.0.1
@@ -1,1 +0,1 @@ | ||
(function(){"use strict";var e=function(a){var b=a.server,i=a.domain,j=function(){fetch(b+"/pageview",{method:"POST",body:JSON.stringify({url:location.href,domain:i})})};return{pageview:j}},c=document.currentScript||document.querySelector("script[data-analybase-site]");if(c){var f=c.getAttribute("data-analybase-site"),g=c.getAttribute("data-analybase-server")||"https://api.analybase.com",d=e({server:g,domain:f});d.pageview();var h=history.pushState;history.pushState=function(){for(var a=[],b=arguments.length;b--;)a[b]=arguments[b];h.apply(void 0,a),d.pageview()},window.addEventListener("popstate",function(){d.pageview()})}})(); | ||
(function(){"use strict";var e=function(a){var b=a.server,i=a.domain,j=function(){fetch(b+"/pageview",{method:"POST",body:JSON.stringify({url:location.href,domain:i}),headers:{"content-type":"application/json"}})};return{pageview:j}},c=document.currentScript||document.querySelector("script[data-analybase-site]");if(c){var f=c.getAttribute("data-analybase-site"),g=c.getAttribute("data-analybase-server")||"https://api.analybase.com",d=e({server:g,domain:f});d.pageview();var h=history.pushState;history.pushState=function(){for(var a=[],b=arguments.length;b--;)a[b]=arguments[b];h.apply(void 0,a),d.pageview()},window.addEventListener("popstate",function(){d.pageview()})}})(); |
@@ -14,3 +14,6 @@ (function () { | ||
domain: domain | ||
}) | ||
}), | ||
headers: { | ||
"content-type": "application/json" | ||
} | ||
}); | ||
@@ -17,0 +20,0 @@ }; |
{ | ||
"name": "analybase", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "*.js", |
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
2228
45