Comparing version 0.1.0 to 0.1.1
@@ -8,2 +8,9 @@ <!-- | ||
--> | ||
<a name="0.1.1"></a> | ||
# 0.1.1 Exclude legacy SDKs from namespace blending | ||
**FIXED:** | ||
* This patch improves the `Keen.extendLibrary()` function by excluding earlier versions of `Keen.prototype` methods from being blended into the global namespace of more recent SDKs. | ||
<a name="0.1.0"></a> | ||
@@ -10,0 +17,0 @@ # 0.1.0 Manage modular namespace |
@@ -61,3 +61,3 @@ (function(env){ | ||
var previous = previousKeen || source; | ||
if (typeof previous !== 'undefined') { | ||
if (isDefined(previous) && isDefined(previous.resources)) { | ||
each(previous, function(value, key) { | ||
@@ -217,2 +217,6 @@ if (typeof value === 'object') { | ||
function isDefined(target) { | ||
return typeof target !== 'undefined'; | ||
} | ||
function isUndefined(target) { | ||
@@ -219,0 +223,0 @@ return typeof target === 'undefined'; |
{ | ||
"name": "keen-core", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Core functionality powering Keen IO's modular JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -130,2 +130,3 @@ var test = require('tape'); | ||
}, | ||
'resources': {}, | ||
'string': 'some-string', | ||
@@ -132,0 +133,0 @@ 'prototype': { |
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
27029
696