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.0 to 0.1.1

7

CHANGELOG.md

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

6

lib/index.js

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

2

package.json
{
"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': {

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