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

@settlemint/sdk-utils

Package Overview
Dependencies
Maintainers
0
Versions
1122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@settlemint/sdk-utils - npm Package Compare versions

Comparing version 0.6.5-main9ceb0c2 to 0.6.5-main9e49f08

17

dist/index.d.ts

@@ -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 };

2

package.json
{
"name": "@settlemint/sdk-utils",
"description": "SettleMint SDK, integrate SettleMint into your application with ease.",
"version": "0.6.5-main9ceb0c2",
"version": "0.6.5-main9e49f08",
"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

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