Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

keen-core

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keen-core - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

8

CHANGELOG.md

@@ -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

2

lib/index.js

@@ -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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc