@settlemint/sdk-utils
Advanced tools
Comparing version 0.6.5-prad85760 to 0.6.5-pref0b6c2
@@ -334,2 +334,17 @@ import { ZodString, z, ZodSchema } from 'zod'; | ||
/** | ||
* Checks if a package is installed in the project's dependencies. | ||
* @param name - The name of the package to check. | ||
* @param path - Optional path to the project root. If not provided, it will be determined automatically. | ||
* @returns A boolean indicating whether the package is installed in any of the dependency types (dependencies, devDependencies, or peerDependencies). | ||
* @throws {Error} If there's an issue reading the package.json file. | ||
* | ||
* @example | ||
* ```typescript | ||
* const isInstalled = await isPackageInstalled("react"); | ||
* console.log(isInstalled); // true or false | ||
* ``` | ||
*/ | ||
declare function isPackageInstalled(name: string, path?: string): Promise<boolean>; | ||
/** | ||
* Sets the name field in the package.json file. | ||
@@ -349,2 +364,2 @@ * @param name - The new name to set in the package.json file. | ||
export { type AccessToken, AccessTokenSchema, type DotEnv, type DotEnvPartial, DotEnvSchema, DotEnvSchemaPartial, type Id, IdSchema, type Template, type Url, type UrlOrPath, UrlOrPathSchema, type UrlPath, UrlPathSchema, UrlSchema, emptyDir, ensureFolder, ensureServer, formatTargetDir, getPackageManager, installDependencies, isEmpty, isValidPackageName, loadEnv, projectRoot, 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, emptyDir, ensureFolder, ensureServer, formatTargetDir, getPackageManager, installDependencies, isEmpty, isPackageInstalled, isValidPackageName, loadEnv, projectRoot, setName, templates, toValidPackageName, validate, writeEnv }; |
@@ -78,2 +78,17 @@ /** | ||
/** | ||
* Checks if a package is installed in the project's dependencies. | ||
* @param name - The name of the package to check. | ||
* @param path - Optional path to the project root. If not provided, it will be determined automatically. | ||
* @returns A boolean indicating whether the package is installed in any of the dependency types (dependencies, devDependencies, or peerDependencies). | ||
* @throws {Error} If there's an issue reading the package.json file. | ||
* | ||
* @example | ||
* ```typescript | ||
* const isInstalled = await isPackageInstalled("react"); | ||
* console.log(isInstalled); // true or false | ||
* ``` | ||
*/ | ||
declare function isPackageInstalled(name: string, path?: string): Promise<boolean>; | ||
/** | ||
* Sets the name field in the package.json file. | ||
@@ -91,2 +106,2 @@ * @param name - The new name to set in the package.json file. | ||
export { type Template, emptyDir, formatTargetDir, getPackageManager, installDependencies, isEmpty, 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.5-prad85760", | ||
"version": "0.6.5-pref0b6c2", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
281725
2547