@deslop/workbench 0.0.279 → 0.0.285
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/dist/client/assets/{browser-D0lHtlHJ.js → browser-WO1SlWNU.js} +1 -1
- package/dist/client/assets/{diff-BT1KPXaz.js → diff-A0Z4G6HR.js} +2 -2
- package/dist/client/assets/{diff-pSi7J_Xb.js → diff-CIAXHFVs.js} +1 -1
- package/dist/client/assets/{fallbacks-BYq-1Jf8.js → fallbacks-Cvg98U3d.js} +2 -2
- package/dist/client/assets/{index-C7MJruWE.js → index-C_XQfQXO.js} +1 -1
- package/dist/client/assets/{route-XNMYtWT-.js → route-CPP99S5h.js} +2 -2
- package/dist/client/assets/{route-Cw2wqWmD.js → route-Xh3KoGqC.js} +1 -1
- package/dist/client/assets/{state-CfuBgP9R.js → state-CQDoh6vk.js} +1 -1
- package/dist/client/assets/{terminal-7Yq8POXn.js → terminal-B-q7SW0v.js} +2 -2
- package/dist/client/assets/terminal-RfiAqmoT.js +2 -0
- package/dist/client/index.html +5 -5
- package/dist/execAsync-Gqapz_ET.mjs +11 -0
- package/dist/getMachineId-bsd-D2D8E0zh.mjs +27 -0
- package/dist/getMachineId-darwin-DD7WkQgq.mjs +24 -0
- package/dist/getMachineId-linux-NsJbNTda.mjs +20 -0
- package/dist/getMachineId-unsupported-BdKw63O1.mjs +15 -0
- package/dist/getMachineId-win-CpX0o49t.mjs +26 -0
- package/dist/server.js +74539 -0
- package/package.json +8 -6
- package/dist/client/assets/terminal-Br2Fi1vV.js +0 -2
- package/dist/workbench +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { a as __toCommonJS, i as __require, n as init_esm, r as __commonJSMin, t as esm_exports } from "./server.js";
|
|
3
|
+
import { t as require_execAsync } from "./execAsync-Gqapz_ET.mjs";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js
|
|
5
|
+
var require_getMachineId_win = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getMachineId = void 0;
|
|
8
|
+
const process = __require("process");
|
|
9
|
+
const execAsync_1 = require_execAsync();
|
|
10
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
11
|
+
async function getMachineId() {
|
|
12
|
+
const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
|
|
13
|
+
let command = "%windir%\\System32\\REG.exe";
|
|
14
|
+
if (process.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process.env) command = "%windir%\\sysnative\\cmd.exe /c " + command;
|
|
15
|
+
try {
|
|
16
|
+
const parts = (await (0, execAsync_1.execAsync)(`${command} ${args}`)).stdout.split("REG_SZ");
|
|
17
|
+
if (parts.length === 2) return parts[1].trim();
|
|
18
|
+
} catch (e) {
|
|
19
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.getMachineId = getMachineId;
|
|
23
|
+
}));
|
|
24
|
+
//#endregion
|
|
25
|
+
export default require_getMachineId_win();
|
|
26
|
+
export {};
|