@firestartr/cli 1.47.0-snapshot-0 → 1.47.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,36 @@
1
+ export const id = 351;
2
+ export const ids = [351];
3
+ export const modules = {
4
+
5
+ /***/ 8351:
6
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7
+
8
+
9
+ /*
10
+ * Copyright The OpenTelemetry Authors
11
+ *
12
+ * Licensed under the Apache License, Version 2.0 (the "License");
13
+ * you may not use this file except in compliance with the License.
14
+ * You may obtain a copy of the License at
15
+ *
16
+ * https://www.apache.org/licenses/LICENSE-2.0
17
+ *
18
+ * Unless required by applicable law or agreed to in writing, software
19
+ * distributed under the License is distributed on an "AS IS" BASIS,
20
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
+ * See the License for the specific language governing permissions and
22
+ * limitations under the License.
23
+ */
24
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
25
+ exports.getMachineId = void 0;
26
+ const api_1 = __webpack_require__(78199);
27
+ async function getMachineId() {
28
+ api_1.diag.debug('could not read machine-id: unsupported platform');
29
+ return undefined;
30
+ }
31
+ exports.getMachineId = getMachineId;
32
+ //# sourceMappingURL=getMachineId-unsupported.js.map
33
+
34
+ /***/ })
35
+
36
+ };
@@ -0,0 +1,80 @@
1
+ export const id = 540;
2
+ export const ids = [540];
3
+ export const modules = {
4
+
5
+ /***/ 74412:
6
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7
+
8
+
9
+ /*
10
+ * Copyright The OpenTelemetry Authors
11
+ *
12
+ * Licensed under the Apache License, Version 2.0 (the "License");
13
+ * you may not use this file except in compliance with the License.
14
+ * You may obtain a copy of the License at
15
+ *
16
+ * https://www.apache.org/licenses/LICENSE-2.0
17
+ *
18
+ * Unless required by applicable law or agreed to in writing, software
19
+ * distributed under the License is distributed on an "AS IS" BASIS,
20
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
+ * See the License for the specific language governing permissions and
22
+ * limitations under the License.
23
+ */
24
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
25
+ exports.execAsync = void 0;
26
+ const child_process = __webpack_require__(32081);
27
+ const util = __webpack_require__(73837);
28
+ exports.execAsync = util.promisify(child_process.exec);
29
+ //# sourceMappingURL=execAsync.js.map
30
+
31
+ /***/ }),
32
+
33
+ /***/ 77540:
34
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
35
+
36
+
37
+ /*
38
+ * Copyright The OpenTelemetry Authors
39
+ *
40
+ * Licensed under the Apache License, Version 2.0 (the "License");
41
+ * you may not use this file except in compliance with the License.
42
+ * You may obtain a copy of the License at
43
+ *
44
+ * https://www.apache.org/licenses/LICENSE-2.0
45
+ *
46
+ * Unless required by applicable law or agreed to in writing, software
47
+ * distributed under the License is distributed on an "AS IS" BASIS,
48
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
49
+ * See the License for the specific language governing permissions and
50
+ * limitations under the License.
51
+ */
52
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
53
+ exports.getMachineId = void 0;
54
+ const execAsync_1 = __webpack_require__(74412);
55
+ const api_1 = __webpack_require__(78199);
56
+ async function getMachineId() {
57
+ try {
58
+ const result = await (0, execAsync_1.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"');
59
+ const idLine = result.stdout
60
+ .split('\n')
61
+ .find(line => line.includes('IOPlatformUUID'));
62
+ if (!idLine) {
63
+ return undefined;
64
+ }
65
+ const parts = idLine.split('" = "');
66
+ if (parts.length === 2) {
67
+ return parts[1].slice(0, -1);
68
+ }
69
+ }
70
+ catch (e) {
71
+ api_1.diag.debug(`error reading machine id: ${e}`);
72
+ }
73
+ return undefined;
74
+ }
75
+ exports.getMachineId = getMachineId;
76
+ //# sourceMappingURL=getMachineId-darwin.js.map
77
+
78
+ /***/ })
79
+
80
+ };
@@ -0,0 +1,46 @@
1
+ export const id = 594;
2
+ export const ids = [594];
3
+ export const modules = {
4
+
5
+ /***/ 55594:
6
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7
+
8
+
9
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
10
+ exports.getMachineId = void 0;
11
+ /*
12
+ * Copyright The OpenTelemetry Authors
13
+ *
14
+ * Licensed under the Apache License, Version 2.0 (the "License");
15
+ * you may not use this file except in compliance with the License.
16
+ * You may obtain a copy of the License at
17
+ *
18
+ * https://www.apache.org/licenses/LICENSE-2.0
19
+ *
20
+ * Unless required by applicable law or agreed to in writing, software
21
+ * distributed under the License is distributed on an "AS IS" BASIS,
22
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23
+ * See the License for the specific language governing permissions and
24
+ * limitations under the License.
25
+ */
26
+ const fs_1 = __webpack_require__(57147);
27
+ const api_1 = __webpack_require__(78199);
28
+ async function getMachineId() {
29
+ const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];
30
+ for (const path of paths) {
31
+ try {
32
+ const result = await fs_1.promises.readFile(path, { encoding: 'utf8' });
33
+ return result.trim();
34
+ }
35
+ catch (e) {
36
+ api_1.diag.debug(`error reading machine id: ${e}`);
37
+ }
38
+ }
39
+ return undefined;
40
+ }
41
+ exports.getMachineId = getMachineId;
42
+ //# sourceMappingURL=getMachineId-linux.js.map
43
+
44
+ /***/ })
45
+
46
+ };
@@ -0,0 +1,80 @@
1
+ export const id = 647;
2
+ export const ids = [647];
3
+ export const modules = {
4
+
5
+ /***/ 74412:
6
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7
+
8
+
9
+ /*
10
+ * Copyright The OpenTelemetry Authors
11
+ *
12
+ * Licensed under the Apache License, Version 2.0 (the "License");
13
+ * you may not use this file except in compliance with the License.
14
+ * You may obtain a copy of the License at
15
+ *
16
+ * https://www.apache.org/licenses/LICENSE-2.0
17
+ *
18
+ * Unless required by applicable law or agreed to in writing, software
19
+ * distributed under the License is distributed on an "AS IS" BASIS,
20
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
+ * See the License for the specific language governing permissions and
22
+ * limitations under the License.
23
+ */
24
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
25
+ exports.execAsync = void 0;
26
+ const child_process = __webpack_require__(32081);
27
+ const util = __webpack_require__(73837);
28
+ exports.execAsync = util.promisify(child_process.exec);
29
+ //# sourceMappingURL=execAsync.js.map
30
+
31
+ /***/ }),
32
+
33
+ /***/ 22647:
34
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
35
+
36
+
37
+ /*
38
+ * Copyright The OpenTelemetry Authors
39
+ *
40
+ * Licensed under the Apache License, Version 2.0 (the "License");
41
+ * you may not use this file except in compliance with the License.
42
+ * You may obtain a copy of the License at
43
+ *
44
+ * https://www.apache.org/licenses/LICENSE-2.0
45
+ *
46
+ * Unless required by applicable law or agreed to in writing, software
47
+ * distributed under the License is distributed on an "AS IS" BASIS,
48
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
49
+ * See the License for the specific language governing permissions and
50
+ * limitations under the License.
51
+ */
52
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
53
+ exports.getMachineId = void 0;
54
+ const process = __webpack_require__(77282);
55
+ const execAsync_1 = __webpack_require__(74412);
56
+ const api_1 = __webpack_require__(78199);
57
+ async function getMachineId() {
58
+ const args = 'QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid';
59
+ let command = '%windir%\\System32\\REG.exe';
60
+ if (process.arch === 'ia32' && 'PROCESSOR_ARCHITEW6432' in process.env) {
61
+ command = '%windir%\\sysnative\\cmd.exe /c ' + command;
62
+ }
63
+ try {
64
+ const result = await (0, execAsync_1.execAsync)(`${command} ${args}`);
65
+ const parts = result.stdout.split('REG_SZ');
66
+ if (parts.length === 2) {
67
+ return parts[1].trim();
68
+ }
69
+ }
70
+ catch (e) {
71
+ api_1.diag.debug(`error reading machine id: ${e}`);
72
+ }
73
+ return undefined;
74
+ }
75
+ exports.getMachineId = getMachineId;
76
+ //# sourceMappingURL=getMachineId-win.js.map
77
+
78
+ /***/ })
79
+
80
+ };
@@ -0,0 +1,79 @@
1
+ export const id = 857;
2
+ export const ids = [857];
3
+ export const modules = {
4
+
5
+ /***/ 74412:
6
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7
+
8
+
9
+ /*
10
+ * Copyright The OpenTelemetry Authors
11
+ *
12
+ * Licensed under the Apache License, Version 2.0 (the "License");
13
+ * you may not use this file except in compliance with the License.
14
+ * You may obtain a copy of the License at
15
+ *
16
+ * https://www.apache.org/licenses/LICENSE-2.0
17
+ *
18
+ * Unless required by applicable law or agreed to in writing, software
19
+ * distributed under the License is distributed on an "AS IS" BASIS,
20
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
+ * See the License for the specific language governing permissions and
22
+ * limitations under the License.
23
+ */
24
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
25
+ exports.execAsync = void 0;
26
+ const child_process = __webpack_require__(32081);
27
+ const util = __webpack_require__(73837);
28
+ exports.execAsync = util.promisify(child_process.exec);
29
+ //# sourceMappingURL=execAsync.js.map
30
+
31
+ /***/ }),
32
+
33
+ /***/ 65857:
34
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
35
+
36
+
37
+ /*
38
+ * Copyright The OpenTelemetry Authors
39
+ *
40
+ * Licensed under the Apache License, Version 2.0 (the "License");
41
+ * you may not use this file except in compliance with the License.
42
+ * You may obtain a copy of the License at
43
+ *
44
+ * https://www.apache.org/licenses/LICENSE-2.0
45
+ *
46
+ * Unless required by applicable law or agreed to in writing, software
47
+ * distributed under the License is distributed on an "AS IS" BASIS,
48
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
49
+ * See the License for the specific language governing permissions and
50
+ * limitations under the License.
51
+ */
52
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
53
+ exports.getMachineId = void 0;
54
+ const fs_1 = __webpack_require__(57147);
55
+ const execAsync_1 = __webpack_require__(74412);
56
+ const api_1 = __webpack_require__(78199);
57
+ async function getMachineId() {
58
+ try {
59
+ const result = await fs_1.promises.readFile('/etc/hostid', { encoding: 'utf8' });
60
+ return result.trim();
61
+ }
62
+ catch (e) {
63
+ api_1.diag.debug(`error reading machine id: ${e}`);
64
+ }
65
+ try {
66
+ const result = await (0, execAsync_1.execAsync)('kenv -q smbios.system.uuid');
67
+ return result.stdout.trim();
68
+ }
69
+ catch (e) {
70
+ api_1.diag.debug(`error reading machine id: ${e}`);
71
+ }
72
+ return undefined;
73
+ }
74
+ exports.getMachineId = getMachineId;
75
+ //# sourceMappingURL=getMachineId-bsd.js.map
76
+
77
+ /***/ })
78
+
79
+ };