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.

Potentially problematic release.


This version of ai might be problematic. Click here for more details.

package/dist/index.mjs CHANGED
@@ -288,6 +288,9 @@ function selectTelemetryAttributes({
288
288
  telemetry,
289
289
  attributes
290
290
  }) {
291
+ if ((telemetry == null ? void 0 : telemetry.isEnabled) !== true) {
292
+ return {};
293
+ }
291
294
  return Object.entries(attributes).reduce((attributes2, [key, value]) => {
292
295
  if (value === void 0) {
293
296
  return attributes2;