mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Merge pull request #31777 from mjomble/yauzl-strictfilenames
yauzl: added strictFileNames option
This commit is contained in:
Vendored
+1
@@ -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;
|
||||
|
||||
@@ -26,3 +26,5 @@ yauzl.open('path/to/file.zip', {lazyEntries: true}, (err, zipfile) => {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
yauzl.open('options.zip', {strictFileNames: true}, () => {});
|
||||
|
||||
Reference in New Issue
Block a user