@mui/toolpad-utils
Advanced tools
Comparing version 0.1.30 to 0.1.31
export declare function getExtension(filePath: string): string; | ||
export declare function hasImageExtension(pathName: string): boolean; | ||
export declare function bashResolvePath(pathName: string): string; |
// src/path.ts | ||
import os from "os"; | ||
import path from "path"; | ||
var IMAGE_EXTENSIONS = [".jpg", ".jpeg", ".png", ".gif", ".svg", ".webp"]; | ||
@@ -14,7 +12,3 @@ function getExtension(filePath) { | ||
} | ||
function bashResolvePath(pathName) { | ||
return pathName.startsWith("~/") ? path.resolve(os.homedir(), pathName.slice(2)) : path.resolve(process.cwd(), pathName); | ||
} | ||
export { | ||
bashResolvePath, | ||
getExtension, | ||
@@ -21,0 +15,0 @@ hasImageExtension |
{ | ||
"name": "@mui/toolpad-utils", | ||
"version": "0.1.30", | ||
"version": "0.1.31", | ||
"description": "Build MUI apps quickly", | ||
@@ -64,6 +64,6 @@ "author": "MUI Toolpad team", | ||
"@types/prettier": "2.7.3", | ||
"@types/react": "18.2.22", | ||
"@types/react-is": "18.2.1" | ||
"@types/react": "18.2.23", | ||
"@types/react-is": "18.2.2" | ||
}, | ||
"gitHead": "4057a5514725c4eb709d3db9a0a3720f7901a4ea" | ||
"gitHead": "0186d8a811d0c172f193d8e961cd763d5024b71a" | ||
} |
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
237903
125
2764