ai 3.4.16 → 3.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
@@ -373,6 +373,9 @@ function selectTelemetryAttributes({
|
|
373
373
|
telemetry,
|
374
374
|
attributes
|
375
375
|
}) {
|
376
|
+
if ((telemetry == null ? void 0 : telemetry.isEnabled) !== true) {
|
377
|
+
return {};
|
378
|
+
}
|
376
379
|
return Object.entries(attributes).reduce((attributes2, [key, value]) => {
|
377
380
|
if (value === void 0) {
|
378
381
|
return attributes2;
|