Comparing version 0.1.2 to 0.1.3
@@ -8,2 +8,10 @@ <!-- | ||
--> | ||
<a name="0.1.3"></a> | ||
# 0.1.3 Fix `window.navigator` check for IE10 | ||
**FIXED:** | ||
* This patch fixes the way `window.navigator` is referenced to avoid errors in environments that expose non-standard `window` objects, such as React Native. | ||
<a name="0.1.2"></a> | ||
@@ -10,0 +18,0 @@ # 0.1.2 Update resource map |
@@ -112,3 +112,3 @@ (function(env){ | ||
// IE<10 request shim | ||
if (typeof window !== 'undefined' && window.navigator.userAgent.indexOf('MSIE') > -1) { | ||
if (typeof window !== 'undefined' && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf('MSIE') > -1) { | ||
config.protocol = document.location.protocol.replace(':', ''); | ||
@@ -115,0 +115,0 @@ } |
{ | ||
"name": "keen-core", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Core functionality powering Keen IO's modular JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -109,10 +109,13 @@ var test = require('tape'); | ||
t.equal(app.url('base'), defaultProtocol + '://' + app.config.host, | ||
'Should return the correct url for the \'base\' resource'); | ||
'Should return the correct URL for the \'base\' resource'); | ||
t.equal(app.url('projectId'), defaultProtocol + '://' + app.config.host + '/3.0/projects/123', | ||
'Should return the correct url for the \'projectId\' resource'); | ||
'Should return the correct URL for the \'projectId\' resource'); | ||
t.equal(app.url('base', { key: true }), defaultProtocol + '://' + app.config.host + '?key=true', | ||
'Should return the correct url with provided query params'); | ||
'Should return the correct URL with provided query params'); | ||
t.equal(app.url('events', undefined), app.url('events'), | ||
'Should return the correct URL when second argument is undefined'); | ||
t.end(); | ||
@@ -119,0 +122,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
27731
700