keen-tracking
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -9,2 +9,9 @@ <!-- | ||
--> | ||
<a name="1.1.4"></a> | ||
# 1.1.4 Bug fix for React Native | ||
**FIXED:** | ||
* Fixed `window.navigator` reference to avoid errors in environments that expose non-standard `window` objects, such as React Native. | ||
<a name="1.1.3"></a> | ||
@@ -11,0 +18,0 @@ # 1.1.3 Fix `recordEvents()` server usage |
@@ -239,3 +239,3 @@ var Keen = require('./index'); | ||
function getUrlMaxLength(){ | ||
if ('undefined' !== typeof window) { | ||
if ('undefined' !== typeof window && navigator) { | ||
if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0) { | ||
@@ -242,0 +242,0 @@ return 2000; |
{ | ||
"name": "keen-tracking", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Data Collection SDK for Keen IO", | ||
@@ -27,3 +27,3 @@ "main": "lib/server.js", | ||
"js-cookie": "2.1.0", | ||
"keen-core": "0.1.2" | ||
"keen-core": "^0.1.3" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
@@ -133,3 +133,3 @@ # keen-tracking.js [![Build Status](https://travis-ci.org/keen/keen-tracking.js.svg?branch=master)](https://travis-ci.org/keen/keen-tracking.js) | ||
var latest,prev=name!=='Keen'&&window.Keen?window.Keen:false;ctx[name]=ctx[name]||{ready:function(fn){var h=document.getElementsByTagName('head')[0],s=document.createElement('script'),w=window,loaded;s.onload=s.onerror=s.onreadystatechange=function(){if((s.readyState&&!(/^c|loade/.test(s.readyState)))||loaded){return}s.onload=s.onreadystatechange=null;loaded=1;latest=w.Keen;if(prev){w.Keen=prev}else{try{delete w.Keen}catch(e){w.Keen=void 0}}ctx[name]=latest;ctx[name].ready(fn)};s.async=1;s.src=path;h.parentNode.insertBefore(s,h)}} | ||
}('Keen','https://d26b395fwzu5fz.cloudfront.net/keen-tracking-1.1.3.min.js',this); | ||
}('Keen','https://d26b395fwzu5fz.cloudfront.net/keen-tracking-1.1.4.min.js',this); | ||
@@ -575,6 +575,2 @@ // Executes when the library is loaded and ready | ||
}); | ||
// TODO: Override DOM event timeouts (defaults shown) | ||
// Keen.deferDomEvents('A', 'click', 500); | ||
// Keen.deferDomEvents('FORM', 'submit', 500); | ||
``` | ||
@@ -665,3 +661,3 @@ | ||
// Return the vale of the timer (seconds) | ||
// Return the value of the timer (seconds) | ||
userActivity.value(); // 10 | ||
@@ -668,0 +664,0 @@ |
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
79100
954
+ Addedkeen-core@0.1.3(transitive)
- Removedkeen-core@0.1.2(transitive)
Updatedkeen-core@^0.1.3