@platform/fs
Advanced tools
Comparing version 0.5.17 to 0.5.19
@@ -7,7 +7,7 @@ export declare type IBeforeFileSaveArgs = { | ||
export declare function loadAndParseSync<T>(path: string, defaultValue?: T): T; | ||
export declare function stringifyAndSave<T extends object>(path: string, data: T, options?: { | ||
export declare function stringifyAndSave<T extends Record<string, unknown>>(path: string, data: T, options?: { | ||
beforeSave?: (e: IBeforeFileSaveArgs) => Promise<string | void>; | ||
}): Promise<string>; | ||
export declare function stringifyAndSaveSync<T extends object>(path: string, data: T, options?: { | ||
export declare function stringifyAndSaveSync<T extends Record<string, unknown>>(path: string, data: T, options?: { | ||
beforeSave?: (e: IBeforeFileSaveArgs) => string | void; | ||
}): string; |
export declare type IGlobOptions = { | ||
includeDirs?: boolean; | ||
dot?: boolean; | ||
cache?: {}; | ||
statCache?: {}; | ||
realpathCache?: {}; | ||
cache?: { | ||
[path: string]: boolean | 'DIR' | 'FILE' | ReadonlyArray<string>; | ||
}; | ||
statCache?: { | ||
[path: string]: false | { | ||
isDirectory(): boolean; | ||
} | undefined; | ||
}; | ||
realpathCache?: { | ||
[path: string]: string; | ||
}; | ||
ignore?: string | string[]; | ||
}; | ||
export declare function find(pattern: string, options?: IGlobOptions): Promise<string[]>; |
{ | ||
"name": "@platform/fs", | ||
"version": "0.5.17", | ||
"version": "0.5.19", | ||
"description": "POSIX style file-system tools.", | ||
@@ -15,17 +15,17 @@ "main": "lib/index", | ||
"dependencies": { | ||
"@platform/fs.types": "0.0.12", | ||
"@platform/fs.types": "0.0.14", | ||
"@types/fs-extra": "9.0.1", | ||
"@types/js-yaml": "3.12.4", | ||
"archiver": "4.0.1", | ||
"@types/js-yaml": "3.12.5", | ||
"archiver": "4.0.2", | ||
"dotenv": "8.2.0", | ||
"extract-zip": "2.0.0", | ||
"extract-zip": "2.0.1", | ||
"filesize": "6.1.0", | ||
"fs-extra": "9.0.0", | ||
"fs-extra": "9.0.1", | ||
"glob": "7.1.6", | ||
"js-yaml": "3.13.1", | ||
"js-yaml": "3.14.0", | ||
"minimatch": "3.0.4" | ||
}, | ||
"devDependencies": { | ||
"@platform/test": "0.1.12", | ||
"@platform/ts.libs": "3.9.7", | ||
"@platform/test": "0.1.14", | ||
"@platform/ts.libs": "3.9.9", | ||
"@types/archiver": "3.1.0", | ||
@@ -35,3 +35,3 @@ "@types/dotenv": "8.2.0", | ||
"@types/filesize": "5.0.0", | ||
"@types/glob": "7.1.1" | ||
"@types/glob": "7.1.3" | ||
}, | ||
@@ -38,0 +38,0 @@ "files": [ |
75723
1590
+ Added@platform/fs.types@0.0.14(transitive)
+ Added@types/js-yaml@3.12.5(transitive)
+ Addedarchiver@4.0.2(transitive)
+ Addedasync@3.2.5(transitive)
+ Addedextract-zip@2.0.1(transitive)
+ Addedfs-extra@9.0.1(transitive)
+ Addedjs-yaml@3.14.0(transitive)
- Removed@platform/fs.types@0.0.12(transitive)
- Removed@types/js-yaml@3.12.4(transitive)
- Removedarchiver@4.0.1(transitive)
- Removedasync@2.6.4(transitive)
- Removedextract-zip@2.0.0(transitive)
- Removedfs-extra@9.0.0(transitive)
- Removedjs-yaml@3.13.1(transitive)
- Removedlodash@4.17.21(transitive)
Updated@platform/fs.types@0.0.14
Updated@types/js-yaml@3.12.5
Updatedarchiver@4.0.2
Updatedextract-zip@2.0.1
Updatedfs-extra@9.0.1
Updatedjs-yaml@3.14.0