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

@artus/core

Package Overview
Dependencies
Maintainers
7
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 1.0.1 to 1.0.2

4

lib/plugin/impl.js

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

// check import path
if (!await (0, fs_1.exisis)(this.importPath)) {
if (!await (0, fs_1.exists)(this.importPath)) {
throw new Error(`load plugin <${this.name}> import path ${this.importPath} is not exists.`);

@@ -71,3 +71,3 @@ }

try {
if (!await (0, fs_1.exisis)(metaFilePath)) {
if (!await (0, fs_1.exists)(metaFilePath)) {
throw new Error(`load plugin <${this.name}> import path ${this.importPath} can't find meta file.`);

@@ -74,0 +74,0 @@ }

@@ -16,2 +16,3 @@ "use strict";

const utils_1 = require("./utils");
const fs_1 = require("../utils/fs");
const config_file_meta_1 = require("../loader/utils/config_file_meta");

@@ -47,3 +48,4 @@ const application_1 = require("../application");

}
const configFileList = await fs.readdir(path.resolve(root, configDir));
const absoluteConfigDir = path.resolve(root, configDir);
const configFileList = (await (0, fs_1.exists)(absoluteConfigDir)) ? await fs.readdir(absoluteConfigDir) : [];
const envSet = new Set([constant_1.ARTUS_DEFAULT_CONFIG_ENV.DEFAULT]);

@@ -137,3 +139,3 @@ for (const configFilename of configFileList) {

const root = path.resolve(baseDir, configDir);
const configFileList = await fs.readdir(root);
const configFileList = (await (0, fs_1.exists)(root)) ? await fs.readdir(root) : [];
const container = new injection_1.Container(constant_1.ArtusInjectEnum.DefaultContainerName);

@@ -140,0 +142,0 @@ container.set({ type: configuration_1.default });

@@ -1,1 +0,1 @@

export declare function exisis(path: string): Promise<boolean>;
export declare function exists(path: string): Promise<boolean>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.exisis = void 0;
exports.exists = void 0;
const tslib_1 = require("tslib");
const promises_1 = tslib_1.__importDefault(require("fs/promises"));
async function exisis(path) {
async function exists(path) {
try {

@@ -15,2 +15,2 @@ await promises_1.default.access(path);

}
exports.exisis = exisis;
exports.exists = exists;
{
"name": "@artus/core",
"version": "1.0.1",
"version": "1.0.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