@settlemint/sdk-utils
Advanced tools
Comparing version 0.6.24-prd0d4869 to 0.6.24-prd4dbce1
@@ -1,2 +0,2 @@ | ||
declare function ensureFolder(path: string): void; | ||
declare function ensureFolder(path: string): Promise<void>; | ||
@@ -3,0 +3,0 @@ declare function projectRoot(): Promise<string>; |
@@ -298,3 +298,3 @@ import { ZodString, z, ZodSchema } from 'zod'; | ||
declare function ensureFolder(path: string): void; | ||
declare function ensureFolder(path: string): Promise<void>; | ||
@@ -358,7 +358,7 @@ declare function projectRoot(): Promise<string>; | ||
* ```typescript | ||
* const dirIsEmpty = isEmpty("/path/to/directory"); | ||
* const dirIsEmpty = await isEmpty("/path/to/directory"); | ||
* console.log(dirIsEmpty); | ||
* ``` | ||
*/ | ||
declare function isEmpty(path: string): boolean; | ||
declare function isEmpty(path: string): Promise<boolean>; | ||
/** | ||
@@ -371,6 +371,6 @@ * Empties a directory by removing all its contents except for the .git directory. | ||
* ```typescript | ||
* emptyDir("/path/to/directory"); | ||
* await emptyDir("/path/to/directory"); | ||
* ``` | ||
*/ | ||
declare function emptyDir(dir: string): void; | ||
declare function emptyDir(dir: string): Promise<void>; | ||
@@ -377,0 +377,0 @@ declare function getPackageManager(targetDir: string): Promise<AgentName>; |
@@ -58,7 +58,7 @@ import { AgentName } from 'package-manager-detector'; | ||
* ```typescript | ||
* const dirIsEmpty = isEmpty("/path/to/directory"); | ||
* const dirIsEmpty = await isEmpty("/path/to/directory"); | ||
* console.log(dirIsEmpty); | ||
* ``` | ||
*/ | ||
declare function isEmpty(path: string): boolean; | ||
declare function isEmpty(path: string): Promise<boolean>; | ||
/** | ||
@@ -71,6 +71,6 @@ * Empties a directory by removing all its contents except for the .git directory. | ||
* ```typescript | ||
* emptyDir("/path/to/directory"); | ||
* await emptyDir("/path/to/directory"); | ||
* ``` | ||
*/ | ||
declare function emptyDir(dir: string): void; | ||
declare function emptyDir(dir: string): Promise<void>; | ||
@@ -77,0 +77,0 @@ declare function getPackageManager(targetDir: string): Promise<AgentName>; |
{ | ||
"name": "@settlemint/sdk-utils", | ||
"description": "SettleMint SDK, integrate SettleMint into your application with ease.", | ||
"version": "0.6.24-prd0d4869", | ||
"version": "0.6.24-prd4dbce1", | ||
"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
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
314341
2813