@settlemint/sdk-utils
Advanced tools
Comparing version 0.6.27-prdfc0d5f to 0.6.27-pre45a665
@@ -43,3 +43,2 @@ import { z } from 'zod'; | ||
SETTLEMINT_SMART_CONTRACT_SET: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -82,3 +81,2 @@ SETTLEMINT_INSTANCE: string; | ||
SETTLEMINT_SMART_CONTRACT_SET?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID?: string | undefined; | ||
}, { | ||
@@ -121,3 +119,2 @@ SETTLEMINT_INSTANCE: string; | ||
SETTLEMINT_SMART_CONTRACT_SET?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID?: string | undefined; | ||
}>; | ||
@@ -162,3 +159,2 @@ type DotEnv = z.infer<typeof DotEnvSchema>; | ||
SETTLEMINT_SMART_CONTRACT_SET: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -201,3 +197,2 @@ SETTLEMINT_INSTANCE?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID?: string | undefined; | ||
}, { | ||
@@ -240,3 +235,2 @@ SETTLEMINT_INSTANCE?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID?: string | undefined; | ||
}>; | ||
@@ -243,0 +237,0 @@ type DotEnvPartial = z.infer<typeof DotEnvSchemaPartial>; |
@@ -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. | ||
@@ -65,3 +54,2 @@ */ | ||
SETTLEMINT_SMART_CONTRACT_SET: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -104,3 +92,2 @@ SETTLEMINT_INSTANCE: string; | ||
SETTLEMINT_SMART_CONTRACT_SET?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID?: string | undefined; | ||
}, { | ||
@@ -143,3 +130,2 @@ SETTLEMINT_INSTANCE: string; | ||
SETTLEMINT_SMART_CONTRACT_SET?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID?: string | undefined; | ||
}>; | ||
@@ -184,3 +170,2 @@ type DotEnv = z.infer<typeof DotEnvSchema>; | ||
SETTLEMINT_SMART_CONTRACT_SET: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -223,3 +208,2 @@ SETTLEMINT_INSTANCE?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID?: string | undefined; | ||
}, { | ||
@@ -262,3 +246,2 @@ SETTLEMINT_INSTANCE?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID?: string | undefined; | ||
}>; | ||
@@ -407,9 +390,4 @@ type DotEnvPartial = z.infer<typeof DotEnvSchemaPartial>; | ||
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>; | ||
@@ -450,2 +428,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 }; |
@@ -49,3 +49,2 @@ import { ZodString, z, ZodSchema } from 'zod'; | ||
SETTLEMINT_SMART_CONTRACT_SET: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -88,3 +87,2 @@ SETTLEMINT_INSTANCE: string; | ||
SETTLEMINT_SMART_CONTRACT_SET?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID?: string | undefined; | ||
}, { | ||
@@ -127,3 +125,2 @@ SETTLEMINT_INSTANCE: string; | ||
SETTLEMINT_SMART_CONTRACT_SET?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID?: string | undefined; | ||
}>; | ||
@@ -168,3 +165,2 @@ type DotEnv = z.infer<typeof DotEnvSchema>; | ||
SETTLEMINT_SMART_CONTRACT_SET: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -207,3 +203,2 @@ SETTLEMINT_INSTANCE?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID?: string | undefined; | ||
}, { | ||
@@ -246,3 +241,2 @@ SETTLEMINT_INSTANCE?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET?: string | undefined; | ||
SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID?: string | undefined; | ||
}>; | ||
@@ -249,0 +243,0 @@ type DotEnvPartial = z.infer<typeof DotEnvSchemaPartial>; |
{ | ||
"name": "@settlemint/sdk-utils", | ||
"description": "SettleMint SDK, integrate SettleMint into your application with ease.", | ||
"version": "0.6.27-prdfc0d5f", | ||
"version": "0.6.27-pre45a665", | ||
"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
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