keen-tracking
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -9,2 +9,9 @@ <!-- | ||
--> | ||
<a name="1.1.1"></a> | ||
# 1.1.1 Global Namespace Fix (Pt2) | ||
**FIXED:** | ||
* This patch isolates global namespace definition and installs `keen-core@0.1.1` to fix an issue where prototype methods of other SDKs were blended into this SDK's prototype. | ||
<a name="1.1.0"></a> | ||
@@ -11,0 +18,0 @@ # 1.1.0 Global Namespace Fix |
{ | ||
"name": "keen-tracking", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Data Collection SDK for Keen IO", | ||
@@ -27,3 +27,3 @@ "main": "lib/server.js", | ||
"js-cookie": "2.1.0", | ||
"keen-core": "^0.1.0" | ||
"keen-core": "0.1.1" | ||
}, | ||
@@ -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.0.min.js',this); | ||
}('Keen','https://d26b395fwzu5fz.cloudfront.net/keen-tracking-1.1.1.min.js',this); | ||
@@ -682,4 +682,8 @@ // Executes when the library is loaded and ready | ||
**Important:** This is now supported by the API as an add-on! Learn more here: https://keen.io/docs/api/#datetime-parser | ||
`Keen.utils.getDatetimeIndex()` returns a set of properties like "hour_of_day" or "day_of_month". This helper accepts an optional Date object as an argument, otherwise it will construct and return a datetime index object based on "now". | ||
This helper works with a new `Date` object, and therefore the value returned is localized and not UTC. [Read more about this issue here](https://github.com/keen/keen-tracking.js/issues/49). | ||
```javascript | ||
@@ -686,0 +690,0 @@ var datetimeIndex = Keen.helpers.getDatetimeIndex(); |
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
78494
958
+ Addedkeen-core@0.1.1(transitive)
- Removedkeen-core@0.1.3(transitive)
Updatedkeen-core@0.1.1