@settlemint/sdk-utils
Advanced tools
Comparing version 0.6.27-pr6cde0e4 to 0.6.27-pr7037926
@@ -8,13 +8,2 @@ import { ZodString, z, ZodSchema } from 'zod'; | ||
/** | ||
* Executes a command with the given arguments in a child process | ||
* | ||
* @param command - The command to execute | ||
* @param args - Array of arguments to pass to the command | ||
* @param env - Environment variables to pass to the command | ||
* @returns Promise that resolves when the process completes successfully | ||
* @throws Error if the process fails or exits with non-zero code | ||
*/ | ||
declare function executeCommand(command: string, args: string[], env?: Record<string, string>): Promise<void>; | ||
/** | ||
* Schema for validating access tokens. | ||
@@ -395,9 +384,4 @@ */ | ||
declare function getPackageManager(targetDir?: string): Promise<AgentName>; | ||
declare function getPackageManager(targetDir: string): Promise<AgentName>; | ||
declare function getPackageManagerExecutable(targetDir?: string): Promise<{ | ||
command: string; | ||
args: string[]; | ||
}>; | ||
declare function installDependencies(pkgs: string | string[]): Promise<void>; | ||
@@ -438,2 +422,2 @@ | ||
export { type AccessToken, AccessTokenSchema, type DotEnv, type DotEnvPartial, DotEnvSchema, DotEnvSchemaPartial, type Id, IdSchema, type Template, type Url, type UrlOrPath, UrlOrPathSchema, type UrlPath, UrlPathSchema, UrlSchema, capitalizeFirstLetter, emptyDir, ensureBrowser, ensureFolder, ensureServer, executeCommand, exists, formatTargetDir, getPackageManager, getPackageManagerExecutable, installDependencies, isEmpty, isPackageInstalled, isValidPackageName, loadEnv, projectRoot, runsInBrowser, runsOnServer, setName, templates, toValidPackageName, validate, writeEnv }; | ||
export { type AccessToken, AccessTokenSchema, type DotEnv, type DotEnvPartial, DotEnvSchema, DotEnvSchemaPartial, type Id, IdSchema, type Template, type Url, type UrlOrPath, UrlOrPathSchema, type UrlPath, UrlPathSchema, UrlSchema, capitalizeFirstLetter, emptyDir, ensureBrowser, ensureFolder, ensureServer, exists, formatTargetDir, getPackageManager, installDependencies, isEmpty, isPackageInstalled, isValidPackageName, loadEnv, projectRoot, runsInBrowser, runsOnServer, setName, templates, toValidPackageName, validate, writeEnv }; |
@@ -75,9 +75,4 @@ import { AgentName } from 'package-manager-detector'; | ||
declare function getPackageManager(targetDir?: string): Promise<AgentName>; | ||
declare function getPackageManager(targetDir: string): Promise<AgentName>; | ||
declare function getPackageManagerExecutable(targetDir?: string): Promise<{ | ||
command: string; | ||
args: string[]; | ||
}>; | ||
declare function installDependencies(pkgs: string | string[]): Promise<void>; | ||
@@ -113,2 +108,2 @@ | ||
export { type Template, emptyDir, formatTargetDir, getPackageManager, getPackageManagerExecutable, installDependencies, isEmpty, isPackageInstalled, isValidPackageName, setName, templates, toValidPackageName }; | ||
export { type Template, emptyDir, formatTargetDir, getPackageManager, installDependencies, isEmpty, isPackageInstalled, isValidPackageName, setName, templates, toValidPackageName }; |
{ | ||
"name": "@settlemint/sdk-utils", | ||
"description": "SettleMint SDK, integrate SettleMint into your application with ease.", | ||
"version": "0.6.27-pr6cde0e4", | ||
"version": "0.6.27-pr7037926", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
24
0
323288
2923