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

@eggjs/tegg-common-util

Package Overview
Dependencies
Maintainers
12
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eggjs/tegg-common-util - npm Package Compare versions

Comparing version 3.38.0 to 3.39.0

13

dist/src/ModuleConfig.d.ts

@@ -7,4 +7,5 @@ import type { InlineModuleReferenceConfig, ModuleConfig, ModuleReference, ModuleReferenceConfig, NpmModuleReferenceConfig, ReadModuleReferenceOptions } from '@eggjs/tegg-types';

export declare class ModuleConfigUtil {
static moduleYamlPath(modulePath: string, env?: string): string;
static moduleJsonPath(modulePath: string, env?: string): string;
#private;
static configNames: string[] | undefined;
static setConfigNames(configNames: string[] | undefined): void;
static readModuleReference(baseDir: string, options?: ReadModuleReferenceOptions): readonly ModuleReference[];

@@ -18,8 +19,4 @@ private static readModuleReferenceFromModuleJson;

static readModuleNameSync(moduleDir: string, baseDir?: string): string;
static loadModuleConfig(moduleDir: string, baseDir?: string, env?: string): Promise<ModuleConfig | undefined>;
private static loadModuleJson;
private static loadModuleYaml;
static loadModuleConfigSync(moduleDir: string, baseDir?: string, env?: string): ModuleConfig | undefined;
private static loadModuleJsonSync;
private static loadModuleYamlSync;
static loadModuleConfig(moduleDir: string, baseDir?: string, env?: string): Promise<ModuleConfig>;
static loadModuleConfigSync(moduleDir: string, baseDir?: string, env?: string): ModuleConfig;
}

@@ -25,5 +25,11 @@ "use strict";

};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var _a, _ModuleConfigUtil_loadOne, _ModuleConfigUtil_loadJson, _ModuleConfigUtil_loadYaml, _ModuleConfigUtil_loadOneSync, _ModuleConfigUtil_loadJsonSync, _ModuleConfigUtil_loadYamlSync;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -51,14 +57,5 @@ exports.ModuleConfigUtil = exports.ModuleReferenceConfigHelp = void 0;

class ModuleConfigUtil {
static moduleYamlPath(modulePath, env) {
if (env) {
return node_path_1.default.join(modulePath, `module.${env}.yml`);
}
return node_path_1.default.join(modulePath, 'module.yml');
static setConfigNames(configNames) {
_a.configNames = configNames;
}
static moduleJsonPath(modulePath, env) {
if (env) {
return node_path_1.default.join(modulePath, `module.${env}.json`);
}
return node_path_1.default.join(modulePath, 'module.json');
}
static readModuleReference(baseDir, options) {

@@ -88,3 +85,3 @@ // 1. module.json exits use module.json as module reference

path: modulePath,
name: ModuleConfigUtil.readModuleNameSync(modulePath),
name: _a.readModuleNameSync(modulePath),
};

@@ -96,3 +93,3 @@ }

path: modulePath,
name: ModuleConfigUtil.readModuleNameSync(modulePath),
name: _a.readModuleNameSync(modulePath),
};

@@ -213,84 +210,108 @@ }

static async readModuleName(baseDir, moduleDir) {
moduleDir = ModuleConfigUtil.resolveModuleDir(moduleDir, baseDir);
moduleDir = _a.resolveModuleDir(moduleDir, baseDir);
const pkgContent = await node_fs_1.promises.readFile(node_path_1.default.join(moduleDir, 'package.json'), 'utf8');
const pkg = JSON.parse(pkgContent);
return ModuleConfigUtil.getModuleName(pkg);
return _a.getModuleName(pkg);
}
static readModuleNameSync(moduleDir, baseDir) {
moduleDir = ModuleConfigUtil.resolveModuleDir(moduleDir, baseDir);
moduleDir = _a.resolveModuleDir(moduleDir, baseDir);
const pkgContent = node_fs_1.default.readFileSync(node_path_1.default.join(moduleDir, 'package.json'), 'utf8');
const pkg = JSON.parse(pkgContent);
return ModuleConfigUtil.getModuleName(pkg);
return _a.getModuleName(pkg);
}
static async loadModuleConfig(moduleDir, baseDir, env) {
moduleDir = ModuleConfigUtil.resolveModuleDir(moduleDir, baseDir);
let defaultConfig = await ModuleConfigUtil.loadModuleYaml(moduleDir);
if (!defaultConfig) {
defaultConfig = await ModuleConfigUtil.loadModuleJson(moduleDir);
}
let envConfig;
const modulePath = _a.resolveModuleDir(moduleDir, baseDir);
let configNames;
if (env) {
envConfig = await ModuleConfigUtil.loadModuleYaml(moduleDir, env);
if (!envConfig) {
envConfig = await ModuleConfigUtil.loadModuleJson(moduleDir, env);
}
configNames = ['module', `module.${env}`];
}
(0, extend2_1.default)(true, defaultConfig, envConfig);
return defaultConfig;
}
static async loadModuleJson(moduleDir, env) {
const moduleJsonPath = ModuleConfigUtil.moduleJsonPath(moduleDir, env);
const moduleJsonPathExists = await FSUtil_1.FSUtil.fileExists(moduleJsonPath);
if (!moduleJsonPathExists) {
return;
else {
// assert(ModuleConfigUtil.configNames, 'should setConfigNames before load module config');
configNames = _a.configNames || ['module'];
}
const moduleJsonContent = await node_fs_1.promises.readFile(moduleJsonPath, 'utf8');
const moduleJson = JSON.parse(moduleJsonContent);
return moduleJson.config;
}
static async loadModuleYaml(moduleDir, env) {
const moduleYamlPath = ModuleConfigUtil.moduleYamlPath(moduleDir, env);
const moduleYamlPathExists = await FSUtil_1.FSUtil.fileExists(moduleYamlPath);
if (!moduleYamlPathExists) {
return;
const target = {};
for (const configName of configNames) {
let config = await __classPrivateFieldGet(_a, _a, "m", _ModuleConfigUtil_loadOne).call(_a, modulePath, configName);
// both module.yml and module.default.yml are ok for default config
if (configName === 'module.default' && !config) {
config = await __classPrivateFieldGet(_a, _a, "m", _ModuleConfigUtil_loadOne).call(_a, modulePath, 'module');
}
if (config) {
(0, extend2_1.default)(true, target, config);
}
}
const moduleYamlContent = await node_fs_1.promises.readFile(moduleYamlPath, 'utf8');
return js_yaml_1.default.safeLoad(moduleYamlContent);
return target;
}
static loadModuleConfigSync(moduleDir, baseDir, env) {
moduleDir = ModuleConfigUtil.resolveModuleDir(moduleDir, baseDir);
let defaultConfig = ModuleConfigUtil.loadModuleYamlSync(moduleDir);
if (!defaultConfig) {
defaultConfig = ModuleConfigUtil.loadModuleJsonSync(moduleDir);
}
let envConfig;
const modulePath = _a.resolveModuleDir(moduleDir, baseDir);
let configNames;
if (env) {
envConfig = ModuleConfigUtil.loadModuleYamlSync(moduleDir, env);
if (!envConfig) {
envConfig = ModuleConfigUtil.loadModuleJsonSync(moduleDir, env);
}
configNames = ['module', `module.${env}`];
}
return (0, extend2_1.default)(true, defaultConfig, envConfig);
}
static loadModuleJsonSync(moduleDir, env) {
const moduleJsonPath = ModuleConfigUtil.moduleJsonPath(moduleDir, env);
const moduleJsonPathExists = node_fs_1.default.existsSync(moduleJsonPath);
if (!moduleJsonPathExists) {
return;
else {
// assert(ModuleConfigUtil.configNames, 'should setConfigNames before load module config');
configNames = _a.configNames || ['module'];
}
const moduleJsonContent = node_fs_1.default.readFileSync(moduleJsonPath, 'utf8');
const moduleJson = JSON.parse(moduleJsonContent);
return moduleJson.config;
}
static loadModuleYamlSync(moduleDir, env) {
const moduleYamlPath = ModuleConfigUtil.moduleYamlPath(moduleDir, env);
const moduleYamlPathExists = node_fs_1.default.existsSync(moduleYamlPath);
if (!moduleYamlPathExists) {
return;
const target = {};
for (const configName of configNames) {
let config = __classPrivateFieldGet(_a, _a, "m", _ModuleConfigUtil_loadOneSync).call(_a, modulePath, configName);
// both module.yml and module.default.yml are ok for default config
if (configName === 'module.default' && !config) {
config = __classPrivateFieldGet(_a, _a, "m", _ModuleConfigUtil_loadOneSync).call(_a, modulePath, 'module');
}
if (config) {
(0, extend2_1.default)(true, target, config);
}
}
const moduleYamlContent = node_fs_1.default.readFileSync(moduleYamlPath, 'utf8');
return js_yaml_1.default.safeLoad(moduleYamlContent);
return target;
}
}
exports.ModuleConfigUtil = ModuleConfigUtil;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTW9kdWxlQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvd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0FBQyxNQUFNLENBQUM7SUFDM0IsQ0FBQztJQUVPLE1BQU0sQ0FBQyxrQkFBa0IsQ0FBQyxTQUFpQixFQUFFLEdBQVk7UUFDL0QsTUFBTSxjQUFjLEdBQUcsZ0JBQWdCLENBQUMsY0FBYyxDQUFDLFNBQVMsRUFBRSxHQUFHLENBQUMsQ0FBQztRQUN2RSxNQUFNLG9CQUFvQixHQUFHLGlCQUFFLENBQUMsVUFBVSxDQUFDLGNBQWMsQ0FBQyxDQUFDO1FBQzNELElBQUksQ0FBQyxvQkFBb0IsRUFBRSxDQUFDO1lBQzFCLE9BQU87UUFDVCxDQUFDO1FBQ0QsTUFBTSxpQkFBaUIsR0FBRyxpQkFBRSxDQUFDLFlBQVksQ0FBQyxjQUFjLEVBQUUsTUFBTSxDQUFDLENBQUM7UUFDbEUsT0FBTyxpQkFBSSxDQUFDLFFBQVEsQ0FBQyxpQkFBaUIsQ0FBaUIsQ0FBQztJQUMxRCxDQUFDO0NBQ0Y7QUEzUEQsNENBMlBDIn0=
_a = ModuleConfigUtil, _ModuleConfigUtil_loadOne = async function _ModuleConfigUtil_loadOne(moduleDir, configName) {
const yamlConfigPath = node_path_1.default.join(moduleDir, `${configName}.yml`);
let config = await __classPrivateFieldGet(_a, _a, "m", _ModuleConfigUtil_loadYaml).call(_a, yamlConfigPath);
if (!config) {
const jsonConfigPath = node_path_1.default.join(moduleDir, `${configName}.json`);
config = await __classPrivateFieldGet(_a, _a, "m", _ModuleConfigUtil_loadJson).call(_a, jsonConfigPath);
}
return config;
}, _ModuleConfigUtil_loadJson = async function _ModuleConfigUtil_loadJson(moduleJsonPath) {
const moduleJsonPathExists = await FSUtil_1.FSUtil.fileExists(moduleJsonPath);
if (!moduleJsonPathExists) {
return;
}
const moduleJsonContent = await node_fs_1.promises.readFile(moduleJsonPath, 'utf8');
const moduleJson = JSON.parse(moduleJsonContent);
return moduleJson.config;
}, _ModuleConfigUtil_loadYaml = async function _ModuleConfigUtil_loadYaml(moduleYamlPath) {
const moduleYamlPathExists = await FSUtil_1.FSUtil.fileExists(moduleYamlPath);
if (!moduleYamlPathExists) {
return;
}
const moduleYamlContent = await node_fs_1.promises.readFile(moduleYamlPath, 'utf8');
return js_yaml_1.default.safeLoad(moduleYamlContent);
}, _ModuleConfigUtil_loadOneSync = function _ModuleConfigUtil_loadOneSync(moduleDir, configName) {
const yamlConfigPath = node_path_1.default.join(moduleDir, `${configName}.yml`);
let config = __classPrivateFieldGet(_a, _a, "m", _ModuleConfigUtil_loadYamlSync).call(_a, yamlConfigPath);
if (!config) {
const jsonConfigPath = node_path_1.default.join(moduleDir, `${configName}.json`);
config = __classPrivateFieldGet(_a, _a, "m", _ModuleConfigUtil_loadJsonSync).call(_a, jsonConfigPath);
}
return config;
}, _ModuleConfigUtil_loadJsonSync = function _ModuleConfigUtil_loadJsonSync(moduleJsonPath) {
const moduleJsonPathExists = node_fs_1.default.existsSync(moduleJsonPath);
if (!moduleJsonPathExists) {
return;
}
const moduleJsonContent = node_fs_1.default.readFileSync(moduleJsonPath, 'utf8');
const moduleJson = JSON.parse(moduleJsonContent);
return moduleJson.config;
}, _ModuleConfigUtil_loadYamlSync = function _ModuleConfigUtil_loadYamlSync(moduleYamlPath) {
const moduleYamlPathExists = node_fs_1.default.existsSync(moduleYamlPath);
if (!moduleYamlPathExists) {
return;
}
const moduleYamlContent = node_fs_1.default.readFileSync(moduleYamlPath, 'utf8');
return js_yaml_1.default.safeLoad(moduleYamlContent);
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTW9kdWxlQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL01vZHVsZUNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDhEQUFpQztBQUNqQyxtREFBb0Q7QUFDcEQs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-types": "^3.38.0",
"@eggjs/tegg-types": "^3.39.0",
"extend2": "^1.0.0",

@@ -56,3 +56,3 @@ "globby": "^11.1.0",

},
"gitHead": "8411e0707b00e732b94cfbf181a25b728a3b81fc"
"gitHead": "68c1a9cbbe6ef7e42a5c12de853641be6cfc7dd1"
}
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