Skip to content

Commit 3fcaf99

Browse files
Build dist/action for v0.20.0
1 parent e7dbd6e commit 3fcaf99

File tree

9 files changed

+121307
-0
lines changed

9 files changed

+121307
-0
lines changed

dist/action/159.index.js

Lines changed: 586 additions & 0 deletions
Large diffs are not rendered by default.

dist/action/49.index.js

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
export const id = 49;
2+
export const ids = [49];
3+
export const modules = {
4+
5+
/***/ 9219:
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__(5317);
27+
const util = __webpack_require__(9023);
28+
exports.execAsync = util.promisify(child_process.exec);
29+
//# sourceMappingURL=execAsync.js.map
30+
31+
/***/ }),
32+
33+
/***/ 3049:
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__(932);
55+
const execAsync_1 = __webpack_require__(9219);
56+
const api_1 = __webpack_require__(1609);
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+
};

dist/action/522.index.js

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
export const id = 522;
2+
export const ids = [522];
3+
export const modules = {
4+
5+
/***/ 9219:
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__(5317);
27+
const util = __webpack_require__(9023);
28+
exports.execAsync = util.promisify(child_process.exec);
29+
//# sourceMappingURL=execAsync.js.map
30+
31+
/***/ }),
32+
33+
/***/ 7522:
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__(9896);
55+
const execAsync_1 = __webpack_require__(9219);
56+
const api_1 = __webpack_require__(1609);
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+
};

dist/action/721.index.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
export const id = 721;
2+
export const ids = [721];
3+
export const modules = {
4+
5+
/***/ 9721:
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__(9896);
27+
const api_1 = __webpack_require__(1609);
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+
};

dist/action/876.index.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
export const id = 876;
2+
export const ids = [876];
3+
export const modules = {
4+
5+
/***/ 9876:
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__(1609);
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+
};

dist/action/996.index.js

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
export const id = 996;
2+
export const ids = [996];
3+
export const modules = {
4+
5+
/***/ 9219:
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__(5317);
27+
const util = __webpack_require__(9023);
28+
exports.execAsync = util.promisify(child_process.exec);
29+
//# sourceMappingURL=execAsync.js.map
30+
31+
/***/ }),
32+
33+
/***/ 6996:
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__(9219);
55+
const api_1 = __webpack_require__(1609);
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 commit comments

Comments
 (0)