episoda 0.2.57 → 0.2.59
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/daemon/daemon-process.js +43 -31
- package/dist/daemon/daemon-process.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3901,6 +3901,10 @@ function isValidUUID(str) {
|
|
|
3901
3901
|
return uuidRegex.test(str);
|
|
3902
3902
|
}
|
|
3903
3903
|
async function getMachineId() {
|
|
3904
|
+
const envMachineId = process.env.EPISODA_MACHINE_ID;
|
|
3905
|
+
if (envMachineId) {
|
|
3906
|
+
return envMachineId;
|
|
3907
|
+
}
|
|
3904
3908
|
const machineIdPath = path6.join((0, import_core5.getConfigDir)(), "machine-id");
|
|
3905
3909
|
try {
|
|
3906
3910
|
if (fs5.existsSync(machineIdPath)) {
|