@artus/core
Advanced tools
Comparing version 1.0.0-beta.4 to 1.0.0-beta.5
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BasePlugin = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
class BasePlugin { | ||
@@ -11,4 +15,4 @@ constructor(name, configItem) { | ||
let importPath = (_a = configItem.path) !== null && _a !== void 0 ? _a : ''; | ||
if (configItem.package) { | ||
importPath = require.resolve(configItem.package); | ||
if (!importPath && configItem.package) { | ||
importPath = path_1.default.resolve(require.resolve(`${configItem.package}/package.json`), '..'); | ||
} | ||
@@ -15,0 +19,0 @@ if (!importPath) { |
{ | ||
"name": "@artus/core", | ||
"version": "1.0.0-beta.4", | ||
"version": "1.0.0-beta.5", | ||
"description": "Core package of Artus", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
117913
2747