@ms-cloudpack/path-utilities
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -1,5 +0,5 @@ | ||
import fs from 'fs'; | ||
import fsPromises from 'fs/promises'; | ||
export async function isFile(filePath) { | ||
try { | ||
const stat = await fs.promises.stat(filePath); | ||
const stat = await fsPromises.stat(filePath); | ||
return stat.isFile(); | ||
@@ -6,0 +6,0 @@ } |
@@ -1,5 +0,5 @@ | ||
import fs from 'fs'; | ||
import fsPromises from 'fs/promises'; | ||
export async function isFolder(itemPath) { | ||
try { | ||
const stat = await fs.promises.stat(itemPath); | ||
const stat = await fsPromises.stat(itemPath); | ||
return stat.isDirectory(); | ||
@@ -6,0 +6,0 @@ } |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.34.2" | ||
"packageVersion": "7.34.4" | ||
} | ||
] | ||
} |
{ | ||
"name": "@ms-cloudpack/path-utilities", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Utilities for resolving paths between source/intermediate/output locations in Cloudpack.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
20809