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

@launchdarkly/js-server-sdk-common

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@launchdarkly/js-server-sdk-common - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

14

CHANGELOG.md

@@ -11,2 +11,16 @@ # Changelog

## [2.4.1](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-v2.4.0...js-server-sdk-common-v2.4.1) (2024-04-26)
### Bug Fixes
* Produce a warning when track is called with a non-numeric metric value. ([#449](https://github.com/launchdarkly/js-core/issues/449)) ([6799742](https://github.com/launchdarkly/js-core/commit/6799742a7914d32b3313e54408f0a2a3dda3ff5c))
### Dependencies
* The following workspace dependencies were updated
* dependencies
* @launchdarkly/js-sdk-common bumped from 2.4.1 to 2.4.2
## [2.4.0](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-v2.3.0...js-server-sdk-common-v2.4.0) (2024-04-16)

@@ -13,0 +27,0 @@

6

dist/LDClientImpl.js

@@ -351,3 +351,3 @@ "use strict";

track(key, context, data, metricValue) {
var _a;
var _a, _b;
const checkedContext = js_sdk_common_1.Context.fromLDContext(context);

@@ -358,2 +358,6 @@ if (!checkedContext.valid) {

}
// 0 is valid, so do not truthy check the metric value
if (metricValue !== undefined && !js_sdk_common_1.TypeValidators.Number.is(metricValue)) {
(_b = this.logger) === null || _b === void 0 ? void 0 : _b.warn(ClientMessages.invalidMetricValue(typeof metricValue));
}
this.eventProcessor.sendEvent(this.eventFactoryDefault.customEvent(key, checkedContext, data, metricValue));

@@ -360,0 +364,0 @@ }

4

package.json
{
"name": "@launchdarkly/js-server-sdk-common",
"version": "2.4.0",
"version": "2.4.1",
"type": "commonjs",

@@ -30,3 +30,3 @@ "main": "./dist/index.js",

"dependencies": {
"@launchdarkly/js-sdk-common": "2.4.1",
"@launchdarkly/js-sdk-common": "2.4.2",
"semver": "7.5.4"

@@ -33,0 +33,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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