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

launchdarkly-js-sdk-common

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

launchdarkly-js-sdk-common - npm Package Compare versions

Comparing version 5.0.0-alpha.4 to 5.0.0-alpha.5

2

package.json
{
"name": "launchdarkly-js-sdk-common",
"version": "5.0.0-alpha.4",
"version": "5.0.0-alpha.5",
"description": "LaunchDarkly SDK for JavaScript - common code",

@@ -5,0 +5,0 @@ "author": "LaunchDarkly <team@launchdarkly.com>",

@@ -6,2 +6,4 @@ /**

*/
const { commonBasicLogger } = require('./loggers');
function validKind(kind) {

@@ -93,3 +95,3 @@ return typeof kind === 'string' && kind !== 'kind' && kind.match(/^(\w|\.|-)+$/);

function getContextKeys(context, logger) {
function getContextKeys(context, logger = commonBasicLogger()) {
if (!context) {

@@ -116,6 +118,6 @@ return undefined;

case null:
logger?.warn(`null is not a valid context kind: ${context}`);
logger.warn(`null is not a valid context kind: ${context}`);
break;
case '':
logger?.warn(`'' is not a valid context kind: ${context}`);
logger.warn(`'' is not a valid context kind: ${context}`);
break;

@@ -122,0 +124,0 @@ default:

@@ -94,1 +94,3 @@

client.close().then(() => {});
var contextKeys = ld.getContextKeys(user);

@@ -987,2 +987,7 @@ /**

export function getContextKeys(
context: LDContext,
logger?: LDLogger,
): {[attribute: string]: string} | undefined;
/**

@@ -989,0 +994,0 @@ * Callback interface for collecting information about the SDK at runtime.

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