@launchdarkly/js-sdk-common
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -5,2 +5,10 @@ # Changelog | ||
## [2.4.2](https://github.com/launchdarkly/js-core/compare/js-sdk-common-v2.4.1...js-sdk-common-v2.4.2) (2024-04-26) | ||
### Bug Fixes | ||
* Handle missing message with valid string. ([#450](https://github.com/launchdarkly/js-core/issues/450)) ([6ff8982](https://github.com/launchdarkly/js-core/commit/6ff8982d5a68f1fff4b8fcafc3eb015a75d3f002)) | ||
* 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)) | ||
## [2.4.1](https://github.com/launchdarkly/js-core/compare/js-sdk-common-v2.4.0...js-sdk-common-v2.4.1) (2024-04-09) | ||
@@ -7,0 +15,0 @@ |
@@ -6,3 +6,4 @@ /** | ||
static readonly missingContextKeyNoEvent = "Context was unspecified or had no key; event will not be sent"; | ||
static invalidMetricValue(badType: string): string; | ||
} | ||
//# sourceMappingURL=ClientMessages.d.ts.map |
@@ -7,2 +7,6 @@ "use strict"; | ||
class ClientMessages { | ||
static invalidMetricValue(badType) { | ||
return ('The track function was called with a non-numeric "metricValue"' + | ||
` (${badType}), only numeric metric values are supported.`); | ||
} | ||
} | ||
@@ -9,0 +13,0 @@ ClientMessages.missingContextKeyNoEvent = 'Context was unspecified or had no key; event will not be sent'; |
@@ -32,3 +32,3 @@ "use strict"; | ||
else { | ||
desc = `I/O error (${err.message || err})`; | ||
desc = `I/O error (${err.message || 'unknown error'})`; | ||
} | ||
@@ -35,0 +35,0 @@ const action = retryMessage !== null && retryMessage !== void 0 ? retryMessage : 'giving up permanently'; |
{ | ||
"name": "@launchdarkly/js-sdk-common", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
310359
4584