launchdarkly-js-sdk-common
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -5,2 +5,6 @@ # Change log | ||
## [4.3.0] - 2022-10-17 | ||
### Added: | ||
- Added support for `Inspectors` that can be used for collecting information for monitoring, analytics, and debugging. | ||
## [4.2.0] - 2022-10-03 | ||
@@ -7,0 +11,0 @@ ### Removed: |
{ | ||
"name": "launchdarkly-js-sdk-common", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "LaunchDarkly SDK for JavaScript - common code", | ||
@@ -5,0 +5,0 @@ "author": "LaunchDarkly <team@launchdarkly.com>", |
@@ -159,2 +159,8 @@ const EventProcessor = require('./EventProcessor'); | ||
function notifyInspectionFlagUsed(key, detail) { | ||
if (inspectorManager.hasListeners(InspectorTypes.flagUsed)) { | ||
inspectorManager.onFlagUsed(key, detail, ident.getUser()); | ||
} | ||
} | ||
function notifyInspectionIdentityChanged() { | ||
@@ -316,3 +322,3 @@ if (inspectorManager.hasListeners(InspectorTypes.clientIdentityChanged)) { | ||
if (!isAllFlags) { | ||
notifyInspectionIdentityChanged(); | ||
notifyInspectionFlagUsed(key, detail); | ||
} | ||
@@ -319,0 +325,0 @@ |
@@ -96,3 +96,2 @@ const { messages } = require('.'); | ||
onNextTick(() => { | ||
console.log('what?'); | ||
inspectorsByType[InspectorTypes.flagDetailChanged].forEach(inspector => inspector.method(flagKey, flag)); | ||
@@ -99,0 +98,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
397290
9079