New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@cloud-cli/cli

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloud-cli/cli - npm Package Compare versions

Comparing version
2.0.0
to
2.0.1
+1
-1
dist/configuration.d.ts

@@ -16,2 +16,2 @@ import { CommandTree } from './types.js';

export declare function findFile(): string;
export declare function getConfig<T extends Record<string, any>>(moduleName: string, defaults?: T): Promise<ModuleConfiguration | T>;
export declare function getConfig<T extends ModuleConfiguration>(moduleName: string, defaults?: T): T;

@@ -45,3 +45,3 @@ import { existsSync } from 'node:fs';

}
export async function getConfig(moduleName, defaults = null) {
export function getConfig(moduleName, defaults = null) {
const filePath = join(process.cwd(), 'configuration', `${moduleName}.json`);

@@ -48,0 +48,0 @@ const config = readJson(filePath);

@@ -135,3 +135,3 @@ import { readFile } from 'node:fs/promises';

async runCommand(functionMap, command, functionName, params) {
const moduleConfig = await getConfig(command);
const moduleConfig = getConfig(command);
const optionFromFile = moduleConfig.commands?.[functionName] ?? {};

@@ -138,0 +138,0 @@ const mergedOptions = Object.assign({}, params, optionFromFile);

{
"name": "@cloud-cli/cli",
"version": "2.0.0",
"version": "2.0.1",
"description": "CLI for the Cloud CLI project",

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