@ms-cloudpack/telemetry 0.11.74 → 0.12.0

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.
@@ -0,0 +1,50 @@
1
+ // @ts-nocheck
2
+ /* eslint-disable */
3
+ import { createRequire as topLevelCreateRequire } from 'node:module';
4
+ import topLevelPath from 'node:path';
5
+ import topLevelUrl from 'node:url';
6
+ const require = topLevelCreateRequire(import.meta.url);
7
+ const __filename = topLevelUrl.fileURLToPath(import.meta.url);
8
+ const __dirname = topLevelPath.dirname(__filename);
9
+ import {
10
+ require_execAsync
11
+ } from "./chunk-ADU6KBKW.js";
12
+ import {
13
+ __commonJS,
14
+ __name,
15
+ __require,
16
+ __toCommonJS,
17
+ esm_exports,
18
+ init_esm
19
+ } from "./chunk-VFMIPDJG.js";
20
+
21
+ // ../../node_modules/.store/@opentelemetry-resources-virtual-78a075cc9f/package/build/src/detectors/platform/node/machine-id/getMachineId-win.js
22
+ var require_getMachineId_win = __commonJS({
23
+ "../../node_modules/.store/@opentelemetry-resources-virtual-78a075cc9f/package/build/src/detectors/platform/node/machine-id/getMachineId-win.js"(exports) {
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.getMachineId = void 0;
26
+ var process = __require("process");
27
+ var execAsync_1 = require_execAsync();
28
+ var api_1 = (init_esm(), __toCommonJS(esm_exports));
29
+ async function getMachineId() {
30
+ const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
31
+ let command = "%windir%\\System32\\REG.exe";
32
+ if (process.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process.env) {
33
+ command = "%windir%\\sysnative\\cmd.exe /c " + command;
34
+ }
35
+ try {
36
+ const result = await (0, execAsync_1.execAsync)(`${command} ${args}`);
37
+ const parts = result.stdout.split("REG_SZ");
38
+ if (parts.length === 2) {
39
+ return parts[1].trim();
40
+ }
41
+ } catch (e) {
42
+ api_1.diag.debug(`error reading machine id: ${e}`);
43
+ }
44
+ return void 0;
45
+ }
46
+ __name(getMachineId, "getMachineId");
47
+ exports.getMachineId = getMachineId;
48
+ }
49
+ });
50
+ export default require_getMachineId_win();
@@ -0,0 +1,15 @@
1
+ // @ts-nocheck
2
+ /* eslint-disable */
3
+ import { createRequire as topLevelCreateRequire } from 'node:module';
4
+ import topLevelPath from 'node:path';
5
+ import topLevelUrl from 'node:url';
6
+ const require = topLevelCreateRequire(import.meta.url);
7
+ const __filename = topLevelUrl.fileURLToPath(import.meta.url);
8
+ const __dirname = topLevelPath.dirname(__filename);
9
+ import {
10
+ HttpSender
11
+ } from "./chunk-5KML56LI.js";
12
+ import "./chunk-VFMIPDJG.js";
13
+ export {
14
+ HttpSender
15
+ };