Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@artus/core

Package Overview
Dependencies
Maintainers
8
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@artus/core - npm Package Compare versions

Comparing version 2.1.2-alpha.1 to 2.1.2-alpha.2

2

lib/configuration/index.js

@@ -39,3 +39,3 @@ "use strict";

async setConfigByFile(fileItem) {
const configContent = await (0, compatible_require_1.default)(fileItem.path);
const configContent = await (0, compatible_require_1.default)(fileItem.path + fileItem.extname);
if (configContent) {

@@ -42,0 +42,0 @@ const env = ConfigurationHandler_1.getEnvFromFilename(fileItem.filename);

@@ -47,3 +47,3 @@ "use strict";

async loadConfigFile(item) {
const originConfigObj = await (0, compatible_require_1.default)(item.path);
const originConfigObj = await (0, compatible_require_1.default)(item.path + item.extname);
let configObj = originConfigObj;

@@ -50,0 +50,0 @@ if (typeof originConfigObj === 'function') {

@@ -15,3 +15,3 @@ "use strict";

async load(item) {
const origin = await (0, compatible_require_1.default)(item.path, true);
const origin = await (0, compatible_require_1.default)(item.path + item.extname, true);
item.loaderState = Object.assign({ exportNames: ['default'] }, item.loaderState);

@@ -18,0 +18,0 @@ const { loaderState: state } = item;

@@ -13,3 +13,3 @@ "use strict";

async load(item) {
const origin = await (0, compatible_require_1.default)(item.path, true);
const origin = await (0, compatible_require_1.default)(item.path + item.extname, true);
item.loaderState = Object.assign({ exportNames: ['default'] }, item.loaderState);

@@ -16,0 +16,0 @@ const { loaderState: state } = item;

@@ -10,6 +10,11 @@ "use strict";

async function compatibleRequire(path, origin = false) {
const requiredModule = await import(path);
var _a;
if (path.endsWith('.json')) {
return require(path);
}
let requiredModule = await import(path);
(0, assert_1.default)(requiredModule, `module '${path}' exports is undefined`);
requiredModule = requiredModule.__esModule ? (_a = requiredModule.default) !== null && _a !== void 0 ? _a : requiredModule : requiredModule;
return origin ? requiredModule : (requiredModule.default || requiredModule);
}
exports.default = compatibleRequire;
{
"name": "@artus/core",
"version": "2.1.2-alpha.1",
"version": "2.1.2-alpha.2",
"description": "Core package of Artus",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc