@mui/toolpad-utils
Advanced tools
Comparing version 0.1.41 to 0.1.42
import { | ||
errorFrom, | ||
serializeError | ||
} from "./chunk-TA4VWWF6.js"; | ||
import "./chunk-ENOBQVEO.js"; | ||
} from "./chunk-I3OJXPC4.js"; | ||
import "./chunk-MEKVZBNS.js"; | ||
import "./chunk-ZIL547LD.js"; | ||
@@ -7,0 +7,0 @@ export { |
@@ -12,3 +12,3 @@ /// <reference types="node" /> | ||
export declare function readMaybeFile(filePath: string): Promise<string | null>; | ||
export declare function readMaybeDir(dirPath: string): Promise<Dirent[] | null>; | ||
export declare function readMaybeDir(dirPath: string): Promise<Dirent[]>; | ||
export type WriteFileOptions = Parameters<typeof fs.writeFile>[2]; | ||
@@ -15,0 +15,0 @@ export declare function writeFileRecursive(filePath: string, content: string | Buffer, options?: WriteFileOptions): Promise<void>; |
import { | ||
errorFrom | ||
} from "./chunk-TA4VWWF6.js"; | ||
import "./chunk-ENOBQVEO.js"; | ||
} from "./chunk-I3OJXPC4.js"; | ||
import "./chunk-MEKVZBNS.js"; | ||
import "./chunk-ZIL547LD.js"; | ||
@@ -29,3 +29,3 @@ | ||
const error = errorFrom(rawError); | ||
if (error.code === "ENOENT") { | ||
if (error.code === "ENOENT" || error.code === "EISDIR") { | ||
return null; | ||
@@ -41,4 +41,4 @@ } | ||
const error = errorFrom(rawError); | ||
if (errorFrom(error).code === "ENOENT") { | ||
return null; | ||
if (error.code === "ENOENT" || error.code === "ENOTDIR") { | ||
return []; | ||
} | ||
@@ -45,0 +45,0 @@ throw error; |
@@ -1,2 +0,2 @@ | ||
export { default as useBoolean } from './useBoolean.js'; | ||
export { default as usePageTitle } from './usePageTitle.js'; | ||
export { default as useBoolean } from './useBoolean'; | ||
export { default as usePageTitle } from './usePageTitle'; |
@@ -73,1 +73,2 @@ /** | ||
export declare function isValidJsIdentifier(base: string): boolean; | ||
export declare function guessTitle(str: string): string; |
@@ -9,2 +9,3 @@ import { | ||
generateUniqueString, | ||
guessTitle, | ||
indent, | ||
@@ -20,3 +21,3 @@ isAbsoluteUrl, | ||
uncapitalize | ||
} from "./chunk-ENOBQVEO.js"; | ||
} from "./chunk-MEKVZBNS.js"; | ||
export { | ||
@@ -30,2 +31,3 @@ camelCase, | ||
generateUniqueString, | ||
guessTitle, | ||
indent, | ||
@@ -32,0 +34,0 @@ isAbsoluteUrl, |
import { | ||
errorFrom, | ||
serializeError | ||
} from "./chunk-TA4VWWF6.js"; | ||
import "./chunk-ENOBQVEO.js"; | ||
} from "./chunk-I3OJXPC4.js"; | ||
import "./chunk-MEKVZBNS.js"; | ||
import "./chunk-ZIL547LD.js"; | ||
@@ -7,0 +7,0 @@ |
{ | ||
"name": "@mui/toolpad-utils", | ||
"version": "0.1.41", | ||
"version": "0.1.42", | ||
"description": "Build MUI apps quickly", | ||
@@ -58,2 +58,3 @@ "author": "MUI Toolpad team", | ||
"react-is": "18.2.0", | ||
"title": "3.5.3", | ||
"yaml": "2.3.4", | ||
@@ -65,6 +66,7 @@ "yaml-diff-patch": "2.0.0" | ||
"@types/prettier": "2.7.3", | ||
"@types/react": "18.2.43", | ||
"@types/react-is": "18.2.4" | ||
"@types/react": "18.2.45", | ||
"@types/react-is": "18.2.4", | ||
"@types/title": "3.4.3" | ||
}, | ||
"gitHead": "a87af6f6c4937a578dcb32c31433edae6fcacf6c" | ||
"gitHead": "637320d4865ef483a6767bd3657f28fc9eef5e6f" | ||
} |
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
251749
2965
7
5
+ Addedtitle@3.5.3
+ Addedansi-styles@3.2.1(transitive)
+ Addedarch@2.2.0(transitive)
+ Addedarg@1.0.0(transitive)
+ Addedchalk@2.3.0(transitive)
+ Addedclipboardy@1.2.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcross-spawn@5.1.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedexeca@0.8.0(transitive)
+ Addedget-stream@3.0.0(transitive)
+ Addedhas-flag@2.0.0(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addednpm-run-path@2.0.2(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedpath-key@2.0.1(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstrip-eof@1.0.0(transitive)
+ Addedsupports-color@4.5.0(transitive)
+ Addedtitle@3.5.3(transitive)
+ Addedtitleize@1.0.0(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedyallist@2.1.2(transitive)