Merge pull request #31777 from mjomble/yauzl-strictfilenames

yauzl: added strictFileNames option
This commit is contained in:
Sheetal Nandi
2019-01-02 12:10:54 -08:00
committed by GitHub
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -83,6 +83,7 @@ export interface Options {
lazyEntries?: boolean;
decodeStrings?: boolean;
validateEntrySizes?: boolean;
strictFileNames?: boolean;
}
export function open(path: string, options: Options, callback?: (err?: Error, zipfile?: ZipFile) => void): void;
+2
View File
@@ -26,3 +26,5 @@ yauzl.open('path/to/file.zip', {lazyEntries: true}, (err, zipfile) => {
});
}
});
yauzl.open('options.zip', {strictFileNames: true}, () => {});