{"version":3,"file":"si.cjs","names":[],"sources":["../../src/stats/si.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Import from the network file directly as bundlers trigger the 'osx-temperature-sensor' import in the systeminformation/lib/cpu.js,\n// resulting in the following warning: \"Can't resolve 'osx-temperature-sensor'\"\n// See https://github.com/open-telemetry/opentelemetry-js-contrib/pull/2071\n// The .js extension is required: the ESM build keeps this specifier and Node ESM does not add extensions to deep paths.\nimport { networkStats } from 'systeminformation/lib/network.js';\nimport type { Systeminformation } from 'systeminformation';\n\nexport function getNetworkData() {\n  return new Promise<Systeminformation.NetworkStatsData[]>(resolve => {\n    networkStats()\n      .then(resolve)\n      .catch(() => {\n        resolve([]);\n      });\n  });\n}\n"],"mappings":";;AAYA,SAAgB,iBAAiB;CAC/B,OAAO,IAAI,SAA8C,YAAW;EAClE,CAAA,GAAA,iCAAA,aAAA,CAAa,CAAC,CACX,KAAK,OAAO,CAAC,CACb,YAAY;GACX,QAAQ,CAAC,CAAC;EACZ,CAAC;CACL,CAAC;AACH"}