@withonevision/omnihive-core
Advanced tools
Comparing version 4.0.3-dev.52 to 4.0.3-dev.53
{ | ||
"name": "@withonevision/omnihive-core", | ||
"version": "4.0.3-dev.52", | ||
"version": "4.0.3-dev.53", | ||
"description": "OmniHive Core", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -21,8 +21,4 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WorkerService = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
const serialize_error_1 = require("serialize-error"); | ||
@@ -46,7 +42,18 @@ const CoreServiceFactory_1 = require("../factories/CoreServiceFactory"); | ||
if (hiveWorker.package === "") { | ||
if (!StringHelper_1.StringHelper.isNullOrWhiteSpace(CoreServiceFactory_1.CoreServiceFactory.configurationService.ohDirName)) { | ||
hiveWorker.importPath = path_1.default.join(CoreServiceFactory_1.CoreServiceFactory.configurationService.ohDirName, hiveWorker.importPath); | ||
try { | ||
const path = await Promise.resolve().then(() => __importStar(require("path"))); | ||
if (!StringHelper_1.StringHelper.isNullOrWhiteSpace(CoreServiceFactory_1.CoreServiceFactory.configurationService.ohDirName)) { | ||
hiveWorker.importPath = path.join(CoreServiceFactory_1.CoreServiceFactory.configurationService.ohDirName, hiveWorker.importPath); | ||
} | ||
else { | ||
hiveWorker.importPath = path.join(process.cwd(), hiveWorker.importPath); | ||
} | ||
} | ||
else { | ||
hiveWorker.importPath = path_1.default.join(process.cwd(), hiveWorker.importPath); | ||
catch (_err) { | ||
if (!StringHelper_1.StringHelper.isNullOrWhiteSpace(CoreServiceFactory_1.CoreServiceFactory.configurationService.ohDirName)) { | ||
hiveWorker.importPath = `${CoreServiceFactory_1.CoreServiceFactory.configurationService.ohDirName}/${hiveWorker.importPath}`; | ||
} | ||
else { | ||
hiveWorker.importPath = `${process.cwd()}/${hiveWorker.importPath}`; | ||
} | ||
} | ||
@@ -53,0 +60,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
843251
1251